search for: parent_tags

Displaying 1 result from an estimated 1 matches for "parent_tags".

Did you mean: parent_flags
2007 Aug 23
2
Render partial from Backgroundrb worker?
...ntly generated with call to render_to_string: File.open(File.join(target_folder, ''all.js''), "w") do |file| file.puts(render_to_string :partial => ''partials/shared/javascript/tags'', :locals => { :namespaces => @namespaces, :tags => @tags, :parent_tags => @parent_tags, :show_counts => true }) end It seems that the render_to_string is not available to the worker. Does anyone know of a better way to achieve this using a partial? I can fall back to generating the javascript text in a method, but this seems quite an ugly solution (although wil...