RailsCasts Pro episodes are now free!

Learn more or hide this

mjcloutier's Profile

GitHub User: mjcloutier

Comments by

Avatar

I haven't touched RoR in a month and getting rusty, took a small break came back to computer and it hit me, the problem was with a haml conversion from html:

WRONG WAY

ruby
#tag_cloud
  = tag_cloud Post.tag_counts, %w[css1 css2 css3 css4] do |tag, css_class|
    = link_to tag.name, tag_path(tag.name), class: css_class

RIGHT WAY

ruby
#tag_cloud
  - tag_cloud Post.tag_counts, %w[css1 css2 css3 css4] do |tag, css_class|
    = link_to tag.name, tag_path(tag.name), class: css_class

Can delete my questions to clean up this railscast =)