-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
36 lines (28 loc) · 796 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Fancyroutes
===========
Fancyroutes is the first project from the TRED team. It has the following goals:
* Clean up route files
* Forget about rest out of the box (It's an API, build it as one)
* Provide building routes functionality
* Provide route linking functionality
Put your fancy routes into your routes file.
Example
=======
FancyRoutes::RouteSet.new(@map) do
(get / 'orders' >> :orders > 'index')
(with / :slug >> :my_controller).match do
(get / 'order' > :my_action).create
(post / 'order' > :my_action).create
end
(get / {'item_images' => :controller} / :image > :show).create
end
Copyright (c) 2008 TRED Team, released under the MIT license
Contributors
============
Myles Byrne
Carl Woodward
Tim Lucas
Chris Lloyd
Michael Koukoullis
Lincoln Stolli
Dave Newman