Ticket #96 (closed defect: fixed)
R helper only looks at the number of arguments
| Reported by: | mdaines | Owned by: | why |
|---|---|---|---|
| Priority: | major | Milestone: | Camping 1.6 |
| Component: | camping.rb | Version: | 1.5 |
| Keywords: | Cc: |
Description (last modified by archengule) (diff)
I'm not sure if this is going to be found much in the wild, but it seems useful to have the R helper also see if the url it choses matches what's generated. If you had a controller like this:
class Number < R '/name/([a-z]+)', '/number/(\d+)'
def get(n)
@number = n
render :number
end
end
And you ask for, say, R(:Number, 2), you'll always get /name/2 instead of /number/2.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
