This is the first time I'm using Devise with rails, and I'm having problems with one thing: I used the provided authenticate_user! method authenticate_user! in my user controller to restrict access to such pages: before_filter :authenticate_user!, :only => [:edit, :show, :update, :create, :destroy]
But this allows any subscribed user to access any other user actions :edit , which I want to limit only to this user. How can I do it?
source share