I am trying to pass a variable to a partial so that it can be called within the partial This is how i am rendering the partial
= render :partial => "layouts/reveal_delete", :resource => @schedule
and this is how i am calling the variable within the partial, though it doesnt appear to be working
#RevealDelete.reveal-modal
%a.close-reveal-modal ×
%h3= "Delete #{@resource}"
%p Are you sure you want to delete this?
=link_to "Delete #{@resource}", @resource, :method => :delete, :class => "button close-reveal-modal"
%a.button.alert.close-reveal-modal Cancel