Saturday, January 06, 2007

Routing - Really Easy in Rails

wanna do complex routing in a simple way....

you can make whatever you imagine for routing... its possible in rails.
Using the rails routing feature, we can do that.

the following eg code only routes when a code no is included in the URL

map.address 'address/:code', :controller => 'address',:action => 'show',:code => /d{5}(-d{4})?/

wanna more tips???????? click the following link
demystify the routing system in Ruby on Rails

1 comments:

Narain said...

Good. Finally, someone in my team has started blogging on a daily way. As a fellow blogger, welcome to this wonderful and continue the good work.