camping-abingo 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/classes/ABingoCampingPlugin.html +16 -16
- data/doc/classes/ABingoCampingPlugin/Controllers.html +10 -10
- data/doc/classes/ABingoCampingPlugin/Filters.html +5 -5
- data/doc/classes/ABingoCampingPlugin/Helpers.html +65 -65
- data/doc/classes/ABingoCampingPlugin/Models.html +15 -15
- data/doc/classes/ABingoCampingPlugin/Models/Alternative.html +15 -15
- data/doc/classes/ABingoCampingPlugin/Models/Experiment.html +45 -45
- data/doc/classes/ABingoCampingPlugin/Views.html +15 -15
- data/doc/classes/ActiveSupport/Cache/MemoryStore.html +5 -5
- data/doc/classes/ActiveSupport/Cache/MemoryStore.src/M000001.html +18 -0
- data/doc/classes/CampingABingoTest.html +6 -6
- data/doc/classes/CampingABingoTest.src/M000002.html +24 -0
- data/doc/classes/CampingABingoTest/Controllers/Index.html +5 -5
- data/doc/classes/CampingABingoTest/Controllers/Index.src/M000009.html +18 -0
- data/doc/classes/CampingABingoTest/Controllers/Landing.html +5 -5
- data/doc/classes/CampingABingoTest/Controllers/Landing.src/M000011.html +18 -0
- data/doc/classes/CampingABingoTest/Controllers/SignIn.html +10 -10
- data/doc/classes/CampingABingoTest/Controllers/SignIn.src/M000015.html +18 -0
- data/doc/classes/CampingABingoTest/Controllers/SignIn.src/M000016.html +34 -0
- data/doc/classes/CampingABingoTest/Controllers/SignOut.html +5 -5
- data/doc/classes/CampingABingoTest/Controllers/SignOut.src/M000014.html +21 -0
- data/doc/classes/CampingABingoTest/Controllers/SignUp.html +10 -10
- data/doc/classes/CampingABingoTest/Controllers/SignUp.src/M000012.html +23 -0
- data/doc/classes/CampingABingoTest/Controllers/SignUp.src/M000013.html +33 -0
- data/doc/classes/CampingABingoTest/Controllers/Welcome.html +5 -5
- data/doc/classes/CampingABingoTest/Controllers/Welcome.src/M000010.html +18 -0
- data/doc/classes/CampingABingoTest/Helpers.html +1 -1
- data/doc/classes/CampingABingoTest/Models.html +1 -1
- data/doc/classes/CampingABingoTest/Models/CreateUserSchema.html +11 -11
- data/doc/classes/CampingABingoTest/Models/CreateUserSchema.src/M000017.html +26 -0
- data/doc/classes/CampingABingoTest/Models/CreateUserSchema.src/M000018.html +19 -0
- data/doc/classes/CampingABingoTest/Views.html +30 -30
- data/doc/classes/CampingABingoTest/Views.src/M000003.html +70 -0
- data/doc/classes/CampingABingoTest/Views.src/M000004.html +22 -0
- data/doc/classes/CampingABingoTest/Views.src/M000005.html +51 -0
- data/doc/classes/CampingABingoTest/Views.src/M000006.html +31 -0
- data/doc/classes/CampingABingoTest/Views.src/M000007.html +31 -0
- data/doc/classes/CampingABingoTest/Views.src/M000008.html +20 -0
- data/doc/created.rid +1 -1
- data/doc/files/examples/camping-abingo-test/camping-abingo-test_rb.html +1 -1
- data/doc/files/lib/camping-abingo_rb.html +3 -4
- data/doc/fr_class_index.html +0 -10
- data/doc/fr_file_index.html +0 -1
- data/doc/fr_method_index.html +18 -70
- data/examples/camping-abingo-test/camping-abingo-test-skeleton.rb +456 -0
- data/examples/camping-abingo-test/camping-abingo-test.rb +510 -0
- data/examples/camping-abingo-test/config.ru +26 -0
- data/examples/camping-abingo-test/config/database.yml +4 -0
- data/lib/camping-abingo.rb +1 -10
- metadata +50 -18
@@ -0,0 +1,18 @@
|
|
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>
|
7
|
+
<head>
|
8
|
+
<title>get (CampingABingoTest::Controllers::SignIn)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File examples/camping-abingo-test/camping-abingo-test.rb, line 90</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>
|
15
|
+
<span class="ruby-identifier">render</span> <span class="ruby-identifier">:signin</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,34 @@
|
|
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>
|
7
|
+
<head>
|
8
|
+
<title>post (CampingABingoTest::Controllers::SignIn)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File examples/camping-abingo-test/camping-abingo-test.rb, line 94</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post</span>
|
15
|
+
<span class="ruby-ivar">@user</span> = <span class="ruby-constant">User</span>.<span class="ruby-identifier">find_by_username_and_password</span>(<span class="ruby-identifier">input</span>.<span class="ruby-identifier">username</span>, <span class="ruby-identifier">input</span>.<span class="ruby-identifier">password</span>)
|
16
|
+
|
17
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@user</span>
|
18
|
+
<span class="ruby-ivar">@state</span>.<span class="ruby-identifier">user_id</span> = <span class="ruby-ivar">@user</span>.<span class="ruby-identifier">id</span>
|
19
|
+
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@state</span>.<span class="ruby-identifier">return_to</span>.<span class="ruby-identifier">nil?</span>
|
21
|
+
<span class="ruby-identifier">redirect</span> <span class="ruby-constant">R</span>(<span class="ruby-constant">Welcome</span>)
|
22
|
+
<span class="ruby-keyword kw">else</span>
|
23
|
+
<span class="ruby-identifier">return_to</span> = <span class="ruby-ivar">@state</span>.<span class="ruby-identifier">return_to</span>
|
24
|
+
<span class="ruby-ivar">@state</span>.<span class="ruby-identifier">return_to</span> = <span class="ruby-keyword kw">nil</span>
|
25
|
+
<span class="ruby-identifier">redirect</span>(<span class="ruby-identifier">return_to</span>)
|
26
|
+
<span class="ruby-keyword kw">end</span>
|
27
|
+
<span class="ruby-keyword kw">else</span>
|
28
|
+
<span class="ruby-ivar">@info</span> = <span class="ruby-value str">'Wrong username or password.'</span>
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
30
|
+
|
31
|
+
<span class="ruby-identifier">render</span> <span class="ruby-identifier">:signin</span>
|
32
|
+
<span class="ruby-keyword kw">end</span></pre>
|
33
|
+
</body>
|
34
|
+
</html>
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000014">get</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -108,12 +108,12 @@
|
|
108
108
|
<div id="methods">
|
109
109
|
<h3 class="section-bar">Public Instance methods</h3>
|
110
110
|
|
111
|
-
<div id="method-
|
112
|
-
<a name="
|
111
|
+
<div id="method-M000014" class="method-detail">
|
112
|
+
<a name="M000014"></a>
|
113
113
|
|
114
114
|
<div class="method-heading">
|
115
|
-
<a href="SignOut.src/
|
116
|
-
onclick="popupCode('SignOut.src/
|
115
|
+
<a href="SignOut.src/M000014.html" target="Code" class="method-signature"
|
116
|
+
onclick="popupCode('SignOut.src/M000014.html');return false;">
|
117
117
|
<span class="method-name">get</span><span class="method-args">()</span>
|
118
118
|
</a>
|
119
119
|
</div>
|
@@ -0,0 +1,21 @@
|
|
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>
|
7
|
+
<head>
|
8
|
+
<title>get (CampingABingoTest::Controllers::SignOut)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File examples/camping-abingo-test/camping-abingo-test.rb, line 116</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>
|
15
|
+
<span class="ruby-ivar">@state</span>.<span class="ruby-identifier">user_id</span> = <span class="ruby-keyword kw">nil</span>
|
16
|
+
<span class="ruby-ivar">@state</span>.<span class="ruby-identifier">abingo_identity</span> = <span class="ruby-constant">Abingo</span>.<span class="ruby-identifier">identity</span> = <span class="ruby-identifier">rand</span>(<span class="ruby-value">10</span> <span class="ruby-operator">**</span> <span class="ruby-value">10</span>).<span class="ruby-identifier">to_i</span>
|
17
|
+
|
18
|
+
<span class="ruby-identifier">render</span> <span class="ruby-identifier">:index</span>
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -86,8 +86,8 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000012">get</a>
|
90
|
+
<a href="#M000013">post</a>
|
91
91
|
</div>
|
92
92
|
</div>
|
93
93
|
|
@@ -109,12 +109,12 @@
|
|
109
109
|
<div id="methods">
|
110
110
|
<h3 class="section-bar">Public Instance methods</h3>
|
111
111
|
|
112
|
-
<div id="method-
|
113
|
-
<a name="
|
112
|
+
<div id="method-M000012" class="method-detail">
|
113
|
+
<a name="M000012"></a>
|
114
114
|
|
115
115
|
<div class="method-heading">
|
116
|
-
<a href="SignUp.src/
|
117
|
-
onclick="popupCode('SignUp.src/
|
116
|
+
<a href="SignUp.src/M000012.html" target="Code" class="method-signature"
|
117
|
+
onclick="popupCode('SignUp.src/M000012.html');return false;">
|
118
118
|
<span class="method-name">get</span><span class="method-args">()</span>
|
119
119
|
</a>
|
120
120
|
</div>
|
@@ -123,12 +123,12 @@
|
|
123
123
|
</div>
|
124
124
|
</div>
|
125
125
|
|
126
|
-
<div id="method-
|
127
|
-
<a name="
|
126
|
+
<div id="method-M000013" class="method-detail">
|
127
|
+
<a name="M000013"></a>
|
128
128
|
|
129
129
|
<div class="method-heading">
|
130
|
-
<a href="SignUp.src/
|
131
|
-
onclick="popupCode('SignUp.src/
|
130
|
+
<a href="SignUp.src/M000013.html" target="Code" class="method-signature"
|
131
|
+
onclick="popupCode('SignUp.src/M000013.html');return false;">
|
132
132
|
<span class="method-name">post</span><span class="method-args">()</span>
|
133
133
|
</a>
|
134
134
|
</div>
|
@@ -0,0 +1,23 @@
|
|
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>
|
7
|
+
<head>
|
8
|
+
<title>get (CampingABingoTest::Controllers::SignUp)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File examples/camping-abingo-test/camping-abingo-test.rb, line 125</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@input</span>.<span class="ruby-identifier">special_promo</span>
|
16
|
+
<span class="ruby-identifier">bingo!</span> <span class="ruby-value str">"special_promo"</span>
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
18
|
+
<span class="ruby-identifier">bingo!</span> <span class="ruby-value str">"call_to_action"</span>
|
19
|
+
|
20
|
+
<span class="ruby-identifier">render</span> <span class="ruby-identifier">:signup</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,33 @@
|
|
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>
|
7
|
+
<head>
|
8
|
+
<title>post (CampingABingoTest::Controllers::SignUp)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File examples/camping-abingo-test/camping-abingo-test.rb, line 134</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post</span>
|
15
|
+
<span class="ruby-ivar">@user</span> = <span class="ruby-constant">User</span>.<span class="ruby-identifier">find_by_username</span>(<span class="ruby-identifier">input</span>.<span class="ruby-identifier">username</span>)
|
16
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@user</span>
|
17
|
+
<span class="ruby-ivar">@info</span> = <span class="ruby-value str">'A user account already exist for this username.'</span>
|
18
|
+
<span class="ruby-keyword kw">else</span>
|
19
|
+
<span class="ruby-ivar">@user</span> = <span class="ruby-constant">User</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">:username</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">input</span>.<span class="ruby-identifier">username</span>,
|
20
|
+
<span class="ruby-identifier">:password</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">input</span>.<span class="ruby-identifier">password</span>
|
21
|
+
<span class="ruby-ivar">@user</span>.<span class="ruby-identifier">save</span>
|
22
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@user</span>
|
23
|
+
<span class="ruby-ivar">@state</span>.<span class="ruby-identifier">user_id</span> = <span class="ruby-ivar">@user</span>.<span class="ruby-identifier">id</span>
|
24
|
+
<span class="ruby-ivar">@state</span>.<span class="ruby-identifier">abingo_identity</span> = <span class="ruby-ivar">@user</span>.<span class="ruby-identifier">id</span>
|
25
|
+
<span class="ruby-identifier">redirect</span> <span class="ruby-constant">R</span>(<span class="ruby-constant">Welcome</span>)
|
26
|
+
<span class="ruby-keyword kw">else</span>
|
27
|
+
<span class="ruby-ivar">@info</span> = <span class="ruby-ivar">@user</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">full_messages</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@user</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">empty?</span>
|
28
|
+
<span class="ruby-keyword kw">end</span>
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
30
|
+
<span class="ruby-identifier">render</span> <span class="ruby-identifier">:signup</span>
|
31
|
+
<span class="ruby-keyword kw">end</span></pre>
|
32
|
+
</body>
|
33
|
+
</html>
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000010">get</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -108,12 +108,12 @@
|
|
108
108
|
<div id="methods">
|
109
109
|
<h3 class="section-bar">Public Instance methods</h3>
|
110
110
|
|
111
|
-
<div id="method-
|
112
|
-
<a name="
|
111
|
+
<div id="method-M000010" class="method-detail">
|
112
|
+
<a name="M000010"></a>
|
113
113
|
|
114
114
|
<div class="method-heading">
|
115
|
-
<a href="Welcome.src/
|
116
|
-
onclick="popupCode('Welcome.src/
|
115
|
+
<a href="Welcome.src/M000010.html" target="Code" class="method-signature"
|
116
|
+
onclick="popupCode('Welcome.src/M000010.html');return false;">
|
117
117
|
<span class="method-name">get</span><span class="method-args">()</span>
|
118
118
|
</a>
|
119
119
|
</div>
|
@@ -0,0 +1,18 @@
|
|
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>
|
7
|
+
<head>
|
8
|
+
<title>get (CampingABingoTest::Controllers::Welcome)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File examples/camping-abingo-test/camping-abingo-test.rb, line 155</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>
|
15
|
+
<span class="ruby-identifier">render</span> <span class="ruby-identifier">:welcome</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -85,7 +85,7 @@
|
|
85
85
|
<h3 class="section-bar">Included Modules</h3>
|
86
86
|
|
87
87
|
<div id="includes-list">
|
88
|
-
<span class="include-name"
|
88
|
+
<span class="include-name">ABingoCampingPlugin::Helpers</span>
|
89
89
|
</div>
|
90
90
|
</div>
|
91
91
|
|
@@ -85,7 +85,7 @@
|
|
85
85
|
<h3 class="section-bar">Included Modules</h3>
|
86
86
|
|
87
87
|
<div id="includes-list">
|
88
|
-
<span class="include-name"
|
88
|
+
<span class="include-name">ABingoCampingPlugin::Models</span>
|
89
89
|
</div>
|
90
90
|
</div>
|
91
91
|
|
@@ -65,7 +65,7 @@
|
|
65
65
|
<tr class="top-aligned-row">
|
66
66
|
<td><strong>Parent:</strong></td>
|
67
67
|
<td>
|
68
|
-
V1.
|
68
|
+
V1.1
|
69
69
|
</td>
|
70
70
|
</tr>
|
71
71
|
</table>
|
@@ -86,8 +86,8 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000018">down</a>
|
90
|
+
<a href="#M000017">up</a>
|
91
91
|
</div>
|
92
92
|
</div>
|
93
93
|
|
@@ -109,12 +109,12 @@
|
|
109
109
|
<div id="methods">
|
110
110
|
<h3 class="section-bar">Public Class methods</h3>
|
111
111
|
|
112
|
-
<div id="method-
|
113
|
-
<a name="
|
112
|
+
<div id="method-M000018" class="method-detail">
|
113
|
+
<a name="M000018"></a>
|
114
114
|
|
115
115
|
<div class="method-heading">
|
116
|
-
<a href="CreateUserSchema.src/
|
117
|
-
onclick="popupCode('CreateUserSchema.src/
|
116
|
+
<a href="CreateUserSchema.src/M000018.html" target="Code" class="method-signature"
|
117
|
+
onclick="popupCode('CreateUserSchema.src/M000018.html');return false;">
|
118
118
|
<span class="method-name">down</span><span class="method-args">()</span>
|
119
119
|
</a>
|
120
120
|
</div>
|
@@ -123,12 +123,12 @@
|
|
123
123
|
</div>
|
124
124
|
</div>
|
125
125
|
|
126
|
-
<div id="method-
|
127
|
-
<a name="
|
126
|
+
<div id="method-M000017" class="method-detail">
|
127
|
+
<a name="M000017"></a>
|
128
128
|
|
129
129
|
<div class="method-heading">
|
130
|
-
<a href="CreateUserSchema.src/
|
131
|
-
onclick="popupCode('CreateUserSchema.src/
|
130
|
+
<a href="CreateUserSchema.src/M000017.html" target="Code" class="method-signature"
|
131
|
+
onclick="popupCode('CreateUserSchema.src/M000017.html');return false;">
|
132
132
|
<span class="method-name">up</span><span class="method-args">()</span>
|
133
133
|
</a>
|
134
134
|
</div>
|
@@ -0,0 +1,26 @@
|
|
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>
|
7
|
+
<head>
|
8
|
+
<title>up (CampingABingoTest::Models::CreateUserSchema)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File examples/camping-abingo-test/camping-abingo-test.rb, line 49</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">up</span>
|
15
|
+
<span class="ruby-identifier">create_table</span> <span class="ruby-identifier">:CampingABingoTest_users</span>, <span class="ruby-identifier">:force</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
|
16
|
+
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">integer</span> <span class="ruby-identifier">:id</span>, <span class="ruby-identifier">:null</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">false</span>
|
17
|
+
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:username</span>
|
18
|
+
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">string</span> <span class="ruby-identifier">:password</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
|
21
|
+
<span class="ruby-constant">User</span>.<span class="ruby-identifier">create</span> <span class="ruby-identifier">:username</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'admin'</span>, <span class="ruby-identifier">:password</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'camping'</span>
|
22
|
+
|
23
|
+
<span class="ruby-constant">ABingoCampingPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Models</span>.<span class="ruby-identifier">up</span>
|
24
|
+
<span class="ruby-keyword kw">end</span></pre>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
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>
|
7
|
+
<head>
|
8
|
+
<title>down (CampingABingoTest::Models::CreateUserSchema)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File examples/camping-abingo-test/camping-abingo-test.rb, line 61</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">down</span>
|
15
|
+
<span class="ruby-constant">ABingoCampingPlugin</span><span class="ruby-operator">::</span><span class="ruby-constant">Models</span>.<span class="ruby-identifier">down</span>
|
16
|
+
<span class="ruby-identifier">drop_table</span> <span class="ruby-identifier">:CampingABingoTest_users</span>
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -80,12 +80,12 @@
|
|
80
80
|
<h3 class="section-bar">Methods</h3>
|
81
81
|
|
82
82
|
<div class="name-list">
|
83
|
-
<a href="#
|
84
|
-
<a href="#
|
85
|
-
<a href="#
|
86
|
-
<a href="#
|
87
|
-
<a href="#
|
88
|
-
<a href="#
|
83
|
+
<a href="#M000004">index</a>
|
84
|
+
<a href="#M000005">landing</a>
|
85
|
+
<a href="#M000003">layout</a>
|
86
|
+
<a href="#M000006">signin</a>
|
87
|
+
<a href="#M000007">signup</a>
|
88
|
+
<a href="#M000008">welcome</a>
|
89
89
|
</div>
|
90
90
|
</div>
|
91
91
|
|
@@ -107,12 +107,12 @@
|
|
107
107
|
<div id="methods">
|
108
108
|
<h3 class="section-bar">Public Instance methods</h3>
|
109
109
|
|
110
|
-
<div id="method-
|
111
|
-
<a name="
|
110
|
+
<div id="method-M000004" class="method-detail">
|
111
|
+
<a name="M000004"></a>
|
112
112
|
|
113
113
|
<div class="method-heading">
|
114
|
-
<a href="Views.src/
|
115
|
-
onclick="popupCode('Views.src/
|
114
|
+
<a href="Views.src/M000004.html" target="Code" class="method-signature"
|
115
|
+
onclick="popupCode('Views.src/M000004.html');return false;">
|
116
116
|
<span class="method-name">index</span><span class="method-args">()</span>
|
117
117
|
</a>
|
118
118
|
</div>
|
@@ -121,12 +121,12 @@
|
|
121
121
|
</div>
|
122
122
|
</div>
|
123
123
|
|
124
|
-
<div id="method-
|
125
|
-
<a name="
|
124
|
+
<div id="method-M000005" class="method-detail">
|
125
|
+
<a name="M000005"></a>
|
126
126
|
|
127
127
|
<div class="method-heading">
|
128
|
-
<a href="Views.src/
|
129
|
-
onclick="popupCode('Views.src/
|
128
|
+
<a href="Views.src/M000005.html" target="Code" class="method-signature"
|
129
|
+
onclick="popupCode('Views.src/M000005.html');return false;">
|
130
130
|
<span class="method-name">landing</span><span class="method-args">()</span>
|
131
131
|
</a>
|
132
132
|
</div>
|
@@ -135,12 +135,12 @@
|
|
135
135
|
</div>
|
136
136
|
</div>
|
137
137
|
|
138
|
-
<div id="method-
|
139
|
-
<a name="
|
138
|
+
<div id="method-M000003" class="method-detail">
|
139
|
+
<a name="M000003"></a>
|
140
140
|
|
141
141
|
<div class="method-heading">
|
142
|
-
<a href="Views.src/
|
143
|
-
onclick="popupCode('Views.src/
|
142
|
+
<a href="Views.src/M000003.html" target="Code" class="method-signature"
|
143
|
+
onclick="popupCode('Views.src/M000003.html');return false;">
|
144
144
|
<span class="method-name">layout</span><span class="method-args">() {|| ...}</span>
|
145
145
|
</a>
|
146
146
|
</div>
|
@@ -149,12 +149,12 @@
|
|
149
149
|
</div>
|
150
150
|
</div>
|
151
151
|
|
152
|
-
<div id="method-
|
153
|
-
<a name="
|
152
|
+
<div id="method-M000006" class="method-detail">
|
153
|
+
<a name="M000006"></a>
|
154
154
|
|
155
155
|
<div class="method-heading">
|
156
|
-
<a href="Views.src/
|
157
|
-
onclick="popupCode('Views.src/
|
156
|
+
<a href="Views.src/M000006.html" target="Code" class="method-signature"
|
157
|
+
onclick="popupCode('Views.src/M000006.html');return false;">
|
158
158
|
<span class="method-name">signin</span><span class="method-args">()</span>
|
159
159
|
</a>
|
160
160
|
</div>
|
@@ -163,12 +163,12 @@
|
|
163
163
|
</div>
|
164
164
|
</div>
|
165
165
|
|
166
|
-
<div id="method-
|
167
|
-
<a name="
|
166
|
+
<div id="method-M000007" class="method-detail">
|
167
|
+
<a name="M000007"></a>
|
168
168
|
|
169
169
|
<div class="method-heading">
|
170
|
-
<a href="Views.src/
|
171
|
-
onclick="popupCode('Views.src/
|
170
|
+
<a href="Views.src/M000007.html" target="Code" class="method-signature"
|
171
|
+
onclick="popupCode('Views.src/M000007.html');return false;">
|
172
172
|
<span class="method-name">signup</span><span class="method-args">()</span>
|
173
173
|
</a>
|
174
174
|
</div>
|
@@ -177,12 +177,12 @@
|
|
177
177
|
</div>
|
178
178
|
</div>
|
179
179
|
|
180
|
-
<div id="method-
|
181
|
-
<a name="
|
180
|
+
<div id="method-M000008" class="method-detail">
|
181
|
+
<a name="M000008"></a>
|
182
182
|
|
183
183
|
<div class="method-heading">
|
184
|
-
<a href="Views.src/
|
185
|
-
onclick="popupCode('Views.src/
|
184
|
+
<a href="Views.src/M000008.html" target="Code" class="method-signature"
|
185
|
+
onclick="popupCode('Views.src/M000008.html');return false;">
|
186
186
|
<span class="method-name">welcome</span><span class="method-args">()</span>
|
187
187
|
</a>
|
188
188
|
</div>
|