[Rails] Re: How to work with Database in routes? Rails 3

2011-02-05 Thread Robert Pankowecki (rupert)
You could use http://edgeguides.rubyonrails.org/routing.html#advanced-constraints for that, but probably I wouldn't go this way. Robert Pankowecki http://robert.pankowecki.pl -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to th

Re: [Rails] Re: How to work with Database in routes? Rails 3

2011-02-04 Thread David Kahn
On Fri, Feb 4, 2011 at 6:25 PM, Frederick Cheung wrote: > > > On Feb 4, 9:23 am, redhotberry wrote: > > Hello. How to check presence of object in DB in routes? If object > > exists in DB - rais app shows its page, if not - it redirects to 404. > > I know that it's possible to do all this logic i

[Rails] Re: How to work with Database in routes? Rails 3

2011-02-04 Thread Frederick Cheung
On Feb 4, 9:23 am, redhotberry wrote: > Hello. How to check presence of object in DB in routes? If object > exists in DB - rais app shows its page, if not - it redirects to 404. > I know that it's possible to do all this logic in controller but i > would to know how to do it in routes. I don't