markevans/dragonfly — Issue #142: Documentation bug for "Downloaded filename"
Author: rodrigob
Created: 2011-10-27 21:31:11+00:00
State: open

The documentation suggests using
http://markevans.github.com/dragonfly/file.URLs.html#Downloaded_filename

````
"#{job.basename}_#{job.process_steps.first.name}.#{job.format}"
````

when I used this on my code, I got right away a "nil has no method name" error.
I suggest fixing the documentation as

````
"#{job.basename}.#{job.format}"
````

or as my current code

````
if job.process_steps.empty? then
"#{job.basename}.#{job.format}"
else
"#{job.basename}_#{job.process_steps.first.name}.#{job.format}"
end
````

Thanks for having good documentation to start with !