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