(中文)
Problem
An error occurred while installing rmagick (2.13.2), and Bundler cannot continue.
Make sure that `gem install rmagick -v ‘2.13.2’` succeeds before bundling.
Solution
brew install ImageMagick
gem install rmagick
熱血人次: 445
(中文)
Problem
An error occurred while installing libv8 (3.11.8.17), and Bundler cannot
continue.
Make sure that `gem install libv8 -v ‘3.11.8.17’` succeeds before bundling.
Solution
gem install libv8 -v 3.11.8.17 — –with-system-v8
熱血人次: 265
(中文)
Problem
An error occurred while installing eventmachine (1.0.3), and Bundler cannot
continue.
Make sure that `gem install eventmachine -v ‘1.0.3’` succeeds before bundling.
Solution
brew link openssl –force
熱血人次: 329
(中文)
Rails
rails new #name
rails destroy
rails s (server)
rails c (console)
rails db (dbconsole)
Rails generate
rails g (generate) #name #parameter
assets
controller
generator
helper
jbuilder
mailer
migration
model
scaffold
task
Rake
rake about
rake stats
rake routes
rake notes
rake test
rake test:models
rake db:create
rake db:drop
rake db:migrate
rake db:rollback
Tag
link_to
button_to
content_tag
javascript_include_tag
stylesheet_link_tag
image_tag
熱血人次: 466
1. Install Homebrew
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
2. Install Ruby
brew install ruby
3. Install RubyGems
ruby setup.rb
4. Install Rails
gem install rails –no-ri –no-rdoc
熱血人次: 629