Today I am going to share my very first experience with RubyOnRails, and to describe my feelings its fabulous.
What you need to know already?
- You should be familiar with any MVC pattern
- Should have knowledge of Ruby
- Should know DB & Web server fundamentals
I guess thats more then enough to begin rails journey.
To start with you need following software installed on your box, 🙂 I ma LILO fan so all below configuration and are Linux based. But based on this understanding one can quickly start writing on any other OS too.
- ruby 1.8.4
- rails 1.2.3
Once installation and configuration done
add your db credential
script/generate migration add_formelements
> create db/migrate
> create db/migrate/001_add_formelements.rb
class AddUsers < ActiveRecord::Migration
create_table “formelements” do |t|
t.column “user”, :string
t.column “email”, :string
t.column “password”, :string
t.column “passordreminder”, :text
== AddUsers: migrating ========================================================
== AddUsers: migrated (0.0236s) ===============================================
script/generate scaffold Formelement
That’s all enjoy!
Hope you have grate time doing above exercise.
Check this out http://tryruby.hobix.com/