>
> I am trying to launch my rails app but when i launch the server in 
> production mode my sessions controller cannot access my user controller. 
> How do I fix this relationship not being set?
>
> The problem is, in my sessions controller I can't instantiate User (e.g. 
> User.find.authenticate (for has_secure_password))
>
> Any ideas??
>

I think you mean that your SessionsController cannot access your User 
*model. *

It should have access to your User model, so, what error/output do you see 
in your development.log?

By the way the example you are providing isn't a valid Rails statement: 
User.find needs an argument, so it has to be something like: 
User.find(id).authenticate at least.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/c8cff63b-bf7a-47e8-bf70-1540710a80a7%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to