Displaying 1 result from an estimated 1 matches for "controller_seg".
Did you mean:
controller_spec
2007 Aug 06
2
Proposal: Pure Regex Router
So this has been an idea ever since Rails came out. Why not use a
pure regular expression router in similar fashion to gsub? I imagine
it working something like this:
Merb::Router.prepare do |r|
r.add %r[^/(.*)/(.*)/(\d+)$], :controller => ''\1'', :action =>
''\2'', :id => ''\3''
r.add %r[^/user-(\d+)$], :user_id =>