This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem install heroku in app | |
| heroku keys:add | |
| - i told it to use id_dsa.pub instead of id_rsa.pub | |
| heroku create --stack cedar drivein | |
| - app name is driveIn | |
| - stack cedar is best heroku branch to deploy to | |
| git push heroku master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem "twitter-bootstrap-rails", "~> 2.0.1.0" | |
| - do not put in group :assets | |
| @import font may need to b commented out | |
| linkto stylesheets and javascript_link calls | |
| - delete them | |
| - do not have double calls between those and the //= require statements in application .js & .css | |
| user get default items for photo_urls etc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias ll="ls -lahG" | |
| alias cdr='cd ~/rails' | |
| alias gs='git status' | |
| alias gl='git pull' | |
| alias gp='git push' | |
| alias gm='git merge' | |
| alias gap='git add -p' | |
| alias gaa='git add .' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rake assets:precompile | |
| - will precompile assets | |
| check config/environment/production.rb | |
| config.serve_static_assets = true | |
| - to simulate server serving static assets in production | |
| config.assets.precompile += %w( plugins.js , script.js ) | |
| - if javascript assets are not precompiling, you must specifically include them here | |
| rails server -e production |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PS1="\n\w \n ::: [ll] [cdr] [bi] [rdbm] [rs] [rc] [gk] [gph] [gphm] [hl] [hr] [hrdb] \n :: [gs] [gb] [gba] [gco] [gcb] [gap] [gaa] [gc] [gca] [gm] [gd] [gl] [gp] \n :) -> " | |
| alias ll="ls -lahG" | |
| alias cdr='cd ~/rails' | |
| alias gs='git status' | |
| alias gl='git pull' | |
| alias gp='git push' | |
| alias gm='git merge' | |
| alias gap='git add -p' | |
| alias gaa='git add .' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| design is 99% efficiency and 1% ingenuity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= render 'option_associations',option: option, collection:[ @body_types, @themes, @products] %> | |
| in this example, instance variables are @options, @body_types, @themes, @products | |
| @options.each do |option| | |
| --- partial is rendered with option and the collection instance variables ... | |
| use collection: to push instance variables into a partial | |
| use option: option -- to push local variable into partial as local variable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use update_column | |
| http://edgeapi.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-update_column |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| make new repo on github w/ rails .gitignore | |
| clone new repo to computer | |
| in the terminal in your local repo | |
| - git pull git@github.com:joncode/template1.git | |
| or | |
| - git merge git@github.com:joncode/template1 | |
| - git pull git@github.com:joncode/template1.git | |
| bundle install | |
| rake db:migrate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config -l | |
| does remote.origin.url = git @github.com/joncode/filename.git ? | |
| ie ... is the a '/' between github.com and joncode | |
| if so | |
| git config remote.origin.url git@github:joncode/filename.git | |
| should fix it |