On Tue, May 11, 2010 at 3:03 PM, sso <strongsilent...@gmail.com> wrote:
> I'll use my recipe example again. > It would be nice if I could have my routes (I think) set up so that if > somebody enters a a controller that doesn't exist a database search > runs and looks for the controller name as one of the categories (for > example the user enters http://www.com/italian). This is an existing > category in the database so it would likely then redirect to > www.com/categories/italian (and from there the categories controller > would handle things). > > Is this possible without violating any "rules"? > > You can override method_missing. We used that approach at my last gig to grab userr-created content from a SharePoint site. HTH, Bill -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.