stonean/slim — Issue #196: Slim::Parser::SyntaxError in Rails 3.1.1 but not 3.0.7?
Author: bikle2
Created: 2011-10-17 08:51:11+00:00
State: open

```
Hello slim people,

I am doing an upgrade of my 3.0.7 Rails site to 3.1.1

My site is simple so I am just doing a rewrite of everything.

I'm using Cucumber and Rspec to drive my rewriting.

Here is an exception which Slim is giving me on the 3.1.1 site:

Slim::Parser::SyntaxError in R10#blog

Showing /pt/webprops/b4/b4/app/views/layouts/application.html.slim where line # raised:

Unknown line indicator

/pt/webprops/b4/b4/app/views/layouts/application.html.slim, Line 1

! doctype 5

Here is a copy of my Gemfile on the 3.1.1 site:

source 'http://rubygems.org'

gem 'rails', '3.1.1'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.1.4'
gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.0.3'
end

# To use debugger
gem 'ruby-debug19', :require => 'ruby-debug', :group => [:development, :test]

group :test do
# Pretty printed test output
gem 'turn', :require => false
end

gem 'jquery-rails'
gem "rspec-rails", ">= 2.6.1", :group => [:development, :test]
gem "factory_girl_rails", ">= 1.2.0", :group => :test
gem "cucumber-rails", ">= 1.1.1", :group => :test
gem "capybara", ">= 1.1.1", :group => :test
gem "database_cleaner", ">= 0.6.7", :group => :test
gem "launchy", ">= 2.0.5", :group => :test
gem "thin"
gem "heroku"
gem "minitest", :group => :test

gem 'slim'

gem 'haml'

gem 'haml2slim', :group => [:development, :test]

gem 'pg'

On the 3.1.1 site,
I see this info about slim in Gemfile.lock:

slim (1.0.2)

On the 3.0.7 site,
I see this:

slim (0.9.4)

Should I currently try to mix Slim with Rails 3.1.1?

If yes, which version of Slim?

If no,
maybe I should wait a few days, weeks, months?

```