Skip to content

Instantly share code, notes, and snippets.

@JamesSkemp
Created August 10, 2014 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesSkemp/39b701122ae972cd6be9 to your computer and use it in GitHub Desktop.
Save JamesSkemp/39b701122ae972cd6be9 to your computer and use it in GitHub Desktop.
Commands to get started with a Ruby on Rails site
# start where you want the project directory to be created
# create a new directory for an application. pass -B to skip adding bundles (requires internet connection)
rails new application_name
# start in main project directory
# must run commands for a project out of bin directory
cd bin
# start Rails WEBrick server (on port 3000). ctrl + c will kill it
rails server
# create a new scaffold (object and CRUD)
rails generate scaffold objectName name:string cost:float
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment