Up vote 0 down vote favorite share g+ share fb share tw.
Once I replaced "form{:action => "/comments"}" with a "form_tag('/comments')" in the following code: =form_tag('/comments') %fieldset %input. Comment_input{ :name => "commentcomment", :size => 60, :type => "text" } %input{ :name => "commentactivity_id", :type => 'hidden', :value => "#{activity. Id}" } %button.
Post_coment_btn{ :type => "submit", :formmethod => "post"} Add Comment I then got the following error: syntax error, unexpected keyword_ensure, expecting $end . . On line 18, but the file containing the above only has 17 lines.
Am I using the form_tag incorrectly? Using the form_tag do as indicated by @Ben Zhang worked only I actually wanted to go to the 'create' action in the 'comments' controller: =form_tag :action => 'create', :controller => 'comments' do ruby-on-rails forms haml link|improve this question edited Feb 1 at 3:25 asked Feb 1 at 2:53John3929 72% accept rate.
Try this one = form_tag :action => '/comments' do.
Lost 15 minutes to this one...d'oh! – Nate Berkopec Mar 19 at 18:43.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.