We (me and all my personalities, of course) have several routes we'd like to not expose in production but we use in development and testing. I know you can (or could?) add a before filter in the controller to lock down these things depending upon environment, but can this be done from config/routes.rb?
thanks
Have you tried:
if Rails.env.development?
resources :secrets
end
As I understand the router, that should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With