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!
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!