This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 3c19581c376d696c1db695ef60894a0bb8a3e6b2
tree 172fb892c021b02c8b04fc734eee94322583b403
parent 729e97721fa494c8d3608249ff563e5eed7df44c
tree 172fb892c021b02c8b04fc734eee94322583b403
parent 729e97721fa494c8d3608249ff563e5eed7df44c
... |
... |
|
... |
... |
|






Comments
That’s absolutely awesome!
I am not sure I see the point… Controllers::BlogXN becomes ’/blog/(\w+)/(\d+)’?
does that mean we can code controllers like so?
class BlogXN < R ’/blog/(\w+)/(\d+)’
def get(x, n)
#x is a word
#n is a number
end
end
Or, is there implied arguments based on these new capitol letters in the controller name
class BlogXXNN < R
def get(wordone, wordtwo, numberone, numbertwo)
end
end
Or what?
You can now code like this:
class BlogXN # no R
end
If you use the R-method, you’ll have to define your own Regex, if not Camping will create one for you :-)