Last active
January 15, 2016 09:24
-
-
Save sasanquaneuf/16c9838e5a156881b01f to your computer and use it in GitHub Desktop.
Windows10(64bit) で Ruby 2.2.3 + Rails 4.2.5 ref: http://qiita.com/sasanquaneuf/items/068ab4e5940a790327ba
This file contains hidden or 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
class SampledesuController < ApplicationController | |
def index | |
render :text => "Hello, world!にほんご" | |
end | |
end |
This file contains hidden or 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.application.routes.draw do | |
root 'sampledesu#index' | |
end |
This file contains hidden or 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
> cd c:\devkit | |
> ruby dk.rb init | |
> ruby dk.rb install |
This file contains hidden or 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
[INFO] Updating convenience notice gem override for 'C:/Ruby22-x64' | |
[INFO] Installing 'C:/Ruby22-x64/lib/ruby/site_ruby/devkit.rb' |
This file contains hidden or 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
c:\temp\sample>rails server | |
=> Booting WEBrick | |
=> Rails 4.2.5 application starting in development on http://localhost:3000 | |
=> Run `rails server -h` for more startup options | |
=> Ctrl-C to shutdown server |
This file contains hidden or 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
> cp C:\temp\bin\*.dll C:\temp\lib |
This file contains hidden or 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
> gem install nokogiri --platform=ruby -- --use-system-libraries --with-iconv-include=C:/temp/include --with-iconv-lib=C:/temp/lib --with-xml2-include=C:/temp/include/libxml2 --with-xml2-lib=C:/temp/lib --with-xslt-include=C:/temp/include --with-xslt-lib=C:/temp/lib | |
> gem install nokogiri |
This file contains hidden or 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
> cp C:\temp\lib\*.dll C:\Ruby22-x64\bin |
This file contains hidden or 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
> gem install rails |
This file contains hidden or 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
> cd c:\temp\sample | |
> rails new ./ | |
> rails generate controller sampledesu |
This file contains hidden or 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
c:\temp\sample>rails generate controller sampledesu | |
create app/controllers/sampledesu_controller.rb | |
invoke erb | |
create app/views/sampledesu | |
invoke test_unit | |
create test/controllers/sampledesu_controller_test.rb | |
invoke helper | |
create app/helpers/sampledesu_helper.rb | |
invoke test_unit | |
invoke assets | |
invoke coffee | |
create app/assets/javascripts/sampledesu.coffee | |
invoke scss | |
create app/assets/stylesheets/sampledesu.scss |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment