My guess is that your syntax is incorrect and you are missing the name
of the partial to render itself and also either the :object
or :collection symbols.
This is from the documentation to rendering partials, in case it
helps:
# Renders the same partial with a local variable.
render :partial => "person", :locals => { :name => "david" }
# Renders the partial, making @new_person available through
# the local variable 'person'
render :partial => "person", :object => @new_person
# Renders a collection of the same partial by making each element
# of @winners available through the local variable "person" as it
# builds the complete response.
render :partial => "person", :collection => @winners
# Renders a collection of partials but with a custom local variable
name
render :partial => "admin_person", :collection => @winners, :as
=> :person
# Renders the same collection of partials, but also renders the
# person_divider partial between each person partial.
render :partial => "person", :collection =>
@winners, :spacer_template => "person_divider"
# Renders a collection of partials located in a view subfolder
# outside of our current controller. In this example we will be
# rendering app/views/shared/_note.r(html|xml) Inside the partial
# each element of @new_notes is available as the local var "note".
render :partial => "shared/note", :collection => @new_notes
# Renders the partial with a status code of 500 (internal error).
render :partial => "broken", :status => 500
> 31:in `call' ...
>
> read more »