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
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
Does your production database have users/passwords?
~Ben
Yes I triple checked
Ben R. wrote:
Does your production database have users/passwords?
~Ben
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
Does ‘add user’ function work?
On 1/31/06, Ste H. [email protected] wrote:
Posted via http://www.ruby-forum.com/.
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
–
Blog >>> http://spaces.msn.com/members/skyincookoo
is there a flash[:notice] error you can throw in there to find out
what the error is ?
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 Y. wrote:
Does ‘add user’ function work?
On 1/31/06, Ste H. [email protected] wrote:
Posted via http://www.ruby-forum.com/.
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails–
Blog >>> http://spaces.msn.com/members/skyincookoo
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs