I am trying to display the name of a Carrierwave application file in an erb Rails template. The following does not work:
<%= @page.form.filename %>
This is similar to the documentation . Is an extra step required?
My page model is as follows:
class Page < ActiveRecord::Base mount_uploader :form, FormUploader end
The user loading the form is as follows:
class FormUploader < CarrierWave::Uploader::Base storage :file def store_dir "uploads/
ruby-on-rails ruby-on-rails-3 carrierwave
Chris Alley Feb 27 '11 at 11:07 2011-02-27 11:07
source share