Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Добавить модель для презентаций, видео и прочих материалов к докладу #18

Open
dapi opened this issue Sep 2, 2011 · 3 comments

Comments

@dapi
Copy link
Member

dapi commented Sep 2, 2011

Для каждого доклада можно выложить (загрузить) или указать ссылку на материал - видео, презентация.

Думаю надо модель типа:

discourse_files
discourse_id
file string - аттач через carrierwave
remote_url
is_remote - boolean указывает это файл загружен и лежит в file или использовать remote_url
media_type - video, presentation, other

Сделать возможность подгружать данные в эту модель со страницы дискусии для админа или владельца дискуссии

@alekspav
Copy link
Contributor

alekspav commented Sep 2, 2011

discourse_files какой тип имеет? коллекция?
remote_url - туда файл презентаций, видео и прочих материалов к докладу положить?

@alekspav
Copy link
Contributor

alekspav commented Sep 2, 2011

remote_url ссылка на материал как я понял

@dapi
Copy link
Member Author

dapi commented Sep 2, 2011

один discourse имеет много discourse_files

remote_url - ага ссылка. То есть в объекте ссылка на remote_url или файл приаттаченный к file (лучше это поле в attach переименовать)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants