guides 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. data/.gitignore +2 -0
  2. data/Gemfile +3 -0
  3. data/bin/guides +6 -0
  4. data/guides.gemspec +32 -0
  5. data/lib/guides.rb +25 -0
  6. data/lib/guides/cli.rb +35 -0
  7. data/lib/guides/generator.rb +274 -0
  8. data/lib/guides/helpers.rb +55 -0
  9. data/lib/guides/indexer.rb +69 -0
  10. data/lib/guides/levenshtein.rb +31 -0
  11. data/lib/guides/new.rb +26 -0
  12. data/lib/guides/templates/assets/images/book_icon.gif +0 -0
  13. data/lib/guides/templates/assets/images/bullet.gif +0 -0
  14. data/lib/guides/templates/assets/images/chapters_icon.gif +0 -0
  15. data/lib/guides/templates/assets/images/check_bullet.gif +0 -0
  16. data/lib/guides/templates/assets/images/construction.png +0 -0
  17. data/lib/guides/templates/assets/images/construction.svg +123 -0
  18. data/lib/guides/templates/assets/images/credits_pic_blank.gif +0 -0
  19. data/lib/guides/templates/assets/images/edge_badge.png +0 -0
  20. data/lib/guides/templates/assets/images/feature_tile.gif +0 -0
  21. data/lib/guides/templates/assets/images/footer_tile.gif +0 -0
  22. data/lib/guides/templates/assets/images/grey_bullet.gif +0 -0
  23. data/lib/guides/templates/assets/images/header_backdrop.png +0 -0
  24. data/lib/guides/templates/assets/images/header_tile.gif +0 -0
  25. data/lib/guides/templates/assets/images/icons/README +5 -0
  26. data/lib/guides/templates/assets/images/icons/callouts/1.png +0 -0
  27. data/lib/guides/templates/assets/images/icons/callouts/10.png +0 -0
  28. data/lib/guides/templates/assets/images/icons/callouts/11.png +0 -0
  29. data/lib/guides/templates/assets/images/icons/callouts/12.png +0 -0
  30. data/lib/guides/templates/assets/images/icons/callouts/13.png +0 -0
  31. data/lib/guides/templates/assets/images/icons/callouts/14.png +0 -0
  32. data/lib/guides/templates/assets/images/icons/callouts/15.png +0 -0
  33. data/lib/guides/templates/assets/images/icons/callouts/2.png +0 -0
  34. data/lib/guides/templates/assets/images/icons/callouts/3.png +0 -0
  35. data/lib/guides/templates/assets/images/icons/callouts/4.png +0 -0
  36. data/lib/guides/templates/assets/images/icons/callouts/5.png +0 -0
  37. data/lib/guides/templates/assets/images/icons/callouts/6.png +0 -0
  38. data/lib/guides/templates/assets/images/icons/callouts/7.png +0 -0
  39. data/lib/guides/templates/assets/images/icons/callouts/8.png +0 -0
  40. data/lib/guides/templates/assets/images/icons/callouts/9.png +0 -0
  41. data/lib/guides/templates/assets/images/icons/caution.png +0 -0
  42. data/lib/guides/templates/assets/images/icons/example.png +0 -0
  43. data/lib/guides/templates/assets/images/icons/home.png +0 -0
  44. data/lib/guides/templates/assets/images/icons/important.png +0 -0
  45. data/lib/guides/templates/assets/images/icons/next.png +0 -0
  46. data/lib/guides/templates/assets/images/icons/note.png +0 -0
  47. data/lib/guides/templates/assets/images/icons/prev.png +0 -0
  48. data/lib/guides/templates/assets/images/icons/tip.png +0 -0
  49. data/lib/guides/templates/assets/images/icons/up.png +0 -0
  50. data/lib/guides/templates/assets/images/icons/warning.png +0 -0
  51. data/lib/guides/templates/assets/images/nav_arrow.gif +0 -0
  52. data/lib/guides/templates/assets/images/tab_grey.gif +0 -0
  53. data/lib/guides/templates/assets/images/tab_info.gif +0 -0
  54. data/lib/guides/templates/assets/images/tab_note.gif +0 -0
  55. data/lib/guides/templates/assets/images/tab_red.gif +0 -0
  56. data/lib/guides/templates/assets/images/tab_yellow.gif +0 -0
  57. data/lib/guides/templates/assets/images/tab_yellow.png +0 -0
  58. data/lib/guides/templates/assets/javascripts/guides.js +9 -0
  59. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushAS3.js +59 -0
  60. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js +75 -0
  61. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushBash.js +59 -0
  62. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushCSharp.js +65 -0
  63. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js +100 -0
  64. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushCpp.js +97 -0
  65. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushCss.js +91 -0
  66. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushDelphi.js +55 -0
  67. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushDiff.js +41 -0
  68. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushErlang.js +52 -0
  69. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushGroovy.js +67 -0
  70. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushJScript.js +52 -0
  71. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushJava.js +57 -0
  72. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js +58 -0
  73. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushPerl.js +72 -0
  74. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushPhp.js +88 -0
  75. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushPlain.js +33 -0
  76. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js +74 -0
  77. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushPython.js +64 -0
  78. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushRuby.js +55 -0
  79. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushSass.js +94 -0
  80. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushScala.js +51 -0
  81. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushSql.js +66 -0
  82. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushVb.js +56 -0
  83. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shBrushXml.js +69 -0
  84. data/lib/guides/templates/assets/javascripts/syntaxhighlighter/shCore.js +17 -0
  85. data/lib/guides/templates/assets/stylesheets/main.css +445 -0
  86. data/lib/guides/templates/assets/stylesheets/print.css +52 -0
  87. data/lib/guides/templates/assets/stylesheets/reset.css +43 -0
  88. data/lib/guides/templates/assets/stylesheets/style.css +13 -0
  89. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCore.css +226 -0
  90. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreDefault.css +328 -0
  91. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreDjango.css +331 -0
  92. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css +339 -0
  93. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css +324 -0
  94. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css +328 -0
  95. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css +324 -0
  96. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css +324 -0
  97. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shCoreRDark.css +324 -0
  98. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeDefault.css +117 -0
  99. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeDjango.css +120 -0
  100. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css +128 -0
  101. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css +113 -0
  102. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css +117 -0
  103. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css +113 -0
  104. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css +113 -0
  105. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeRDark.css +113 -0
  106. data/lib/guides/templates/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css +116 -0
  107. data/lib/guides/templates/guides.yml.tt +35 -0
  108. data/lib/guides/templates/source/_clickable_index.html.erb +17 -0
  109. data/lib/guides/templates/source/_full_index.html.erb +16 -0
  110. data/lib/guides/templates/source/_sections.html.erb +24 -0
  111. data/lib/guides/templates/source/contribute.textile +47 -0
  112. data/lib/guides/templates/source/credits.html.erb +21 -0
  113. data/lib/guides/templates/source/index.html.erb +1 -0
  114. data/lib/guides/templates/source/layout.html.erb +82 -0
  115. data/lib/guides/textile_extensions.rb +39 -0
  116. data/lib/guides/version.rb +3 -0
  117. data/lib/guides/w3c_validator.rb +89 -0
  118. metadata +257 -0
@@ -0,0 +1,113 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (July 02 2010)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ .syntaxhighlighter {
18
+ background-color: #0f192a !important;
19
+ }
20
+ .syntaxhighlighter .line.alt1 {
21
+ background-color: #0f192a !important;
22
+ }
23
+ .syntaxhighlighter .line.alt2 {
24
+ background-color: #0f192a !important;
25
+ }
26
+ .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
27
+ background-color: #253e5a !important;
28
+ }
29
+ .syntaxhighlighter .line.highlighted.number {
30
+ color: #38566f !important;
31
+ }
32
+ .syntaxhighlighter table caption {
33
+ color: #d1edff !important;
34
+ }
35
+ .syntaxhighlighter .gutter {
36
+ color: #afafaf !important;
37
+ }
38
+ .syntaxhighlighter .gutter .line {
39
+ border-right: 3px solid #435a5f !important;
40
+ }
41
+ .syntaxhighlighter .gutter .line.highlighted {
42
+ background-color: #435a5f !important;
43
+ color: #0f192a !important;
44
+ }
45
+ .syntaxhighlighter.printing .line .content {
46
+ border: none !important;
47
+ }
48
+ .syntaxhighlighter.collapsed {
49
+ overflow: visible !important;
50
+ }
51
+ .syntaxhighlighter.collapsed .toolbar {
52
+ color: #428bdd !important;
53
+ background: black !important;
54
+ border: 1px solid #435a5f !important;
55
+ }
56
+ .syntaxhighlighter.collapsed .toolbar a {
57
+ color: #428bdd !important;
58
+ }
59
+ .syntaxhighlighter.collapsed .toolbar a:hover {
60
+ color: #1dc116 !important;
61
+ }
62
+ .syntaxhighlighter .toolbar {
63
+ color: #d1edff !important;
64
+ background: #435a5f !important;
65
+ border: none !important;
66
+ }
67
+ .syntaxhighlighter .toolbar a {
68
+ color: #d1edff !important;
69
+ }
70
+ .syntaxhighlighter .toolbar a:hover {
71
+ color: #8aa6c1 !important;
72
+ }
73
+ .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
74
+ color: #d1edff !important;
75
+ }
76
+ .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
77
+ color: #428bdd !important;
78
+ }
79
+ .syntaxhighlighter .string, .syntaxhighlighter .string a {
80
+ color: #1dc116 !important;
81
+ }
82
+ .syntaxhighlighter .keyword {
83
+ color: #b43d3d !important;
84
+ }
85
+ .syntaxhighlighter .preprocessor {
86
+ color: #8aa6c1 !important;
87
+ }
88
+ .syntaxhighlighter .variable {
89
+ color: #ffaa3e !important;
90
+ }
91
+ .syntaxhighlighter .value {
92
+ color: #f7e741 !important;
93
+ }
94
+ .syntaxhighlighter .functions {
95
+ color: #ffaa3e !important;
96
+ }
97
+ .syntaxhighlighter .constants {
98
+ color: #e0e8ff !important;
99
+ }
100
+ .syntaxhighlighter .script {
101
+ font-weight: bold !important;
102
+ color: #b43d3d !important;
103
+ background-color: none !important;
104
+ }
105
+ .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
106
+ color: #f8bb00 !important;
107
+ }
108
+ .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
109
+ color: white !important;
110
+ }
111
+ .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
112
+ color: #ffaa3e !important;
113
+ }
@@ -0,0 +1,113 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/SyntaxHighlighter
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
+ *
8
+ * @version
9
+ * 3.0.83 (July 02 2010)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2010 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * Dual licensed under the MIT and GPL licenses.
16
+ */
17
+ .syntaxhighlighter {
18
+ background-color: #1b2426 !important;
19
+ }
20
+ .syntaxhighlighter .line.alt1 {
21
+ background-color: #1b2426 !important;
22
+ }
23
+ .syntaxhighlighter .line.alt2 {
24
+ background-color: #1b2426 !important;
25
+ }
26
+ .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
27
+ background-color: #323e41 !important;
28
+ }
29
+ .syntaxhighlighter .line.highlighted.number {
30
+ color: #b9bdb6 !important;
31
+ }
32
+ .syntaxhighlighter table caption {
33
+ color: #b9bdb6 !important;
34
+ }
35
+ .syntaxhighlighter .gutter {
36
+ color: #afafaf !important;
37
+ }
38
+ .syntaxhighlighter .gutter .line {
39
+ border-right: 3px solid #435a5f !important;
40
+ }
41
+ .syntaxhighlighter .gutter .line.highlighted {
42
+ background-color: #435a5f !important;
43
+ color: #1b2426 !important;
44
+ }
45
+ .syntaxhighlighter.printing .line .content {
46
+ border: none !important;
47
+ }
48
+ .syntaxhighlighter.collapsed {
49
+ overflow: visible !important;
50
+ }
51
+ .syntaxhighlighter.collapsed .toolbar {
52
+ color: #5ba1cf !important;
53
+ background: black !important;
54
+ border: 1px solid #435a5f !important;
55
+ }
56
+ .syntaxhighlighter.collapsed .toolbar a {
57
+ color: #5ba1cf !important;
58
+ }
59
+ .syntaxhighlighter.collapsed .toolbar a:hover {
60
+ color: #5ce638 !important;
61
+ }
62
+ .syntaxhighlighter .toolbar {
63
+ color: white !important;
64
+ background: #435a5f !important;
65
+ border: none !important;
66
+ }
67
+ .syntaxhighlighter .toolbar a {
68
+ color: white !important;
69
+ }
70
+ .syntaxhighlighter .toolbar a:hover {
71
+ color: #e0e8ff !important;
72
+ }
73
+ .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
74
+ color: #b9bdb6 !important;
75
+ }
76
+ .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
77
+ color: #878a85 !important;
78
+ }
79
+ .syntaxhighlighter .string, .syntaxhighlighter .string a {
80
+ color: #5ce638 !important;
81
+ }
82
+ .syntaxhighlighter .keyword {
83
+ color: #5ba1cf !important;
84
+ }
85
+ .syntaxhighlighter .preprocessor {
86
+ color: #435a5f !important;
87
+ }
88
+ .syntaxhighlighter .variable {
89
+ color: #ffaa3e !important;
90
+ }
91
+ .syntaxhighlighter .value {
92
+ color: #009900 !important;
93
+ }
94
+ .syntaxhighlighter .functions {
95
+ color: #ffaa3e !important;
96
+ }
97
+ .syntaxhighlighter .constants {
98
+ color: #e0e8ff !important;
99
+ }
100
+ .syntaxhighlighter .script {
101
+ font-weight: bold !important;
102
+ color: #5ba1cf !important;
103
+ background-color: none !important;
104
+ }
105
+ .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
106
+ color: #e0e8ff !important;
107
+ }
108
+ .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
109
+ color: white !important;
110
+ }
111
+ .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
112
+ color: #ffaa3e !important;
113
+ }
@@ -0,0 +1,116 @@
1
+ /**
2
+ * Theme by fxn, took shThemeEclipse.css as starting point.
3
+ */
4
+ .syntaxhighlighter {
5
+ background-color: #eee !important;
6
+ font-family: "Anonymous Pro", "Inconsolata", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace !important;
7
+ overflow-y: hidden !important;
8
+ overflow-x: auto !important;
9
+ }
10
+ .syntaxhighlighter .line.alt1 {
11
+ background-color: #eee !important;
12
+ }
13
+ .syntaxhighlighter .line.alt2 {
14
+ background-color: #eee !important;
15
+ }
16
+ .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
17
+ background-color: #c3defe !important;
18
+ }
19
+ .syntaxhighlighter .line.highlighted.number {
20
+ color: #eee !important;
21
+ }
22
+ .syntaxhighlighter table caption {
23
+ color: #222 !important;
24
+ }
25
+ .syntaxhighlighter .gutter {
26
+ color: #787878 !important;
27
+ }
28
+ .syntaxhighlighter .gutter .line {
29
+ border-right: 3px solid #d4d0c8 !important;
30
+ }
31
+ .syntaxhighlighter .gutter .line.highlighted {
32
+ background-color: #d4d0c8 !important;
33
+ color: #eee !important;
34
+ }
35
+ .syntaxhighlighter.printing .line .content {
36
+ border: none !important;
37
+ }
38
+ .syntaxhighlighter.collapsed {
39
+ overflow: visible !important;
40
+ }
41
+ .syntaxhighlighter.collapsed .toolbar {
42
+ color: #3f5fbf !important;
43
+ background: #eee !important;
44
+ border: 1px solid #d4d0c8 !important;
45
+ }
46
+ .syntaxhighlighter.collapsed .toolbar a {
47
+ color: #3f5fbf !important;
48
+ }
49
+ .syntaxhighlighter.collapsed .toolbar a:hover {
50
+ color: #aa7700 !important;
51
+ }
52
+ .syntaxhighlighter .toolbar {
53
+ color: #a0a0a0 !important;
54
+ background: #d4d0c8 !important;
55
+ border: none !important;
56
+ }
57
+ .syntaxhighlighter .toolbar a {
58
+ color: #a0a0a0 !important;
59
+ }
60
+ .syntaxhighlighter .toolbar a:hover {
61
+ color: red !important;
62
+ }
63
+ .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
64
+ color: #222 !important;
65
+ }
66
+ .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
67
+ color: #708090 !important;
68
+ }
69
+ .syntaxhighlighter .string, .syntaxhighlighter .string a {
70
+ font-style: italic !important;
71
+ color: #6588A8 !important;
72
+ }
73
+ .syntaxhighlighter .keyword {
74
+ color: #64434d !important;
75
+ }
76
+ .syntaxhighlighter .preprocessor {
77
+ color: #646464 !important;
78
+ }
79
+ .syntaxhighlighter .variable {
80
+ color: #222 !important;
81
+ }
82
+ .syntaxhighlighter .value {
83
+ color: #009900 !important;
84
+ }
85
+ .syntaxhighlighter .functions {
86
+ color: #ff1493 !important;
87
+ }
88
+ .syntaxhighlighter .constants {
89
+ color: #0066cc !important;
90
+ }
91
+ .syntaxhighlighter .script {
92
+ color: #222 !important;
93
+ background-color: none !important;
94
+ }
95
+ .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
96
+ color: gray !important;
97
+ }
98
+ .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
99
+ color: #222 !important;
100
+ font-weight: bold !important;
101
+ }
102
+ .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
103
+ color: red !important;
104
+ }
105
+
106
+ .syntaxhighlighter .xml .keyword {
107
+ color: #64434d !important;
108
+ font-weight: normal !important;
109
+ }
110
+ .syntaxhighlighter .xml .color1, .syntaxhighlighter .xml .color1 a {
111
+ color: #7f007f !important;
112
+ }
113
+ .syntaxhighlighter .xml .string {
114
+ font-style: italic !important;
115
+ color: #6588A8 !important;
116
+ }
@@ -0,0 +1,35 @@
1
+ title: <%= title %>
2
+ description: Enter your description here.
3
+ It can take up several lines. This description
4
+ will appear immediately below the main title in
5
+ the outputted guides.
6
+
7
+ authors:
8
+ Documentation Team:
9
+ - name: Yehuda Katz
10
+ nick: wycats
11
+ description: Yehuda wrote the Rails guides gem.
12
+ Designers:
13
+ - name: Jason Zimdars
14
+ nick: jz
15
+ description: Jason Zimdars is an experienced creative director and web designer who has lead UI and UX design for numerous websites and web applications. You can see more of his design and writing at <a href="http://www.thinkcage.com/">Thinkcage.com</a> or follow him on <a href="http://twitter.com/JZ">Twitter</a>
16
+
17
+ index:
18
+ Start Here:
19
+ - title: Getting Started
20
+ url: getting_started
21
+ text: Everything you need to know to install Rails and create your first application
22
+ Models:
23
+ - title: Rails Database Migrations
24
+ url: migrations
25
+ text: This guide covers how you can use Active Record migrations to alter your database in a structured and organized manner.
26
+ - title: Active Record Validations and Callbacks
27
+ url: validations
28
+ text: This guide covers how you can use Active Record validations and callbacks.
29
+ Controllers:
30
+ - title: Action Controller Overview
31
+ url: controllers
32
+ text: This guide covers how controllers work and how they fit into the request cycle in your application. It includes sessions, filters, and cookies, data streaming, and dealing with exceptions raised by a request, among other topics.
33
+ - title: Rails Routing from the Outside In
34
+ url: routing
35
+ text: This guide covers the user-facing features of Rails routing. If you want to understand how to use routing in your own Rails applications, start here.
@@ -0,0 +1,17 @@
1
+ <dl class="L">
2
+ <% lgroup.each do |group, guides| %>
3
+ <dt><%= group %></dt>
4
+ <% guides.each do |guide| %>
5
+ <dd><%= link_to guide["title"], "#{guide["url"]}.html" %></dd>
6
+ <% end %>
7
+ <% end %>
8
+ </dl>
9
+ <dl class="R">
10
+ <% rgroup.each do |group, guides| %>
11
+ <dt><%= group %></dt>
12
+ <% guides.each do |guide| %>
13
+ <dd><%= link_to guide["title"], "#{guide["url"]}.html" %></dd>
14
+ <% end %>
15
+ <% end %>
16
+ </dl>
17
+
@@ -0,0 +1,16 @@
1
+ <% guides.each do |name, list| %>
2
+ <h3><%= name %></h3>
3
+
4
+ <dl>
5
+ <% list.each do |guide| %>
6
+ <dt><%= link_to guide["title"], "#{guide["url"]}.html" %></dt>
7
+ <dd>
8
+ <% if guide["construction"] %>
9
+ <img src="images/construction.png" />
10
+ <% end %>
11
+ <p><%= guide["text"] %></p>
12
+ </dd>
13
+ <% end %>
14
+ </dl>
15
+ <% end %>
16
+
@@ -0,0 +1,24 @@
1
+ <%# This will replace the <title> element in your page. By default, it uses the title key in your guides.yml %>
2
+ <%= content_for :page_title do %><%= Guides.meta["title"] %><% end %>
3
+
4
+ <%# This content will go in the top navigation area. Leave it blank if you don't want nav %>
5
+ <%= content_for :top_nav do %>
6
+ <% end %>
7
+
8
+ <%# This content will be used when you mark your guides as belonging to an edge release of your project. It defaults
9
+ to showing a diagonal "edge" badge %>
10
+ <%= content_for :edge do %>
11
+ <div>
12
+ <img src="images/edge_badge.png" alt="edge-badge" id="edge-badge" />
13
+ </div>
14
+ <% end %>
15
+
16
+ <%= content_for :license do %>
17
+ <p>This work is licensed under a
18
+ <%= link_to "Creative Commons Attribution Share Alike 3.0", "http://creativecommons.org/licenses/by-sa/3.0/" %>
19
+ license.
20
+ </p>
21
+ <p>
22
+ <%# Any additional trademark information should be entered here %>
23
+ </p>
24
+ <% end %>
@@ -0,0 +1,47 @@
1
+ h2. Contribute
2
+
3
+ Replace this with some introductory material on contributing
4
+
5
+ endprologue.
6
+
7
+ h3. How to Contribute?
8
+
9
+ * Make a list
10
+ * of useful information
11
+ * on contributing
12
+
13
+ h3. What to Contribute?
14
+
15
+ * We need authors, editors, proofreaders, and translators. Adding a single paragraph of quality content to a guide is a good way to get started.
16
+ * The easiest way to start is by improving an existing guide:
17
+ ** Improve the structure to make it more coherent.
18
+ ** Add missing information.
19
+ ** Correct any factual errors.
20
+ ** Fix typos or improve style.
21
+ ** Bring it up to date with the latest Edge Rails.
22
+ * We're also open to suggestions for entire new guides:
23
+ ** Contact REPLACE_THIS to get your idea approved. See the Contact section below.
24
+
25
+ h3. How is the process?
26
+
27
+ * Describe the process
28
+ * you will use
29
+ * in this section
30
+
31
+ h3. Rules
32
+
33
+ * Guides are licensed under a Creative Commons Attribution-Share Alike 3.0 License.
34
+ * If you're not sure whether a guide is actively being worked on, stop by IRC and ask.
35
+ * Set up additional rules here
36
+
37
+ TODO: Set up some conventions for authors to follow. https://github.com/lifo/docrails/wiki/rails-guides-conventions Is a good starting poing
38
+
39
+ h3. Mailing List
40
+
41
+ TODO: Specify the mailing list where people can ask about the efforts
42
+
43
+ h3. Contact
44
+
45
+ * IRC : TODO
46
+ * Twitter: TODO
47
+ * Email : TODO