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
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
|
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
|
-
|
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
|
-
|
19
|
+
Merb + DataMapper
|
20
20
|
|
21
21
|
== INSTALL:
|
22
22
|
|
23
|
-
|
23
|
+
sudo gem install stage
|
24
24
|
|
25
25
|
== LICENSE:
|
26
26
|
|
27
27
|
(The MIT License)
|
28
28
|
|
29
|
-
Copyright (c) 2008
|
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
@@ -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.
|
36
|
+
<a href="http://rubyforge.org/projects/stage" class="numbers">0.1.9</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘stage’</h1>
|
39
39
|
|
@@ -150,7 +150,7 @@
|
|
150
150
|
<span class="ident">submit_label</span> <span class="punct">=</span> <span class="punct">"</span><span class="string">Create</span><span class="punct">"</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">-%></span><span class="string">
|
152
152
|
|
153
|
-
<%= error_messages_for
|
153
|
+
<%= error_messages_for @page %</span><span class="punct">></span>
|
154
154
|
|
155
155
|
<span class="punct"><%</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">=></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">%></span><span class="string">
|
156
156
|
<%= partial :data %</span><span class="punct">></span>
|
data/website/index.txt
CHANGED