title: save attachments to database and Rails application public directory
body: <p>I am new to ROR and learning it.I am using Rails 2.3.5. I have a form where I can attach multiple files. I need to save these attachments in my db and also in a directory in my application directory. I dont want to use paperclip plugin as I need to learn File system as well as how to create dir and save these attachments into it. So any references/tutorials would be highly appreciated. Please help. 
  When I submit the form I get the params in the console as</p>
  
  <pre><code>Processing ReminderPluginController#create_reminder (for 127.0.0.1 at 2013-10-05 19:52:14) [POST]
    Parameters: {"reminder"=&gt;{"subject"=&gt;"Hello", "email"=&gt;"", "body"=&gt;"&lt;p&gt;My first thing&lt;/p&gt;"}, "attachments"=&gt;[#&lt;File:/tmp/RackMultipart20131005-8107-o8osmj-0&gt;, #&lt;File:/tmp/RackMultipart20131005-8107-1n1k7pz-0&gt;], "controller"=&gt;"reminder_plugin", "select_batch"=&gt;{"batch"=&gt;"2"}, "recipients"=&gt;"20", "select_department"=&gt;{"department"=&gt;""}, "commit"=&gt;"Send", "authenticity_token"=&gt;"pKT8//ESD5SWvSuelVpOiHw3k30RxrqDOODckUToURs=", "action"=&gt;"create_reminder"}
  </code></pre>
  
  <p>But I have no idea about creating directory and saving attachments in it.. </p>