Skip to content

Commit

Permalink
fix a bug in rails with url_for
Browse files Browse the repository at this point in the history
  • Loading branch information
PullMonkey committed Dec 4, 2008
1 parent 0427e73 commit a790f00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/open_flash_chart/ofc_ajax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def link_to_remote_ofc_load(link_text, div_name, url)

def periodically_call_to_remote_ofc_load(div_name, url, options={})
fx_name = "#{div_name.gsub(" ","_")}"
# fix a bug in rails with url_for
url = url.gsub("&","&")
<<-OUTPUT
<script type="text/javascript">
function reload_#{fx_name}() {
Expand Down

0 comments on commit a790f00

Please sign in to comment.