Displaying 1 result from an estimated 1 matches for "show_counts".
2007 Aug 23
2
Render partial from Backgroundrb worker?
...r_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 will be much more performant than my...