Meltemi
Meltemi

Reputation: 38359

Updating HAML & SASS to 3.1

I noticed today that haml & sass have split in their upgrade to 3.1.

I used to get them both in my Rails project with gem 'haml-rails' (though, perhaps I manually added SASS to my gem directory?!? Anyway...)

I'm trying to understand dependencies & whatnot and wondering what I need to do now to get both haml & sass updated to 3.1 in my project(s)...

I see haml docs now say to use gem 'haml' to get haml...does this mean haml-rails is unnecessary/redundant now?

Upvotes: 2

Views: 2492

Answers (2)

Alex
Alex

Reputation: 29821

Based on my test, you still need haml-rails if you want .haml views automatically generated when you run rails g controller or rails g scaffold

Upvotes: 4

Paul Russell
Paul Russell

Reputation: 4747

I think it is, yes. I've just started using SASS in my Rails 3 project, and my Gemfile just contains:

gem 'haml'

... and everything appears to be working fine, as far as I can see.

UPDATE: Just realised I was actually running 3.0.25 when I wrote this post, but gem 'haml' already worked at that stage. I've just upgraded to 3.1.1, and it's still working fine :)

Upvotes: 0

Related Questions