stefanpenner-my_scaffold 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 4
4
- :patch: 0
4
+ :patch: 1
@@ -16,7 +16,7 @@ class <%= controller_class_name %>Controller < ApplicationController
16
16
  end
17
17
 
18
18
  def create
19
- @<%= file_name %> = <%= class_name %>.new(params[:<%= file_name %>])
19
+ @<%= file_name %> = <%= class_name %>.create(params[:<%= file_name %>])
20
20
 
21
21
  if @<%= file_name %>.save
22
22
  flash[:notice] = '<%= singular_name.humanize %> was successfully created.'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stefanpenner-my_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Penner
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-14 00:00:00 -08:00
12
+ date: 2009-02-15 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15