rails_admin
https://github.com/railsadminteam/rails_admin
Ruby
RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
WikiPage#update
Updates an existing Wiki Page, creating a new version.
attrs - Hash of attributes to be updated on the page.
:content - The raw markup content to replace the existing.
:format - Optional symbol representing the content format.
See ProjectWiki::MARKUPS Hash for available formats.
:message - Optional commit message to set on the new version.
:last_commit_sha - Optional last commit sha to validate the page unchanged.
:title - The Title to replace existing title
Returns the String SHA1 of the newly created page
or False if the save was unsuccessful.Edit
git clone [email protected]:railsadminteam/rails_admin.git
cd rails_admin
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-WikiPage-update-for-pr
# Commit to gitgit add git commit -m "better docs for WikiPage#update"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-WikiPage-update-for-pr
hub pull-request
# Celebrate!