Undefined method when redering form (rails 2.3)

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!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs