case Rails.env
when 'development'
puts 'developmnent'
when 'production'
puts 'production'
end
if Rails.env.development?
puts 'development'
end
if Rails.env.production?
puts 'production'
end
※参考:http://memo.yomukaku.net/entries/127
case Rails.env
when 'development'
puts 'developmnent'
when 'production'
puts 'production'
end
if Rails.env.development?
puts 'development'
end
if Rails.env.production?
puts 'production'
end