Sha256: 82f6294ad2da0fae4d329873c6d11163ce36ba48245150b6c10af343dabc29f4

Contents?: true

Size: 443 Bytes

Versions: 21

Compression:

Stored size: 443 Bytes

Contents

module Ruhl
  module Rails
    module Helper
      def form_authenticity
        {:value => form_authenticity_token, :type => "hidden", :name => "authenticity_token"}
      end  

      def i(type,column)
        model = presentee.class.name.underscore
        { :type => type,
          :id   => "#{model}_#{column}", 
          :name => "#{model}[#{column}]",
          :value => presentee.send(column)
        }
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ruhl-1.3.6 lib/ruhl/rails/helper.rb
ruhl-1.3.5 lib/ruhl/rails/helper.rb
ruhl-1.3.4 lib/ruhl/rails/helper.rb
ruhl-1.3.3 lib/ruhl/rails/helper.rb
ruhl-1.3.2 lib/ruhl/rails/helper.rb
ruhl-1.3.1 lib/ruhl/rails/helper.rb
ruhl-1.3.0 lib/ruhl/rails/helper.rb
ruhl-1.2.0 lib/ruhl/rails/helper.rb
ruhl-1.1.1 lib/ruhl/rails/helper.rb
ruhl-1.1.0 lib/ruhl/rails/helper.rb
ruhl-1.0.0 lib/ruhl/rails/helper.rb
ruhl-0.26.1 lib/ruhl/rails/helper.rb
ruhl-0.26.0 lib/ruhl/rails/helper.rb
ruhl-0.25.0 lib/ruhl/rails/helper.rb
ruhl-0.24.0 lib/ruhl/rails/helper.rb
ruhl-0.23.0 lib/ruhl/rails/helper.rb
ruhl-0.22.0 lib/ruhl/rails/helper.rb
ruhl-0.21.0 lib/ruhl/rails/helper.rb
ruhl-0.20.0 lib/ruhl/rails/helper.rb
ruhl-0.19.0 lib/ruhl/rails/helper.rb