lib/happy/controller/routing.rb in happy-0.1.0.pre9 vs lib/happy/controller/routing.rb in happy-0.1.0.pre10
- old
+ new
@@ -29,10 +29,10 @@
# Transfer variables contained in path name to params hash
if path_match
name.scan(/:(\w+)/).flatten.each do |var|
request.params[var] = path_match.captures.shift
end
- remaining_path.shift
+ previous_path << remaining_path.shift
end
serve! instance_exec(&blk)
# If we get here, #serve decided not to serve.