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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -