Merbists,<br><br>I saw a note in the attachment_fu source code regarding supporting Merb[1] as well as a post on the Caboose forum[2].<br>
<br>Has anyone gotten Merb working with Rick Olson&#39;s attachment_fu to handle uploads for a Rails app? <br><br>I&#39;ve hacked together something, but it&#39;s not pretty. Besides fixing the TODO mentioned in the attachment_fu source code to support Merb tempfiles, the main thing I&#39;ve done is change is attachment_fu&#39;s 
init.rb to manually load the files in its lib directory (and, trivially, define the RAILS_ROOT constant in merb_init.rb).<br><br>I think this is due to the way that merb loads plugins (Dir[DIST_ROOT+&quot;/plugins/*/init.rb&quot;].each { |m| require m }) versus how Rails loads plugins (see Rails::Initializer#load_plugin). Any thoughts on making Merb able to load a typical Rails ActiveRecord plugin more easily?
<br><br>Regards,<br>Luke Francl<br><br>[1] <a href="http://svn.techno-weenie.net/projects/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb">http://svn.techno-weenie.net/projects/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb
</a><br><br>[2] <a href="http://beast.caboo.se/forums/2/topics/833">http://beast.caboo.se/forums/2/topics/833</a><br>