Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mynyml committed Jan 6, 2010
1 parent 77f8984 commit 2accda9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Expand Up @@ -42,11 +42,8 @@ The four verb methods allow you to define actions that will match a request for
the verb and route signature it defines. the verb and route signature it defines.


The `#routes` method responds to `#match` and will return the first matching The `#routes` method responds to `#match` and will return the first matching
route (in order they were defined), and the values of the variables defined in route (in order they were defined). The route returned is a simple object; for
the route signature if any (`:year`, `:month`, ...). the second route in the example above, you get:

Finally, the route returned is a simple object: for the second route in the
example above, you get:


route.verb #=> :get route.verb #=> :get
route.path #=> '/archives/:year/:month/:day' route.path #=> '/archives/:year/:month/:day'
Expand Down Expand Up @@ -74,7 +71,7 @@ For example, the built-in SimpleEngine allows route variables and extension
handling. Others could add variable conditions (`:id => Integer`), mime-type handling. Others could add variable conditions (`:id => Integer`), mime-type
restrictions, etc. restrictions, etc.


#### Engine Writers ### Engine Writers


Engines only need to conform to a simple interface. See Engines only need to conform to a simple interface. See
lib/simple_router/engines/simple_engine.rb for details. lib/simple_router/engines/simple_engine.rb for details.
Expand Down

0 comments on commit 2accda9

Please sign in to comment.