ruby on rails - What is the difference between 'form_for @ecard' and 'form_for :ecard'? -
I have applied a restfull controller with all the right actions and scenes. It currently works entirely with a new_html.erb view which uses a form_for
such as structure:
After watching some tutorials, I saw that people also use the structure:
<% form_for: ecard do | F | & Gt%;
It seems logical .. but when I try to use
Marco,
This is the answer given on this site:
I hope that clears it.
Comments
Post a Comment