Problem running Agility tutorial

2 views
Skip to first unread message

devel

unread,
Aug 14, 2008, 12:45:56 PM8/14/08
to Hobo Users
Hi all,

I'm new to Hobo and so far I love what I've read. I'm trying to
replicate the Agility tutorial on the site but I can't seem to be able
to create the hobo application folder.

I installed by running 'gem install hobo' and then

37:rails $ hobo agility

Generating Rails app...
create
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create config/initializers
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create script/process
create test/fixtures
create test/functional
create test/integration
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create Rakefile
create README
create app/controllers/application.rb
create app/helpers/application_helper.rb
create test/test_helper.rb
create config/database.yml
create config/routes.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_rails_defaults.rb
create config/boot.rb
create config/environment.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/console
create script/dbconsole
create script/destroy
create script/generate
create script/performance/benchmarker
create script/performance/profiler
create script/performance/request
create script/process/reaper
create script/process/spawner
create script/process/inspector
create script/runner
create script/server
create script/plugin
create public/dispatch.rb
create public/dispatch.cgi
create public/dispatch.fcgi
create public/404.html
create public/422.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log

Installing Hobo plugin...

Initialising Hobo...
/Users/devel/rails/agility/vendor/plugins/hobo/init.rb:31:in
`evaluate_init_rb': undefined method `register_template_handler' for
ActionView::Base:Class (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/rails/plugin.rb:
95:in `evaluate_init_rb'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/
active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/rails/plugin.rb:
91:in `evaluate_init_rb'
from /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/rails/plugin.rb:
44:in `load'
from /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/rails/plugin/
loader.rb:33:in `load_plugins'
from /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/rails/plugin/
loader.rb:32:in `each'
from /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/rails/plugin/
loader.rb:32:in `load_plugins'
from /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/initializer.rb:
283:in `load_plugins'
... 6 levels...
from /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/commands/generate.rb:
1
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in
`require'
from script/generate:3

Any ideas? I'm really eager to start using it asap.

Thanks

devel

unread,
Aug 14, 2008, 4:44:55 PM8/14/08
to Hobo Users
Thanks to solar on the IRC, I was informed that the hobo gem is
outdated. Instead, the process should be to:

1) rails {app}
2) cd {app}
3) git clone git://github.com/tablatom/hobo vendor/hobo
4) optionally rm -rf vendor/hobo/.git
5) run vendor/hobo/script/symlink_plugins

Now, there seems to be a problem with #5 because it incorrectly setup
the symlinks for me, so what I would recommend (in the meantime):

5) cd vendor/plugins
5a) ln -s ../hobo/hobo vendor/plugins/.
5b) ln -s ../hobo/hobofields vendor/plugins/.
5c) ln -s ../hobo/hobosupport vendor/plugins/.

And that should get a working hobo application directory.

Now, according to the docs, if you want to get the bare bones
application started, you then need to:

script/generate hobo --add-routes
script/generate hobo_rapid

However, after I do this, I start Mongrel, and I point the browser to
http://localhost:3000/, it shows the standard Rails index.html page. I
then removed the index.html file and after I refresh the browser, I
get a Routing Error (even after restarting Mongrel). So, I assume
there's still something I'm missing.

If anyone has any comments, I would highly appreciate it.

Thanks

kevinpfromnm

unread,
Aug 14, 2008, 5:27:27 PM8/14/08
to Hobo Users
http://hobocentral.net/blog/getting-started/

is the page I used to get my first app that didn't use the gem going.
The post is a bit old but it helped me out. I don't recall if there
were other things that I needed to do to get going or not... but the
error messages were enough for me to figure those parts out.

On Aug 14, 2:44 pm, devel <de...@dscg-inc.com> wrote:
> Thanks to solar on the IRC, I was informed that the hobo gem is
> outdated. Instead, the process should be to:
>
> 1) rails {app}
> 2) cd {app}
> 3) git clone git://github.com/tablatom/hobo vendor/hobo
> 4) optionally rm -rf vendor/hobo/.git
> 5) run vendor/hobo/script/symlink_plugins
>
> Now, there seems to be a problem with #5 because it incorrectly setup
> the symlinks for me, so what I would recommend (in the meantime):
>
> 5) cd vendor/plugins
> 5a) ln -s ../hobo/hobo vendor/plugins/.
> 5b) ln -s ../hobo/hobofields vendor/plugins/.
> 5c) ln -s ../hobo/hobosupport vendor/plugins/.
>
> And that should get a working hobo application directory.
>
> Now, according to the docs, if you want to get the bare bones
> application started, you then need to:
>
> script/generate hobo --add-routes
> script/generate hobo_rapid
>
> However, after I do this, I start Mongrel, and I point the browser tohttp://localhost:3000/, it shows the standard Rails index.html page. I

Tom Locke

unread,
Aug 14, 2008, 5:37:59 PM8/14/08
to hobo...@googlegroups.com
Now that we've discovered that plugins work fine from subdirectories
of vendor/plugins, this can be simplified:

1) rails {app}
2) cd {app}

3) git clone git://github.com/tablatom/hobo vendor/plugins/hobo # <--
changed
4) optionally rm -rf vendor/plugins/hobo/.git
5) # skip 5

> However, after I do this, I start Mongrel, and I point the browser to
> http://localhost:3000/, it shows the standard Rails index.html page. I
> then removed the index.html file and after I refresh the browser, I
> get a Routing Error (even after restarting Mongrel). So, I assume
> there's still something I'm missing.

If you want the front page you need to run

./script/generate hobo_front_controller front

Have a look at the script in hobo/bin/hobo to see the full set of
generators that get run when you do the hobo command

Tom

devel

unread,
Aug 14, 2008, 5:40:43 PM8/14/08
to Hobo Users
I'm slowly and painfully making some progress. Hope my efforts help :)

Looking through the code and scattered docs, the script/generate hobo
--add-routes does it work just fine. However, something is still
missing. I started reading through the sources and came across vendor/
plugins/hobo/bin/hobo script which seems to be what the hobo command
line interface offered by gem install hobo offered.

Now, since the gem is outdated and I'm installing hobo as a local
application vendor plugin, I had to make some adjustments in order to
properly use it. So, here is what I did:

mkdir -p agility/vendor/plugins
git clone git://github.com/tablatom/hobo.git agility/vendor/hobo && rm
-rf agility/vendor/hobo/.git
cd agility/vendor/plugins
ln -s ../hobo/hobo .
ln -s ../hobo/hobofields .
ln -s ../hobo/hobosupport .
cd ../../..
./agility/vendor/plugins/hobo/bin/hobo agility

This installed all the rails stuff and then executed a bunch of ./
script/generate hobo stuff (including a User model).

I then had to:

cd agility
./script/generate hobo_migration
(you will need to respond 'm' and then give a migration name)
rake db:migrate
./script/server

And voila! Now pointing my browser to http://localhost:3000/ works
like a charm.

I guess this may be a bit confusing for beginners. Maybe if I
installed the git repository as a ruby gem it would all be a lot
simpler, but I'm not too familiar how to do that.

Anyway, I hope this helps others. I'll continue on my quest to
learning hobo.

On Aug 14, 4:44 pm, devel <de...@dscg-inc.com> wrote:
> Thanks to solar on the IRC, I was informed that the hobo gem is
> outdated. Instead, the process should be to:
>
> 1) rails {app}
> 2) cd {app}
> 3) git clone git://github.com/tablatom/hobo vendor/hobo
> 4) optionally rm -rf vendor/hobo/.git
> 5) run vendor/hobo/script/symlink_plugins
>
> Now, there seems to be a problem with #5 because it incorrectly setup
> the symlinks for me, so what I would recommend (in the meantime):
>
> 5) cd vendor/plugins
> 5a) ln -s ../hobo/hobo vendor/plugins/.
> 5b) ln -s ../hobo/hobofields vendor/plugins/.
> 5c) ln -s ../hobo/hobosupport vendor/plugins/.
>
> And that should get a working hobo application directory.
>
> Now, according to the docs, if you want to get the bare bones
> application started, you then need to:
>
> script/generate hobo --add-routes
> script/generate hobo_rapid
>
> However, after I do this, I start Mongrel, and I point the browser tohttp://localhost:3000/, it shows the standard Rails index.html page. I

Tom Locke

unread,
Aug 14, 2008, 5:42:58 PM8/14/08
to hobo...@googlegroups.com
> I'm slowly and painfully making some progress. Hope my efforts help :)

Thanks for posting this. We'll get the 0.8 release out real soon now
and things will all be rosy again : )

Tom


devel

unread,
Aug 14, 2008, 5:51:57 PM8/14/08
to Hobo Users
Hi Tom,

I'm glad my efforts may benefit others (I don't know if you guys were
already aware of these issues).

Anyway, I dove into Hobo being aware of the scattered (and possibly
somewhat lacking) documentation and ready to dig in in order to get
going. I just wasn't expecting that even to start it up was going to
take me this long :) Anyway, it's all fun.

Thanks
Reply all
Reply to author
Forward
0 new messages