merb 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. data/README +22 -4
  2. data/Rakefile +15 -3
  3. data/TODO +2 -3
  4. data/bin/merb +61 -36
  5. data/examples/sample_app/dist/app/controllers/files.rb +31 -0
  6. data/examples/sample_app/dist/app/controllers/posts.rb +26 -2
  7. data/examples/sample_app/dist/app/controllers/test.rb +7 -1
  8. data/examples/sample_app/dist/app/views/files/progress.jerb +3 -0
  9. data/examples/sample_app/dist/app/views/files/start.herb +62 -0
  10. data/examples/sample_app/dist/app/views/files/upload.herb +6 -0
  11. data/examples/sample_app/dist/app/views/layout/{application.rhtml → application.herb} +2 -3
  12. data/examples/sample_app/dist/app/views/layout/{foo.rhtml → foo.herb} +0 -0
  13. data/examples/sample_app/dist/app/views/posts/{_comments.rhtml → _comments.herb} +0 -0
  14. data/examples/sample_app/dist/app/views/posts/comment.jerb +1 -0
  15. data/examples/sample_app/dist/app/views/posts/{list.rhtml → list.herb} +0 -0
  16. data/examples/sample_app/dist/app/views/posts/{new.rhtml → new.herb} +0 -0
  17. data/examples/sample_app/dist/app/views/posts/{show.rhtml → show.herb} +0 -0
  18. data/examples/sample_app/dist/app/views/posts/xml_test.xerb +3 -0
  19. data/examples/sample_app/dist/app/views/test/{foo.rhtml → foo.herb} +0 -0
  20. data/examples/sample_app/dist/app/views/test/{hello.rhtml → hello.herb} +0 -0
  21. data/examples/sample_app/dist/app/views/test/json.jerb +1 -0
  22. data/examples/sample_app/dist/conf/merb.yml +11 -0
  23. data/examples/sample_app/dist/conf/merb_init.rb +1 -1
  24. data/examples/sample_app/dist/conf/mup.conf +11 -0
  25. data/examples/sample_app/dist/public/javascripts/mup.js +113 -0
  26. data/examples/sample_app/script/merb_stop +7 -3
  27. data/examples/sample_app/script/startdrb +8 -0
  28. data/lib/merb.rb +37 -2
  29. data/lib/merb/merb_class_extensions.rb +21 -22
  30. data/lib/merb/merb_controller.rb +101 -33
  31. data/lib/merb/merb_handler.rb +26 -25
  32. data/lib/merb/merb_router.rb +1 -1
  33. data/lib/merb/merb_utils.rb +35 -37
  34. data/lib/merb/mixins/basic_authentication_mixin.rb +39 -0
  35. data/lib/merb/mixins/controller_mixin.rb +119 -115
  36. data/lib/merb/mixins/javascript_mixin.rb +63 -0
  37. data/lib/merb/mixins/render_mixin.rb +85 -69
  38. data/lib/merb/mixins/responder_mixin.rb +38 -0
  39. data/lib/merb/session/merb_drb_server.rb +107 -0
  40. data/lib/merb/session/merb_drb_session.rb +71 -0
  41. data/lib/merb/session/merb_session.rb +1 -0
  42. data/lib/merb/vendor/paginator/README.txt +84 -0
  43. data/lib/merb/vendor/paginator/paginator.rb +121 -0
  44. data/lib/mutex_hotfix.rb +34 -0
  45. metadata +41 -63
  46. data/doc/rdoc/classes/ControllerMixin.html +0 -676
  47. data/doc/rdoc/classes/Hash.html +0 -148
  48. data/doc/rdoc/classes/Merb.html +0 -140
  49. data/doc/rdoc/classes/Merb/Controller.html +0 -338
  50. data/doc/rdoc/classes/Merb/RouteMatcher.html +0 -388
  51. data/doc/rdoc/classes/Merb/Server.html +0 -148
  52. data/doc/rdoc/classes/Merb/Session.html +0 -201
  53. data/doc/rdoc/classes/Merb/SessionMixin.html +0 -199
  54. data/doc/rdoc/classes/MerbControllerError.html +0 -111
  55. data/doc/rdoc/classes/MerbHandler.html +0 -430
  56. data/doc/rdoc/classes/MerbHash.html +0 -469
  57. data/doc/rdoc/classes/MerbHash/Mutex.html +0 -198
  58. data/doc/rdoc/classes/Noroutefound.html +0 -153
  59. data/doc/rdoc/classes/Object.html +0 -149
  60. data/doc/rdoc/classes/RenderMixin.html +0 -362
  61. data/doc/rdoc/classes/String.html +0 -212
  62. data/doc/rdoc/classes/Symbol.html +0 -179
  63. data/doc/rdoc/created.rid +0 -1
  64. data/doc/rdoc/files/LICENSE.html +0 -129
  65. data/doc/rdoc/files/README.html +0 -417
  66. data/doc/rdoc/files/TODO.html +0 -151
  67. data/doc/rdoc/files/lib/merb/merb_class_extensions_rb.html +0 -101
  68. data/doc/rdoc/files/lib/merb/merb_controller_rb.html +0 -101
  69. data/doc/rdoc/files/lib/merb/merb_handler_rb.html +0 -101
  70. data/doc/rdoc/files/lib/merb/merb_router_rb.html +0 -101
  71. data/doc/rdoc/files/lib/merb/merb_utils_rb.html +0 -108
  72. data/doc/rdoc/files/lib/merb/mixins/controller_mixin_rb.html +0 -101
  73. data/doc/rdoc/files/lib/merb/mixins/render_mixin_rb.html +0 -101
  74. data/doc/rdoc/files/lib/merb/session/merb_session_rb.html +0 -101
  75. data/doc/rdoc/files/lib/merb_rb.html +0 -140
  76. data/doc/rdoc/files/lib/merb_tasks_rb.html +0 -101
  77. data/doc/rdoc/fr_class_index.html +0 -43
  78. data/doc/rdoc/fr_file_index.html +0 -40
  79. data/doc/rdoc/fr_method_index.html +0 -104
  80. data/doc/rdoc/index.html +0 -24
  81. data/doc/rdoc/rdoc-style.css +0 -208
  82. data/examples/sample_app/dist/app/controllers/upload.rb +0 -29
  83. data/examples/sample_app/dist/app/views/posts/comment.merbjs +0 -1
  84. data/examples/sample_app/dist/app/views/upload/start.rhtml +0 -15
  85. data/examples/sample_app/dist/app/views/upload/upload.rhtml +0 -4
  86. data/examples/sample_app/dist/public/files/README +0 -35
  87. data/examples/sample_app/dist/public/files/setup.rb +0 -1346
  88. data/examples/sample_app/log/merb.log +0 -778
@@ -1,148 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Hash</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Hash</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/merb/merb_utils_rb.html">
59
- lib/merb/merb_utils.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="Object.html">
69
- Object
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
- <div id="method-list">
88
- <h3 class="section-bar">Methods</h3>
89
-
90
- <div class="name-list">
91
- <a href="#M000009">with_indifferent_access</a>&nbsp;&nbsp;
92
- </div>
93
- </div>
94
-
95
- </div>
96
-
97
-
98
- <!-- if includes -->
99
-
100
- <div id="section">
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
- <!-- if method_list -->
110
- <div id="methods">
111
- <h3 class="section-bar">Public Instance methods</h3>
112
-
113
- <div id="method-M000009" class="method-detail">
114
- <a name="M000009"></a>
115
-
116
- <div class="method-heading">
117
- <a href="#M000009" class="method-signature">
118
- <span class="method-name">with_indifferent_access</span><span class="method-args">()</span>
119
- </a>
120
- </div>
121
-
122
- <div class="method-description">
123
- <p><a class="source-toggle" href="#"
124
- onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
125
- <div class="method-source-code" id="M000009-source">
126
- <pre>
127
- <span class="ruby-comment cmt"># File lib/merb/merb_utils.rb, line 47</span>
128
- 47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_indifferent_access</span>
129
- 48: <span class="ruby-constant">MerbHash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
130
- 49: <span class="ruby-keyword kw">end</span>
131
- </pre>
132
- </div>
133
- </div>
134
- </div>
135
-
136
-
137
- </div>
138
-
139
-
140
- </div>
141
-
142
-
143
- <div id="validator-badges">
144
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
145
- </div>
146
-
147
- </body>
148
- </html>
@@ -1,140 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Module: Merb</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">Merb</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/merb_rb.html">
59
- lib/merb.rb
60
- </a>
61
- <br />
62
- <a href="../files/lib/merb/merb_controller_rb.html">
63
- lib/merb/merb_controller.rb
64
- </a>
65
- <br />
66
- <a href="../files/lib/merb/merb_router_rb.html">
67
- lib/merb/merb_router.rb
68
- </a>
69
- <br />
70
- <a href="../files/lib/merb/session/merb_session_rb.html">
71
- lib/merb/session/merb_session.rb
72
- </a>
73
- <br />
74
- </td>
75
- </tr>
76
-
77
- </table>
78
- </div>
79
- <!-- banner header -->
80
-
81
- <div id="bodyContent">
82
-
83
-
84
-
85
- <div id="contextContent">
86
-
87
-
88
-
89
- </div>
90
-
91
-
92
- </div>
93
-
94
-
95
- <!-- if includes -->
96
-
97
- <div id="section">
98
-
99
- <div id="class-list">
100
- <h3 class="section-bar">Classes and Modules</h3>
101
-
102
- Module <a href="Merb/SessionMixin.html" class="link">Merb::SessionMixin</a><br />
103
- Class <a href="Merb/Controller.html" class="link">Merb::Controller</a><br />
104
- Class <a href="Merb/RouteMatcher.html" class="link">Merb::RouteMatcher</a><br />
105
- Class <a href="Merb/Server.html" class="link">Merb::Server</a><br />
106
- Class <a href="Merb/Session.html" class="link">Merb::Session</a><br />
107
-
108
- </div>
109
-
110
- <div id="constants-list">
111
- <h3 class="section-bar">Constants</h3>
112
-
113
- <div class="name-list">
114
- <table summary="Constants">
115
- <tr class="top-aligned-row context-row">
116
- <td class="context-item-name">VERSION</td>
117
- <td>=</td>
118
- <td class="context-item-value">'0.0.6' unless defined?VERSION</td>
119
- </tr>
120
- </table>
121
- </div>
122
- </div>
123
-
124
-
125
-
126
-
127
-
128
-
129
- <!-- if method_list -->
130
-
131
-
132
- </div>
133
-
134
-
135
- <div id="validator-badges">
136
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
137
- </div>
138
-
139
- </body>
140
- </html>
@@ -1,338 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Merb::Controller</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Merb::Controller</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/merb/merb_controller_rb.html">
59
- lib/merb/merb_controller.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="../Object.html">
69
- Object
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <p>
85
- All of your controllers will inherit from <a
86
- href="Controller.html">Merb::Controller</a>. This superclass takes care of
87
- parsing the incoming <a href="Controller.html#M000075">headers</a> and body
88
- into <a href="Controller.html#M000073">params</a> and <a
89
- href="Controller.html#M000074">cookies</a> and <a
90
- href="Controller.html#M000075">headers</a>. If the request is a file upload
91
- it will stream it into a tempfile and pass in the filename and tempfile
92
- object to your controller via <a href="Controller.html#M000073">params</a>.
93
- It also parses the ?query=string and puts that into <a
94
- href="Controller.html#M000073">params</a> as well.
95
- </p>
96
-
97
- </div>
98
-
99
-
100
- </div>
101
-
102
- <div id="method-list">
103
- <h3 class="section-bar">Methods</h3>
104
-
105
- <div class="name-list">
106
- <a href="#M000077">before</a>&nbsp;&nbsp;
107
- <a href="#M000076">call_filters</a>&nbsp;&nbsp;
108
- <a href="#M000074">cookies</a>&nbsp;&nbsp;
109
- <a href="#M000072">dispatch</a>&nbsp;&nbsp;
110
- <a href="#M000075">headers</a>&nbsp;&nbsp;
111
- <a href="#M000073">params</a>&nbsp;&nbsp;
112
- </div>
113
- </div>
114
-
115
- </div>
116
-
117
-
118
- <!-- if includes -->
119
- <div id="includes">
120
- <h3 class="section-bar">Included Modules</h3>
121
-
122
- <div id="includes-list">
123
- <span class="include-name"><a href="../ControllerMixin.html">::ControllerMixin</a></span>
124
- <span class="include-name"><a href="../RenderMixin.html">::RenderMixin</a></span>
125
- <span class="include-name"><a href="SessionMixin.html">::Merb::SessionMixin</a></span>
126
- </div>
127
- </div>
128
-
129
- <div id="section">
130
-
131
-
132
-
133
-
134
-
135
- <div id="attribute-list">
136
- <h3 class="section-bar">Attributes</h3>
137
-
138
- <div class="name-list">
139
- <table>
140
- <tr class="top-aligned-row context-row">
141
- <td class="context-item-name">status</td>
142
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
143
- <td class="context-item-desc"></td>
144
- </tr>
145
- </table>
146
- </div>
147
- </div>
148
-
149
-
150
-
151
- <!-- if method_list -->
152
- <div id="methods">
153
- <h3 class="section-bar">Public Class methods</h3>
154
-
155
- <div id="method-M000077" class="method-detail">
156
- <a name="M000077"></a>
157
-
158
- <div class="method-heading">
159
- <a href="#M000077" class="method-signature">
160
- <span class="method-name">before</span><span class="method-args">(filter)</span>
161
- </a>
162
- </div>
163
-
164
- <div class="method-description">
165
- <p><a class="source-toggle" href="#"
166
- onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
167
- <div class="method-source-code" id="M000077-source">
168
- <pre>
169
- <span class="ruby-comment cmt"># File lib/merb/merb_controller.rb, line 119</span>
170
- 119: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">before</span>(<span class="ruby-identifier">filter</span>)
171
- 120: (<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">before_filters</span> <span class="ruby-operator">||=</span> []) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">filter</span>
172
- 121: <span class="ruby-keyword kw">end</span>
173
- </pre>
174
- </div>
175
- </div>
176
- </div>
177
-
178
- <h3 class="section-bar">Public Instance methods</h3>
179
-
180
- <div id="method-M000076" class="method-detail">
181
- <a name="M000076"></a>
182
-
183
- <div class="method-heading">
184
- <a href="#M000076" class="method-signature">
185
- <span class="method-name">call_filters</span><span class="method-args">(filter_set)</span>
186
- </a>
187
- </div>
188
-
189
- <div class="method-description">
190
- <p><a class="source-toggle" href="#"
191
- onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
192
- <div class="method-source-code" id="M000076-source">
193
- <pre>
194
- <span class="ruby-comment cmt"># File lib/merb/merb_controller.rb, line 103</span>
195
- 103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call_filters</span>(<span class="ruby-identifier">filter_set</span>)
196
- 104: (<span class="ruby-identifier">filter_set</span> <span class="ruby-operator">||</span> []).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">filter</span><span class="ruby-operator">|</span>
197
- 105: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">filter</span>
198
- 106: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Symbol</span>
199
- 107: <span class="ruby-identifier">send</span>(<span class="ruby-identifier">filter</span>)
200
- 108: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Proc</span>
201
- 109: <span class="ruby-identifier">filter</span>.<span class="ruby-identifier">call</span>(<span class="ruby-keyword kw">self</span>)
202
- 110: <span class="ruby-keyword kw">else</span>
203
- 111: <span class="ruby-identifier">raise</span>(
204
- 112: <span class="ruby-constant">MerbControllerError</span>,
205
- 113: <span class="ruby-value str">'filters needs to be either a Symbol or a Proc'</span>
206
- 114: )
207
- 115: <span class="ruby-keyword kw">end</span>
208
- 116: <span class="ruby-keyword kw">end</span>
209
- 117: <span class="ruby-keyword kw">end</span>
210
- </pre>
211
- </div>
212
- </div>
213
- </div>
214
-
215
- <div id="method-M000074" class="method-detail">
216
- <a name="M000074"></a>
217
-
218
- <div class="method-heading">
219
- <a href="#M000074" class="method-signature">
220
- <span class="method-name">cookies</span><span class="method-args">()</span>
221
- </a>
222
- </div>
223
-
224
- <div class="method-description">
225
- <p>
226
- accessor for @<a href="Controller.html#M000074">cookies</a>. Please use <a
227
- href="Controller.html#M000074">cookies</a> and never @<a
228
- href="Controller.html#M000074">cookies</a> directly.
229
- </p>
230
- <p><a class="source-toggle" href="#"
231
- onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
232
- <div class="method-source-code" id="M000074-source">
233
- <pre>
234
- <span class="ruby-comment cmt"># File lib/merb/merb_controller.rb, line 91</span>
235
- 91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cookies</span>
236
- 92: <span class="ruby-ivar">@cookies</span>
237
- 93: <span class="ruby-keyword kw">end</span>
238
- </pre>
239
- </div>
240
- </div>
241
- </div>
242
-
243
- <div id="method-M000072" class="method-detail">
244
- <a name="M000072"></a>
245
-
246
- <div class="method-heading">
247
- <a href="#M000072" class="method-signature">
248
- <span class="method-name">dispatch</span><span class="method-args">(action=nil)</span>
249
- </a>
250
- </div>
251
-
252
- <div class="method-description">
253
- <p><a class="source-toggle" href="#"
254
- onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
255
- <div class="method-source-code" id="M000072-source">
256
- <pre>
257
- <span class="ruby-comment cmt"># File lib/merb/merb_controller.rb, line 75</span>
258
- 75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dispatch</span>(<span class="ruby-identifier">action</span>=<span class="ruby-keyword kw">nil</span>)
259
- 76: <span class="ruby-identifier">setup_session</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">respond_to?</span><span class="ruby-identifier">:setup_session</span>
260
- 77: <span class="ruby-identifier">call_filters</span>(<span class="ruby-identifier">before_filters</span>)
261
- 78: <span class="ruby-identifier">res</span> = <span class="ruby-identifier">send</span>(<span class="ruby-identifier">action</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">:to_s</span>)
262
- 79: <span class="ruby-identifier">finalize_session</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">respond_to?</span><span class="ruby-identifier">:finalize_session</span>
263
- 80: <span class="ruby-identifier">res</span>
264
- 81: <span class="ruby-keyword kw">end</span>
265
- </pre>
266
- </div>
267
- </div>
268
- </div>
269
-
270
- <div id="method-M000075" class="method-detail">
271
- <a name="M000075"></a>
272
-
273
- <div class="method-heading">
274
- <a href="#M000075" class="method-signature">
275
- <span class="method-name">headers</span><span class="method-args">()</span>
276
- </a>
277
- </div>
278
-
279
- <div class="method-description">
280
- <p>
281
- accessor for @<a href="Controller.html#M000075">headers</a>. Please use <a
282
- href="Controller.html#M000075">headers</a> and never @<a
283
- href="Controller.html#M000075">headers</a> directly.
284
- </p>
285
- <p><a class="source-toggle" href="#"
286
- onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
287
- <div class="method-source-code" id="M000075-source">
288
- <pre>
289
- <span class="ruby-comment cmt"># File lib/merb/merb_controller.rb, line 97</span>
290
- 97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">headers</span>
291
- 98: <span class="ruby-ivar">@headers</span>
292
- 99: <span class="ruby-keyword kw">end</span>
293
- </pre>
294
- </div>
295
- </div>
296
- </div>
297
-
298
- <div id="method-M000073" class="method-detail">
299
- <a name="M000073"></a>
300
-
301
- <div class="method-heading">
302
- <a href="#M000073" class="method-signature">
303
- <span class="method-name">params</span><span class="method-args">()</span>
304
- </a>
305
- </div>
306
-
307
- <div class="method-description">
308
- <p>
309
- accessor for @<a href="Controller.html#M000073">params</a>. Please use <a
310
- href="Controller.html#M000073">params</a> and never @<a
311
- href="Controller.html#M000073">params</a> directly.
312
- </p>
313
- <p><a class="source-toggle" href="#"
314
- onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
315
- <div class="method-source-code" id="M000073-source">
316
- <pre>
317
- <span class="ruby-comment cmt"># File lib/merb/merb_controller.rb, line 85</span>
318
- 85: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">params</span>
319
- 86: <span class="ruby-ivar">@params</span>
320
- 87: <span class="ruby-keyword kw">end</span>
321
- </pre>
322
- </div>
323
- </div>
324
- </div>
325
-
326
-
327
- </div>
328
-
329
-
330
- </div>
331
-
332
-
333
- <div id="validator-badges">
334
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
335
- </div>
336
-
337
- </body>
338
- </html>