Ticket #118 (closed defect: wontfix)

Opened 23 months ago

Last modified 15 months ago

Camping can't seem to recognize routes like /things;some_aspect

Reported by: mdaines Owned by: why
Priority: minor Milestone:
Component: camping.rb Version:
Keywords: rest Cc:

Description

Here's a simple app:

Camping.goes :Restish

module Restish::Controllers

  class ThingsCollection < R '/things'
    def get
      "a list of all the things"
    end
  end
  
  class ThingsCollectionSomeAspect < R '/things;some_aspect'
    def get
      "well, it's something different"
    end
  end
  
end

If you ask for /things;some_aspect, you'll just get what you expect for /things. I really haven't done any digging, and though I've been following the feeds, I haven't seen anything. (This is with rev. 177.) All I know is:

"/things;some_aspect" =~ /\/things;some_aspect\/?/

is not nil...

Change History

in reply to: ↑ description   Changed 23 months ago by mdaines

Oh wait...

So PATH_INFO for both those URLs (with the semicolon stuff and without) is "/thing". So is this not Camping's problem?

  Changed 22 months ago by why

  • owner changed from somebody to why
  • status changed from new to assigned

Yeah, an alternate syntax for query strings is the semicolon syntax. This semicolon stuff is a new Rails idea or something, is that right?

  Changed 22 months ago by tec

  Changed 19 months ago by tec

Dropped in Changeset 6485.

  Changed 15 months ago by zimbatm

  • status changed from assigned to closed
  • resolution set to wontfix

So we won't use it either

Note: See TracTickets for help on using tickets.