I am trying to display the filename of a Carrierwave attachment in a Rails erb template. The following does not work:
<%= @page.form.filename %>
@adamonduty's solution is great. Another solution I used before, just create a method on the model:
def name file.path.split("/").last end