First of all , why arent you been restful?? your register action is the
same
as a new action, rails creates the right routes for it with
resource :user if you name that action new instead of register, you can
use
the :as method to make it say what you want in the url string. second
why
are you testing the http method? that is a requirement the router
handles.
and last , what is this for : @title=“Register” ?
First of all , why arent you been restful?? your register action is the
same as a new action, rails creates the right routes for it with
resource :user if you name that action new instead of register, you can
use the :as method to make it say what you want in the url string. second
why are you testing the http method? that is a requirement the router
handles. and last , what is this for : @title=“Register” ?
sorry i said you should name the action new but you should name it
create
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.