Module Merb::AuthenticatedHelper
In: lib/merb-auth-more/mixins/redirect_back.rb

Methods

Public Instance methods

Add a helper to do the redirect_back_or for you. Also tidies up the session afterwards If there has been a failed login attempt on some page using this method you‘ll be redirected back to that page. Otherwise redirect to the default_url

To make sure you‘re not redirected back to the login page after a failed then successful login, you can include an ignore url. Basically, if the return url == the ignore url go to the default_url

set the ignore url via an :ignore option in the opts hash.

[Validate]