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
ZURB foundation | |
* 是前端框架 | |
* 是基于SASS | |
* Sass是基于Ruby语言 | |
foundation-rails软件包 | |
* 将ZURB foundation与Rails框架集成为一体 | |
前提条件 | |
* Ruby 2.0.0 |
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
http://www.jedisaber.com/eBooks/editors.shtml | |
https://code.google.com/p/sigil/ | |
http://www.jedisaber.com/eBooks/Sigil01.shtml | |
http://bewonderfulnow.com/book-writing-coaching/sigil-walkthrough-how-to-create-your-own-ebook/ |
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
http://www.bluem.net/de/mac/plain-clip/ | |
http://superuser.com/questions/512491/copy-and-paste-plain-text-only-in-osx |
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
<问题> | |
命令vagrant up无法使用,出现下面<错误>。 | |
<方案> | |
(1)在VirtualBox重新打开Ubuntu,关闭时,使操作系统处于‘saved’状态; | |
(2)使用命令vagrant up | |
(3)再使用命令vagrant reload | |
<错误> | |
$ vagrant up |
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
<问题说明> | |
当执行Rails应用程序更新功能时,在浏览器Stainless中,会出现下面<错误信息>。 | |
<解决方案> | |
vim application_controller.rb | |
#protect_from_forgery with: :null_session | |
protect_from_forgery # Same as above | |
<错误信息> |
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
git clone https://github.com/sparklemotion/nokogiri.git | |
cd nokogiri | |
bundle install | |
rake native gem | |
cd pkg | |
gem install nokogiri-<VERSION>-x86_64-linux.gem | |
# reinstall nokogiri | |
gem install nokogiri -- --use-system-libraries |
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
http://robomongo.org/ |
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
http://www.iterm2.com/ |
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
http://learn.thoughtbot.com/test-driven-rails-resources/capybara.pdf | |
https://www.relishapp.com/rspec/rspec-rails/docs/feature-specs/feature-spec | |
http://robots.thoughtbot.com/rspec-integration-tests-with-capybara | |
http://larsgebhardt.de/user-authentication-with-ruby-on-rails-rspec-and-capybara/ | |
http://blog.berylliumwork.com/2013/07/rails-4-devise-3-minitest-and-capybara.html |
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
Since Rails 4, the "Welcome aboard" page is no longer located in public/index.html. It is - as you've already detected - located inside one of the Rails gems. | |
So you already answered the question yourself; the "Welcome aboard" page is - in your case - located at /Users/7stud/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0/gems/railties-4.0.0/lib/rails/templates/rails/welcome/index.html.erb | |
To get rid of it, following the instructions on the page. Basically they are: | |
Create a controller | |
Add a root route in config/routes.rb to route to that newly created controller. | |
As for how the request to your application ends up at a controller inside railties, let's dig into the gem: Inside Rails::Application::Finisher we find this: |