Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 1
    This is so nice! Thanks for sharing. And just a hint. Because of #merge used in #process_with_default_params you can still "override" format in your spec to something else than json - to html for example. Commented Dec 5, 2013 at 16:43
  • Maybe everything after the action should be defaulted to not be mandatory? Commented Mar 26, 2014 at 11:08
  • This didn't actually work for me but this similar solution did: snip2code.com/Snippet/13535/… Commented Sep 29, 2014 at 13:18
  • I'm getting an undefined method alias_method_chain -- is there a fix for that? Commented Mar 19, 2018 at 20:02
  • @RonLugge You can look at my answer below. Commented Mar 4, 2019 at 3:12