Sha256: 0a2abd8fe78c26d9fea1c1d12f3547a7c92a886f211274afad0139ae777425c9
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
module Dorsale::FormBackUrl def back_url_tag tag(:input, :type => "hidden", :name => "back_url", :value => (params[:back_url] || request.referer), ) end def form_tag_with_body(html_options, content) output = form_tag_html(html_options) output.safe_concat(back_url_tag) output << content output.safe_concat("</form>") end end ActionView::Helpers::FormTagHelper.send(:prepend, Dorsale::FormBackUrl)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dorsale-3.4.0 | lib/dorsale/form_back_url.rb |