Forum: Ruby on Rails Login works in dev but not in production

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8760848cc26a18d99910666c256613b5?d=identicon&s=25 Ste Hart (xcandyman)
on 2006-01-31 19:32
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
D90ef6808433e63203e15a5c2dadb0bb?d=identicon&s=25 Ben Reubenstein (Guest)
on 2006-01-31 21:13
(Received via mailing list)
Does your production database have users/passwords?

~Ben
8760848cc26a18d99910666c256613b5?d=identicon&s=25 Ste Hart (xcandyman)
on 2006-02-01 17:06
Yes I triple checked

Ben Reubenstein wrote:
> Does your production database have users/passwords?
>
> ~Ben
D90ef6808433e63203e15a5c2dadb0bb?d=identicon&s=25 Ben Reubenstein (Guest)
on 2006-02-01 17:11
(Received via mailing list)
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
F15fdc7cb2e911b3808837f2be244add?d=identicon&s=25 Adam Denenberg (Guest)
on 2006-02-01 17:11
(Received via mailing list)
is there a flash[:notice] error you can throw in there to find out
what the error is ?
Cee38055ae36590c654c04c2d5cc2778?d=identicon&s=25 Sky Yin (cookoo)
on 2006-02-01 17:15
(Received via mailing list)
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
8760848cc26a18d99910666c256613b5?d=identicon&s=25 Ste Hart (xcandyman)
on 2006-02-01 19:37
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
This topic is locked and can not be replied to.