fixes for rm2.x
This commit is contained in:
@@ -52,8 +52,8 @@ module RateHelper
|
||||
url_options[:user_id] ||= options[:user_id]
|
||||
#####
|
||||
|
||||
link_to_remote(caption,
|
||||
{:update => options[:update] || "content", :url => url_options, :method => options[:method] || :post},
|
||||
link_to(caption,
|
||||
{:remote => true, :update => options[:update] || "content", :url => url_options, :method => options[:method] || :post},
|
||||
{:href => url_for(url_options),
|
||||
:class => css})
|
||||
# link_to caption, :remote => true
|
||||
@@ -88,7 +88,7 @@ module RateHelper
|
||||
#####
|
||||
|
||||
link_to_remote(caption,
|
||||
{:update => options[:update] || "content", :url => url_options, :method => options[:method] || :post},
|
||||
{:remote => true, :update => options[:update] || "content", :url => url_options, :method => options[:method] || :post},
|
||||
{:href => url_for(url_options)}) +
|
||||
(icon ? nbsp(2) + image_tag(icon) : '')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user