Ruby on Rails enable history in ajax calls


Refer below link

http://lindsaar.net/2008/2/21/history-buttons-with-ajax-and-ruby-on-rails

and use the code

window.dhtmlHistory.create({



toJSON: function(o) {

return JSON.stringify(o);



} , fromJSON: function(s) {



return JSON.parse(s);



}



});


instead of


window.dhtmlHistory.create({   toJSON: function(o) {     return Object.toJSON(o);   },   fromJSON: function(s) {     return s.evalJSON();   } });    

on that post  Happy learning

Comments

Popular posts from this blog

Rails Memcache issues

Enabling password authentication for new ec2 box | ssh, ssh config, EC2 setup, new user in EC2, PasswordAuthentication

Ruby on Rails 3.x Skip callback and validation and reset Callback | Ruby on Rails, Skip callback, validation, reset Callback