html - HAML link_to is not clickable -
i'm new haml, need rails project. don't understand why code not provide clickable link in header of column. example:
%table#movies %thread %tr %th <%= link_to "name", :sort => "name" %> %th year %th rating
and on...
all displays plain text of wrote instead link in name column. extremely stupid question, find solution anywhere, sorry
or if there way send :sort parameter within simple html 'a' tag, please tell. thanks.
if want append rails output html tag must use syntax (http://haml.info/docs/yardoc/file.reference.html#inserting_ruby_)
change
%th <%= link_to "name", :sort => "name" %>
to
%th= link_to "name", :sort => "name"
Comments
Post a Comment