app/helpers/spaghetti_helpers.rb in spaghetti-0.5.1 vs app/helpers/spaghetti_helpers.rb in spaghetti-0.6.0
- old
+ new
@@ -1,9 +1,9 @@
module SpaghettiHelpers
def spaghetti name, path_or_items, options = {}
output = ''.html_safe
if path_or_items.class.name == 'String'
- output << "<div class=\"#{ name } spaghetti spaghetti-empty\" data-spaghetti-enabled=\"1\" data-spaghetti-url=\"#{ path_or_items }\" data-spaghetti-next-page=\"1\"><div class=\"#{ name }-items\"></div><div class=\"throbber\">#{ image_tag 'throbber.gif' }</div></div>".html_safe
+ output << "<div class=\"#{ name } spaghetti spaghetti-empty\" data-spaghetti-enabled=\"1\" data-spaghetti-url=\"#{ path_or_items }\" data-spaghetti-next-page=\"1\"><div class=\"#{ name }-items spaghetti-items\"></div><div class=\"throbber\">#{ image_tag 'throbber.gif' }</div></div>".html_safe
else
if path_or_items.any?
if options[:partial]
items = j(render(:partial => options[:partial], :collection => path_or_items))
else
\ No newline at end of file