ruby on rails - Changing the sign_in url for Devise -


how change sign in path devise when using before_filter :athenticate user?

i have following in posts controller.

eg:

class postscontroller < applicationcontroller     before_filter :authenticate_user!      def index         @posts = post.all     end end 

at moment automatically goes '/users/sign_in'

i'd use '/login'

sorted folks, using devise_for method.

devise_for :users, :controllers => { :registrations => 'registrations' }, :path => 'accounts', :path_names => { :sign_in => 'login', :sign_up => 'new', :sign_out => 'logout', :password => 'secret', :confirmation => 'verification' } 

so sign_in path 'accounts/login'


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -