Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # --- Both would work ---
- Merb::Router.prepare do
- match("/hello") do |h|
- h.to(:controller => "hellos")
- end
- end
- Merb::Router.prepare do
- match("/hello")
- to(:controller => "hellos")
- end
- end
- # --- Not yielding the first behavior object anymore ---
- # --- Old:
- Merb::Router.prepare do |r| # <-- Old
- r.match("/hello") do |h|
- h.to(:controller => "hellos")
- end
- end
Add Comment
Please, Sign In to add comment