class PostsController < ApplicationController
active_scaffold :post do |conf|
columns[:categories].inplace_edit = :ajax
end
protected
def update_authorized?
true
end
While this works for the update action, the list action results in the following error:
According to the instructions on https://github.com/activescaffold/active_scaffold/wiki/Security adding
#{action_name}_authorized?
methods to ActiveScaffold controllers will restrict an entire action:While this works for the update action, the list action results in the following error:
wrong number of arguments (1 for 0)
Extracted source (around line #9):
Trace of template inclusion: vendor/plugins/active_scaffold/frontends/default/views/_list.html.erb, vendor/plugins/active_scaffold/frontends/default/views/_list_with_header.html.erb, vendor/plugins/active_scaffold/frontends/default/views/list.html.erb
app/controllers/posts_controller.rb:9:in
update_authorized?'`If I remove
columns[:categories].inplace_edit = :ajax
the list action works fine.