RubyGems.org

with_action

1.0.0

A respond_to style helper for doing different actions based on which request parameters are passed. Specifically, it is helpful if you want to use multiple form buttons on a page, such as "Save", "Save and Continue Editing", and "Cancel". with_action executes different blocks based on what the presence of request parameters.

installgem install with_action
Authors

Brandon Keepers, Daniel Morrison

2,496 total downloads 2,496 for this version
Owners

16ae5c2e160af3bdb60db447c092985d

Gemfile
gem "with_action", "~> 1.0.0"
Versions
  1. 1.0.0 October 26, 2010
Runtime Dependencies
  1. actionpack >= 0
Development Dependencies
  1. bundler >= 1.0.0
  2. mocha >= 0