/ Published in: Rails
override the boolean expression with your own conditions.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def dev_mode? ENV['RAILS_ENV'] == 'development' && request.host == '127.0.0.1' end