Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Extra doc for using with Rails

  • Loading branch information...
commit 6c19466662bdc464ed39308a981b0cc1f0325d1e 1 parent c2e55f4
Mark Evans markevans authored

Showing 1 changed file with 11 additions and 1 deletion. Show diff stats Hide diff stats

  1. +11 1 extra_docs/UsingWithRails.md
12 extra_docs/UsingWithRails.md
Source Rendered
@@ -5,7 +5,7 @@ Dragonfly works with both Rails 2.3 and Rails 3.
5 5
6 6 The main way to use Dragonfly with Rails is as a {Dragonfly::Middleware middleware}.
7 7
8   -1. The initializer
  8 +1. Setting up
9 9 ------------------
10 10
11 11 The quick way
@@ -69,3 +69,13 @@ Now that you have a parasitic Dragonfly app living inside your Rails app, you ca
69 69 To see what you can do with the active record accessors, see {file:ActiveRecord}.
70 70
71 71 For more info about general Dragonfly setup, including avoiding denial-of-service attacks, see {file:GettingStarted}.
  72 +
  73 +Extra Config
  74 +------------
  75 +There are one or two config options you may commonly want to tweak.
  76 +In this case, add something like the following to your initializer:
  77 +
  78 + Dragonfly::App[:images].configure do |c|
  79 + c.url_handler.path_prefix = '/attachments' # configures where the Dragonfly app is served from - default '/media'
  80 + c.url_handler.secret = 'PUT A SECRET HERE!!' # for protecting from Denial-Of-Service attacks
  81 + end

0 comments on commit 6c19466

Please sign in to comment.
Something went wrong with that request. Please try again.