I would like to use a partial with dynamic locals. But I cant seem to figure out how to do it. this works with 1 local but not multiple. partial_name = "shared/simple_partial_with_locals" local_hash = {:local1 => "local 1 value"} render :partial => partial_name, :locals =>{ local_hash } any ideas on how I could accomplish this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Tom Lea
2008-Aug-28 20:08 UTC
[patch] content_tag_for refactor/bug fix, looking for feedback
Small refactor of content_tag_for, makes it work in helper_methods, and dries it out a bit. Looking for comments. http://rails.lighthouseapp.com/projects/8994/tickets/871 Thanks in advance, Tom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---