What to change/write in routes.rb .. ?

Ok sorry, I did'nt know the rules .. Sorry again.. but i need it urgent actually .. :slight_smile:

Marnen Laibow-Koser wrote:

Hemant Bhargava wrote:

Ok sorry, I did'nt know the rules .. Sorry again.. but i need it urgent actually .. :slight_smile:

Then go read the routing documentation. In general, try not to ask the list until you've read the docs.

Best,

Hemant Bhargava wrote:

Ok sorry, I did'nt know the rules .. Sorry again.. but i need it urgent actually .. :slight_smile:

Routes are eval'ed from top to bottom as defined, first match wins. Sounds like you need a catch-all route at the bottom of routes.rb that sends the user to your 'buggy url' page if no other route matched the request.

There are a number of good tutorials out there for routing in Rails, and perhaps

http://api.rubyonrails.org/classes/ActionController/Routing.html

An alternative place to start (maybe better for a beginner) is the routing guide at http://guides.rubyonrails.org/ After the getting started guide of course and others.

Colin

Thanks a lot guyz for your support .. Found my solutions .. In catch all routes ..I gave some requirements in my routes matching ..

Thanks again ..

Colin Law wrote: