Permalink
Browse files

twitter bootstrap, simple form and heroku config

  • Loading branch information...
oma committed Jan 28, 2012
1 parent 7d24ce2 commit a7b99dae8f4fc116139c7b5ebae071947ea9c4f4
View
13 Gemfile
@@ -5,13 +5,15 @@ gem 'rails', '3.2.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
-gem 'sqlite3'
+group :development, :test do
+ gem 'sqlite3'
+end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
- gem 'sass-rails', '~> 3.2.3'
+ gem 'less-rails', '~> 2.1.0'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
@@ -20,8 +22,15 @@ group :assets do
gem 'uglifier', '>= 1.0.3'
end
+gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git', :ref => "9f7a7bcbb9323e91cf8b9261bf2b31c2a174b342"
+gem 'twitter-bootstrap-rails'
gem 'jquery-rails'
+group :production do
+ gem 'pg'
+ gem 'yui-compressor'
+end
+
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
View
@@ -1,6 +1,19 @@
+GIT
+ remote: git://github.com/plataformatec/simple_form.git
+ revision: 9f7a7bcbb9323e91cf8b9261bf2b31c2a174b342
+ ref: 9f7a7bcbb9323e91cf8b9261bf2b31c2a174b342
+ specs:
+ simple_form (2.0.0.dev)
+ actionpack (~> 3.0)
+ activemodel (~> 3.0)
+
GEM
remote: https://rubygems.org/
specs:
+ POpen4 (0.1.4)
+ Platform (>= 0.4.0)
+ open4
+ Platform (0.4.0)
actionmailer (3.2.0)
actionpack (= 3.2.0)
mail (~> 2.4.0)
@@ -37,6 +50,8 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.2.0)
+ commonjs (0.2.0)
+ therubyracer (~> 0.9.9)
erubis (2.7.0)
execjs (1.3.0)
multi_json (~> 1.0)
@@ -47,12 +62,21 @@ GEM
railties (>= 3.2.0.beta, < 5.0)
thor (~> 0.14)
json (1.6.5)
+ less (2.0.9)
+ commonjs (~> 0.2.0)
+ therubyracer (~> 0.9.9)
+ less-rails (2.1.3)
+ actionpack (>= 3.1)
+ less (~> 2.0.7)
+ libv8 (3.3.10.4)
mail (2.4.1)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.17.2)
multi_json (1.0.4)
+ open4 (1.3.0)
+ pg (0.12.2)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.1)
@@ -79,33 +103,41 @@ GEM
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
- sass (3.1.12)
- sass-rails (3.2.4)
- railties (~> 3.2.0)
- sass (>= 3.1.10)
- tilt (~> 1.3)
sprockets (2.1.2)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.5)
+ therubyracer (0.9.9)
+ libv8 (~> 3.3.10)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
+ twitter-bootstrap-rails (1.4.3)
+ actionpack
+ jquery-rails (>= 1.0)
+ less-rails (~> 2.1.0)
+ railties
tzinfo (0.3.31)
uglifier (1.2.2)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
+ yui-compressor (0.9.6)
+ POpen4 (>= 0.1.4)
PLATFORMS
ruby
DEPENDENCIES
coffee-rails (~> 3.2.1)
jquery-rails
+ less-rails (~> 2.1.0)
+ pg
rails (= 3.2.0)
- sass-rails (~> 3.2.3)
+ simple_form!
sqlite3
+ twitter-bootstrap-rails
uglifier (>= 1.0.3)
+ yui-compressor
View
@@ -0,0 +1,40 @@
+# Rails 3.2 Bootsrap with LESS twitter bootstrap, simpleform and heroku-ready.
+
+
+
+## How to reproduce this app bootstrap.
+
+ $ rails new myapp
+ $ cd myapp
+ $ rm public/index.html
+
+ @ Gemfile
+ -gem 'sqlite3'
+ +group :development, :test do
+ + gem 'sqlite3'
+ +end
+ group :assets do
+ - gem 'sass-rails', '~> 3.2.3'
+ + gem 'less-rails', '~> 2.1.0'
+
+ +gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git', :ref => "9f7a7bcbb9323e91cf8b9261bf2b31c2a174b342"
+ +gem 'twitter-bootstrap-rails'
+ +group :production do
+ + gem 'pg'
+ + gem 'yui-compressor'
+ +end
+
+ @ application.rb
+ + config.app_generators.stylesheet_engine :less
+ + config.assets.initialize_on_precompile = false
+ @ production.rb
+ + config.assets.css_compressor = :yui
+
+ $ bundle
+ $ rails generate
+ $ rails generate bootstrap:install
+ $ rails generate simple_form:install
+
+ @ simple_form.rb
+ replace with this gist: https://gist.github.com/1695634
+
Oops, something went wrong.

0 comments on commit a7b99da

Please sign in to comment.