After saving a new rate from Projects, the rate link was pointed to the wrong url

#2031
This commit is contained in:
Eric Davis
2009-01-26 15:07:27 -08:00
parent 7c92da0720
commit 4acf180b95

View File

@@ -1,2 +1,2 @@
element = 'rate_' + @rate.project_id.to_s + '_' + @rate.user_id.to_s
page.replace_html element, "<strong>#{link_to number_to_currency(@rate.amount), { :action => 'edit', :id => @rate.user, :tab => 'rates'} }</strong>"
page.replace_html element, "<strong>#{link_to number_to_currency(@rate.amount), { :controller => 'users', :action => 'edit', :id => @rate.user, :tab => 'rates'} }</strong>"