first-floor 0.2.0 → 0.3.0
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.yml +1 -1
- data/first-floor.gemspec +2 -2
- data/lib/action_controller/first_floor.rb +4 -2
- metadata +2 -2
data/VERSION.yml
CHANGED
data/first-floor.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "first-floor"
|
|
8
|
-
s.version = "0.
|
|
8
|
+
s.version = "0.3.0"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Nathan L. Walls"]
|
|
12
|
-
s.date = "2012-
|
|
12
|
+
s.date = "2012-04-22"
|
|
13
13
|
s.description = "Takes care of the basic seven CRUD controller methods against HTML, XML, JSON and YAML. This was very useful with Rails 2.x. Under Rails 3 and later, this isn't quite as necessary, since rendering became a lot easier."
|
|
14
14
|
s.email = "nathan@wallscorp.us"
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -30,7 +30,8 @@ class ActionController::FirstFloor < ActionController::Base
|
|
|
30
30
|
else
|
|
31
31
|
eval( "@#{obj_name} = @obj" )
|
|
32
32
|
|
|
33
|
-
flash[:
|
|
33
|
+
flash[:alert] = "Cannot create this #{obj_class}. There were some errors."
|
|
34
|
+
flash[:notice] = flash[:alert]
|
|
34
35
|
flash[:status] = 400
|
|
35
36
|
render_response( eval( "@#{obj_name}" ), 'new', 400 )
|
|
36
37
|
end
|
|
@@ -58,7 +59,8 @@ class ActionController::FirstFloor < ActionController::Base
|
|
|
58
59
|
else
|
|
59
60
|
eval( "@#{obj_name} = @obj" )
|
|
60
61
|
|
|
61
|
-
flash[:
|
|
62
|
+
flash[:alert] = "#{obj_class} had some errors and was not updated."
|
|
63
|
+
flash[:notice] = flash[:alert]
|
|
62
64
|
flash[:status] = 400
|
|
63
65
|
render_response( eval( "@#{obj_name}" ), 'edit', 400 )
|
|
64
66
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: first-floor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-04-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Takes care of the basic seven CRUD controller methods against HTML, XML,
|
|
15
15
|
JSON and YAML. This was very useful with Rails 2.x. Under Rails 3 and later, this
|