Sha256: dd3182dad31952ab49dbe9b95152ca4ec807dbc51811003a9b88bea47e8f74ef

Contents?: true

Size: 356 Bytes

Versions: 5

Compression:

Stored size: 356 Bytes

Contents

module Storefront
  module FormHelper
    def form_for(*args, &block)
      Storefront::Form.new(self, *args).render(&block)
    end
    
    def submit_for(text, url, options = {})
      form_for(object, options.merge(:url => url)) do |form|
        haml_concat Storefront::Form::Input.find(:submit).new(:value => text).render
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
storefront-0.3.2 lib/storefront/helpers/form_helper.rb
storefront-0.3.1 lib/storefront/helpers/form_helper.rb
storefront-0.3.0 lib/storefront/helpers/form_helper.rb
storefront-0.2.8 lib/storefront/helpers/form_helper.rb
storefront-0.2.7 lib/storefront/helpers/form_helper.rb