ruby on rails 3 - how can i redirect to specific link out of my app when devise before_filter :authenticate_user works -


here categories controller code

   class categoriescontroller < applicationcontroller       before_filter :authenticate_user! ,:except => :index       def index        #some code      end       def show        #some code      end     end   

clearly can see categories#index page publicly view-able on categories listed. when click on category name without sign in, he/she redirect 'localhost:3000/users/sign_in'.

but want user redirect url "www.facebook.com" whenever devise before_filter :authenticate_user! work.

how can achieve this?


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -