Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 1.17 KB

two-minutes.markdown

File metadata and controls

47 lines (27 loc) · 1.17 KB

Hobo in Two Minutes

To build a Hobo app you need to have a working Rails setup. If you can create a Rails app and have it connect to a database, you're all set.

Before we get to Hobo, it's highly recommended to be on the latest version of gem -- 1.2

$ gem -v

If not, OK this might run to three minutes :o). Update gem like this

$ gem update --system

If you haven't already, you need to add the github gem server (for will-paginate)

$  gem sources -a http://gems.github.com

Now install Hobo:

$ gem install hobo

Now create an app! We've only got two minutes so we'll create an ultra-useful Thing Manager.

$ hobo thingybob

...Lots of output as Hobo runs the rails command,
...installs plugins and runs generators

$ cd thingybob
$ ruby script/generate hobo_model_resource thing name:string body:text
$ ruby script/generate hobo_migration

...Respond to the prompt with 'm'
...then press enter to chose the default filename

$ ruby script/server

And browse to

http://localhost:3000

And there is your app! You should be able to

  • Sign up
  • Create and edit Things
  • Search for things

That's it. Why not move on to one of the tutorials.