Skip to content

Instantly share code, notes, and snippets.

@charliegerard
Last active August 29, 2015 13:57
Show Gist options
  • Save charliegerard/9676540 to your computer and use it in GitHub Desktop.
Save charliegerard/9676540 to your computer and use it in GitHub Desktop.

#Day 20

Tunr

rails generate controller Pages - creates controllers

http://haml.info/ - DRY html

http://localhost:3000/rails/routes - avoids typing rake routes in the terminal all the time

Adding columns to table ex:
generate new migration : rails generate migration add_password_digest_to_users and then in the rb file, add smthg like "add_column :users, :password_digest, :string" check in schema if the new column has been added

add gem bcrypt-ruby , run bundle, add this to user has_secure_password

Check about rainbow file and quantum computing

  • read active record validation document
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment