"Application error Rails application failed to start properly"
This has never happened to me in development. Here's what the log looks like:
Processing PeopleController#create (for 66.65.187.5 at 2008-06-19
09:47:23) [POST]
Session ID: B...[snip]...d246e
Parameters: {"commit"=>"Sign up",
"authenticity_token"=>"995b1cdc19ec4255dbf0135a68b905c963f1d9ab",
"action"=>"create", "controller"=>"people",
"person"=>{"name"=>"user_name", "password_confirmation"=>"1234",
"password"=>"1234", "email"=>"users_email@gmail.com"}}
Cookie set: auth_token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT
Sent mail:
From: Email verification <email@domain.com>
To: users_email@gmail.com
Subject: Email verification
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Click here to complete your email verification:
http://domain.com/people/verify/8d704410-203c-012b-4204-f4ae03f...
Thanks!
Redirected to http://www.domain.com/thanks.html
Completed in 0.63258 (1 reqs/sec) | DB: 0.00000 (0%) | 302 Found
http://www.domain.com/people]
The strange thing is that my code doesn't redirect to people/index.
Here's the create method:
def create
cookies.delete :auth_token
@person = Person.new(params[:person])
respond_to do |format|
@person.deactivated = true if global_prefs.email_verifications?
if @person.save
if global_prefs.email_verifications?
@person.email_verifications.create
flash[:notice] = %(Thanks for signing up! A verification email has been sent to #...@person.email}.)
# format.html { redirect_to(home_url) } # extracted for pre-launch
format.html { redirect_to('/thanks.html') } # added for pre-launch
else
self.current_person = @person
flash[:notice] = "Thanks for signing up!"
format.html { redirect_back_or_default(home_url) }
end
else
@body = "register single-col"
format.html { render :action => 'new' }
end
end
end
Any idea of why it would fail and redirect to people?
I feel like it might be a session or cookie thing or some server detail I am not aware of, but I am not experienced enough to know how to track this down. Any advice would be greatly appreciated.