|
Since we haven't discussed Rails in particular much so far, let's take a quick look at a possible structure of a Rails application.
Code from here.This is supposed to build the basics of a blog application in Ruby.
cd
rails blog
ln -s ~/blog/public/ ~/htdocs/blog
cd blog/
pico config/database.yml *edit the file to contain login info & similar
./script/generate migration InitialSchema
pico db/migrate/001_initial_schema.rb *edit file
rake migrate
ruby script/generate scaffold post
Does it look simple? Well, it sort of is, it won't build you a fully functional blog but the basics are there.Check http://www.hostmysite.com/support/rubyonrails/buildapp/ for more.If you haven't seen the blog in 15 minutes video yet, it's time to do it now if Ruby and Rails still haven't convinced you to give them a try.
If you're into reading geeky good books, get yourself a copy of this for example, it's a really good way of continuing to learn how to develop on Ruby.
[edit] Other Application Examples
The Linux Users Group, Villafranca, Verona, Italy, has prepared a series of short(ish) tutorials on Ruby, and Ruby on Rails, culminating in a small but complete photo album application called WebAlbum. See:
|