I don't understand what exactly is going on with this group, and what bundler is doing with it. Is it only loaded in dev mode? What if I want to make a new environment type, how should I handle this group? Etc.
group :assets do
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier'
end
To elaborate a little on the answer, from rails asset pipeline guide:
a) by default they are NOT included in production:
b) If you add a new environment type, you would want to handle it according to Dmitry's answer above. That is, add it as one of the groups that will require it.
The code that handles
:assets
group placed inconfig\application.rb
. In rails 3.1 it is:I think it should be,
because there are some warning with the line,
So we use,
Hope this helps :)-