README.md in redditor-0.1.10 vs README.md in redditor-0.1.11
- old
+ new
@@ -15,16 +15,27 @@
todo: проверить вариант загрузки через fileapi c последующим сохранением всей формы через submit.
Как вариат добавлять атрибут с помощью js
Add gem to your Gemfile
+ gem 'fileapi'
gem 'redditor'
+or
+
+ gem 'fileapi', :github => 'redde/fileapi'
+ gem 'redditor', :github => 'redde/redditor'
+
and
bundle
+### TODO:
+add **fileapi** to automation dependencies
+
+
+
Then generate migrations
bundle exec rake redditor:install:migrations
And migrate the database
@@ -35,11 +46,11 @@
has_redditor
In admin new/edit view if that model add
- %div= render "redditor/admin/pages/page", {f: f}
+ %div= render "redditor/admin/page", {f: f}
Add `multipart: true` to form of object with redditor
html: {multipart: true}
@@ -51,10 +62,13 @@
@article.build_page.save unless @article.page
Add redditor js to your js manifest file for admin (admin.js)
- //= require redditor/application
+ //= require jquery
+ //= require jquery.ui.sortable
+ //= require redditor
Add redditor styles to css manifest file for admin (admin.css)
- //= require redditor/application
+ //= require fileapi
+ //= require redditor
\ No newline at end of file