In this Rails app view loop, how can I include CSS button styling? -


i want "complete" below have fake button styling, border , colored interior.

what best way this? tried suffix class: 'btn btn-mini' doesn't work (for obvious reasons, it's not button).

- @tasks.each |task|   %tr     %td= task.content     - if @dayhash[task.day_id] == "today"       - if task.start != nil && task.stop.nil?         %td underway       - elsif task.start !=nil , task.stop !=nil         %td complete 

  - elsif task.start !=nil , task.stop !=nil     %td       .btn.btn-mini complete 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -