Skip to content
Jared Wilson edited this page May 15, 2015 · 1 revision

gem update --system update to the latest rubygems

app is the most important folder in the project

Views is everything you see

git status see the changed files in my project

git add --all add the changes

git commit -m "what I changed"

git push -u origin master push to github

application.html.erb file that gets applied to every page

<%= %> Embedded Ruby - only use the = if you want it to appear

<% %> Embedded Ruby that WON'T appear - only use the = if you want it to appear

rake routes command to show all the routes to different pages.

when making sure you have Devise views, the tutorial didn't have rails g devise:views

http://www.bootply.com/ premade css classes

scaffolds views model controler and migrations all from one command

rails console allows you to run rails commands not necessarily in your app

crud four possibly functions that can happen to a record create read update destroy update put delete delete create post read get

every time you add something new to a controler you have to open up routes and add it

Whenever you change css or images and want to have it on production make sure you run RAILS_ENV=production bundle exec rake assets:precompile

everytime you make changes to your database for production you need to push: heroku run rake db:migrate

Clone this wiki locally