stonean/slim — Issue #227: Rails + Slim = Not automatically used?
Author: krainboltgreene
Created: 2012-01-28 20:18:27+00:00
State: open

I seem to remember all the other times I used `slim` with `rails` it would automatically use `slim` as the default engine. This time it seems to be different:

``` ruby
> rails generate controller
Usage:
rails generate controller NAME [action action] [options]

Options:
[--skip-namespace] # Skip namespace (affects only isolated applications)
[--old-style-hash] # Force using old style hash (:foo => 'bar') on Ruby >= 1.9
-e, [--template-engine=NAME] # Template engine to be invoked
# Default: erb
```

`` ruby
# Gemfile
source :rubygems

gem 'rails', '~> 3.2'
gem 'sqlite3', '~> 1.3', group: [:development, :test]
gem 'pg', '~> 0.12'
gem 'bcrypt-ruby', '~> 3.0'
gem 'jquery-rails', '~> 2.0'
gem 'dalli', '~> 1.1'
gem 'slim', '~> 1.1'
gem 'thin', '~> 1.3'
gem 'sorcery', '~> 0.7'

group :development do
gem 'heroku', '~> 2.18'
gem 'guard', '~> 1.0'
gem 'guard-rspec', '~> 0.6'
gem 'guard-spork', '~> 0.5'
end

group :test do
gem 'shoulda-matchers', '~> 1.0'
gem 'capybara', '~> 1.1'
gem 'ffaker', '~> 1.12'
gem 'factory_girl', '~> 2.5'
gem 'spork', '~> 0.9'
gem 'database_cleaner', '~> 0.7'
end

group :test, :development do
gem "rspec-rails", "~> 2.6"
end

# Gems only for assets, not required in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2'
gem 'coffee-rails', '~> 3.2'
gem 'uglifier', '~> 1.0'
end
```

Any thoughts?