Sha256: cfdaa373008e46bda1982365bf9ed2d4cb9731e995e7c25f01abaa2eb8ce846f

Contents?: true

Size: 715 Bytes

Versions: 13

Compression:

Stored size: 715 Bytes

Contents

class FormTestController < ApplicationController
  
  def index  
  end
  
  #ActionView::Helpers:ActiveRecordHelper
  def form
    @user = User.new(params[:user])
    return if request.get?
    
    return unless @user.save
    redirect_to :action=>:index
  end

  #ActionView::Helpers::FormHelper
  def form_for
    @user = User.new(params[:user])
    return if request.get?
    
    return unless @user.save
    redirect_to :action=>:index
  end

  #ActionView::Helpers::FormTagHelper
  def form_tag
    @user = User.new(params[:user])
    return if request.get?
    
    return unless @user.save
    redirect_to :action=>:index
  end
  
  #ActionView::Helpers::FormOptionsHelper
#  def select
#    
#  end

end

Version data entries

13 entries across 12 versions & 3 rubygems

Version Path
jeffp-enumerated_attribute-0.2.0.2 spec/rails/app/controllers/form_test_controller.rb
jeffp-enumerated_attribute-0.2.1 spec/rails/app/controllers/form_test_controller.rb
jeffp-enumerated_attribute-0.2.2 spec/rails/app/controllers/form_test_controller.rb
jeffp-enumerated_attribute-0.2.3 spec/rails/app/controllers/form_test_controller.rb
edave-enumerated_attribute-0.2.18 spec/rails/app/controllers/form_test_controller.rb
enumerated_attribute-0.2.16 spec/rails/app/controllers/form_test_controller.rb
enumerated_attribute-0.2.16 spec/rails3/app/controllers/form_test_controller.rb
enumerated_attribute-0.2.13 spec/rails/app/controllers/form_test_controller.rb
enumerated_attribute-0.2.12 spec/rails/app/controllers/form_test_controller.rb
enumerated_attribute-0.2.11 spec/rails/app/controllers/form_test_controller.rb
enumerated_attribute-0.2.10 spec/rails/app/controllers/form_test_controller.rb
enumerated_attribute-0.2.8 spec/rails/app/controllers/form_test_controller.rb
enumerated_attribute-0.2.7 spec/rails/app/controllers/form_test_controller.rb