Ruby on Rails
Wednesday, December 2, 2015
actually it prepends in singular listing_title, listing_description, etc
On Thursday, December 3, 2015 at 2:04:19 AM UTC-5, fugee ohu wrote:
-- On Thursday, December 3, 2015 at 2:04:19 AM UTC-5, fugee ohu wrote:
Why does <%= form_for(@listing) do |f| %> the form helpers f.select, f.label, f.text_field, f.checkbox, f.radio_button all prepend model names to fields like listings_title, listings_description or in my browsers source listings[title] listings[description] and to avoid this i have to write my own html instead of using the helpers
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b21f92a7-3339-4908-96a0-854d508e1417%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment