Pro Yearly is on sale from $80 to $50! »

Railsのサービスで特別対応をしたときの話

Cf7eac3e62e372dd097bc581818db760?s=47 Keisuke KITA
September 21, 2014

 Railsのサービスで特別対応をしたときの話

Cf7eac3e62e372dd097bc581818db760?s=128

Keisuke KITA

September 21, 2014
Tweet

Transcript

  1. RailsͷαʔϏεͰ
 ಛผରԠΛͨ͠ͱ͖ͷ࿩

  2. kitak twitter.com/kitak
 github.com/kitak
 ~ 2013 ੴ઒ߴઐ, kanazawa.rb 2013.4 (.0ϖύϘʹ৽ଔೖࣾ ৽ଔݚम➞46;63*➞Χϥʔϛʔγϣοϓ

    46;63*
  3. https://suzuri.jp

  4. None
  5. None
  6. None
  7. None
  8. ͝ར༻ࣄྫ

  9. None
  10. None
  11. None
  12. ͋Γ͕ͱ͏͍͟͝·͢

  13. 46;63*ͷٕज़ Ruby (Rails4.1) Backbone.js Node.js

  14. http://pepabo.com/recruit/interview/201406_01

  15. ੜ׆ൃදձ

  16. RailsͷαʔϏεͰ
 ಛผରԠΛͨ͠ͱ͖ͷ࿩

  17. lಛผରԠz

  18. ίϥϘاըɾΩϟϯϖʔϯ

  19. ಛผରԠ ಛఆͷϢʔβʔ͚ͩ ! ൢചͰ͖Δݸ਺Λ੍ݶ͍ͨ͠ ܦཧతͳ౎߹Ͱച্ͷѻ͍Λม͑Δ ϖʔδʹදࣔ͢Δ಺༰ΛҰൠϢʔβʔ ͱҟͳΔ΋ͷʹ͢Δ
 FUDʜ

  20. Ұॹʹ΍Δ͜ͱʹ ͳͬͨΑʂ

  21. ͋Γ͕ͪͳίʔυ

  22. Ұॹʹ΍Δ͜ͱʹ ͳͬͨΑʂ

  23. ͋Γ͕ͪͳίʔυ

  24. Ұॹʹ΍Δ͜ͱʹ ͳͬͨΑʂ

  25. None
  26. ࠔͬͨ͜ͱ

  27. ͋ͪͪ͜ͷϞσϧ΍ ϏϡʔʹɺϢʔβͷ ෼ذॲཧ͕ࢄΒ͹Δ

  28. اը΍Ωϟϯϖʔϯ͕
 ऴΘͬͨޙʹରԠͷ
 ίʔυΛফ͢ͷ͕େม

  29. ͻͱͭͷاըͷதͰɺ
 ෳ਺ͷରԠΛ͓͜ͳ͍ͬͯ Δ৔߹ʹ
 ରԠͷશ༰͕೺Ѳͮ͠Β͍

  30. Ͱ΋ɺ͔ͤͬ͘ͷ
 ͓࿩ͳͷͰɺΑ͠ͳ ʹରԠ͍ͨ͠

  31. Ͳ͏͢Ε͹Α͍͔

  32. ίϥϘاը΍Ωϟϯϖʔϯ Ͱ͓͜ͳ͏มߋΛҰՕॴ ʹू໿͢Ε͹Α͍ͷͰ͸

  33. ͻͱͭͷϑΝΠϧ 
 Ϟδϡʔϧʹ
 zಛผରԠzͱ͍͏ؔ৺ࣄ
 Λ෼཭͢Δ

  34. TipsΛ͍͔ͭ͘
 ͝঺հ͠·͢

  35. Model

  36. lಛผରԠzϞδϡʔϧͷ ϝιουͰɺطଘͷϞ σϧͷϝιουΛϥο ϐϯά͢Δ

  37. Module#prepend

  38. Object MyClass superclass include prepend

  39. Object MyClass superclass include prepend ModuleA

  40. Object MyClass superclass include prepend ModuleA ModuleB

  41. include͸Ϋϥεʹରͯ͠ ৽ͨͳػೳΛఏڙ͢Δ prepend͸طʹଘࡏ͢Δػ ೳΛมߋ͢Δ

  42. έʔε
 ಛఆͷϢʔβʔͷ঎඼ͷൢച ݸ਺ʹ੍ݶΛઃ͚Δͱ͖

  43. None
  44. None
  45. None
  46. ؾΛ͚ͭΔ͜ͱ

  47. ෳ਺ͷϞδϡʔϧΛ
 ಉҰͷΫϥεʹ
 prepend͢Δࡍʹ
 ઌͷมߋʹӨڹ͸ͳ͍͔ɺ
 ڝ߹͠ͳ͍͔

  48. View

  49. deface by spree

  50. ςϯϓϨʔτΛہॴతʹ
 ΦʔόʔϥΠυͰ͖Δgem

  51. I/FX1PTUI I৽ن౤ߘI BQQWJFXTQPTUT@GPSNIUNMFSC BQQWJFXTQPTUT@GPSNIUNMFSC

  52. έʔε
 Ϣʔβʔͷϖʔδͷݟͤ ํΛม͍͑ͨ

  53. ௨ৗ ಛผରԠ

  54. None
  55. None
  56. lಛผରԠzΛͻͱͭͷϑΝΠϧʹ·ͱΊΔ

  57. ؾΛ͚ͭΔ͜ͱ

  58. $44ηϨΫλͰมߋ͢ΔՕॴΛࢦఆ ͢ΔͷͰɺϏϡʔͷมߋʹऑ͍
 ˝
 request spec 
 feature specͰΧόʔ

  59. ·ͱΊ lಛผରԠzΛҰՕॴʹूΊΔ Rubyʹ͸ɺRubyͦͷ΋ͷͷॊ ೈੑͱ༏ΕͨΤίγεςϜ͕͋ Δ
 ➞ԯ߷ͳ͜ͱ΋ָ͘͠Ͱ͖Δ

  60. We are hiring!

  61. We are hiring!

  62. ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ