Introduce Rails Breadcrumbs Gems - Breadcrumble

Introduce Rails Breadcrumbs Gems - Breadcrumble

RubyHiroba 2013 LT 2013/06/02

509e5167fdb3871d6b6e045e34a3e019?s=128

Takayuki Matsubara

June 01, 2013
Tweet

Transcript

  1. *OUSPEVDF3BJMT #SFBEDSVNCT(FN . *OD BTBLVTBSC 5XJUUFS!NBHF (JU)VCNBHFEFW #SFBEDSVNCMF

  2. #SFBEDSVNCMF

  3. None
  4. 8F`SFIJSJOH

  5. 8F`SFIJSJOH ͓ؾܰʹ!NBHF·Ͱ

  6. ύϯͣ͘Ϧετ IUUQXXXqJDLSDPNQIPUPTXIFBUpFMET

  7. None
  8. None
  9. None
  10. HFNT IUUQXXXqJDLSDPNQIPUPTLJULBQIPUPHJSM

  11. $SVNNZ IUUQTHJUIVCDPN[BDIJOHMJTDSVNNZ

  12. #SFBEDSVNCT0O3BJMT IUUQTHJUIVCDPNXFQQPT CSFBEDSVNCT@PO@SBJMT

  13. #SFBEDSVNCMF IUUQTHJUIVCDPNNBHFEFWCSFBEDSVNCMF *`NUIFBVUIPS

  14. ൺֱ

  15. (JU)VCͷ˒͸ʁ ˞࣌఺

  16. ˒ $SVNNZ IUUQXXXqJDLSDPNQIPUPTDPNQVUFSIPUMJOF

  17. ˒ #SFBEDSVNCT0O3BJMT IUUQXXXqJDLSDPNQIPUPTDPNQVUFSIPUMJOF

  18. ˒ #SFBEDSVNCMF ˒ ˒ ˒

  19. ઓಆྗʜͨͬͨͷ͔̏ʜΰϛΊʜ

  20. Ϟϯϋϯͷଜ˒Ͱྫ͑Δͱ ϩΞϧυϩεͰͯ͘Δ͜Ζ

  21. ˒˒˒ˑˑ

  22. ऐ͍͠ͷͰ͓ئ͍͠·͢ IUUQTHJUIVCDPNNBHFEFWCSFBEDSVNCMF Go To And Push

  23. ػೳ IUUQXXXqJDLSDPNQIPUPTKPSHFDPSSFB

  24. ίϯτϩʔϥఆٛܕ IUUQXXXqJDLSDPNQIPUPTXJDLFSGVSOJUVSF

  25. #SFBEDSVNCMFͷྫ class PankoController add_breadcrumb 'Panko', '/panko' def show add_breadcrumb 'show

    panko', panko_path end end
  26. #SFBEDSVNCMFͷྫ <%= render_breadcrumbs %>

  27. ࡉ͔͍ࠩ͸͋Δ΋ͷͷ

  28. ΄΅Ұॹ

  29. #SFBEDSVNCMF

  30. ಛ௃

  31. ,BNJOBSJ8BZ LBNJOBSJHFNͷ΍ΓํΛ࠾༻ IUUQXXXqJDLSDPNQIPUPTNIBMMFS

  32. σϑΥϧτͰ΋े෼

  33. 7JFXΛΧελϚΠζՄೳ

  34. SBJMTHLBNJOBSJWJFXT FSCςϯϓϨʔτΛੜ੒

  35. ΠϯεύΠΞ͞Εͨ

  36. SBJMTHCSFBEDSVNCMFWJFXT

  37. ϚχΞοΫ IUUQXXXqJDLSDPNQIPUPTIBQBTpOF

  38. ෳ਺ύϯͣ͘Ϧετ XJUISJDITOJQQFUT

  39. <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="http://www.example.com/books" itemprop="url"> <span itemprop="title">Books</span> </a> ›

    <div itemprop="child" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="http://www.example.com/books/authors" itemprop="url"> <span itemprop="title">Authors</span> </a> › <div itemprop="child" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="http://www.example.com/books/authors/stephenking" itemprop="url"> <span itemprop="title">Stephen King</span> </a> </div> </div> </div> IUUQTVQQPSUHPPHMFDPNXFCNBTUFSTCJO BOTXFSQZ IMFOBOTXFS ແବʹෳࡶ
  40. ϚχΞοΫ͗ͯ͢୭΋ରԠ͠ͳ͍

  41. ઌʑिରԠ͠ͱ͖·ͨ͠

  42. ͍͍Ҋͳ͍͔ͳɻɻɻ 3FpOFNFOUTͱ͔͔ͳʔ add_breadcrumb_to "level 2-1", "url", 2 add_breadcrumb_to "level 2-2",

    "url", 2 add_breadcrumb_to "level 2-3", "url", 2
  43. ϩΰ

  44. DSFBUFECZ@524shoutz_nika

  45. ϩΰͷ͋Δ#SFBEDSVNCTϥΠϒϥϦͬͯ ͦΜͳʹͳ͍ͱࢥ͏ͷ

  46. ·ͱΊ

  47. ΧελϚΠζՄೳ ϚχΞοΫ ϩΰ

  48. #SFBEDSVNCMF

  49. ࢀߟ 3BJMTͷύϯͣ͘ϦετͷΦεεϝΛڭ͍͑ͯͩ͘͞ Կ͔ͷه࿥

  50. FOOOOOE