Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- App.controllers :manufacturers do
- include CanCan::ControllerAdditions
- get :index do
- authorize! :manufacturers, :index
- manufacturers = Manufacturer.page params[:page]
- render 'manufacturers/index', :locals => {:manufacturers => manufacturers}
- end
- ...
- end
Add Comment
Please, Sign In to add comment