stage 0.1.9 → 0.1.10

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/History.txt CHANGED
@@ -1,3 +1,12 @@
1
+ == 0.1.10 2008-04-20
2
+
3
+ * Fix to controller to use delete instead of destroy.
4
+ * Fix to index.erb.html to use delete terminology
5
+
6
+ == 0.1.9 2008-04-20
7
+
8
+ * Fix to generated form partial. Edit functionality was broken.
9
+
1
10
  == 0.1.8 2008-04-20
2
11
 
3
12
  * Several bug fixes while learning the Merb helpers.
data/lib/stage/version.rb CHANGED
@@ -2,7 +2,7 @@ module Stage #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 9
5
+ TINY = 10
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -44,7 +44,7 @@
44
44
  <%= " " * counter %> end
45
45
  <%= " " * counter %> end
46
46
 
47
- <%= " " * counter %> def destroy
47
+ <%= " " * counter %> def delete
48
48
  <%= " " * counter %> if @<%= resource_name %>.destroy!
49
49
  <%= " " * counter %> redirect url(:<%= resource_name %>)
50
50
  <%= " " * counter %> else
@@ -14,7 +14,7 @@
14
14
  <% end -%>
15
15
  <td><%%= link_to 'Show', url(:<%= resource_name %>, <%= resource_name %>) %></td>
16
16
  <td><%%= link_to 'Edit', url(:edit_<%= resource_name %>, <%= resource_name %>) %></td>
17
- <td><%%= link_to 'Destroy', url(:delete_<%= resource_name %>, <%= resource_name %>) %></td>
17
+ <td><%%= link_to 'Delete', url(:delete_<%= resource_name %>, <%= resource_name %>) %></td>
18
18
  </tr>
19
19
  <%% end %>
20
20
  </table>
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>stage</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/stage"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/stage" class="numbers">0.1.9</a>
36
+ <a href="http://rubyforge.org/projects/stage" class="numbers">0.1.10</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;stage&#8217;</h1>
39
39
 
@@ -115,7 +115,7 @@
115
115
  <span class="keyword">end</span>
116
116
  <span class="keyword">end</span>
117
117
 
118
- <span class="keyword">def </span><span class="method">destroy</span>
118
+ <span class="keyword">def </span><span class="method">delete</span>
119
119
  <span class="keyword">if</span> <span class="attribute">@page</span><span class="punct">.</span><span class="ident">destroy!</span>
120
120
  <span class="ident">redirect</span> <span class="ident">url</span><span class="punct">(</span><span class="symbol">:page</span><span class="punct">)</span>
121
121
  <span class="keyword">else</span>
@@ -152,7 +152,7 @@
152
152
 
153
153
  &lt;%= error_messages_for @page %</span><span class="punct">&gt;</span>
154
154
 
155
- <span class="punct">&lt;%</span> <span class="ident">form_for</span><span class="punct">(</span><span class="symbol">:page</span><span class="punct">,</span> <span class="symbol">:action</span> <span class="punct">=&gt;</span> <span class="ident">url</span><span class="punct">(</span><span class="symbol">:page</span><span class="punct">))</span> <span class="keyword">do</span> <span class="punct">%&gt;</span><span class="string">
155
+ <span class="punct">&lt;%</span> <span class="ident">form_for</span><span class="punct">(</span><span class="symbol">:page</span><span class="punct">,</span> <span class="symbol">:action</span> <span class="punct">=&gt;</span> <span class="ident">url</span><span class="punct">(</span><span class="symbol">:page</span><span class="punct">,</span><span class="attribute">@page</span><span class="punct">))</span> <span class="keyword">do</span> <span class="punct">%&gt;</span><span class="string">
156
156
  &lt;%= partial :data %</span><span class="punct">&gt;</span>
157
157
  <span class="punct">&lt;</span><span class="ident">p</span><span class="punct">&gt;</span> <span class="punct">&lt;%=</span><span class="string"> submit_button submit_label %&gt; &lt;/p&gt;
158
158
  &lt;% end %&gt;<span class="normal">
@@ -234,7 +234,14 @@
234
234
  </p>
235
235
  </div>
236
236
 
237
- <!-- insert site tracking codes here, like Google Urchin -->
238
-
237
+ <script type="text/javascript">
238
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
239
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
240
+ </script>
241
+ <script type="text/javascript">
242
+ var pageTracker = _gat._getTracker("UA-4186995-1");
243
+ pageTracker._initData();
244
+ pageTracker._trackPageview();
245
+ </script>
239
246
  </body>
240
247
  </html>
data/website/index.txt CHANGED
@@ -74,7 +74,7 @@ The controller generated:
74
74
  end
75
75
  end
76
76
 
77
- def destroy
77
+ def delete
78
78
  if @page.destroy!
79
79
  redirect url(:page)
80
80
  else
@@ -109,7 +109,7 @@ The form partial:
109
109
 
110
110
  <%= error_messages_for @page %>
111
111
 
112
- <% form_for(:page, :action => url(:page)) do %>
112
+ <% form_for(:page, :action => url(:page,@page)) do %>
113
113
  <%= partial :data %>
114
114
  <p> <%= submit_button submit_label %> </p>
115
115
  <% end %>
@@ -42,7 +42,14 @@
42
42
  </p>
43
43
  </div>
44
44
 
45
- <!-- insert site tracking codes here, like Google Urchin -->
46
-
45
+ <script type="text/javascript">
46
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
47
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
48
+ </script>
49
+ <script type="text/javascript">
50
+ var pageTracker = _gat._getTracker("UA-4186995-1");
51
+ pageTracker._initData();
52
+ pageTracker._trackPageview();
53
+ </script>
47
54
  </body>
48
55
  </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone