bastiaanterhorst/rich — Issue #16: undefined local variable or method `files_path'
Author: abhijeetmisra
Created: 2012-02-28 20:26:52+00:00
State: open

I am trying to use rich in my active_admin form, and get the Name Error undefined local variable or method `files_path' when I click on "Browse and Upload Images".

The error is here :

<%= form_for(@rich_asset, :url => files_path) do |f| %>

<%= f.file_field :rich_file%>

<%= f.submit("Upload") %>
<% end %>

I am using Rich here :

= semantic_form_for [:admin, @blog] do |f|
= f.inputs do
= f.input :name, :label => "Blog Title", :input_html => {:size => 120}
= f.input :body, :as => :rich, :config => { :width => "76%", :height => "400px" }
= f.buttons :commit