SlideShare a Scribd company logo
2007   1
2007   2
Web                     Web

                  Ruby Rails




       Ruby Rails                                       Ruby 1999

              1                 Ruby        7   3          Rails
                                                          ! ´) v
                                                    (
       Java                    PHP
       RubyKaigi2006    2007
                                     / 55
                                3
2007                                                                3
2007   4
PC




                / 55
            5
2007                   5
Web
        quot;
        quot;
        #
                        HTML




                 / 55
             6
2007                           6
Web
        quot;
        quot;
        #
                        HTML




                 / 55
             7
2007                           7
$Ruby
         Web
       Ruby
              (http://www.ruby-lang.org/ja/man/)

        rdoc(http://www.ruby-doc.org/)
         Programming Ruby         1




                               / 55
                           8
2007                                               8
$Rails
         Web
       Rails
               (http://api.rubyonrails.org/)
        http://railsmanual.com/


                              (http://techno.hippy.jp/
        apidoc/)
        Rails            (http://www.ey-office.com/
        tsuuji/)

                                  / 55
                              9
2007                                                     9
$
       Web
       DevBoi
                                 Firefox
                                      Firefox Plugin
        HTML
        JavaScript
        CSS
        prototype.js
                                   Ruby      Rails


                       10 / 55
2007                                                   10
Web
        quot;
        quot;
        #
                       HTML




             11 / 55
2007                          11
Web
        quot;
        quot;
        #
                       HTML




             12 / 55
2007                          12
HTML$Ruby
       Ruby
              (http://www.ruby-lang.org/ja/man/)
               HTML
         Windows HTML Help




                           13 / 55
2007                                               13
HTML$Rails
         Rails
          gem_ser ver
                                          http://
           localhost:8088/

       $ gem_server
       [2007-09-29 04:18:52] INFO WEBrick 1.3.1
       [2007-09-29 04:18:52] INFO ruby 1.8.6
       (2007-03-13) [powerpc-darwin8.9.0]
       [2007-09-29 04:18:52] INFO
       WEBrick::HTTPServer#start: pid=9013 port=8808

                             14 / 55
2007                                                   14
Web
        quot;
        quot;
        #
                       HTML




             15 / 55
2007                          15
Web
        quot;
        quot;
        #
                       HTML




             16 / 55
2007                          16
ri
         Ruby1.8


       refe(       )


        gem install refe -y



                         17 / 55
2007                               17
ri
         Ruby1.8


       refe(       )


        gem install refe -y



                         18 / 55
2007                               18
ri
  $ri -h % ri
  $ri -c % ri
  $ri ActiveRecord::Base
    &ActiveRecord::Base
  $ri ActiveRecord::Base.find
     &ActiveRecord::Base.find
  $ri ActiveRecord::Base#save
     &ActiveRecord::Base#save




                         19 / 55
2007                               19
ri
         Ruby1.8


       refe(       )


        gem install refe -y



                         20 / 55
2007                               20
ri
         Ruby1.8


       refe(       )


        gem install refe -y



                         21 / 55
2007                               21
refe
  $refe -h % refe
  $refe -a % refe
  $refe Array
    &Array
  $refe Array.[]
     &Array.[]
  $ri Array#[]
     &Array#[]

       ri

                     22 / 55
2007                           22
Web
        quot;
        quot;
        #
                       HTML




             23 / 55
2007                          23
2007   24
2007   25
2007   26
2007   27
Clients.find(:all, :conditions=>”client_type=1”).each {|c|
    `mv #{c.image_path} /tmp/zzz`
  }




2007                                                           28
2007   29
2007   30
2007   31
2007   32
2007   33
logger
   @todos = Todo.find(:all, :order => “priority”)
   logger.debug(“todos=” + @todos.inspect)

       Rails Model            Controller
                 “logger”


        obj.class (obj                   )
        obj.inspect   (obj          )
        obj.methods.join(“¥n”) (obj                 )
                               34 / 55
2007                                                    34
2007   35
2007   36
<%= debug obj %>
                (rhtml)
   <%=debug @todos %>
   <% for todo in @todos %>
   <%= todo.description %>
   <% end %>

       Rails View                   “debug”


                      YAML


                          37 / 55
2007                                          37
2007   38
2007   39
ruby-debug
                                        gem

       sudo gem install ruby-debug -y




                             40 / 55
2007                                          40
ruby-debug
                         “debugger”




       Rails    (ActiveRecord         )


       Rails                         Ruby


                           41 / 55
2007                                        41
2007   42
2007   43
Firefox: Live HTTP Header
                                         HTTP


              Firefox Extension
       AJAX          Flash        HTTP




                      44 / 55
2007                                            44
2007   45
2007   46
Firefox: Web Developer
               Web
               Firefox Extension
       Form   (POST URL               name
         )      hidden
       div                         id class


       DOM     HTML

                      47 / 55
2007                                          47
2007   48
2007   49
Firefox: Firebug
       Web Developer              Web
                       Firefox Extension
       HTML                            CSS


       JavaScript




                             50 / 55
2007                                         50
2007   51
2007   52
rake
        rake --tasks rake
        rake stats
        rake test:recent
        10                            UnitTest


        rake test:uncommitted
                            Mode/Controller


                            53 / 55
2007                                             53
2007   54
55 / 55
2007             55

More Related Content

Viewers also liked

20120121 rbc rails_routing
20120121 rbc rails_routing20120121 rbc rails_routing
20120121 rbc rails_routing
Takeshi AKIMA
 
Rails::Engine
Rails::EngineRails::Engine
Rails::Engine
Flavian Missi
 
HerokuではじめるRailsプログラミング入門 6-3節「複数モデルの連携」
HerokuではじめるRailsプログラミング入門  6-3節「複数モデルの連携」HerokuではじめるRailsプログラミング入門  6-3節「複数モデルの連携」
HerokuではじめるRailsプログラミング入門 6-3節「複数モデルの連携」
makopi 23
 
フロントエンドエンジニア(仮) 〜え、ちょっとフロントやること多すぎじゃない!?〜
フロントエンドエンジニア(仮) 〜え、ちょっとフロントやること多すぎじゃない!?〜フロントエンドエンジニア(仮) 〜え、ちょっとフロントやること多すぎじゃない!?〜
フロントエンドエンジニア(仮) 〜え、ちょっとフロントやること多すぎじゃない!?〜
Koji Ishimoto
 
Y Combinator & スタンフォード大学「スタートアップの始め方 (CS183B)」受講ガイド - Summary of How to Start...
Y Combinator & スタンフォード大学「スタートアップの始め方 (CS183B)」受講ガイド - Summary of How to Start...Y Combinator & スタンフォード大学「スタートアップの始め方 (CS183B)」受講ガイド - Summary of How to Start...
Y Combinator & スタンフォード大学「スタートアップの始め方 (CS183B)」受講ガイド - Summary of How to Start...
Takaaki Umada
 
Markdownもはじめよう
MarkdownもはじめようMarkdownもはじめよう
Markdownもはじめよう
masayoshi takahashi
 
サーバー未経験者がソーシャルゲームを通して知ったサーバーの事
サーバー未経験者がソーシャルゲームを通して知ったサーバーの事サーバー未経験者がソーシャルゲームを通して知ったサーバーの事
サーバー未経験者がソーシャルゲームを通して知ったサーバーの事
Manabu Koga
 

Viewers also liked (7)

20120121 rbc rails_routing
20120121 rbc rails_routing20120121 rbc rails_routing
20120121 rbc rails_routing
 
Rails::Engine
Rails::EngineRails::Engine
Rails::Engine
 
HerokuではじめるRailsプログラミング入門 6-3節「複数モデルの連携」
HerokuではじめるRailsプログラミング入門  6-3節「複数モデルの連携」HerokuではじめるRailsプログラミング入門  6-3節「複数モデルの連携」
HerokuではじめるRailsプログラミング入門 6-3節「複数モデルの連携」
 
フロントエンドエンジニア(仮) 〜え、ちょっとフロントやること多すぎじゃない!?〜
フロントエンドエンジニア(仮) 〜え、ちょっとフロントやること多すぎじゃない!?〜フロントエンドエンジニア(仮) 〜え、ちょっとフロントやること多すぎじゃない!?〜
フロントエンドエンジニア(仮) 〜え、ちょっとフロントやること多すぎじゃない!?〜
 
Y Combinator & スタンフォード大学「スタートアップの始め方 (CS183B)」受講ガイド - Summary of How to Start...
Y Combinator & スタンフォード大学「スタートアップの始め方 (CS183B)」受講ガイド - Summary of How to Start...Y Combinator & スタンフォード大学「スタートアップの始め方 (CS183B)」受講ガイド - Summary of How to Start...
Y Combinator & スタンフォード大学「スタートアップの始め方 (CS183B)」受講ガイド - Summary of How to Start...
 
Markdownもはじめよう
MarkdownもはじめようMarkdownもはじめよう
Markdownもはじめよう
 
サーバー未経験者がソーシャルゲームを通して知ったサーバーの事
サーバー未経験者がソーシャルゲームを通して知ったサーバーの事サーバー未経験者がソーシャルゲームを通して知ったサーバーの事
サーバー未経験者がソーシャルゲームを通して知ったサーバーの事
 

Similar to 070929 Ruby勉強会#5 Rails開発ツールガイド

Consegi 2010 - Dicas de Desenvolvimento Web com Ruby
Consegi 2010 - Dicas de Desenvolvimento Web com RubyConsegi 2010 - Dicas de Desenvolvimento Web com Ruby
Consegi 2010 - Dicas de Desenvolvimento Web com Ruby
Fabio Akita
 
Jaoo Michael Neale 09
Jaoo Michael Neale 09Jaoo Michael Neale 09
Jaoo Michael Neale 09
Michael Neale
 
Fisl 11 - Dicas de Desenvolvimento Web com Ruby
Fisl 11 - Dicas de Desenvolvimento Web com RubyFisl 11 - Dicas de Desenvolvimento Web com Ruby
Fisl 11 - Dicas de Desenvolvimento Web com Ruby
Fabio Akita
 
The Future of Dependency Management for Ruby
The Future of Dependency Management for RubyThe Future of Dependency Management for Ruby
The Future of Dependency Management for Ruby
Hiroshi SHIBATA
 
Web application intro + a bit of ruby (revised)
Web application intro + a bit of ruby (revised)Web application intro + a bit of ruby (revised)
Web application intro + a bit of ruby (revised)
Tobias Pfeiffer
 
Web application intro
Web application introWeb application intro
Web application intro
Tobias Pfeiffer
 
Railswaycon 2009 - Summary
Railswaycon 2009 - SummaryRailswaycon 2009 - Summary
Railswaycon 2009 - Summary
daniel.mattes
 
Why you should add React to your Rails application now!
Why you should add React to your Rails application now!Why you should add React to your Rails application now!
Why you should add React to your Rails application now!
David Roberts
 
Ruby Sapporo Night Vol3
Ruby Sapporo Night Vol3Ruby Sapporo Night Vol3
Ruby Sapporo Night Vol3
Koji SHIMADA
 
Using rbenv in Production
Using rbenv in ProductionUsing rbenv in Production
Using rbenv in Production
Nic Benders
 
浜松Rails3道場 其の弐 Model編
浜松Rails3道場 其の弐 Model編 浜松Rails3道場 其の弐 Model編
浜松Rails3道場 其の弐 Model編
Masakuni Kato
 
atomPub, ruby y la api de 11870
atomPub, ruby y la api de 11870atomPub, ruby y la api de 11870
atomPub, ruby y la api de 11870
David Calavera
 
Ugo Cei Presentation
Ugo Cei PresentationUgo Cei Presentation
Ugo Cei Presentation
RubyOnRails_dude
 
JRuby on Rails Deployment: What They Didn't Tell You
JRuby on Rails Deployment: What They Didn't Tell YouJRuby on Rails Deployment: What They Didn't Tell You
JRuby on Rails Deployment: What They Didn't Tell You
elliando dias
 
Gemification for Ruby 2.5/3.0
Gemification for Ruby 2.5/3.0Gemification for Ruby 2.5/3.0
Gemification for Ruby 2.5/3.0
Hiroshi SHIBATA
 
RubyGems 3 & 4
RubyGems 3 & 4RubyGems 3 & 4
RubyGems 3 & 4
Hiroshi SHIBATA
 
Node js实践
Node js实践Node js实践
Node js实践
jay li
 
JRuby, Ruby, Rails and You on the Cloud
JRuby, Ruby, Rails and You on the CloudJRuby, Ruby, Rails and You on the Cloud
JRuby, Ruby, Rails and You on the Cloud
Hiro Asari
 
Ruby Sapporo Night Vol2
Ruby Sapporo Night Vol2Ruby Sapporo Night Vol2
Ruby Sapporo Night Vol2
Koji SHIMADA
 
Rails-3-app-auto-generator-20100817
Rails-3-app-auto-generator-20100817Rails-3-app-auto-generator-20100817
Rails-3-app-auto-generator-20100817
Tse-Ching Ho
 

Similar to 070929 Ruby勉強会#5 Rails開発ツールガイド (20)

Consegi 2010 - Dicas de Desenvolvimento Web com Ruby
Consegi 2010 - Dicas de Desenvolvimento Web com RubyConsegi 2010 - Dicas de Desenvolvimento Web com Ruby
Consegi 2010 - Dicas de Desenvolvimento Web com Ruby
 
Jaoo Michael Neale 09
Jaoo Michael Neale 09Jaoo Michael Neale 09
Jaoo Michael Neale 09
 
Fisl 11 - Dicas de Desenvolvimento Web com Ruby
Fisl 11 - Dicas de Desenvolvimento Web com RubyFisl 11 - Dicas de Desenvolvimento Web com Ruby
Fisl 11 - Dicas de Desenvolvimento Web com Ruby
 
The Future of Dependency Management for Ruby
The Future of Dependency Management for RubyThe Future of Dependency Management for Ruby
The Future of Dependency Management for Ruby
 
Web application intro + a bit of ruby (revised)
Web application intro + a bit of ruby (revised)Web application intro + a bit of ruby (revised)
Web application intro + a bit of ruby (revised)
 
Web application intro
Web application introWeb application intro
Web application intro
 
Railswaycon 2009 - Summary
Railswaycon 2009 - SummaryRailswaycon 2009 - Summary
Railswaycon 2009 - Summary
 
Why you should add React to your Rails application now!
Why you should add React to your Rails application now!Why you should add React to your Rails application now!
Why you should add React to your Rails application now!
 
Ruby Sapporo Night Vol3
Ruby Sapporo Night Vol3Ruby Sapporo Night Vol3
Ruby Sapporo Night Vol3
 
Using rbenv in Production
Using rbenv in ProductionUsing rbenv in Production
Using rbenv in Production
 
浜松Rails3道場 其の弐 Model編
浜松Rails3道場 其の弐 Model編 浜松Rails3道場 其の弐 Model編
浜松Rails3道場 其の弐 Model編
 
atomPub, ruby y la api de 11870
atomPub, ruby y la api de 11870atomPub, ruby y la api de 11870
atomPub, ruby y la api de 11870
 
Ugo Cei Presentation
Ugo Cei PresentationUgo Cei Presentation
Ugo Cei Presentation
 
JRuby on Rails Deployment: What They Didn't Tell You
JRuby on Rails Deployment: What They Didn't Tell YouJRuby on Rails Deployment: What They Didn't Tell You
JRuby on Rails Deployment: What They Didn't Tell You
 
Gemification for Ruby 2.5/3.0
Gemification for Ruby 2.5/3.0Gemification for Ruby 2.5/3.0
Gemification for Ruby 2.5/3.0
 
RubyGems 3 & 4
RubyGems 3 & 4RubyGems 3 & 4
RubyGems 3 & 4
 
Node js实践
Node js实践Node js实践
Node js实践
 
JRuby, Ruby, Rails and You on the Cloud
JRuby, Ruby, Rails and You on the CloudJRuby, Ruby, Rails and You on the Cloud
JRuby, Ruby, Rails and You on the Cloud
 
Ruby Sapporo Night Vol2
Ruby Sapporo Night Vol2Ruby Sapporo Night Vol2
Ruby Sapporo Night Vol2
 
Rails-3-app-auto-generator-20100817
Rails-3-app-auto-generator-20100817Rails-3-app-auto-generator-20100817
Rails-3-app-auto-generator-20100817
 

Recently uploaded

Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
Shinana2
 
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
Data Hops
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
HarisZaheer8
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 

Recently uploaded (20)

Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
 
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3FREE A4 Cyber Security Awareness  Posters-Social Engineering part 3
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 

070929 Ruby勉強会#5 Rails開発ツールガイド

  • 1. 2007 1
  • 2. 2007 2
  • 3. Web Web Ruby Rails Ruby Rails Ruby 1999 1 Ruby 7 3 Rails ! ´) v ( Java PHP RubyKaigi2006 2007 / 55 3 2007 3
  • 4. 2007 4
  • 5. PC / 55 5 2007 5
  • 6. Web quot; quot; # HTML / 55 6 2007 6
  • 7. Web quot; quot; # HTML / 55 7 2007 7
  • 8. $Ruby Web Ruby (http://www.ruby-lang.org/ja/man/) rdoc(http://www.ruby-doc.org/) Programming Ruby 1 / 55 8 2007 8
  • 9. $Rails Web Rails (http://api.rubyonrails.org/) http://railsmanual.com/ (http://techno.hippy.jp/ apidoc/) Rails (http://www.ey-office.com/ tsuuji/) / 55 9 2007 9
  • 10. $ Web DevBoi Firefox Firefox Plugin HTML JavaScript CSS prototype.js Ruby Rails 10 / 55 2007 10
  • 11. Web quot; quot; # HTML 11 / 55 2007 11
  • 12. Web quot; quot; # HTML 12 / 55 2007 12
  • 13. HTML$Ruby Ruby (http://www.ruby-lang.org/ja/man/) HTML Windows HTML Help 13 / 55 2007 13
  • 14. HTML$Rails Rails gem_ser ver http:// localhost:8088/ $ gem_server [2007-09-29 04:18:52] INFO WEBrick 1.3.1 [2007-09-29 04:18:52] INFO ruby 1.8.6 (2007-03-13) [powerpc-darwin8.9.0] [2007-09-29 04:18:52] INFO WEBrick::HTTPServer#start: pid=9013 port=8808 14 / 55 2007 14
  • 15. Web quot; quot; # HTML 15 / 55 2007 15
  • 16. Web quot; quot; # HTML 16 / 55 2007 16
  • 17. ri Ruby1.8 refe( ) gem install refe -y 17 / 55 2007 17
  • 18. ri Ruby1.8 refe( ) gem install refe -y 18 / 55 2007 18
  • 19. ri $ri -h % ri $ri -c % ri $ri ActiveRecord::Base &ActiveRecord::Base $ri ActiveRecord::Base.find &ActiveRecord::Base.find $ri ActiveRecord::Base#save &ActiveRecord::Base#save 19 / 55 2007 19
  • 20. ri Ruby1.8 refe( ) gem install refe -y 20 / 55 2007 20
  • 21. ri Ruby1.8 refe( ) gem install refe -y 21 / 55 2007 21
  • 22. refe $refe -h % refe $refe -a % refe $refe Array &Array $refe Array.[] &Array.[] $ri Array#[] &Array#[] ri 22 / 55 2007 22
  • 23. Web quot; quot; # HTML 23 / 55 2007 23
  • 24. 2007 24
  • 25. 2007 25
  • 26. 2007 26
  • 27. 2007 27
  • 28. Clients.find(:all, :conditions=>”client_type=1”).each {|c| `mv #{c.image_path} /tmp/zzz` } 2007 28
  • 29. 2007 29
  • 30. 2007 30
  • 31. 2007 31
  • 32. 2007 32
  • 33. 2007 33
  • 34. logger @todos = Todo.find(:all, :order => “priority”) logger.debug(“todos=” + @todos.inspect) Rails Model Controller “logger” obj.class (obj ) obj.inspect (obj ) obj.methods.join(“¥n”) (obj ) 34 / 55 2007 34
  • 35. 2007 35
  • 36. 2007 36
  • 37. <%= debug obj %> (rhtml) <%=debug @todos %> <% for todo in @todos %> <%= todo.description %> <% end %> Rails View “debug” YAML 37 / 55 2007 37
  • 38. 2007 38
  • 39. 2007 39
  • 40. ruby-debug gem sudo gem install ruby-debug -y 40 / 55 2007 40
  • 41. ruby-debug “debugger” Rails (ActiveRecord ) Rails Ruby 41 / 55 2007 41
  • 42. 2007 42
  • 43. 2007 43
  • 44. Firefox: Live HTTP Header HTTP Firefox Extension AJAX Flash HTTP 44 / 55 2007 44
  • 45. 2007 45
  • 46. 2007 46
  • 47. Firefox: Web Developer Web Firefox Extension Form (POST URL name ) hidden div id class DOM HTML 47 / 55 2007 47
  • 48. 2007 48
  • 49. 2007 49
  • 50. Firefox: Firebug Web Developer Web Firefox Extension HTML CSS JavaScript 50 / 55 2007 50
  • 51. 2007 51
  • 52. 2007 52
  • 53. rake rake --tasks rake rake stats rake test:recent 10 UnitTest rake test:uncommitted Mode/Controller 53 / 55 2007 53
  • 54. 2007 54