I want to have a "delete user" link in a normal Activerecord table, but I can't figure out how to wrangle the inline ruby in haml.
I have this:
%tbody
- @users.each do |user|
%tr
%td= user.name
%td= user.login
%td
%a
%img{:src => '../images/delete.png', :title => 'Delete user'}
How do I make the
- user.destroy
be a clickable link in Haml?