Skip to content

Instantly share code, notes, and snippets.

View tensiondriven's full-sized avatar

Jonathan Yankovich tensiondriven

View GitHub Profile
%h1 Listing tasks
%table
%tr
%th Name
%th Type
%th Active
%th{:style=>"width: 300px"}
- @tasks.each do |task|
%tr
%td
%td
= form_for task, :remote => true, :url => ajax_update_path do |f|
= f.collection_select :task_type_id, TaskType.all, :id, :name, {}, { :class => 'submittable'}