Aha! Posting the full error text led me to read it more carefully.
There's a line in there that says:

app/helpers/listings_helper.rb:3:in `add_image_link'

Looked in add_image_link, which is a helper that dynamicall adds more
copies of the same partial. Needed to add the local variables there
too, and now all is golden! Thanks again for your help.

def add_image_link(name)
    link_to_function name do |page|
      page.insert_html :bottom, :attachments, :partial => 'listings/
attachment', :object => Attachment.new, :locals => {:foo => "bar"}
    end
  end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to