Browse files

Fix again....

  • Loading branch information...
maritz committed Nov 30, 2010
1 parent e4772f7 commit bfec7d94e8bea35758f8865a068d3c97f707f789
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -60,7 +60,7 @@ You can use regular expressions as well. This leads to your U
Ni.addRoute(/^\/register/i, '/User/register');
If you want to use arguments with custom routes, you can do that as well:
- Ni.addRoute(/^\/details\/([\d]+)/i, '/User/details/$1');
+ Ni.addRoute(/^\/details\/(.*)$/i, '/User/details/$1');
You can also define functions to test the path. For example:
Calling will internally redirect to use the "Number" controller and call the "positive" function, while calling

0 comments on commit bfec7d9

Please sign in to comment.