Skip to content

Instantly share code, notes, and snippets.

@coolbrg
Last active July 3, 2020 13:13
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 coolbrg/75129e8abdbc4fcc62f2fec553bb4997 to your computer and use it in GitHub Desktop.
Save coolbrg/75129e8abdbc4fcc62f2fec553bb4997 to your computer and use it in GitHub Desktop.
Ruby on Rails Intro App

Ruby on Rails - Build your appliation faster

  1. New app rails _5.2.4_ new actor-dialogues

  2. cd actor-dialogues

  3. rails s and open http://localhost:3000

  4. Create a dialogue scaffold

rails g scaffold dialogue line:text movie:string nonveg:boolean
  1. Run Database migration
rails db:migrate
  1. rails s and open http://localhost:3000/dialogues

  2. Create dialogues

Recommended Ways

  1. Git clean everything
git checkout .
git clean -df
  1. Let's create a Dialogue Model
rails g model Dialogue line:text movie:string nonveg:boolean
rails db:migrate

Used Gems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment