rails 4.0.0 rails bootstrap
2013-11-12 13:54
323 查看
1、新建一个项目
rails new intern_sys --skip-bundle -d mysql
2、使用Twitter Bootstrap
在项目的Gemfile文件中添加以下内容
gem "therubyracer"
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem "twitter-bootstrap-rails"
3、加快bundle install 速度
bundle install --local
4、安装默认的
rails generate bootstrap:install less
rails generate bootstrap:install static
rails g bootstrap:layout application fluid or rails g bootstrap:layout application fixed
rails g bootstrap:themed Posts
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
添加如下到gemfile
gem 'execjs'
gem 'therubyracer'
rails new intern_sys --skip-bundle -d mysql
2、使用Twitter Bootstrap
在项目的Gemfile文件中添加以下内容
gem "therubyracer"
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem "twitter-bootstrap-rails"
3、加快bundle install 速度
bundle install --local
4、安装默认的
rails generate bootstrap:install less
rails generate bootstrap:install static
rails g bootstrap:layout application fluid or rails g bootstrap:layout application fixed
rails g bootstrap:themed Posts
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
添加如下到gemfile
gem 'execjs'
gem 'therubyracer'
相关文章推荐
- Rails 中应用bootstrap datatables的应用
- ruby on rails 如何使用gem "twitter-bootstrap-rails"
- Ruby on Rails 错误“Rails 4.0.0, Gemfile requires rake 10.1.0 for Rake” 解决方案
- rails twitter-bootstrap-rails
- Rails3.2.2到Rails4.0.0升级笔记
- Rails 在ubuntu上安装rails(rvm ruby gem Bootstrap bootswatch)
- backbone-bootstrap-rails
- 【转】Rails 4中使用 Bootstrap 3
- Ruby On Rails使用Bootstrap框架
- Rails中Bootstrap的安装和使用
- rails使用bootstrap3-wysiwyg可视化编辑器并实现自定义图片上传插入功能
- Ruby & Rails & Bootstrap reference 参考必备
- rails2.3.5+will_paginate 2.3.15支持bootstrap的Rend...
- 【转】Rails中Bootstrap的安装和使用
- Ruby on Rails 引入 bootstrap
- rails 中will_paginate-bootstrap做分页
- 在rails 4.0.0 和 ruby 2.0.0 环境下安装 oracle 64位客户端 及其适配器
- rails + bootstrap 做项目使用的一些插件
- rails twitter-bootstrap-rails
- bootstrap 与 rails 2.3.8整合之:will_paginate插件的使用