On 11 August 2011 21:44, Leonel *.* <[email protected]> wrote:
> Is it maybe because it's a nested resource?
>
> I have this in users_controller.rb
> -----------------------------------------
> @user = @company.users.build(params[:user])
> @user.invitation_last_sent_at = Time.now
> @user.invitation_last_sent_to = ???????

What?  You have that line if the controller?

> ------------------------------------------------------
>
> I just tried @company.users[0].email and it also doesn't work.

What do you mean it doesn't work?

You need to give more information not vague comments.  Show us the
results of what you are doing in the console by copying and pasting
the console output here.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to