Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

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

5,414 views

Published on

Published in: Technology
  • http://tmaeda.s45.xrea.com/td/20070929.html#p01<br /><br/>
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

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

  1. 1. 2007 1
  2. 2. 2007 2
  3. 3. Web Web Ruby Rails Ruby Rails Ruby 1999 1 Ruby 7 3 Rails ! ´) v ( Java PHP RubyKaigi2006 2007 / 55 3 2007 3
  4. 4. 2007 4
  5. 5. PC / 55 5 2007 5
  6. 6. Web quot; quot; # HTML / 55 6 2007 6
  7. 7. Web quot; quot; # HTML / 55 7 2007 7
  8. 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. 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. 10. $ Web DevBoi Firefox Firefox Plugin HTML JavaScript CSS prototype.js Ruby Rails 10 / 55 2007 10
  11. 11. Web quot; quot; # HTML 11 / 55 2007 11
  12. 12. Web quot; quot; # HTML 12 / 55 2007 12
  13. 13. HTML$Ruby Ruby (http://www.ruby-lang.org/ja/man/) HTML Windows HTML Help 13 / 55 2007 13
  14. 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. 15. Web quot; quot; # HTML 15 / 55 2007 15
  16. 16. Web quot; quot; # HTML 16 / 55 2007 16
  17. 17. ri Ruby1.8 refe( ) gem install refe -y 17 / 55 2007 17
  18. 18. ri Ruby1.8 refe( ) gem install refe -y 18 / 55 2007 18
  19. 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. 20. ri Ruby1.8 refe( ) gem install refe -y 20 / 55 2007 20
  21. 21. ri Ruby1.8 refe( ) gem install refe -y 21 / 55 2007 21
  22. 22. refe $refe -h % refe $refe -a % refe $refe Array &Array $refe Array.[] &Array.[] $ri Array#[] &Array#[] ri 22 / 55 2007 22
  23. 23. Web quot; quot; # HTML 23 / 55 2007 23
  24. 24. 2007 24
  25. 25. 2007 25
  26. 26. 2007 26
  27. 27. 2007 27
  28. 28. Clients.find(:all, :conditions=>”client_type=1”).each {|c| `mv #{c.image_path} /tmp/zzz` } 2007 28
  29. 29. 2007 29
  30. 30. 2007 30
  31. 31. 2007 31
  32. 32. 2007 32
  33. 33. 2007 33
  34. 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. 35. 2007 35
  36. 36. 2007 36
  37. 37. <%= debug obj %> (rhtml) <%=debug @todos %> <% for todo in @todos %> <%= todo.description %> <% end %> Rails View “debug” YAML 37 / 55 2007 37
  38. 38. 2007 38
  39. 39. 2007 39
  40. 40. ruby-debug gem sudo gem install ruby-debug -y 40 / 55 2007 40
  41. 41. ruby-debug “debugger” Rails (ActiveRecord ) Rails Ruby 41 / 55 2007 41
  42. 42. 2007 42
  43. 43. 2007 43
  44. 44. Firefox: Live HTTP Header HTTP Firefox Extension AJAX Flash HTTP 44 / 55 2007 44
  45. 45. 2007 45
  46. 46. 2007 46
  47. 47. Firefox: Web Developer Web Firefox Extension Form (POST URL name ) hidden div id class DOM HTML 47 / 55 2007 47
  48. 48. 2007 48
  49. 49. 2007 49
  50. 50. Firefox: Firebug Web Developer Web Firefox Extension HTML CSS JavaScript 50 / 55 2007 50
  51. 51. 2007 51
  52. 52. 2007 52
  53. 53. rake rake --tasks rake rake stats rake test:recent 10 UnitTest rake test:uncommitted Mode/Controller 53 / 55 2007 53
  54. 54. 2007 54
  55. 55. 55 / 55 2007 55

×