inline_forms 0.2.1 → 0.2.2
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/app/controllers/inline_forms_controller.rb +5 -4
- data/inline_forms.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -5,7 +5,7 @@ class InlineFormsController < ApplicationController
|
|
5
5
|
# If you have an Example class, make an ExampleController that is a subclass of InlineFormsController
|
6
6
|
# <tt>class ExampleController < InlineFormsController
|
7
7
|
# # add before filters if you want: before_filter :authenticate_user!, :only => :token
|
8
|
-
# # override methods or make your own, using @Klass instead of Example.
|
8
|
+
# # override methods or make your own, using @Klass instead of Example.
|
9
9
|
# # def index
|
10
10
|
# # @objects=@Klass.all
|
11
11
|
# # end
|
@@ -26,9 +26,10 @@ class InlineFormsController < ApplicationController
|
|
26
26
|
# GET /examples
|
27
27
|
#
|
28
28
|
def index
|
29
|
-
nolayout = params[:layout] == 'false' || false
|
29
|
+
# nolayout = params[:layout] == 'false' || false
|
30
30
|
@objects = @Klass.all
|
31
|
-
render( :layout => nolayout || 'inline_forms' )
|
31
|
+
# render( :layout => nolayout || 'inline_forms' )
|
32
|
+
render 'inline_forms/inline_forms'
|
32
33
|
end
|
33
34
|
|
34
35
|
# :show shows one field (attribute) from a record (object). It inludes the link to 'edit'
|
@@ -51,7 +52,7 @@ class InlineFormsController < ApplicationController
|
|
51
52
|
|
52
53
|
# :new prepares a new object, updates the entire list of objects and replaces it with a new
|
53
54
|
# empty form. After pressing OK or Cancel, the list of objects is retrieved in the same way as :index
|
54
|
-
#
|
55
|
+
#
|
55
56
|
# GET /examples/new
|
56
57
|
def new
|
57
58
|
@object = @Klass.constantize.new
|
data/inline_forms.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inline_forms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ace Suares
|