Skip to content

maomaoliu/railsgirl_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

RAILS_VERSION: 4.0.0

####Some Useful Command for Beginners

  • Create rails application

    $ rails new app

  • Use Scaffold to generate MVC code

    $ rails g scaffold model_name attrbute:type [attr:type]

  • Use rake db:migrate to generate migration

    $ rake db:migrate

  • Run rails server

    $ rails s

  • Add new feature for model

    $ rails g migration AddAttrbuteToModel attr:type

  • Use gemfile to add new gems

    $ vi Gemfile gem 'rspec', '~> 2.14.1'

  • Use rspec to write unit tests

    Read more of [rspec] (https://github.com/rspec/rspec-rails).

####Some Tools

  • For Management

    rvm: Ruby Version Manager
    gem: RubyGem - packaged Ruby application or library
    rake: Ruby Make
    bundler: Manage application dependencies and maintain the application environment

  • Develop Environment

    Irb: Interactive Ruby
    Rubymine: RoR IDE

  • Gems

    debug: pry, ruby-debug
    test: rspec, cucumber, capybara, jesmine, factory_girl
    authorization: cancan

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published