I've been crawling the Web for most of my waking hours in the past month for stuff on Ruby on Rails. Its funny how people come up with cheesy yet funny titles for their articles using the word 'Rails', and I'm just yet one more.. So without further ado, presenting (ah... Drumroll puhlease!) Me on Rails! ;)
Rails is an opensource web framework for Ruby and all in all a blessing for developers. It follows the MVC Architectural Pattern.
Interestingly my fingers are not flying across the keyboard as quickly as my thoughts!
After you install Rails, creating your first app is as simple as firing up your command line and typing 'rails geometry' where geometry is the name of your app to be, which came from no particular part of the top of my head.
This creates your basic directory structure which looks like this:
As you see the app folder contains sub folders for you to put your models, views and controllers.Open config/database.yml. (I'm sorry I'm assuming you have MySql installed.) Here type in your MySql username and password for the database - geometry_development.
Whats great is that Rails assumes three environments - development, test, and production and gives you database options for em all! So you can literally do a lotta messy stuff on your test database which need not permeate into your development or production process.. isn't that wonderful now?
You can follow this great tutorial on what all you can do with a beginners application.
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html
I'd be more than happy if you invaded my del.icio.us links on RoR at:
http://del.icio.us/shalini.israni/RubyOnRails
Future posts will be more specific .. in general ;)
0 comments:
Post a Comment