[Rails] An error occurred while installing libv8.

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

[Rails] 常用指令彙整

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