Created
November 25, 2013 03:56
-
-
Save kidach1/7636130 to your computer and use it in GitHub Desktop.
[Rails] TwitterBootstrapとSassとAssetPipeline ref: http://qiita.com/kidachi_/items/4c47b28b2a74c723d835
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
/* | |
* This is a manifest file that'll automatically include all the stylesheets | |
* available in this directory and any sub-directories. You're free to add | |
* application-wide styles to this file and they'll appear at the top of the | |
* compiled file, but it's generally better to create a new file per style | |
* scope. | |
*= require_self | |
*= require_tree . | |
*/ |
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
#Asset Pipeline互換の行を追加 | |
require File.expand_path('../boot', __FILE__) | |
~ | |
module SampleApp | |
class Application < Rails::Application | |
~ | |
#AssetPipelineによるコンパイル対象を増やす | |
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif) | |
end | |
end |
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
$lightGray: #999; | |
h2 { | |
~ | |
color: $lightGray; | |
} | |
~ | |
footer { | |
~ | |
color: $lightGray; | |
} |
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
bundle install |
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
*= require_tree . |
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
*= require_self |
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' | |
ruby '2.0.0' | |
#ruby-gemset=railstutorial_rails_4_0 | |
gem 'rails', '4.0.1' | |
gem 'bootstrap-sass', '2.3.2.0' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment