tvongaza / active_scaffold_list_filters

Filters for the Rails Active Scaffold Plugin
32 stars 16 forks source link

rails application does not start up or does not find plugin view templates #1

Open gwerner opened 15 years ago

gwerner commented 15 years ago

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:insetup_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:in initialize' /Users/kke/Documents/persoenliche-dokumente/Freiberuflich/labor/rails/inventory-live/vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:142:innew' /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

sumedh commented 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

enricob commented 15 years ago

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.

enricob commented 15 years ago

My fork has some fixes which should address this issue. http://github.com/enricob/active_scaffold_list_filters

urjyoti commented 14 years ago

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})

enricob commented 14 years ago

Is this on my fork?

urjyoti commented 14 years ago

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