superchris / edit_me
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
commit 69fbc7e703914c935beac5fc273e77aff578b731
tree 5d9344a4abeb92381299ff9b961e9d22b4dea708
parent 33dad06d239532a74c963fefd812acee2c135f6d parent 4eee7f5d99026a305493b82f114dfba5b76aa6a7
tree 5d9344a4abeb92381299ff9b961e9d22b4dea708
parent 33dad06d239532a74c963fefd812acee2c135f6d parent 4eee7f5d99026a305493b82f114dfba5b76aa6a7
edit_me /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Jan 21 07:58:17 -0800 2009 | |
| |
MIT-LICENSE | Fri Dec 26 10:55:42 -0800 2008 | |
| |
README | Wed Jan 21 07:59:47 -0800 2009 | |
| |
Rakefile | Fri Dec 26 10:55:42 -0800 2008 | |
| |
init.rb | Fri Dec 26 10:55:42 -0800 2008 | |
| |
install.rb | Fri Dec 26 10:55:42 -0800 2008 | |
| |
lib/ | Wed Jan 21 07:59:47 -0800 2009 | |
| |
public/ | Wed Jan 14 15:48:45 -0800 2009 | |
| |
tasks/ | Sun Jan 11 15:07:11 -0800 2009 | |
| |
test/ | Sun Jan 11 15:07:11 -0800 2009 | |
| |
uninstall.rb | Fri Dec 26 10:55:42 -0800 2008 |
README
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
