Displaying 1 result from an estimated 1 matches for "submit_remote_form".
2009 Apr 28
0
google adsense breaks render :partial =>
...ggie.
Except when that partial contains the javascript for my adsense account.
Then the partial renders correctly, and then quickly replaces my page
with nothing by the ad. When i take away my adsense js, everything works
great. Has anyone encountered this before, or know how to get around it?
def submit_remote_form
render :partial => "my_partial"
end
#views /my_partial
<% remote_form_for :action => :submit_remote_form do |f| %>
<%= f.text_field :something %>
<%= f.submit "submit" %>
<script type="text/javascript"><!--
google_ad_c...