inline_forms 0.2.1 → 0.2.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.2.1
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{inline_forms}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ace Suares"]
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ace Suares