Active Storage doesn't have validations yet.
We can restrict the accepted file types in the form:
<div class="field">
<%= f.label :deliverable %>
<%= f.file_field :deliverable, direct_upload: true,
require "rubygems" | |
require "rbosa" | |
if `ps aux`.match(/Things\.app/) | |
things = OSA.app('Things') | |
if things.lists[1].to_dos.size != 0 | |
things.lists[1].to_dos.each {|todo| | |
`echo #{todo.name} | growlnotify -a Things` | |
} | |
end |