lib/nitro/helper/form/builder.rb in nitro-0.30.0 vs lib/nitro/helper/form/builder.rb in nitro-0.31.0

- old
+ new

@@ -88,10 +88,14 @@ # # * :object, :entity, :class = The object that acts as model # for this form. If you pass a class an empty object is # instantiated. # + # * :action = The action of this form. The parameter is + # passed through the R operator (encode_url) to support + # advanced url encoding. + # # === Example # # #{form(:object => @owner, :action => :save_profile) do |f| # f.property :name, :editable => false # f.property :password @@ -118,10 +122,10 @@ end b = FormXmlBuilder.new('', options) b << '<form' - b << %| action="#{options[:action]}"| if options[:action] + b << %| action="#{R options[:action]}"| if options[:action] b << %| method="#{options[:method]}"| if options[:method] b << %| enctype="#{options[:enctype]}"| if options[:enctype] b << '>' b.hidden(:name => 'oid', :value => obj.oid) if obj and obj.saved?