Slideshare
http://www.slideshare.net/yasulab/presentations
https://ide.c9.io/yasulab/rails-tutorial
https://rails-tutorial-yasulab.c9users.io/
URL “Collaborate” → “Group Chat”
Model-View-Controller (MVC)
Router
Controller
View
Model
DatabaseReq.
HTML
3
4
• :
• Home
• Ruby :
1.
2. ( /Block/Hash/ )
3. ( / / )
4. Rails (Controller / User)
• Helper
• Helper
• : ApplicationHelper, StaticPagesHelper
• Helper
• (RED)
• Static Pages Home
• (GREEN)
4.1.
4 Rails Ruby 4.2 (string)
http://railstutorial.jp/
Rails
by YassLab
:
$ touch ~/.irbrc$ c9 open ~/.irbrc
: gem
$ gem install pry$ pry>> puts “Hi”
• [“foo”, “bar”, “baz”] (0..9).to_a # => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
• (1..5).each { |i| puts 2 * i } => 2 4 6 8 10
• h1 = { :name => “Yohei”, :email => “[email protected]” } h2 = { name: “Yohei”, email: “[email protected]” }
4.3.
• : String, Fixnum, Hash, Array, …
•
•
•
•
• Rails
• User
4.4. Ruby
Ruby / Rails
StaticPagesControllerWord
• :
• Home
• Ruby :
1.
2. ( /Block/Hash/ )
3. ( / / )
4. Rails (Controller / User)
Model-View-Controller (MVC)
Router
Controller
View
Model
DatabaseReq.
HTML
3
4
Ruby http://magazine.rubyist.net/?FirstStepRuby
:
Ruby https://github.com/ruby-no-kai/official/wiki/RegionalRubyistMeetUp
Ruby https://docs.ruby-lang.org/ja/
:
https://docs.ruby-lang.org/ja/search/
• :)
• : http://railstutorial.jp/seminars
• :) ,
.
• , .