bundle
sudo apt-get install mysql-server libmysql-ruby libmysqlclient-dev
rake db:data:dump RAILS_ENV=production -> Dump contents of Rails database to db/data.yml
Edit database.yml and run:
rake db:setup
# Put this file on config/initializer | |
# This will create an empty whitelist of attributes available for mass assignment for | |
# all models in your app. As such, your models will need to explicitly whitelist | |
# accessible parameters by using an attr_accessible declaration. This technique is best | |
# applied at the start of a new project. However, for an existing project with a thorough | |
# set of functional tests, it should be straightforward and relatively quick to insert this | |
# initializer, run your tests, and expose each attribute (via attr_accessible) as dictated | |
# by your failing tests. |
# Run this file with `RAILS_ENV=production rackup -p 3000 -s thin` | |
# Be sure to have rails and thin installed. | |
require "rubygems" | |
# We are not loading Active Record, nor the Assets Pipeline, etc. | |
# This could also be in your Gemfile. | |
gem "actionpack", "~> 3.2" | |
gem "railties", "~> 3.2" | |
# The following lines should come as no surprise. Except by |
bundle
sudo apt-get install mysql-server libmysql-ruby libmysqlclient-dev
rake db:data:dump RAILS_ENV=production -> Dump contents of Rails database to db/data.yml
Edit database.yml and run:
rake db:setup
.fc { | |
direction: ltr; | |
text-align: left; } | |
.fc table { | |
border-collapse: collapse; | |
border-spacing: 0; } | |
.fc .btn { | |
line-height: 1.2em; } | |
html .fc { |
exclude = "{*.{o,pyc},Icon\r,CVS,_darcs,_MTN,\{arch\},blib,*~.nib}" | |
include = "{.tm_properties,.htaccess}" | |
TM_HG = "/opt/local/bin/hg" | |
TM_GIT = "/usr/local/bin/git" | |
# Settings | |
theme = "Tomorrow" | |
fontName = "Menlo" | |
fontSize = 14 |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
" Use UTF-8 without BOM | |
set encoding=utf-8 nobomb | |
" Highlight current line | |
set cursorline | |
" Add some line space for easy reading | |
set linespace=4 | |
" Show “invisible” characters |
#-webkit-web-inspector #toolbar { | |
background: #cdcdcd !important; | |
height: 36px !important; | |
} | |
#-webkit-web-inspector #main { | |
top: 36px !important; | |
} | |
#-webkit-web-inspector .toolbar-item.elements:hover:after { | |
content: "elements"; | |
z-index: 9999; |
source 'https://rubygems.org' | |
gem 'rails', '3.2.8' | |
gem 'awesome_nested_fields' | |
gem 'carrierwave' | |
gem 'fog' | |
gem 'jquery-rails' | |
gem 'pg' | |
gem 'responders' |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |