ruby on rails - Activeadmin: allow guest to view /admin/model.xml -


How do I allow active users to see the generated XML page for a model with ActiveAdmin?

./admin/categories.xml

I tried to leave the certification filter without success.

  Before_Filter from ActiveAdmin.register class: authenticate_user !,: except => [: Index] end    

Just an update if anyone finds this post You have to set up Activeadmin with Canain.

Remember to use the activeAdmin version from GRUBoot. When it is configured, you have to start Dummy guest user - add it to application_controller.rb

  def authenticate_admin_user! Current_user || = AdminUser.new # Guest user end   

You now have to configure your own cacon permissions

  The eligibility of the class are included in CanCan :: Ability def initialization (User) if the user can: manage: all others: can read, end of the category end   

cancun screencast:

Comments