photoviewer 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/app/views/list/_base.html.erb +69 -0
- data/app/views/list/email.html.erb +52 -0
- data/app/views/list/get_mails.html.erb +9 -0
- data/app/views/list/index.html.erb +11 -6
- data/coverage/app-controllers-application_rb.html +659 -659
- data/coverage/app-controllers-list_controller_rb.html +717 -717
- data/coverage/app-helpers-application_helper_rb.html +651 -651
- data/coverage/app-helpers-list_helper_rb.html +650 -650
- data/coverage/index.html +390 -390
- data/db/schema.rb +14 -14
- data/doc/app/classes/ApplicationController.html +119 -0
- data/doc/app/classes/ApplicationHelper.html +112 -0
- data/doc/app/classes/List.html +134 -0
- data/doc/app/classes/ListController.html +461 -0
- data/doc/app/classes/ListHelper.html +128 -0
- data/doc/app/created.rid +1 -0
- data/doc/app/files/app/controllers/application_rb.html +124 -0
- data/doc/app/files/app/controllers/list_controller_rb.html +124 -0
- data/doc/app/files/app/helpers/application_helper_rb.html +124 -0
- data/doc/app/files/app/helpers/list_helper_rb.html +124 -0
- data/doc/app/files/app/models/list_rb.html +124 -0
- data/doc/app/files/doc/README_FOR_APP.html +110 -0
- data/doc/app/fr_class_index.html +31 -0
- data/doc/app/fr_file_index.html +32 -0
- data/doc/app/fr_method_index.html +38 -0
- data/doc/app/index.html +24 -0
- data/doc/app/rdoc-style.css +208 -0
- data/log/development.log +2121 -675
- data/log/test.log +22 -630
- data/nbproject/private/private.xml +4 -0
- data/nbproject/private/rake-t.txt +64 -0
- data/nbproject/project.properties +2 -0
- data/nbproject/project.xml +9 -0
- data/public/images/skins/Skins_176A2-a.png +0 -0
- data/public/images/skins/Skins_176A2-b.png +0 -0
- metadata +136 -99
- data/catalog.xml +0 -4
@@ -0,0 +1,461 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
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: ListController</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
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">ListController</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/app/controllers/list_controller_rb.html">
|
59
|
+
app/controllers/list_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="ApplicationController.html">
|
69
|
+
ApplicationController
|
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
|
+
Copyright (C) 2007 Mobio Networks, Inc.
|
86
|
+
</p>
|
87
|
+
<p>
|
88
|
+
This program is free software: you can redistribute it and/or modify it
|
89
|
+
under the terms of the GNU General Public License as published by the Free
|
90
|
+
Software Foundation, either version 3 of the License, or (at your option)
|
91
|
+
any later version.
|
92
|
+
</p>
|
93
|
+
<p>
|
94
|
+
This program is distributed in the hope that it will be useful, but WITHOUT
|
95
|
+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
96
|
+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
97
|
+
more details.
|
98
|
+
</p>
|
99
|
+
<p>
|
100
|
+
You should have received a copy of the GNU General Public License along
|
101
|
+
with this program. If not, see <<a
|
102
|
+
href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/>.
|
103
|
+
</p>
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
|
110
|
+
<div id="method-list">
|
111
|
+
<h3 class="section-bar">Methods</h3>
|
112
|
+
|
113
|
+
<div class="name-list">
|
114
|
+
<a href="#M000004">banner</a>
|
115
|
+
<a href="#M000011">data_response</a>
|
116
|
+
<a href="#M000009">err</a>
|
117
|
+
<a href="#M000010">err_response</a>
|
118
|
+
<a href="#M000002">get_images</a>
|
119
|
+
<a href="#M000001">index</a>
|
120
|
+
<a href="#M000012">promo</a>
|
121
|
+
<a href="#M000003">send_log</a>
|
122
|
+
<a href="#M000008">set_index</a>
|
123
|
+
<a href="#M000006">sponsor</a>
|
124
|
+
<a href="#M000007">storeBackurl</a>
|
125
|
+
<a href="#M000005">view</a>
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
|
132
|
+
<!-- if includes -->
|
133
|
+
|
134
|
+
<div id="section">
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<!-- if method_list -->
|
144
|
+
<div id="methods">
|
145
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
146
|
+
|
147
|
+
<div id="method-M000004" class="method-detail">
|
148
|
+
<a name="M000004"></a>
|
149
|
+
|
150
|
+
<div class="method-heading">
|
151
|
+
<a href="#M000004" class="method-signature">
|
152
|
+
<span class="method-name">banner</span><span class="method-args">()</span>
|
153
|
+
</a>
|
154
|
+
</div>
|
155
|
+
|
156
|
+
<div class="method-description">
|
157
|
+
<p><a class="source-toggle" href="#"
|
158
|
+
onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
|
159
|
+
<div class="method-source-code" id="M000004-source">
|
160
|
+
<pre>
|
161
|
+
<span class="ruby-comment cmt"># File app/controllers/list_controller.rb, line 54</span>
|
162
|
+
54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">banner</span>
|
163
|
+
55: <span class="ruby-comment cmt"># Get ad server url from config manager </span>
|
164
|
+
56: <span class="ruby-ivar">@ad_url</span> = <span class="ruby-constant">MOBIO_CONFIG</span>[<span class="ruby-value str">'adserver_url'</span>]
|
165
|
+
57: <span class="ruby-keyword kw">end</span>
|
166
|
+
</pre>
|
167
|
+
</div>
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
<div id="method-M000011" class="method-detail">
|
172
|
+
<a name="M000011"></a>
|
173
|
+
|
174
|
+
<div class="method-heading">
|
175
|
+
<a href="#M000011" class="method-signature">
|
176
|
+
<span class="method-name">data_response</span><span class="method-args">()</span>
|
177
|
+
</a>
|
178
|
+
</div>
|
179
|
+
|
180
|
+
<div class="method-description">
|
181
|
+
<p><a class="source-toggle" href="#"
|
182
|
+
onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
|
183
|
+
<div class="method-source-code" id="M000011-source">
|
184
|
+
<pre>
|
185
|
+
<span class="ruby-comment cmt"># File app/controllers/list_controller.rb, line 81</span>
|
186
|
+
81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">data_response</span>
|
187
|
+
82: <span class="ruby-keyword kw">end</span>
|
188
|
+
</pre>
|
189
|
+
</div>
|
190
|
+
</div>
|
191
|
+
</div>
|
192
|
+
|
193
|
+
<div id="method-M000009" class="method-detail">
|
194
|
+
<a name="M000009"></a>
|
195
|
+
|
196
|
+
<div class="method-heading">
|
197
|
+
<a href="#M000009" class="method-signature">
|
198
|
+
<span class="method-name">err</span><span class="method-args">()</span>
|
199
|
+
</a>
|
200
|
+
</div>
|
201
|
+
|
202
|
+
<div class="method-description">
|
203
|
+
<p><a class="source-toggle" href="#"
|
204
|
+
onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
|
205
|
+
<div class="method-source-code" id="M000009-source">
|
206
|
+
<pre>
|
207
|
+
<span class="ruby-comment cmt"># File app/controllers/list_controller.rb, line 77</span>
|
208
|
+
77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">err</span>
|
209
|
+
78: <span class="ruby-keyword kw">end</span>
|
210
|
+
</pre>
|
211
|
+
</div>
|
212
|
+
</div>
|
213
|
+
</div>
|
214
|
+
|
215
|
+
<div id="method-M000010" class="method-detail">
|
216
|
+
<a name="M000010"></a>
|
217
|
+
|
218
|
+
<div class="method-heading">
|
219
|
+
<a href="#M000010" class="method-signature">
|
220
|
+
<span class="method-name">err_response</span><span class="method-args">()</span>
|
221
|
+
</a>
|
222
|
+
</div>
|
223
|
+
|
224
|
+
<div class="method-description">
|
225
|
+
<p><a class="source-toggle" href="#"
|
226
|
+
onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
|
227
|
+
<div class="method-source-code" id="M000010-source">
|
228
|
+
<pre>
|
229
|
+
<span class="ruby-comment cmt"># File app/controllers/list_controller.rb, line 79</span>
|
230
|
+
79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">err_response</span>
|
231
|
+
80: <span class="ruby-keyword kw">end</span>
|
232
|
+
</pre>
|
233
|
+
</div>
|
234
|
+
</div>
|
235
|
+
</div>
|
236
|
+
|
237
|
+
<div id="method-M000002" class="method-detail">
|
238
|
+
<a name="M000002"></a>
|
239
|
+
|
240
|
+
<div class="method-heading">
|
241
|
+
<a href="#M000002" class="method-signature">
|
242
|
+
<span class="method-name">get_images</span><span class="method-args">()</span>
|
243
|
+
</a>
|
244
|
+
</div>
|
245
|
+
|
246
|
+
<div class="method-description">
|
247
|
+
<p><a class="source-toggle" href="#"
|
248
|
+
onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
|
249
|
+
<div class="method-source-code" id="M000002-source">
|
250
|
+
<pre>
|
251
|
+
<span class="ruby-comment cmt"># File app/controllers/list_controller.rb, line 23</span>
|
252
|
+
23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_images</span>
|
253
|
+
24: <span class="ruby-comment cmt"># get all images in images directory or bn directory</span>
|
254
|
+
25: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:bn</span>].<span class="ruby-identifier">nil?</span>
|
255
|
+
26: <span class="ruby-identifier">imgs</span> = <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-identifier">join</span> <span class="ruby-constant">RAILS_ROOT</span>, <span class="ruby-value str">'public/images/*png'</span>
|
256
|
+
27: <span class="ruby-keyword kw">else</span>
|
257
|
+
28: <span class="ruby-identifier">imgs</span> = <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-identifier">join</span> <span class="ruby-constant">RAILS_ROOT</span>, <span class="ruby-value str">'public/images/bn/*png'</span>
|
258
|
+
29: <span class="ruby-keyword kw">end</span>
|
259
|
+
30: <span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>[<span class="ruby-identifier">imgs</span>]
|
260
|
+
31: <span class="ruby-ivar">@names</span> = []
|
261
|
+
32: <span class="ruby-identifier">files</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span>
|
262
|
+
33: <span class="ruby-identifier">filename</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">x</span>)
|
263
|
+
34: <span class="ruby-identifier">img</span> = []
|
264
|
+
35: <span class="ruby-identifier">img</span>[<span class="ruby-value">0</span>] = <span class="ruby-identifier">filename</span>
|
265
|
+
36: <span class="ruby-identifier">filename</span> = <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:bn</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">'/'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">filename</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:bn</span>]
|
266
|
+
37: <span class="ruby-identifier">img</span>[<span class="ruby-value">1</span>] = <span class="ruby-identifier">filename</span>
|
267
|
+
38: <span class="ruby-ivar">@names</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">img</span>
|
268
|
+
39: <span class="ruby-keyword kw">end</span>
|
269
|
+
40: <span class="ruby-identifier">headers</span>[<span class="ruby-value str">'Content-Type'</span>]=<span class="ruby-value str">'application/xml'</span>
|
270
|
+
41: <span class="ruby-identifier">response</span> = <span class="ruby-value str">"<data/>"</span>
|
271
|
+
42: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:template</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'list/images.xml'</span>
|
272
|
+
43: <span class="ruby-keyword kw">end</span>
|
273
|
+
</pre>
|
274
|
+
</div>
|
275
|
+
</div>
|
276
|
+
</div>
|
277
|
+
|
278
|
+
<div id="method-M000001" class="method-detail">
|
279
|
+
<a name="M000001"></a>
|
280
|
+
|
281
|
+
<div class="method-heading">
|
282
|
+
<a href="#M000001" class="method-signature">
|
283
|
+
<span class="method-name">index</span><span class="method-args">()</span>
|
284
|
+
</a>
|
285
|
+
</div>
|
286
|
+
|
287
|
+
<div class="method-description">
|
288
|
+
<p><a class="source-toggle" href="#"
|
289
|
+
onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
|
290
|
+
<div class="method-source-code" id="M000001-source">
|
291
|
+
<pre>
|
292
|
+
<span class="ruby-comment cmt"># File app/controllers/list_controller.rb, line 21</span>
|
293
|
+
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>
|
294
|
+
22: <span class="ruby-keyword kw">end</span>
|
295
|
+
</pre>
|
296
|
+
</div>
|
297
|
+
</div>
|
298
|
+
</div>
|
299
|
+
|
300
|
+
<div id="method-M000012" class="method-detail">
|
301
|
+
<a name="M000012"></a>
|
302
|
+
|
303
|
+
<div class="method-heading">
|
304
|
+
<a href="#M000012" class="method-signature">
|
305
|
+
<span class="method-name">promo</span><span class="method-args">()</span>
|
306
|
+
</a>
|
307
|
+
</div>
|
308
|
+
|
309
|
+
<div class="method-description">
|
310
|
+
<p><a class="source-toggle" href="#"
|
311
|
+
onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
|
312
|
+
<div class="method-source-code" id="M000012-source">
|
313
|
+
<pre>
|
314
|
+
<span class="ruby-comment cmt"># File app/controllers/list_controller.rb, line 83</span>
|
315
|
+
83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">promo</span>
|
316
|
+
84: <span class="ruby-keyword kw">end</span>
|
317
|
+
</pre>
|
318
|
+
</div>
|
319
|
+
</div>
|
320
|
+
</div>
|
321
|
+
|
322
|
+
<div id="method-M000003" class="method-detail">
|
323
|
+
<a name="M000003"></a>
|
324
|
+
|
325
|
+
<div class="method-heading">
|
326
|
+
<a href="#M000003" class="method-signature">
|
327
|
+
<span class="method-name">send_log</span><span class="method-args">()</span>
|
328
|
+
</a>
|
329
|
+
</div>
|
330
|
+
|
331
|
+
<div class="method-description">
|
332
|
+
<p>
|
333
|
+
Log when image is viewed
|
334
|
+
</p>
|
335
|
+
<p><a class="source-toggle" href="#"
|
336
|
+
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
|
337
|
+
<div class="method-source-code" id="M000003-source">
|
338
|
+
<pre>
|
339
|
+
<span class="ruby-comment cmt"># File app/controllers/list_controller.rb, line 46</span>
|
340
|
+
46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_log</span>
|
341
|
+
47: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-value str">'***** Viewed image with id: '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>])
|
342
|
+
48:
|
343
|
+
49: <span class="ruby-comment cmt"># Have to send some dummy back otherwise server chokes on nullpointer exception</span>
|
344
|
+
50: <span class="ruby-identifier">headers</span>[<span class="ruby-value str">'Content-Type'</span>]=<span class="ruby-value str">'application/xml'</span>
|
345
|
+
51: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:template</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'list/response.xml'</span>
|
346
|
+
52: <span class="ruby-keyword kw">end</span>
|
347
|
+
</pre>
|
348
|
+
</div>
|
349
|
+
</div>
|
350
|
+
</div>
|
351
|
+
|
352
|
+
<div id="method-M000008" class="method-detail">
|
353
|
+
<a name="M000008"></a>
|
354
|
+
|
355
|
+
<div class="method-heading">
|
356
|
+
<a href="#M000008" class="method-signature">
|
357
|
+
<span class="method-name">set_index</span><span class="method-args">()</span>
|
358
|
+
</a>
|
359
|
+
</div>
|
360
|
+
|
361
|
+
<div class="method-description">
|
362
|
+
<p><a class="source-toggle" href="#"
|
363
|
+
onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
|
364
|
+
<div class="method-source-code" id="M000008-source">
|
365
|
+
<pre>
|
366
|
+
<span class="ruby-comment cmt"># File app/controllers/list_controller.rb, line 75</span>
|
367
|
+
75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_index</span>
|
368
|
+
76: <span class="ruby-keyword kw">end</span>
|
369
|
+
</pre>
|
370
|
+
</div>
|
371
|
+
</div>
|
372
|
+
</div>
|
373
|
+
|
374
|
+
<div id="method-M000006" class="method-detail">
|
375
|
+
<a name="M000006"></a>
|
376
|
+
|
377
|
+
<div class="method-heading">
|
378
|
+
<a href="#M000006" class="method-signature">
|
379
|
+
<span class="method-name">sponsor</span><span class="method-args">()</span>
|
380
|
+
</a>
|
381
|
+
</div>
|
382
|
+
|
383
|
+
<div class="method-description">
|
384
|
+
<p><a class="source-toggle" href="#"
|
385
|
+
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
|
386
|
+
<div class="method-source-code" id="M000006-source">
|
387
|
+
<pre>
|
388
|
+
<span class="ruby-comment cmt"># File app/controllers/list_controller.rb, line 64</span>
|
389
|
+
64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sponsor</span>
|
390
|
+
65: <span class="ruby-identifier">headers</span>[<span class="ruby-value str">'Content-Type'</span>]=<span class="ruby-value str">'application/xml'</span>
|
391
|
+
66: <span class="ruby-identifier">response</span> = <span class="ruby-value str">'<data xmlns=""><info>sponsor '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">'</info></data>'</span>
|
392
|
+
67: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:template</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'list/response.xml'</span>
|
393
|
+
68: <span class="ruby-keyword kw">end</span>
|
394
|
+
</pre>
|
395
|
+
</div>
|
396
|
+
</div>
|
397
|
+
</div>
|
398
|
+
|
399
|
+
<div id="method-M000007" class="method-detail">
|
400
|
+
<a name="M000007"></a>
|
401
|
+
|
402
|
+
<div class="method-heading">
|
403
|
+
<a href="#M000007" class="method-signature">
|
404
|
+
<span class="method-name">storeBackurl</span><span class="method-args">()</span>
|
405
|
+
</a>
|
406
|
+
</div>
|
407
|
+
|
408
|
+
<div class="method-description">
|
409
|
+
<p>
|
410
|
+
handle backurl to home
|
411
|
+
</p>
|
412
|
+
<p><a class="source-toggle" href="#"
|
413
|
+
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
|
414
|
+
<div class="method-source-code" id="M000007-source">
|
415
|
+
<pre>
|
416
|
+
<span class="ruby-comment cmt"># File app/controllers/list_controller.rb, line 71</span>
|
417
|
+
71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">storeBackurl</span>
|
418
|
+
72: <span class="ruby-identifier">backURL</span>(<span class="ruby-value str">"recipe_burl"</span>)
|
419
|
+
73: <span class="ruby-keyword kw">end</span>
|
420
|
+
</pre>
|
421
|
+
</div>
|
422
|
+
</div>
|
423
|
+
</div>
|
424
|
+
|
425
|
+
<div id="method-M000005" class="method-detail">
|
426
|
+
<a name="M000005"></a>
|
427
|
+
|
428
|
+
<div class="method-heading">
|
429
|
+
<a href="#M000005" class="method-signature">
|
430
|
+
<span class="method-name">view</span><span class="method-args">()</span>
|
431
|
+
</a>
|
432
|
+
</div>
|
433
|
+
|
434
|
+
<div class="method-description">
|
435
|
+
<p><a class="source-toggle" href="#"
|
436
|
+
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
|
437
|
+
<div class="method-source-code" id="M000005-source">
|
438
|
+
<pre>
|
439
|
+
<span class="ruby-comment cmt"># File app/controllers/list_controller.rb, line 59</span>
|
440
|
+
59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">view</span>
|
441
|
+
60: <span class="ruby-comment cmt"># Get ad server url from config manager </span>
|
442
|
+
61: <span class="ruby-ivar">@ad_url</span> = <span class="ruby-constant">MOBIO_CONFIG</span>[<span class="ruby-value str">'adserver_url'</span>]
|
443
|
+
62: <span class="ruby-keyword kw">end</span>
|
444
|
+
</pre>
|
445
|
+
</div>
|
446
|
+
</div>
|
447
|
+
</div>
|
448
|
+
|
449
|
+
|
450
|
+
</div>
|
451
|
+
|
452
|
+
|
453
|
+
</div>
|
454
|
+
|
455
|
+
|
456
|
+
<div id="validator-badges">
|
457
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
458
|
+
</div>
|
459
|
+
|
460
|
+
</body>
|
461
|
+
</html>
|
@@ -0,0 +1,128 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
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: ListHelper</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
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">ListHelper</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/app/helpers/list_helper_rb.html">
|
59
|
+
app/helpers/list_helper.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
</table>
|
66
|
+
</div>
|
67
|
+
<!-- banner header -->
|
68
|
+
|
69
|
+
<div id="bodyContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<div id="contextContent">
|
74
|
+
|
75
|
+
<div id="description">
|
76
|
+
<p>
|
77
|
+
Copyright (C) 2007 Mobio Networks, Inc.
|
78
|
+
</p>
|
79
|
+
<p>
|
80
|
+
This program is free software: you can redistribute it and/or modify it
|
81
|
+
under the terms of the GNU General Public License as published by the Free
|
82
|
+
Software Foundation, either version 3 of the License, or (at your option)
|
83
|
+
any later version.
|
84
|
+
</p>
|
85
|
+
<p>
|
86
|
+
This program is distributed in the hope that it will be useful, but WITHOUT
|
87
|
+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
88
|
+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
89
|
+
more details.
|
90
|
+
</p>
|
91
|
+
<p>
|
92
|
+
You should have received a copy of the GNU General Public License along
|
93
|
+
with this program. If not, see <<a
|
94
|
+
href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/>.
|
95
|
+
</p>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
<!-- if includes -->
|
107
|
+
|
108
|
+
<div id="section">
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
<!-- if method_list -->
|
118
|
+
|
119
|
+
|
120
|
+
</div>
|
121
|
+
|
122
|
+
|
123
|
+
<div id="validator-badges">
|
124
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
</body>
|
128
|
+
</html>
|
data/doc/app/created.rid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Thu, 03 Apr 2008 13:38:16 -0700
|