Repository is archived
No commit activity in last 3 years
No release in over 3 years
A rails_admin plugin to edit site contents from the frontend
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

PROJECT UNMAINTAINED

This project is not maintained anymore

If you like it or continue to use it fork it please.



RailsAdminLiveEdit Gem Version

A rails_admin plugin to edit site contents from the frontend.

If the user is logged in rails_admin a fixed bar on bottom is shown. It allows to edit (or delete) the current record (if in a show page) or to create a new one.

Demo: heroku app

Installation

  • Add to Gemfile: gem 'rails_admin_live_edit'

  • Add to application layout (in body) (erb example): <%= render 'live_edit/ra_live_editor' %>

  • [Optional] Instead of letting the model name being guest from the controller name that rendered the view you can render the live_editor partial passing the target_model and/or the target_model_id like this: <%= render partial: 'live_edit/ra_live_editor', locals: { target_model: 'post', target_model_id: 42 } %>

  • Edit or create app/assets/javascripts/rails_admin/custom/ui.js and add: //= require rails_admin/plugins/live_edit/ui.js

Notes

  • This plugin use current_user method to check if the user is logged in; to bypass this check it is possible to define a current_user helper method.

Preview

preview

Contributors