Topic: streamlining code, how can i accomplish this?
I'm trying to streamline my user signup like so but I'm having trouble. I must be a bit off from Rails convention. Here is what I am trying to do:
@user = User.new
@user = User.new(params[:user])
render :template => 'signup/complete'
user accesses: /signup
form posts to: /signup
if no form, it will show template: signup/index.rhtml
if form posted, upon successful save, show template: signup/complete.rhtml
this all works, except if the user calls /signup/complete
it renders the complete.rhtml template! i assumed it would not because i have
not written a method in the controller, also if i had a protected method it will
is there a way to disable this behavior or rework my code to get the same results?
any help appreciated!