Sha256: 4890dcead35a441f9f4859441360c42d990fd8fccd5891712a55366b5f4dfa52
Contents?: true
Size: 832 Bytes
Versions: 5
Compression:
Stored size: 832 Bytes
Contents
module MasterView module Directives # creates form_remote_tag and closing form tag from values in form # class FormRemote < MasterView::DirectiveBase metadata :priority => :default, :category => 'form', :description => 'Replaces the start and end tags of the element using the Rails form_remote_tag helper and </form> for Ajax-enabled form submission using the Prototype library', :element_usage => 'form' attr_arg :options, :append_element_attrs => [:common_html, :method] event :stag do merge_hash_into_str( {:multipart => true}, @options ) if element_attrs.get_lowercase_str_value('enctype') == 'multipart/form-data' render erb_content( 'form_remote_tag', :options ) end event :etag do render '</form>' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems