Open gwerner opened 15 years ago
Seeing a similar issue with rails 2.3.2 and ActiveScaffold for edge rails on accessing the controller-
uninitialized constant ActiveScaffold::Config::ListFilter::ActiveScaffoldPath
I am currently working on this. Not sure if I have the right approach as it involves changes to both core ActiveScaffold and the plugin, but so far it's progressing.
My fork has some fixes which should address this issue. http://github.com/enricob/active_scaffold_list_filters
I am getting following error.
ActionView::MissingTemplate (Missing template _list_filter.erb in view path vendor/plugins/active_scaffold/frontends/default/views):
my env :- rails: 2.3.2 active_scaffold: master
my code inside a particular controller
config.actions.add :list_filter config.list_filter.add(:association, :type, {:label => "Type", :association => :type})
Is this on my fork?
Yes it is in your fork.
as well as in tvongaza fork.
am i doing anything wrong ?? This same error is coming in both the fork
rails version: 2.3.2 active_scaffold version : git master HEAD (05/29 at commit 0db31c4ef0e107e8d6dd5f8c53d9748c336b8156)
It seems that active scaffolding has changed the plugin handling.
The line: ActionController::Base.append_view_path(ActiveScaffoldPath.new(active_scaffold_default_frontend_path)) gives an error because ActiveScaffoldPath does not exist anymore.
If line is changed to: ActionController::Base.append_view_path(active_scaffold_default_frontend_path) later an error results: ActionView::MissingTemplate (Missing template _list_filter.erb in view path vendor/plugins/active_scaffold/frontends/default/views): Rendering rescues/layout (internal_server_error)
It seems that only the Active Scaffolding plugins are found, but not the ones of active_scaffold_list_filter
error: /Users/kke/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:105:in
const_missing' /Users/kke/Documents/persoenliche-dokumente/Freiberuflich/labor/rails/inventory-live/vendor/plugins/active_scaffold_list_filters/lib/active_scaffold/config/list_filter.rb:28:in
setup_view_paths' /Users/kke/Documents/persoenliche-dokumente/Freiberuflich/labor/rails/inventory-live/vendor/plugins/active_scaffold_list_filters/lib/active_scaffold/config/list_filter.rb:10:ininitialize' /Users/kke/Documents/persoenliche-dokumente/Freiberuflich/labor/rails/inventory-live/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:142:in
new' /Users/kke/Documents/persoenliche-dokumente/Freiberuflich/labor/rails/inventory-live/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:142:in `method_missing' /Users/kke/Documents/persoenliche-dokumente/Freiberuflich/labor/rails/inventory-live/app/controllers/plasmids_controller.rb:9 /Users/kke/Documents/persoenliche-dokumente/Freiberuflich/labor/rails/inventory-live/app/controllers/plasmids_controller.rb:4