I am trying to display the filename of a Carrierwave attachment in a Rails erb template. The following does not work:
<%= @page.form.filename %>
If you're using ActiveRecord, you can directly access the field named form in two ways:
form
def my_method self[:form] end
or
def my_method form_before_type_cast end
The second method is read-only.