render :update do |page|
page\.replace\_html 'chat\_area', :partial => 'chat\_area', :object
=> [@chats, @user] if @js_update
end
I believe this is expecting to find a div with id chat_area to
replace. I do not see this div in the code below, though I may be
just not be seeing it.
I believe this is expecting to find a div with id chat_area to
replace. I do not see this div in the code below, though I may be
just not be seeing it.
I find it out why it happens because I didn't close div above the
"chat_area" properly. the only thing i did isclose the div and it works
like a magic, neways thanks to all
I find it out why it happens because I didn't close div above the
"chat_area" properly. the only thing i did isclose the div and it works
like a magic, neways thanks to all
I suggest installing the html validator add-in to Firefox and that
will check the html of your pages as you develop them. This would
have shown your missing /div immediately.
Alternatively you can paste the html of the page into the w3c html
validator for checking but this is much less convenient.