raghus wrote: > I am on Rails 2.0.2 > > I've set up routes.rb so that the URL http://mysite.com/username > routes the user to :controller => 'foo', :action => 'bar' > > However, I am rev-ing my app and based on a flag in the Users table, I > want some users to go to :controller => 'foo2', :action => 'bar2' > while others should continue to get routed via :controller => > 'foo', :action => 'bar' > > Is there any way at all to do this via routes.rb? Or some other hack? > I still want the URL to be http://mysite.com/username > > Thanks
You can call any method from that action, including the code for another action, and then explicitly render whatever template you want. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

