Hey,

I'm not sure if this is a bug or intended behavior, so I'll just lay it 
out and let the masters have their say.

I'm wanting to use a semicolon in my URL, to make stuff like 
/wiki/something/foobar/page_name;edit work.

I've found that anything after the semicolon is completely ignored.

I have also been unable to make nested matchers work. As you can see, 
every line differs only in the called action. I wouldn't mind setting 
controller and pagepath in some other way so the rest can just "take the 
defaults" or something.

Below is my router set up (yup, it's a slice):

def self.setup_router(scope)
      # page paths can contain lower-case letters, underscores and show 
a path with /.
      scope.match(%r{^/([a-z_\/]+)/edit$}, :method => :get).
        to(:controller => 'pages', :action => 'edit', :pagepath => "[1]")

      scope.match(%r{^/([a-z_\/]+)/destroy$}, :method => :get).
        to(:controller => 'pages', :action => 'delete', :pagepath => "[1]")

      scope.match(%r{^/([a-z_\/]+)/destroy$}, :method => :post).
        to(:controller => 'pages', :action => 'destroy', :pagepath => "[1]")

      scope.match(%r{^/([a-z_\/]+)$}, :method => :get).
        to(:controller => 'pages', :action => 'show', :pagepath => "[1]")
    
      scope.match(%r{^/([a-z_\/]+)$}, :method => :put).
        to(:controller => 'pages', :action => 'update', :pagepath => "[1]")
     
      scope.match('/', :method => :get).
        to(:controller => 'pages', :action => 'index')
end

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to