If I recall correctly, there's a bug open about the nonCRUD user page tags not working properly when extended.
On Sep 15, 7:01 pm, Spiralis <[email protected]> wrote: > Arg! So much for being a smartass trying to predict the Google groups > behaviour on tag-brackets in the message... :| > > This is how the section looks like with brackets (I hope it works this > time out... :): > > <extend tag="login-page"> > <old-login-page merge /> > </extend> > > Regards, > Ronny > > On 16 Sep, 02:59, Spiralis <[email protected]> wrote: > > > Hi all, > > > I have a need to extend (modify) the login-page tag. Since the login- > > page isn't associated with a view folder, I cannot go in and modify it > > in the <page> tag for the corresponding view. The login-page is > > defined in rapid_user_pages.dryml (check definition > > here:http://cookbook.hobocentral.net/api_tag_defs/login-page). > > > I went in to my application.dryml file and added the following: > > > <extend tag="login-page"> > > <old-login-page merge /> > > </extend> > > > When rendering this I get: > > --- > > NameError in UsersController#login > > undefined method `login_page' for class `#<Class:0xa4aa7a4>' > > > Any ideas? > > > Here's the full trace: > > --- > > vendor/gems/hobosupport-0.8.5/lib/hobo_support/fixes/module.rb:14:in > > `alias_method' > > vendor/gems/hobosupport-0.8.5/lib/hobo_support/fixes/module.rb:14:in > > `alias_method_chain' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/taglib.rb:80:in `send' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/taglib.rb:80:in `included' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/taglib.rb:76:in `each' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/taglib.rb:76:in `included' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/taglib.rb:121:in `include' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/taglib.rb:121:in `send' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/taglib.rb:121:in `import_into' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/dryml_builder.rb:125:in > > `import_taglib' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/dryml_builder.rb:76:in `build' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/dryml_builder.rb:76:in `each' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/dryml_builder.rb:76:in `build' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/template.rb:74:in `compile' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml.rb:152:in > > `compile_renderer_class' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml.rb:138:in `make_renderer_class' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml.rb:80:in `page_renderer' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml.rb:58:in `empty_page_renderer' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml.rb:51:in `render_tag' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/template_handler.rb:54:in > > `call_dryml_tag' > > vendor/gems/hobo-0.8.5/lib/hobo/dryml/template_handler.rb:72:in > > `render_for_file' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > base.rb:940:in `render_without_benchmark' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > benchmarking.rb:51:in `render_without_hobo_model' > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > > core_ext/benchmark.rb:8:in `realtime' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > benchmarking.rb:51:in `render_without_hobo_model' > > vendor/gems/hobo-0.8.5/lib/hobo/model_controller.rb:762:in `render' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > base.rb:1248:in `default_render' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > base.rb:1254:in `perform_action_without_filters' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > filters.rb:617:in `call_filters' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > filters.rb:638:in `run_before_filters' > > vendor/gems/hobo-0.8.5/lib/hobo/controller.rb:22:in `call' > > vendor/gems/hobo-0.8.5/lib/hobo/controller.rb:22:in > > `included_in_class' > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > > callbacks.rb:182:in `call' > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > > callbacks.rb:182:in `evaluate_method' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > filters.rb:184:in `call' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > filters.rb:635:in `run_before_filters' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > filters.rb:615:in `call_filters' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > filters.rb:610:in `perform_action_without_benchmark' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > benchmarking.rb:68:in `perform_action_without_rescue' > > C:/Ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > benchmarking.rb:68:in `perform_action_without_rescue' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > rescue.rb:136:in `perform_action_without_caching' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > caching/sql_cache.rb:13:in `perform_action' > > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ > > connection_adapters/abstract/query_cache.rb:34:in `cache' > > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ > > query_cache.rb:8:in `cache' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > caching/sql_cache.rb:12:in `perform_action' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > base.rb:524:in `send' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > base.rb:524:in `process_without_filters' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > filters.rb:606:in `process_without_session_management_support' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > session_management.rb:134:in `process' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > base.rb:392:in `process' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > dispatcher.rb:183:in `handle_request' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > dispatcher.rb:110:in `dispatch_unlocked' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > dispatcher.rb:123:in `dispatch' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > dispatcher.rb:122:in `synchronize' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > dispatcher.rb:122:in `dispatch' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > dispatcher.rb:132:in `dispatch_cgi' > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/ > > dispatcher.rb:39:in `dispatch' > > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb: > > 103:in `handle_dispatch' > > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:74:in > > `service' > > C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > > C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > > C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > > C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start' > > C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > > C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start' > > C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each' > > C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' > > C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start' > > C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' > > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:60:in > > `dispatch' > > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/ > > webrick.rb:66 > > C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `gem_original_require' > > C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `require' > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > > dependencies.rb:153:in `require' > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > > dependencies.rb:521:in `new_constants_in' > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/ > > dependencies.rb:153:in `require' > > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 > > C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `gem_original_require' > > C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > `require' > > script/server:3 > > -e:2:in `load' > > -e:2 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
