Hello,
I ma following ryanb screencast about Ajax, and i am trying to add an
element to my list using ajax and RJS. My problem is that my object is
correctly inserted but the rendering isn't working because the "bottom"
property is null...

Here is the error:
try {
Element.insert("message_list", { after: null });
} catch (e) { alert('RJS error:\n\n' + e.toString());
alert('Element.insert(\"message_list\", { after: null });'); throw e }

Here is my RJS File:
page.insert_html :after, :message_list, :render => "message", :object =>
@message

And here is my html code
<ul id="message_list">
  <%=render :partial => "message", :collection => @messages%>
  <%if can? :create, Message.new %>
    <li id="new_message"><%= render :partial => "form"%></li>
  <%end%>
</ul>


Any clue?
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to