I’d like to create a scope in my routes.rb file to only route certain URLs when in the production environment. How do you use conditionals with Rails 3 routing? All I need to do is restrict those rules based on Rails.env.production? being true, but I’m not sure of the syntax.
I’d like to create a scope in my routes.rb file to only route certain
Share
routes.rbis Ruby file so this should work: