Skip to content
blog for rails 101
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README.mkd
Rakefile
config.ru

README.mkd

Rails 101 Blog

Terminal Commands

  • create a new rails application

    rails new blog

  • ensure all of your applications dependencies are installed

    bundle check

  • install all of your applications dependencies

    bundle install

  • help & usage command for rails generate

    rails g

  • help & usage command for rails generate scaffold

    rails g scaffold

  • scaffolding the MVC of a given model

    rails g scaffold post title:string content:text publish_at:datetime reads:integer private:boolean

  • creating a database schema change using ruby

    rails g migration update_posts

  • show all available rake tasks

    rake -T

  • create the development database you configured

    rake db:create

  • run any pending database migrations

    rake db:migrate

Something went wrong with that request. Please try again.