haml / haml-rails

let your Gemfile do the talking
MIT License
1.04k stars 169 forks source link

ActionView::TemplateError Undefined method 'html_tag' for rails 3.2.18 #156

Closed amolplay closed 5 years ago

amolplay commented 5 years ago

When I use rails server then it's giving error as : Undefined method 'html_tag' . It seems haml template views are not rendering.

Used gems: haml haml-rails

Ruby: 1.9.3 Rails: 3.2.18

Also, it's gives undefined method control_group when I removed html_tagfrom code base = f.control_group :email do |f| = f.label :email, :class => "control-label"

When I remove above gems them plain HTML page rendering successfully.....!

I spent several nights but still not able to find out the root cause. Any help would be appreciated.

syguer commented 5 years ago

Newest haml-rails requires ruby >= 2.3.0 and Rails >= 5.1. By the way, if you cannot update, try this.

amolplay commented 5 years ago

I have added following line and bundle installed successfully...

But still error exists and not able to found the solution..

gem "haml-rails", "~> 2.0"