Welcome Guest | Login

hobo plugin

I have been using and enjoying the Hobo plugin for some time now. I have been using the gem version but theoreticaly the plugin should work the same. I am referencing the plugin installation procedure at: http://hobocentral.net/blog/getting-started/.
ruby script/plugin install svn://hobocentral.net/hobo/trunk
ruby script/generate hobo  (seems redundant)
ruby script/generate hobo_rapid (installs hobo themes and such)
ruby script/generate hobo_user_model user (sets up basic user model)
ruby script/generate hobo_front_controller front (sets up front end)

everythings seems to go ok. Infact when I check everything seems to be in the correct directories (such as the plugin in the vendor directory). Unfortunatly it fails with this in the  development.log

Processing FrontController#index (for 24.25.198.197 at 2007-03-30 00:29:47) [GET]
 Session ID: 7aa838924d41d8c114be55d62a944230
 Parameters: {"action"=>"index", "controller"=>"front"}
Rendering front/index
DRYML: Compiled /vendor/plugins/hobo/tags/core.dryml in 0.00s
DRYML: Compiled /app/views/hobolib/application.dryml in 0.00s
DRYML: Compiled app/views/front/index.dryml in 0.02s
 User Columns (0.001185)   SHOW FIELDS FROM users
 Advert Columns (0.001114)   SHOW FIELDS FROM adverts
 Category Columns (0.000965)   SHOW FIELDS FROM categories
 SQL (0.000302)   SELECT count(*) AS count_all FROM users 
 SQL (0.000281)   SELECT count(*) AS count_all FROM adverts 
 SQL (0.000293)   SELECT count(*) AS count_all FROM categories 


ActionView::TemplateError (undefined method `page' for #<#<Class:0xb7461d08>:0xb7461ce0>) on line #41 of app/views/front/index.dryml:
38:         </section>
39:       </panel>
40:     </repeat>
41:   </:main>
42:
43: </page>

   #{RAILS_ROOT}/vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:293:in `send'
   #{RAILS_ROOT}/vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:293:in `method_missing'
   app/views/front/index.dryml:41:in `render_page'
   #{RAILS_ROOT}/vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:105:in `new_object_context'
   #{RAILS_ROOT}/vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:90:in `new_context'
   #{RAILS_ROOT}/vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:97:in `new_object_context'
   app/views/front/index.dryml:1:in `render_page'
   #{RAILS_ROOT}/vendor/plugins/hobo/lib/hobo/dryml/template_handler.rb:11:in `render'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:416:in `delegate_render'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:299:in `render_template'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:260:in `render_file_without_hobo'
   #{RAILS_ROOT}/vendor/plugins/hobo/lib/action_view_extensions/base.rb:8:in `render_file'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:806:in `render_file'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:711:in `render_with_no_layout'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/layout.rb:256:in `render_without_benchmark'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in `render'
   /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:50:in `render'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1096:in `perform_action_without_filters'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in `call_filter'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
   /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in `perform_action'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `send'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `process_without_filters'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in `process_without_session_management_support'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process'
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in `process'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:168:in `process_request'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:143:in `process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:109:in `with_signal_handler'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:142:in `process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each_cgi'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:141:in `process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:55:in `process!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:25:in `process!'
   dispatch.fcgi:24


Since this is the default layout template I feel like the templating scheme didnt install correctly, any ideas?

2007-03-30 12:33 AM

If anyone is interested it turned out to be that app\views\hobolib\application.dryml was incorrect. For some reason it was corrupted which caused the whole thing to fail. To fix the problem I replaced it with a copy off my computer. Now im a hobo on the rails!.

2007-03-30 01:10 AM

Cool - nice work getting hobo running -- (BTW - please keep your app in production mode on the shared servers) :)

2007-03-30 01:38 AM

actually on that note, I was trying to switch over to production mode. I issue the command
rake migrate or rake db:schema:load to import a database structure. These changes are not reflected on the production database. Is there a parameter i have to pass to force the migration to change the production database?

2007-03-30 03:49 AM

Yes - good question -

rake migrate RAILS_ENV='production'

2007-03-30 04:00 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.