jzajpt-blueberry_scaffold 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/blueberry_scaffold.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{blueberry_scaffold}
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Ji\305\231\303\255 Zajpt"]
|
9
|
-
s.date = %q{2009-06-
|
9
|
+
s.date = %q{2009-06-08}
|
10
10
|
s.description = %q{Scaffold generator featuring i18n, shoulda & factory girl tests.}
|
11
11
|
s.email = %q{jzajpt@blueberryapps.com}
|
12
12
|
s.extra_rdoc_files = [
|
@@ -48,7 +48,7 @@ class <%= controller_test_name %> < ActionController::TestCase
|
|
48
48
|
should_render_a_form
|
49
49
|
should_not_set_the_flash
|
50
50
|
|
51
|
-
should "
|
51
|
+
should "build new <%= class_name %>" do
|
52
52
|
assert assigns(:<%= singular_name %>).new_record?
|
53
53
|
end
|
54
54
|
end
|
@@ -5,16 +5,23 @@ module <%= helper_class_name %>
|
|
5
5
|
end
|
6
6
|
|
7
7
|
<% end -%>
|
8
|
+
<%- if action? :new -%>
|
9
|
+
def link_to_new_<%= singular_name %>
|
10
|
+
link_to t('<%= i18n_prefix %>.new.link'), <%= new_item_path %>, :class => 'action-new'
|
11
|
+
end
|
12
|
+
|
13
|
+
<%- end -%>
|
8
14
|
<%- if action? :edit -%>
|
9
15
|
def link_to_edit_<%= singular_name %>(<%= singular_name %>, *args)
|
10
|
-
link_to t('common.edit'), <%= edit_item_path %>(<%= singular_name %>, *args)
|
16
|
+
link_to t('common.edit'), <%= edit_item_path %>(<%= singular_name %>, *args),
|
17
|
+
:class => 'action-edit'
|
11
18
|
end
|
12
19
|
|
13
20
|
<%- end -%>
|
14
21
|
<%- if action? :destroy -%>
|
15
22
|
def link_to_destroy_<%= singular_name %>(<%= singular_name %>)
|
16
23
|
link_to t('common.destroy'), <%= item_path %>(<%= singular_name %>), :method => 'delete',
|
17
|
-
:confirm => t('common.confirm_destroy')
|
24
|
+
:confirm => t('common.confirm_destroy'), :class => 'action-destroy'
|
18
25
|
end
|
19
26
|
<%- end -%>
|
20
27
|
end
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<%- if action? :new -%>
|
2
|
-
<p><%%=
|
2
|
+
<p><%%= link_to_new_<%= singular_name %> %></p>
|
3
3
|
<%- end -%>
|
4
4
|
<div id="<%= plural_name %>-container"><%%= render_<%= plural_name %>_table @<%= plural_name %> %></div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jzajpt-blueberry_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Ji\xC5\x99\xC3\xAD Zajpt"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-08 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|