Code Monkey home page Code Monkey logo

edit_me's Introduction

EditMe
=============

The edit_me plugin makes the views of your rails app editable.  It requires
your app to be a git repository, as it uses git to track changes.

Installing
==========

1. You'll need the git gem.  Add it to your rails app like so:

config.gem "schacon-git", :lib => "git", :source => "http://gems.github.com"

2. script/plugin install <git repo>

3. add map.edit_me to the end of routes.rb

4. rake edit_me:install will copy javascript and css files into you're public
directory so edit_me will be pretty and wymeditor will work

Usage
=====

Firstly, you're app has to be a git repo with an initial commit.  Doing

git init
git add .
git commit -m "Initial commit"

will take care of this for you.

Now fire up you're app.  To enter edit mode hit the url /edit_me/edit_mode?editing=true.
This puts you in edit mode.  Now when you hit your pages you will see little
pencil icons in your views.  Click one.  You will see 2 tabs, Edit and Hitory.
Wymeditor is the editor used here.

Configuration
=============

You can change which files are editable by setting/adding to
 EditMe::Editable.includes and EditMe::Editable.excludes.  These are arrays of
regexes.

Future
======

Escaping <% in rhtml
Multiple types of editors
More git features?
File tree browser?

Copyright (c) 2008 Christopher C. Nelson, released under the MIT license

edit_me's People

Contributors

rab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rab dougalcorn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.