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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -