0.0
No commit activity in last 3 years
No release in over 3 years
Makes it easier to relay received POST params for further POSTing. This is ideal if you want to insert an intermediate page during POSTing, such as an order confirmation page.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 1.0.0
~> 10.3

Runtime

>= 3.1
 Project Readme

FormRelayer

Makes it easier to relay received POST params in current form for further POSTing. This is ideal if you want to insert an intermediate page during POSTing, such as an order confirmation page.

Installation

Add this line to your application's Gemfile:

gem 'form_relayer'

And then execute:

$ bundle install

Usage

In Rails view, place a call to relay_received_post_params inside the form.

<%= form_for @post do |f| %>
  Are you sure you want to continue?
  <%= relay_received_post_params %>
  <%= f.submit 'Yes' %>
<% end %>

This will automatically turn POST params received by the current action into hidden input tags.

Contributing

  1. Fork it ( https://github.com/GoodLife/form_relayer/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request