Hobo 1.3 for Rails 3 pre-release
Posted by
Tom | September 30, 2010 28 Responses comments

Anyone wanting to have a play with Hobo + Rails 3, now is the moment!

We have started releasing some pre-release gems, so that anyone who wants to can help us find any last bugs so that we can release Hobo 1.3 final. You can install the latest pre-release with

gem install hobo --pre

I’ll take this chance to show off a nice new feature that Domizio has added – the new app wizard.

The hobo command now has the same style as the new rails command in Rails 3, so to create a new app:

hobo new my_app

The underlying rails command will run as always, but then you’ll see something new:

 Hobo Setup Wizard 
  Do you want to start the Setup Wizard now?
(Choose 'no' if you need to manually customize any file before running the Wizard.
You can rerun it at any time with `hobo g setup_wizard` from the application root dir.) [y|n]

(btw it’s actually in colour too, but you’ll have to install the gems to see for yourself!)

Check out some of the customisations you can do with some simple prompts:

     Test Framework 
Do you want to customize the test_framework? [y|n] n

 Invite Only Option 
Do you want to add the features for an invite only website? [y|n] n

 User Resource 
Choose a name for the user resource [<enter>=user|<custom_name>]: 

Do you want to send an activation email to activate the user? [y|n] y

 Front Controller 
Choose a name for the front controller [<enter>=front|<custom_name>]: 

 Admin Subsite 
Do you want to add an admin subsite? [y|n] n
  => "n"

 DB Migration 
Initial Migration: [s]kip, [g]enerate migration file only, generate and [m]igrate [s|g|m]: m

 I18n 
The available Hobo internal locales are :en, :"es-DO", :it (please, contribute to more translations)
Do you want to set a default locale? Type the locale or <enter> to skip: 

 Git Repository 
Do you want to initialize a git repository now? [y|n] n

It’ll even do git init for you – aint that nice : )

There’s a much nicer one in there though – “Do you want to send an activation email to activate the user?”. That’s right, Hobo 1.3 has the much requested email activation built in, so now you just have to type a y instead of an n, and you’re done. Good times!

Reader Comments Add your comment »

good work!

but: when i start server :

No such taglib: /home/fuyi/rubyapp/tests/app/views {:src=>”taglibs/auto/rapid/cards”, :type=>:include, :template_dir=>”app/views/taglibs”} /home/fuyi/rubyapp/tests/app/views/taglibs/auto/rapid/cards.dryml

when i use:
rake hobo:generatetaglibs
rake aborted!
Don’t know how to build task ‘hobo:generate
taglibs’

why?

i use ruby 1.9.2 & rails 3.0.0

Hobo appears to require Arel but it doesn’t install as a dependency:

http://screencast.com/t/MDc4MzhlM2Qt

OK. After I installed the Arel gem i get to create an app. The wizard is very nice.

I am able to bring up the app and create my user, but when I switch from “Guest” to my user using the selectorL

No route matches “/dev/index/setcurrentuser”
http://screencast.com/t/N2YwN2Yy

I tested using Ruby 1.9.2RC2 and Rails 3.0.0

I got this error after testing this and adding the first user..

Any ideas?

Routing Error

No route matches {:controller=>”admin/users”, :action=>”show”}

Just wantet to add that, the error happens if I choose a invite only site.

Hobo Command Line Interface 1.3.0.pre8

Error -> Row 47 initialise error in command.rb

Error Type -> “No such file or directory – tmp/hoboapptemplate (Errno: ENOENT)

1.3.0pre9 appears to clear up most problems so far…

pre12 is looking great so far…

Windows users might find this useful:

When running ‘hobo new app_name’ I’ve got the following error message:

%rubyinstallpath%/lib/ruby/gems/1.9.1/gems/hobosupport-1.3.0.pre13/lib/hobosupport/command.rb:53:in `initialize’: No such file or directory – /tmp/hoboapptemplate (Errno::ENOENT)

I read command.rb and noticed that it tries to create a file hoboapptemplate in /tmp, which us Windows users don’t have.

Changing line 52 to the following got hobo working for me:
templatepath = “c:/Temp/hoboapp_template”

Hope this helps anyone who had trouble with it..

pre13 looks good so far for me.

this error on create first register:

super from singleton method that is defined to multiple classes is not supported; this will be fixed in 1.9.3 or later..

env:
win xp,512 kb ram
rails 3.0.0
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
gem 1.3.7
Hobo Command Line Interface 1.3.0.pre14

switch to linux???

Quikin: I saw a post on hobo users group on google. The problem seems to be on using ruby 1.9.2. Use ruby 1.8.7 instead! Cheers.

thanks jac

pre15 looks great except for using app.en.yml for changing class and filed names. Domizio has a patch which be released in the next version.

pre16 looks great so far. Having some issues with STI so. autoactionsfor :assessment, [:create] does override routes. the first STI subclass controller wins the game and routes from the base class to the subclass controller :-( deleting the STI subclass controllers kills the views

FYI – I received an error after creating a new application and selecting y to run the wizard from a command line prompt on a windows machine -

the procedure entry point sqllite3backupfinish could not be located in the dynamic link library sqllite3.dll

I haven’t investigated it at all yet, but I did want to let you know about it.

FYI – I received an error after creating a new application and selecting y to run the wizard from a command line prompt on a windows machine -

the procedure entry point sqlite3backupfinish could not be located in the dynamic link library sqlite3.dll

I haven’t investigated it at all yet, but I did want to let you know about it.

Sorry about that double post. Anyway, I solved that error by installing Sqlite. Here is a link to the information for Windows users in case anyone else needs it.

http://wiki.rubyonrails.org/database-support/sqlite

I just want to know when the 1.3 final version can be released ?

I was trying to upload newly created app to Heroku (sqlite commented out from Gemfile) and got Error 500.
Logs show:
“….
ActionView::Template::Error (undefined method `name’ for nil:NilClass):
13:
14: <% if User.count == 0 -%>
…..”

Any way to make it running at Heroku (it’s ok locally)?

I run Hobo 1.3.0.pre26 with rails 3.0.3 very fine!!
begin a New Project using a excelent gem, when a final release ??? can develop a pro project now with this hobo version??

My environment Ubuntu 10.10 gnome
512 kb RAM
i have a laptop ;)

I run Hobo 1.3.0.pre26 with rails 3.0.3 very fine!!
begin a New Project using a excelent gem, when a final release ??? can develop a pro project now with this hobo version??

My environment Ubuntu 10.10 gnome
512 kb RAM
i have a laptop ;)

excelent!! Hobo team!

P.d. oh my poor english language ( i m from Bolivia)

This is the proceedure I followed:

wget -c ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz
tar xvzf ruby-1.9.2-p0.tar.gz
cd ruby-1.9.2-p0/
./configure
make
sudo make install
cd ext/openssl/
ruby extconf.rb && make && sudo make install
sudo apt-get install libssl-dev libopenssl-ruby1.9
ruby -v
wget -c http://production.cf.rubygems.org/rubygems/rubygems-1.5.2.tgz
tar xvzf rubygems-1.5.2.tgz
cd ../rubygems-1.5.2/
sudo ruby setup.rb
sudo gem update
sudo aptitude install libsqlite3-dev
sudo gem install sqlite3
sudo gem install hobo –pre
hobo new my_app

Start output and responses*
[...]

Hobo Setup Wizard
Do you want to start the Setup Wizard now?
(Choose ‘n’ if you need to manually customize any file before running the Wizard.
You can run it later with hobo g setup_wizard from the application root dir.) [y|n] y
=> “y”

[...]

Test Framework
Do you want to customize the test_framework? [y|n] n
=> “n”

User Resource
Choose a name for the user resource: [=user|]
=> “user”
Do you want to send an activation email to activate the user? [y|n] n
=> “n”

Invite Only Option
Do you want to add the features for an invite only website? [y|n] n
=> “n”

Templates Option
Will your application use only hobo/dryml web page templates?
(Choose ‘n’ only if you also plan to use plain rails/erb web page templates) [y|n] y
=> “y”

[...]

Front Controller
Choose a name for the front controller: [=front|]
=> “front”

[...]

DB Migration
Initial Migration: [s]kip, [g]enerate migration file only, generate and [m]igrate: [s|g|m] m
=> “m”

[...]

I18n
The Hobo supported locales are it pt-PT en es ru de (please, contribute to more translations)
Type the locales (space separated) you want to add to your application or for ‘en’:
=> “en”
create config/locales/hobo.en.yml
create config/locales/app.en.yml
remove config/locales/en.yml

Git Repository
Do you want to initialize a git repository now? [y|n] n
=> “n”

Process completed!
You can start your application with rails server
(run with –help for options). Then point your browser to
http://localhost:3000/

Follow the guidelines to start developing your application.
You can find the following resources handy:

End output and responses*

cd my_app
rails server

Done! :-)

These are simple steps for installation of Hobo 1.3 on Trisquel GNU.-

sudo aptitude install ruby-full build-essential
ruby -v
wget -c http://production.cf.rubygems.org/rubygems/rubygems-1.5.2.tgz
tar xvzf rubygems-1.5.2.tgz
cd ../rubygems-1.5.2/
sudo ruby setup.rb
sudo aptitude install sqlite3 libsqlite3-dev
sudo gem install sqlite3
hobo new myapp
cd my
app/
rails server

Interesting problem. Using pre26, I hit the following logical problem:

  1. Create a new test app using this set of instructions, running on my laptop. I followed all the way through the weezard, and selected “completely private site” and “e-mail confirmation” options.

  2. Created the admin user.

  3. Invited a new user. Logged out.

  4. Copied the accept link out of the Terminal (since I’m not able to send mail here) and pasted it into the browser. Got redirected to the login screen.

  5. Tried to log in as the new user, but that failed since I don’t have a password yet as that user.

  6. Logged in as admin, and was immediately redirected to the Accept Invitation page.

So clearly, the accept action needs to be more lenient, it can’t be (by default) restricted to logged in users only, or else there’s no way to confirm an invitation. I’m digging through the source to fix that now, but you might want to change that for the defaults.

Thanks, and really excited to try this out and see how it works for me.

Hi, I tried to install hobo 1.3 pre version.
I typed
$ gem install hobo –pre

But, I get the following:
ERROR: Could not find a valid gem ‘hobo’ (>= 0) in any repository
ERROR: Possible alternatives: hobo

Does anyone know where is the new repo for hobo 1.3 pre?
thanks,

Hi Raymond,
I think you need –pre (with 2 – )

$gem install hobo –pre

(it works for me with RVM on Mac )

I had the same problem as Raymond – “Could not find a valid gem ‘hobo’ (>=0) in any repository” and found a fix…

I removed all gem remote sources other than rubygems…

This worked for me on Windows 7 (x64).


Write a Comment

Please do not use blog comments for support or reporting bugs.

Please use the hobousers google group for help and support.

Comments are formatted using markdown. To include code, either quote it in `backticks` or indent a code-block by 4 spaces.