README.rdoc in papermill-0.5.7 vs README.rdoc in papermill-0.5.8
- old
+ new
@@ -1,14 +1,14 @@
= Papermill
Asset management made easy.
== Install the gem!
+
+ $ gem sources -a http://gems.github.com # only once (needed for gem dependencies)
+ $ sudo gem install papermill
- $ gem sources -a http://gems.github.com
- $ sudo gem install BBenezech-papermill
-
== Try the demo!
$ sudo gem install sqlite3-ruby
$ rails -m http://gist.github.com/177714.txt papermill-example
$ cd papermill-example
@@ -41,9 +41,29 @@
=== Once you've installed the gem, generate a migration and copy a couple of static assets:
# copy static assets and generate a migration
$ ./script/generate papermill PapermillMigration
$ rake db:migrate
+
+=== Then in environment.rb:
+
+ config.gem papermill
+
+=== You can also modify a couple of default options that will be available application-wide :
+
+ Papermill::OPTIONS = {
+ :thumbnail => {
+ :width => 150,
+ :height => 100
+ },
+ :aliases => {
+ :big => "500x500>"
+ :small => "100x100>"
+ },
+ :public_root => ":rails_root/public", # already a default
+ :papermill_prefix => "system/papermill" # already a default
+ }
+ # see lib/papermill/papermill_module.rb for more options.
=== In your assetable model:
# You can set a catch-all papermill association :
papermill :class_name => Asset
\ No newline at end of file