An older version of this project from bernat/best_in_place (branch: rails-4) that is used in the cmuis.net project.