Displaying 1 result from an estimated 1 matches for "towm".
Did you mean:
  tom
  
2006 Jul 15
1
Redirect_to from initialize method
Hello, I''m curious as to why this bit of code doesn''t work:
--
class SignupController < ApplicationController
  def initialize
    signup.call
  end
  def signup
    redirect_to :action => "signup_form"
  end
end
--
You have a nil object when you didn''t expect it!
The error occured while evaluating nil.rewrite
--
Whereas if I comment the