I have in routes.rb map.resources :user, :has_one :profile in my _form.html.erb <% form_for (@user,@profile) do |f| ... %> Profile has "fisrt_name" attribute but it fires an error : undefined method "first_name" why this? thanks!
Possibly Parallel Threads
- Nested Forms - how to displayed the attributes content ?
- Nested forms validation problem
- Accessing belongs_to objects from a form_for context
- Nested objects not propagating from view
- TypeError: no implicit conversion of Symbol into Hash when submitting form to upload files