Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Dynamic routes


  • Please log in to reply
No replies to this topic

#1 garim

garim

    Passenger

  • Members
  • 1 posts

Posted 09 April 2014 - 10:26 AM

Hey guys, I need some help here. I need to create a URL for each premium customer that create an account in my site. So it would be www.mysite.com/customer1, www.mysite.com/customer2 and so on... And then, all nagivation should have to start with this url. So other URLs would be www.mysite.com/customer1/products, www.sysite.com/customer1/pannel and so on....

 

 

I'm figuring out how is the best aproach of doing this ? And where the code should rest ? In a controller.rb ? If so, how to populate the routes in this file dynamically ? 

 

thank you all






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users