On Lunes, 1 de Marzo de 2010 11:15:02 cschlaefcke escribió:
> Hi Folks,
>
> I am trying to setup an action link for one of my controllers but it
> fails with errors in my log that I don´t understand.
>
> In my controller I added:
> config.action_links.add 'show_my_action', :label => 'My
> Action', :inline => true
>
> In the views folder I added a rhtml file named "show_my_action.rhtlm"
> that contains some simple text at the moment ("hello world").
>
> The new link shows up okay on my controller´s page but when I click on
> it I only get the error you can find attached at the end.Try renaming your view with html.erb extension instead of rhtml > > I have no idea why AS wants the mentioned .erb file in the app/view > folder. I can find it in the AS folder unter vendor/plugins but this > is named "_list_inline_adapter.html.erb". > > AS is the latest from the download link. Rails is 2.3.5. Ruby is 1.8.6- > p11 > > I hope someone could help me solving this problem. A hint that leads > me to the right direction is very appreciated. > > Thanks & Regards, > > Christian > > development.log: > ActionView::MissingTemplate (Missing template my_controller/ > _list_inline_adapter.erb in view path app/views): > actionpack (2.3.5) lib/action_view/paths.rb:66:in > `find_template_without_active_scaffold' > vendor/plugins/activescaffold/lib/extensions/generic_view_paths.rb: > 8:in `find_template' > actionpack (2.3.5) lib/action_view/partials.rb:236:in > `_unmemoized__pick_partial_template' > activesupport (2.3.5) lib/active_support/memoizable.rb:84:in > `_pick_partial_template' > actionpack (2.3.5) lib/action_view/partials.rb:184:in > `render_partial' > actionpack (2.3.5) lib/action_view/base.rb:267:in > `render_without_active_scaffold' > vendor/plugins/activescaffold/lib/extensions/ > action_view_rendering.rb:62:in `render' > actionpack (2.3.5) lib/action_controller/base.rb:973:in > `render_without_benchmark' > actionpack (2.3.5) lib/action_controller/benchmarking.rb:51:in > `render_without_active_scaffold' > activesupport (2.3.5) lib/active_support/core_ext/benchmark.rb:17:in > `ms' > activesupport (2.3.5) lib/active_support/core_ext/benchmark.rb:10:in > `realtime' > activesupport (2.3.5) lib/active_support/core_ext/benchmark.rb:17:in > `ms' > actionpack (2.3.5) lib/action_controller/benchmarking.rb:51:in > `render_without_active_scaffold' > vendor/plugins/activescaffold/lib/extensions/ > action_controller_rendering.rb:13:in `render' > vendor/plugins/activescaffold/lib/extensions/ > action_controller_rendering.rb:10:in `render' > actionpack (2.3.5) lib/action_controller/base.rb:1326:in > `default_render' > actionpack (2.3.5) lib/action_controller/base.rb:1338:in > `perform_action_without_filters' > actionpack (2.3.5) lib/action_controller/filters.rb:617:in > `call_filters' > actionpack (2.3.5) lib/action_controller/filters.rb:610:in > `perform_action_without_benchmark' > actionpack (2.3.5) lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > activesupport (2.3.5) lib/active_support/core_ext/benchmark.rb:17:in > `ms' > activesupport (2.3.5) lib/active_support/core_ext/benchmark.rb:10:in > `realtime' > activesupport (2.3.5) lib/active_support/core_ext/benchmark.rb:17:in > `ms' > actionpack (2.3.5) lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > actionpack (2.3.5) lib/action_controller/rescue.rb:160:in > `perform_action_without_flash' > actionpack (2.3.5) lib/action_controller/flash.rb:146:in > `perform_action' > actionpack (2.3.5) lib/action_controller/base.rb:532:in `send' > actionpack (2.3.5) lib/action_controller/base.rb:532:in > `process_without_filters' > actionpack (2.3.5) lib/action_controller/filters.rb:606:in `process' > actionpack (2.3.5) lib/action_controller/base.rb:391:in `process' > actionpack (2.3.5) lib/action_controller/base.rb:386:in `call' > actionpack (2.3.5) lib/action_controller/routing/route_set.rb:437:in > `call' > actionpack (2.3.5) lib/action_controller/dispatcher.rb:87:in > `dispatch' > actionpack (2.3.5) lib/action_controller/dispatcher.rb:121:in > `_call' > actionpack (2.3.5) lib/action_controller/dispatcher.rb:130:in > `build_middleware_stack' > activerecord (2.3.5) lib/active_record/query_cache.rb:29:in `call' > activerecord (2.3.5) lib/active_record/query_cache.rb:29:in `call' > activerecord (2.3.5) lib/active_record/connection_adapters/abstract/ > query_cache.rb:34:in `cache' > activerecord (2.3.5) lib/active_record/query_cache.rb:9:in `cache' > activerecord (2.3.5) lib/active_record/query_cache.rb:28:in `call' > activerecord (2.3.5) lib/active_record/connection_adapters/abstract/ > connection_pool.rb:361:in `call' > actionpack (2.3.5) lib/action_controller/string_coercion.rb:25:in > `call' > rack (1.0.1) lib/rack/head.rb:9:in `call' > rack (1.0.1) lib/rack/methodoverride.rb:24:in `call' > actionpack (2.3.5) lib/action_controller/params_parser.rb:15:in > `call' > actionpack (2.3.5) lib/action_controller/session/cookie_store.rb: > 93:in `call' > actionpack (2.3.5) lib/action_controller/failsafe.rb:26:in `call' > rack (1.0.1) lib/rack/lock.rb:11:in `call' > rack (1.0.1) lib/rack/lock.rb:11:in `synchronize' > rack (1.0.1) lib/rack/lock.rb:11:in `call' > actionpack (2.3.5) lib/action_controller/dispatcher.rb:114:in `call' > actionpack (2.3.5) lib/action_controller/reloader.rb:34:in `run' > actionpack (2.3.5) lib/action_controller/dispatcher.rb:108:in `call' > rails (2.3.5) lib/rails/rack/static.rb:31:in `call' > rack (1.0.1) lib/rack/urlmap.rb:46:in `call' > rack (1.0.1) lib/rack/urlmap.rb:40:in `each' > rack (1.0.1) lib/rack/urlmap.rb:40:in `call' > rails (2.3.5) lib/rails/rack/log_tailer.rb:17:in `call' > rack (1.0.1) lib/rack/content_length.rb:13:in `call' > rack (1.0.1) lib/rack/chunked.rb:15:in `call' > rack (1.0.1) lib/rack/handler/mongrel.rb:64:in `process' > C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86- > mswin32-60/lib/mongrel.rb:159:in `process_client' > C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86- > mswin32-60/lib/mongrel.rb:158:in `each' > C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86- > mswin32-60/lib/mongrel.rb:158:in `process_client' > C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86- > mswin32-60/lib/mongrel.rb:285:in `run' > C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86- > mswin32-60/lib/mongrel.rb:285:in `initialize' > C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86- > mswin32-60/lib/mongrel.rb:285:in `new' > C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86- > mswin32-60/lib/mongrel.rb:285:in `run' > C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86- > mswin32-60/lib/mongrel.rb:268:in `initialize' > C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86- > mswin32-60/lib/mongrel.rb:268:in `new' > C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86- > mswin32-60/lib/mongrel.rb:268:in `run' > rack (1.0.1) lib/rack/handler/mongrel.rb:34:in `run' > rails (2.3.5) lib/commands/server.rb:111 > C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require' > C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `require' > script/server:3 -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
