While I almost got the behavior I want, there's a problem:
def create
@user = User.authenticate(params[:user])
if [email protected]
render "shared_navigation/confirmation"
elsif request.post? #just using else instead of elsif request.post?
gives same unwanted behavior
super
end
end
When I click the create button and if the user is enabled, it reloads
the same page and I have to click create button twice. This occurs when
that super keyword is called which calls the super class. Anyone know
why devise reload the same page?
Thanks for response.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.