I know I can use environment variables in templates, as described here.
// file.slim
- if development?
"This is in development"
- if build?
"This is during build"
…but I can’t get it to work in a helper. Help?
# helpers.rb
def my_helper()
if development?
"This is in development"
end
if build?
"This is during build"
end
end