What would be the most simple way to configure different variables(for ex. i have variable in tag link_to, which changing, depending on current Rails.env) ?
<%
if Rails.env == 'development'
domain = 'somedomain.me'
elsif Rails.env == 'staging'
domain = 'example.com'
end
%>
<%= link_to 'Back', root_url(:subdomain => 'www', :domain => domain), :class=>"btn btn-primary"%>
I want to move this if - elsif statement to somewhere else, or even drop it for some kind of 'configuration files' if any exists