rails 3 in nutshell

Create new ‘Application’, write in commandline ‘railsinstaller’

>rails new first_web

running web server, running on port number 3000

first_web>rails server

open again ruby console commandline

first_web>rails generate scaffold User name:string email:string

by including name:string and email:string, need to migrate the database using rake

first_web>rake db:migrate

then, running web server

first_web>rails server

I was using redcar-editor

sites>gem install redcar

running the redcar-editor

first_web>redcar

 

 

then, select the theme appearance

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s