ruby - How to resolve JSON syntax errors in rails? -


i started learning rails using 'agile web development rails, 4th edition'
with
rails 3.2.7 , ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux].
when tried edit html form

   <%= f.text_area :description  :rows=>6 %> 

it returned error

       /media/ashku/new volume/ror/depot/app/views/products/_form.html.erb:19: syntax error, unexpected ':', expecting ')' ...= ( f.text_area :description  :rows=>6 );@output_buffer.safe... 

then tried change :rows=>6 rows: 6 results same

discussion here suggests problem json

controller code given here

so how resolve problem ?

you have missed comma(,) after tag name ie.(:description). replace tag following , try run..

<%= f.text_area :description, :rows => 6 %>  

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -