stage 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.1.8 2008-04-20
2
+
3
+ * Several bug fixes while learning the Merb helpers.
4
+
1
5
  == 0.0.1 2008-04-17
2
6
 
3
7
  * 1 major enhancement:
data/README.txt CHANGED
@@ -1,32 +1,32 @@
1
1
  = stage
2
2
 
3
- * FIX (url)
4
3
 
5
4
  == DESCRIPTION:
6
5
 
7
- Stage is a code template generator that utilizes helpers as presenters for a cleaner (designer friendly) view.
6
+ Stage is a code template generator that utilizes helpers as presenters to reduce ruby code used in views. The initial release only works with Merb and DataMapper. Support for RubyOnRails, ActiveRecord, Sequel and other ORMs will be added as I get the time. Of course, contributions are welcome if you like the concept.
7
+
8
8
 
9
9
  == FEATURES/PROBLEMS:
10
10
 
11
- * FIX (list of features or problems)
11
+ Currently only supports Merb + DataMapper.
12
+ Need to add a confirm script to the delete link.
12
13
 
13
14
  == SYNOPSIS:
14
15
 
15
- FIX (code sample of usage)
16
16
 
17
17
  == REQUIREMENTS:
18
18
 
19
- * FIX (list of requirements)
19
+ Merb + DataMapper
20
20
 
21
21
  == INSTALL:
22
22
 
23
- * FIX (sudo gem install, anything else)
23
+ sudo gem install stage
24
24
 
25
25
  == LICENSE:
26
26
 
27
27
  (The MIT License)
28
28
 
29
- Copyright (c) 2008 FIX
29
+ Copyright (c) 2008 Andrew Stone
30
30
 
31
31
  Permission is hereby granted, free of charge, to any person obtaining
32
32
  a copy of this software and associated documentation files (the
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 = 8
5
+ TINY = 9
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  <%%= error_messages_for @<%= resource_name %> %>
7
7
 
8
- <%% form_for(:<%= resource_name %>, :action => url(:<%= resource_name %>)) do %>
8
+ <%% form_for(:<%= resource_name %>, :action => url(:<%= resource_name %>, @<%= resource_name %>)) do %>
9
9
  <%%= partial :data %>
10
10
  <p> <%%= submit_button submit_label %> </p>
11
11
  <%% end %>
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.7</a>
36
+ <a href="http://rubyforge.org/projects/stage" class="numbers">0.1.9</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;stage&#8217;</h1>
39
39
 
@@ -150,7 +150,7 @@
150
150
  <span class="ident">submit_label</span> <span class="punct">=</span> <span class="punct">&quot;</span><span class="string">Create</span><span class="punct">&quot;</span> <span class="keyword">if</span> <span class="attribute">@page</span><span class="punct">.</span><span class="ident">new_record?</span>
151
151
  <span class="punct">-%&gt;</span><span class="string">
152
152
 
153
- &lt;%= error_messages_for :page %</span><span class="punct">&gt;</span>
153
+ &lt;%= error_messages_for @page %</span><span class="punct">&gt;</span>
154
154
 
155
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">
156
156
  &lt;%= partial :data %</span><span class="punct">&gt;</span>
data/website/index.txt CHANGED
@@ -107,7 +107,7 @@ The form partial:
107
107
  submit_label = "Create" if @page.new_record?
108
108
  -%>
109
109
 
110
- <%= error_messages_for :page %>
110
+ <%= error_messages_for @page %>
111
111
 
112
112
  <% form_for(:page, :action => url(:page)) do %>
113
113
  <%= partial :data %>
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.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone