Tried Merb Console
felix@Felix:~/Developments/kakei$ merb -i
~ loading gem 'activerecord' from config/init.rb:27 ...
~ loading gem 'merb_activerecord' from config/init.rb:27 ...
~ loading gem 'merb_rspec' from config/init.rb:36 ...
~ loading gem 'merb_helpers' from config/init.rb:39 ...
~ Loaded DEVELOPMENT Environment...
~ Connecting to database...
~ Compiling routes...
~ Using 'share-nothing' cookie sessions (4kb limit per client)
irb(main):035:0*
irb(main):036:0* merb
=> #<Merb::Rack::Console:0xb76f6604>
irb(main):037:0>
irb(main):038:0*
irb(main):039:0* merb.url(:payments)
=> "/payments"
irb(main):040:0> merb.url(:new_payment)
=> "/payments/new"
irb(main):041:0> merb.url(:delete_payment)
=> "/payments//delete"
irb(main):042:0> merb.url(:delete_payment, )
SyntaxError: compile error
(irb):42: syntax error, unexpected ')'
from (irb):42
from :0
irb(main):043:0> payment = Payment.find(1)
=> #<Payment id: 1, amount: 23423, paid_for: "34234", created_at: "2008-03-01 17:26:41">
irb(main):044:0> merb.url(:delete_payment, payment)
=> "/payments/1/delete"
irb(main):045:0> merb.url(:edit_payment, payment)
=> "/payments/1/edit"
irb(main):046:0> merb.url(:as_payment, payment)
RuntimeError: Named route not found: as_payment
from /usr/lib/ruby/gems/1.8/gems/merb-core-0.9.1/lib/merb-core/dispatch/router.rb:90:in `generate'
from /usr/lib/ruby/gems/1.8/gems/merb-core-0.9.1/lib/merb-core/rack/adapter/irb.rb:14:in `url'
from (irb):46
from :0
irb(main):047:0> merb.url(:payment, payment)
=> "/payments/1"
irb(main):003:0* merb.show_routes
Named Routes
new_payment: /payments/new
edit_payment: /payments/:id/edit
payment: /payments/:id
delete_payment: /payments/:id/delete
payments: /payments
custom_payment: /payments/:action/:id
Anonymous Routes
/payments/?(\.:format)?
/payments/index(\.:format)?
/payments/new
/payments/?(\.:format)?
/payments/:id(\.:format)?
/payments/:id[;/]edit
/payments/:id[;/]delete
/payments/:id(\.:format)?
/payments/:id(\.:format)?
/:controller(/:action(/:id)?)?(\.:format)?
=> nil