| CODENOTIFIER | HelpYou are not signed inSign in |
Project: reststop
Revision: 49
Author: gunark
Date: 10 Mar 2008 14:31:49
Changes:Diff:| ... | ...@@ -414,7 +414,8 @@ | |
| 414 | 414 | if Controllers.constants.include?(cl = c.class.name.split("::").last.pluralize) |
| 415 | 415 | path = "/#{cl.underscore}/#{c.id}" |
| 416 | 416 | path << ".#{@format.to_s.downcase}" if @format |
| 417 | path << "?#{g}" unless g.empty? # FIXME: undefined behaviour if there are multiple arguments left | |
| 417 | path << "/#{g.shift}" unless g.empty? | |
| 418 | # FIXME: undefined behaviour if there are multiple arguments left... maybe we should allow for arbitrary params as a Hash? | |
| 418 | 419 | self / path |
| 419 | 420 | elsif c.respond_to?(:restful?) && c.restful? |
| 420 | 421 | base = c.name.split("::").last.underscore |