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

ROR HEROKU Working with file storage like paperclip in heroku for free of cost ( paperclip and dropbox) paperclip-dropbox config | ROR, HEROKU, file storage, paperclip, in heroku, free of cost, paperclip, dropbox, paperclip-dropbox config