Question on rails , form_remote_tag and backbase



I been reading your book and going through the examples but i am stuck
on th using the form_remote_tag.

I am using the Backbase ajax framework with rails and protoype.js

The following form.rhtml file

<% if @guess %>

It seeems ‘<%=h @guess %>’ is hardly the right answer

<% end %>

<%= form_remote_tag(:update => “update_div”,
:url => {:action => :guess } ) %>

 <label for="guess">Ruby on ....? </label>
 <%= text_field_tag :guess %>
 <%= submit_tag "Post with Ajax" %>

<%= end_form_tag %>

and template file

<?xml version="1.0" ?> <html

xmlns=“” xmlns:b=“

<%= javascript_include_tag “prototype” %>

<%= render(:partial => 'form') %>

It generates the html below

?xml version=“1.0” ?>



label for=“guess”>Ruby on …?


but the backbase box “<b:box>” disappears when i submit the form and the
url changes to …/guess instead of doing a partial update.

If i take out the backbase code the rails/ruby code works as it should.

Any suggestions? thx.