mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-04 16:28:50 +01:00
Create attachment model and hook it up to todo
An attachment has write permissions on group so that managing attachments work from different users in same group, i.e. user apache and user mail.
This commit is contained in:
parent
5499ac2a03
commit
2bd68fecb7
10 changed files with 121 additions and 39 deletions
|
|
@ -101,11 +101,12 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
# match /todos/tag and put everything in :name, including extensions like .m and .txt.
|
||||
# match /todos/tag and put everything in :name, including extensions like .m and .txt.
|
||||
# This means the controller action needs to parse the extension and set format/content type
|
||||
# Needed for /todos/tag/first.last.m to work
|
||||
get 'todos/tag/:name' => 'todos#tag', :as => :tag, :format => false, :name => /.*/
|
||||
|
||||
get 'attachments/:id/:filename' => "todos#attachment"
|
||||
get 'tags.autocomplete' => "todos#tags", :format => 'autocomplete'
|
||||
get 'todos/done/tag/:name' => "todos#done_tag", :as => :done_tag
|
||||
get 'todos/all_done/tag/:name' => "todos#all_done_tag", :as => :all_done_tag
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue