Hi, I tried to copy my old haml_tags, and it seems that they do not work for Rails 3.1rc4, or I'm doing something wrong. Can someone point me in the right direction?
def bonus_value_of(stat) bonus = current_user.character.send("bonus_#{stat}".to_sym) capture_haml do haml_tag :span, :class => "positive" do "+#{bonus}" end end end
thats my code, which I call with
= bonus_value_of(stat)
and all I get is an empty space with a positive class, but no content (not even a plus)
this is mistake?
source share