SlideShare una empresa de Scribd logo
1 de 55
Descargar para leer sin conexión
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

Más contenido relacionado

Destacado

20120121 rbc rails_routing
20120121 rbc rails_routing20120121 rbc rails_routing
20120121 rbc rails_routing
Takeshi AKIMA
 

Destacado (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 a 070929 Ruby勉強会#5 Rails開発ツールガイド

Railswaycon 2009 - Summary
Railswaycon 2009 - SummaryRailswaycon 2009 - Summary
Railswaycon 2009 - Summary
daniel.mattes
 
Ruby Sapporo Night Vol3
Ruby Sapporo Night Vol3Ruby Sapporo Night Vol3
Ruby Sapporo Night Vol3
Koji SHIMADA
 
浜松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
 
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
 
Ruby Sapporo Night Vol2
Ruby Sapporo Night Vol2Ruby Sapporo Night Vol2
Ruby Sapporo Night Vol2
Koji SHIMADA
 

Similar a 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
 

Último

Último (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 

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