RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: mohamagdy
Site: http://lienzo.biz
If you need it simple then acts_as_votable will be a solution for you. activerecord-reputation-system has some advanced options.
acts_as_votable
activerecord-reputation-system
Aha, I see, thanks for sharing. May be acts_as_votable replaces the doing from scratch approach.
I don't know what makes this gem different from the existing acts_as_votable gem https://github.com/ryanto/acts_as_votable?
If anyone still having a problem with saving the changes then add the following lines in your mercury.js file. Thanks to @seventhsense
onload: function() { //Mercury.PageEditor.prototype.iframeSrc = function(url) { return '/testing'; } Mercury.on('ready', function() { var link = $('#mercury_iframe').contents().find('#edit_link'); Mercury.saveUrl = link.data('save-url'); link.hide(); }); Mercury.on('saved', function() { window.location.href = window.location.href.replace(/\/editor\//i, '/'); }); }
+1
If you need it simple then
acts_as_votable
will be a solution for you.activerecord-reputation-system
has some advanced options.Aha, I see, thanks for sharing. May be
acts_as_votable
replaces the doing from scratch approach.I don't know what makes this gem different from the existing
acts_as_votable
gem https://github.com/ryanto/acts_as_votable?If anyone still having a problem with saving the changes then add the following lines in your mercury.js file. Thanks to @seventhsense
+1