inherited_resources_views 0.3.0 → 0.3.1
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/VERSION +1 -1
- data/inherited_resources_views.gemspec +2 -2
- data/lib/generators/inherited_resources_views/templates/app/views/inherited_resources/_form.html.erb +1 -1
- data/lib/generators/inherited_resources_views/templates/app/views/inherited_resources/edit.html.erb +2 -2
- data/lib/generators/inherited_resources_views/templates/app/views/inherited_resources/index.html.erb +4 -4
- data/lib/generators/inherited_resources_views/templates/app/views/inherited_resources/new.html.erb +1 -1
- data/lib/generators/inherited_resources_views/templates/app/views/inherited_resources/show.html.erb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{inherited_resources_views}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Fred Wu"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-30}
|
13
13
|
s.description = %q{Using Inherited Resources is an excellent way to reduce the amount of repetition in your controllers. But what about views? A lot of times resources share the same views, so why not DRY 'em up using Inherited Resources Views!}
|
14
14
|
s.email = %q{ifredwu@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/generators/inherited_resources_views/templates/app/views/inherited_resources/index.html.erb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<p><%= link_to "New",
|
1
|
+
<p><%= link_to "New", new_resource_url %></p>
|
2
2
|
|
3
3
|
<% if collection.any? %>
|
4
4
|
<table>
|
@@ -15,9 +15,9 @@
|
|
15
15
|
<% r.attributes.each do |a| %>
|
16
16
|
<td><%= a[1] %></td>
|
17
17
|
<% end %>
|
18
|
-
<td><%= link_to "Show", r %></td>
|
19
|
-
<td><%= link_to "Edit",
|
20
|
-
<td><%= link_to "Destroy", r, :confirm => 'Are you sure?', :method => :delete %></td>
|
18
|
+
<td><%= link_to "Show", resource_url(r) %></td>
|
19
|
+
<td><%= link_to "Edit", edit_resource_url(r) %></td>
|
20
|
+
<td><%= link_to "Destroy", resource_url(r), :confirm => 'Are you sure?', :method => :delete %></td>
|
21
21
|
</tr>
|
22
22
|
<% end %>
|
23
23
|
</tbody>
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 1
|
9
|
+
version: 0.3.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Fred Wu
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-09-30 00:00:00 +10:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|