This file contains 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
source 'http://rubygems.org' | |
gem 'rails', '3.1.3' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'mysql2' | |
gem 'haml' | |
gem 'devise' |
This file contains 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
> rails new sample_app --skip-test-unit -d postgresql | |
> cd sample_app | |
sample_app> vim .rvmrc | |
paste .vimrc gist | |
https://gist.github.com/3989303 | |
sample_app> vim Gemfile | |
paste Gemfile gist | |
https://gist.github.com/3989287 |
This file contains 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
source 'https://rubygems.org' | |
gem 'rails', '3.2.8' | |
gem 'bootstrap-sass', '2.0.4' | |
gem 'bcrypt-ruby', '3.0.1' | |
gem 'faker', '1.0.1' | |
gem 'will_paginate', '3.0.3' | |
gem 'bootstrap-will_paginate', '0.0.6' | |
gem 'jquery-rails', '2.0.2' | |
gem 'pg' |
This file contains 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
rvm use 1.9.3@sample_app |
This file contains 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
# Sample application | |
Web App description: | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dapibus, sapien id pulvinar egestas, elit ligula vestibulum nunc, a laoreet neque massa nec ipsum. In hac habitasse platea dictumst. Aenean hendrerit blandit est. Sed eget velit mauris, eu vestibulum dolor. Curabitur iaculis, massa vel sollicitudin rhoncus, metus lorem auctor mauris, quis consectetur diam neque non dolor. Nunc molestie porttitor libero, in tincidunt mi egestas sed. Cras varius orci commodo quam auctor posuere. Nulla tincidunt ligula at risus ornare sollicitudin. Aenean sagittis eleifend mauris, at posuere magna tempus non. In id consectetur nisi. Pellentesque vestibulum tortor sit amet risus semper eleifend. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nunc imperdiet ultrices tristique. Vestibulum tempor magna non diam blandit quis viverra massa posuere. | |
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. |
This file contains 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
--color | |
--format documentation | |
--drb |
This file contains 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
# bundler state | |
/.bundle | |
/vendor/bundle/ | |
/vendor/ruby/ | |
# minimal Rails specific artifacts | |
db/*.sqlite3 | |
/log/* | |
/tmp/* |
This file contains 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
development: | |
host: localhost | |
adapter: postgresql | |
encoding: unicode | |
database: sample_app_development | |
test: &test | |
host: localhost | |
adapter: postgresql | |
encoding: unicode |
This file contains 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
# A sample Guardfile | |
# More info at https://github.com/guard/guard#readme | |
guard 'rspec' do | |
watch(%r{^spec/.+_spec\.rb$}) | |
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | |
watch('spec/spec_helper.rb') { "spec" } | |
# Rails example | |
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } |
This file contains 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
rails generate controller ContentPages home help --no-test-framework |
OlderNewer