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.
Files changed (50) hide show
  1. data/doc/classes/ABingoCampingPlugin.html +16 -16
  2. data/doc/classes/ABingoCampingPlugin/Controllers.html +10 -10
  3. data/doc/classes/ABingoCampingPlugin/Filters.html +5 -5
  4. data/doc/classes/ABingoCampingPlugin/Helpers.html +65 -65
  5. data/doc/classes/ABingoCampingPlugin/Models.html +15 -15
  6. data/doc/classes/ABingoCampingPlugin/Models/Alternative.html +15 -15
  7. data/doc/classes/ABingoCampingPlugin/Models/Experiment.html +45 -45
  8. data/doc/classes/ABingoCampingPlugin/Views.html +15 -15
  9. data/doc/classes/ActiveSupport/Cache/MemoryStore.html +5 -5
  10. data/doc/classes/ActiveSupport/Cache/MemoryStore.src/M000001.html +18 -0
  11. data/doc/classes/CampingABingoTest.html +6 -6
  12. data/doc/classes/CampingABingoTest.src/M000002.html +24 -0
  13. data/doc/classes/CampingABingoTest/Controllers/Index.html +5 -5
  14. data/doc/classes/CampingABingoTest/Controllers/Index.src/M000009.html +18 -0
  15. data/doc/classes/CampingABingoTest/Controllers/Landing.html +5 -5
  16. data/doc/classes/CampingABingoTest/Controllers/Landing.src/M000011.html +18 -0
  17. data/doc/classes/CampingABingoTest/Controllers/SignIn.html +10 -10
  18. data/doc/classes/CampingABingoTest/Controllers/SignIn.src/M000015.html +18 -0
  19. data/doc/classes/CampingABingoTest/Controllers/SignIn.src/M000016.html +34 -0
  20. data/doc/classes/CampingABingoTest/Controllers/SignOut.html +5 -5
  21. data/doc/classes/CampingABingoTest/Controllers/SignOut.src/M000014.html +21 -0
  22. data/doc/classes/CampingABingoTest/Controllers/SignUp.html +10 -10
  23. data/doc/classes/CampingABingoTest/Controllers/SignUp.src/M000012.html +23 -0
  24. data/doc/classes/CampingABingoTest/Controllers/SignUp.src/M000013.html +33 -0
  25. data/doc/classes/CampingABingoTest/Controllers/Welcome.html +5 -5
  26. data/doc/classes/CampingABingoTest/Controllers/Welcome.src/M000010.html +18 -0
  27. data/doc/classes/CampingABingoTest/Helpers.html +1 -1
  28. data/doc/classes/CampingABingoTest/Models.html +1 -1
  29. data/doc/classes/CampingABingoTest/Models/CreateUserSchema.html +11 -11
  30. data/doc/classes/CampingABingoTest/Models/CreateUserSchema.src/M000017.html +26 -0
  31. data/doc/classes/CampingABingoTest/Models/CreateUserSchema.src/M000018.html +19 -0
  32. data/doc/classes/CampingABingoTest/Views.html +30 -30
  33. data/doc/classes/CampingABingoTest/Views.src/M000003.html +70 -0
  34. data/doc/classes/CampingABingoTest/Views.src/M000004.html +22 -0
  35. data/doc/classes/CampingABingoTest/Views.src/M000005.html +51 -0
  36. data/doc/classes/CampingABingoTest/Views.src/M000006.html +31 -0
  37. data/doc/classes/CampingABingoTest/Views.src/M000007.html +31 -0
  38. data/doc/classes/CampingABingoTest/Views.src/M000008.html +20 -0
  39. data/doc/created.rid +1 -1
  40. data/doc/files/examples/camping-abingo-test/camping-abingo-test_rb.html +1 -1
  41. data/doc/files/lib/camping-abingo_rb.html +3 -4
  42. data/doc/fr_class_index.html +0 -10
  43. data/doc/fr_file_index.html +0 -1
  44. data/doc/fr_method_index.html +18 -70
  45. data/examples/camping-abingo-test/camping-abingo-test-skeleton.rb +456 -0
  46. data/examples/camping-abingo-test/camping-abingo-test.rb +510 -0
  47. data/examples/camping-abingo-test/config.ru +26 -0
  48. data/examples/camping-abingo-test/config/database.yml +4 -0
  49. data/lib/camping-abingo.rb +1 -10
  50. 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="#M000029">get</a>&nbsp;&nbsp;
89
+ <a href="#M000014">get</a>&nbsp;&nbsp;
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-M000029" class="method-detail">
112
- <a name="M000029"></a>
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/M000029.html" target="Code" class="method-signature"
116
- onclick="popupCode('SignOut.src/M000029.html');return false;">
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="#M000027">get</a>&nbsp;&nbsp;
90
- <a href="#M000028">post</a>&nbsp;&nbsp;
89
+ <a href="#M000012">get</a>&nbsp;&nbsp;
90
+ <a href="#M000013">post</a>&nbsp;&nbsp;
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-M000027" class="method-detail">
113
- <a name="M000027"></a>
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/M000027.html" target="Code" class="method-signature"
117
- onclick="popupCode('SignUp.src/M000027.html');return false;">
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-M000028" class="method-detail">
127
- <a name="M000028"></a>
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/M000028.html" target="Code" class="method-signature"
131
- onclick="popupCode('SignUp.src/M000028.html');return false;">
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">&quot;special_promo&quot;</span>
17
+ <span class="ruby-keyword kw">end</span>
18
+ <span class="ruby-identifier">bingo!</span> <span class="ruby-value str">&quot;call_to_action&quot;</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">&gt;</span> <span class="ruby-identifier">input</span>.<span class="ruby-identifier">username</span>,
20
+ <span class="ruby-identifier">:password</span> =<span class="ruby-operator">&gt;</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="#M000025">get</a>&nbsp;&nbsp;
89
+ <a href="#M000010">get</a>&nbsp;&nbsp;
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-M000025" class="method-detail">
112
- <a name="M000025"></a>
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/M000025.html" target="Code" class="method-signature"
116
- onclick="popupCode('Welcome.src/M000025.html');return false;">
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"><a href="../ABingoCampingPlugin/Helpers.html">ABingoCampingPlugin::Helpers</a></span>
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"><a href="../ABingoCampingPlugin/Models.html">ABingoCampingPlugin::Models</a></span>
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.0
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="#M000033">down</a>&nbsp;&nbsp;
90
- <a href="#M000032">up</a>&nbsp;&nbsp;
89
+ <a href="#M000018">down</a>&nbsp;&nbsp;
90
+ <a href="#M000017">up</a>&nbsp;&nbsp;
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-M000033" class="method-detail">
113
- <a name="M000033"></a>
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/M000033.html" target="Code" class="method-signature"
117
- onclick="popupCode('CreateUserSchema.src/M000033.html');return false;">
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-M000032" class="method-detail">
127
- <a name="M000032"></a>
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/M000032.html" target="Code" class="method-signature"
131
- onclick="popupCode('CreateUserSchema.src/M000032.html');return false;">
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">&gt;</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">&gt;</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">&gt;</span> <span class="ruby-value str">'admin'</span>, <span class="ruby-identifier">:password</span> =<span class="ruby-operator">&gt;</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="#M000019">index</a>&nbsp;&nbsp;
84
- <a href="#M000020">landing</a>&nbsp;&nbsp;
85
- <a href="#M000018">layout</a>&nbsp;&nbsp;
86
- <a href="#M000021">signin</a>&nbsp;&nbsp;
87
- <a href="#M000022">signup</a>&nbsp;&nbsp;
88
- <a href="#M000023">welcome</a>&nbsp;&nbsp;
83
+ <a href="#M000004">index</a>&nbsp;&nbsp;
84
+ <a href="#M000005">landing</a>&nbsp;&nbsp;
85
+ <a href="#M000003">layout</a>&nbsp;&nbsp;
86
+ <a href="#M000006">signin</a>&nbsp;&nbsp;
87
+ <a href="#M000007">signup</a>&nbsp;&nbsp;
88
+ <a href="#M000008">welcome</a>&nbsp;&nbsp;
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-M000019" class="method-detail">
111
- <a name="M000019"></a>
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/M000019.html" target="Code" class="method-signature"
115
- onclick="popupCode('Views.src/M000019.html');return false;">
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-M000020" class="method-detail">
125
- <a name="M000020"></a>
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/M000020.html" target="Code" class="method-signature"
129
- onclick="popupCode('Views.src/M000020.html');return false;">
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-M000018" class="method-detail">
139
- <a name="M000018"></a>
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/M000018.html" target="Code" class="method-signature"
143
- onclick="popupCode('Views.src/M000018.html');return false;">
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-M000021" class="method-detail">
153
- <a name="M000021"></a>
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/M000021.html" target="Code" class="method-signature"
157
- onclick="popupCode('Views.src/M000021.html');return false;">
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-M000022" class="method-detail">
167
- <a name="M000022"></a>
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/M000022.html" target="Code" class="method-signature"
171
- onclick="popupCode('Views.src/M000022.html');return false;">
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-M000023" class="method-detail">
181
- <a name="M000023"></a>
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/M000023.html" target="Code" class="method-signature"
185
- onclick="popupCode('Views.src/M000023.html');return false;">
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>