Hi, I''ve implemented the login code from the Agile rails book and it works perfectly in local development but as soon as I put it into production it wont accept usernames/passwords. It just goes straight back to login page. Any ideas? thanks -- Posted via http://www.ruby-forum.com/.
Does your production database have users/passwords? ~Ben On 1/31/06, Ste Hart <shartwright@gmail.com> wrote:> > Hi, > > I''ve implemented the login code from the Agile rails book and it works > perfectly in local development but as soon as I put it into production > it wont accept usernames/passwords. It just goes straight back to login > page. > > Any ideas? thanks > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Ben Reubenstein http://www.benr75.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060131/fee42a07/attachment.html
Yes I triple checked Ben Reubenstein wrote:> Does your production database have users/passwords? > > ~Ben-- Posted via http://www.ruby-forum.com/.
Ben Reubenstein
2006-Feb-01 16:09 UTC
[Rails] Re: Login works in dev but not in production
Hi Ste ~ I would try tailing the log to see what is going on behind the scenes. That way you can see if the SQL is being sent off to the database or not and narrow your problem. tail -f ./log/production.log ~ Ben On 2/1/06, Ste Hart <shartwright@gmail.com> wrote:> > Yes I triple checked > > Ben Reubenstein wrote: > > Does your production database have users/passwords? > > > > ~Ben > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Ben Reubenstein http://www.benr75.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060201/36a6e51d/attachment.html
is there a flash[:notice] error you can throw in there to find out what the error is ? On 2/1/06, Ste Hart <shartwright@gmail.com> wrote:> Yes I triple checked > > Ben Reubenstein wrote: > > Does your production database have users/passwords? > > > > ~Ben > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Does ''add user'' function work? On 1/31/06, Ste Hart <shartwright@gmail.com> wrote:> Hi, > > I''ve implemented the login code from the Agile rails book and it works > perfectly in local development but as soon as I put it into production > it wont accept usernames/passwords. It just goes straight back to login > page. > > Any ideas? thanks > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Blog >>> http://spaces.msn.com/members/skyincookoo
No I get no flash error message and if I go to the add user page it just asks me to log in. This is what production log is saying: Processing LoginController#login (for ########### at 2006-02-01 10:34:37) [POST] Parameters: {"user"=>{"name"=>"####", "password"=>"####"}, "action"=>"login", "controller"=>"login"} Rendering within layouts/store Rendering login/login Completed in 0.02476 (40 reqs/sec) | Rendering: 0.00901 (36%) | DB: 0.00733 (29%) | 200 OK [http://dev.######.com/login/login] Parts of log hashed for security reasons.... Sky Yin wrote:> Does ''add user'' function work? > > On 1/31/06, Ste Hart <shartwright@gmail.com> wrote: >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > > -- > Blog >>> http://spaces.msn.com/members/skyincookoo-- Posted via http://www.ruby-forum.com/.