Answer the question
In order to leave comments, you need to log in
Active Admin. How to assign the current user of a post when it is created?
I use Cancan to filter access:
scope_to :current_manager, :association_method => :blog_posts
controller do
private
def current_manager
unless can? :manage, :all
current_user
end
end
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question