metabahn/pakyow — Issue #34: Restful Routes Without a Controller
Author: bryanp
Created: 2011-11-03 02:55:51+00:00
State: open

I realized tonight that there is no way to define restful routes without a controller. Here's a possible way this could work (the syntax may be stupid, I spent all of five minutes on this):

```ruby
restful '/users' {
index { ... }
new { ... }
create { ... }
edit { ... }
update { ... }
delete { ... }
}
```