if got some problems getting the Ajax.Request to work with rails.
sending the request via onclick works but the interpretaition fails
if I execute:
render :update do |page|
page.replace ‘test’, :text => ‘it works’
I get 2 alerts:
TypeError: $("#test") is null
There is a div with id=“test” given.
To know more about it I changed the div’s id to “#test”.
all I get is:
TypeError: $("#test").replaceWith is not a function
not quite sure if prototype is really implemented. How can I check this?