beautiful_scaffold 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.3.6
2
+
3
+ * enhancement
4
+ * Prevent dbclick on form. Thanks to @fazelmk, again.
5
+ * Replace "create" by "new" for validation. Thanks to @fazelmk
6
+
1
7
  == 0.3.5
2
8
 
3
9
  * enhancement
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "beautiful_scaffold"
6
- s.version = "0.3.5"
6
+ s.version = "0.3.6"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.summary = "Beautiful Scaffold generate fully customizable scaffold"
9
9
  s.email = "claudel.sylvain@gmail.com"
@@ -85,7 +85,7 @@ class <%= namespace_for_class %><%= model_camelize.pluralize %>Controller < Beau
85
85
  end
86
86
 
87
87
  def create
88
- @<%= model %> = <%= model_camelize %>.create(params_for_model)
88
+ @<%= model %> = <%= model_camelize %>.new(params_for_model)
89
89
 
90
90
  respond_to do |format|
91
91
  if @<%= model %>.save
@@ -17,7 +17,7 @@ end
17
17
  <%% end %>
18
18
  <%= render_partial 'app/views/partials/_form_field.html.erb' %><!-- Beautiful_scaffold - AddField - Do not remove -->
19
19
  <div>
20
- <%%= f.submit :class => "btn btn-primary" %>
20
+ <%%= f.submit :class => "btn btn-primary", :data => { :disable_with => t(:saving, :default => "Saving...") } %>
21
21
  </div>
22
22
  <%% end %>
23
23
 
@@ -31,6 +31,6 @@
31
31
  </div>
32
32
  <% end %>
33
33
  <div style="display:inline;">
34
- <%= f.submit t(:create, :default => "Create"), :class => "btn btn-default" %>
34
+ <%= f.submit t(:create, :default => "Create"), :class => "btn btn-default", :data => { :disable_with => t(:saving, :default => "Saving...") } %>
35
35
  </div>
36
36
  <% end %>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beautiful_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sylvain Claudel