Question on rails , form_remote_tag and backbase


#1

David,

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=“http://www.w3.org/1999/xhtml” xmlns:b=“http://www.backbase.com/b
xmlns:s=" http://www.backbase.com/s">

<%= javascript_include_tag “prototype” %>

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

It generates the html below

?xml version=“1.0” ?>

</
head>

 <

label for=“guess”>Ruby on …?


</
form>

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.

bob