Ticket #92 (closed enhancement)
Query string builder
| Reported by: | zimbatm | Owned by: | somebody |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | camping.rb | Version: | 1.5 |
| Keywords: | Cc: |
Description (last modified by zimbatm) (diff)
Hello,
I propose to add a Camping::qs method that does the exact reverse than Camping::qs_parse. Combined in URL and R, it would allow you to build queries like that :
R(MyController, arg1, arg2, :q1=>[1,2,3]) #=> /my_controller/1/2?q1=1&q1=2&q1=3
The following patch already implements that feature in camping-unabridged.rb. I didn't do too much optimisation yet.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
