NoMethodError in Front#index with Agility and Hobo 0.8.5 ?

0 views
Skip to first unread message

Owen

unread,
Dec 10, 2008, 6:13:23 PM12/10/08
to Hobo Users, ja...@hobocentral.net
I followed the following steps after installing rails 2.2.2 and Hobo
0.8.5

(On Windows XP)

I. Went into my HoboApps folder and ran this:

git clone git://github.com/tablatom/agility.git

2. Changed ito the "agility" folder

cd agility

3. Edited the .gitmodules file to correct it to the following:

[submodule "vendor/plugins/hobo"]
path = vendor/plugins/hobo
url = git://github.com/tablatom/hobo.git

4. Then executed:

git submodule init
git submodule update
ruby script/generate hobo_migration
rake db:migrate
ruby script/server

5. The server ran, but I got this strange error:


NoMethodError in Front#index

Showing app/views/front/index.dryml where line #1 raised:

undefined method `page' for #<ActionView::Base:0x489f694>

Extracted source (around line #1):

1: <page title="Home">
2:
3: <body: class="front-page"/>
4:

RAILS_ROOT: G:/HoboApps/agility
Application Trace | Framework Trace | Full Trace

vendor/plugins/hobo/hobo/lib/hobo/dryml/template_environment.rb:616:in
`send'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_environment.rb:616:in
`method_missing'
app/views/front/index.dryml:1:in `render_page'
app/views/front/index.dryml:1:in `render_page'

vendor/plugins/hobo/hobo/lib/hobo/dryml/template_environment.rb:616:in
`send'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_environment.rb:616:in
`method_missing'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_environment.rb:278:in
`new_object_context'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_environment.rb:259:in
`new_context'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_environment.rb:266:in
`new_object_context'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_handler.rb:21:in
`render_for_rails22'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_handler.rb:110:in
`render_dryml'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_handler.rb:88:in
`render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
template.rb:73:in `render_template'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
base.rb:256:in `render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:1174:in `render_for_file_without_dryml'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_handler.rb:67:in
`render_for_file'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:896:in `render_without_benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
benchmarking.rb:51:in `render'
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'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:868:in `render_without_benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
benchmarking.rb:51:in `render'
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'
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/plugins/hobo/hobo/lib/hobo/controller.rb:22:in `call'
vendor/plugins/hobo/hobo/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/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel/rails.rb:76:in `process'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel/rails.rb:74:in `synchronize'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel/rails.rb:74:in `process'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:159:in `process_client'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:158:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:158:in `process_client'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:285:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:285:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:285:in `new'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:285:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:268:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:268:in `new'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:268:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel/configurator.rb:282:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel/configurator.rb:281:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel/configurator.rb:281:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/
mongrel_rails:128:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel/command.rb:212:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/
mongrel_rails:281
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/
dependencies.rb:142:in `load_without_new_constant_marking'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/
dependencies.rb:142:in `load'
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:142:in `load'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/
mongrel.rb:64
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

vendor/plugins/hobo/hobo/lib/hobo/dryml/template_environment.rb:616:in
`send'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_environment.rb:616:in
`method_missing'
app/views/front/index.dryml:1:in `render_page'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_environment.rb:278:in
`new_object_context'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_environment.rb:259:in
`new_context'
vendor/plugins/hobo/hobo/lib/hobo/dryml/template_environment.rb:266:in
`new_object_context'
app/views/front/index.dryml:1:in `render_page'

Owen

unread,
Dec 12, 2008, 11:23:26 AM12/12/08
to Hobo Users
Edmund found this. It appears that for Windows a symbolic link isn't
working so:

It is missing the clean.dryml in the path: ….\agility\app\views
\taglibs\themes\clean
You have to delete the “clean” file that is currently in your ….
\agility\app\views\taglibs\themes
Then, create a folder called clean
Then, copy the attached clean.dryml to the clean folder


<extend tag="page">
<old-page merge>
<stylesheets: param>
<stylesheet name="reset"/>
<theme-stylesheet/>
<theme-stylesheet name="rapid-ui"/>
<stylesheet name="application"/>
</stylesheets>
</old-page>
</extend>

I am still having the error on my PC... checking it out..

GamaFranco

unread,
Dec 25, 2008, 7:38:53 PM12/25/08
to Hobo Users
Hi,

The clean link is also broken in public/hobothemes/ (Windows).

One should:
- remove the clean file
- copy the contents of hobo\rails_generators\hobo_rapid\templates
\themes\clean\public to the recently created clean folder.

TF

create a folder "clean" in public/hobothemes/clean.
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages