README.md in outpost-cms-0.0.3 vs README.md in outpost-cms-0.0.4

- old
+ new

@@ -1,6 +1,8 @@ # Outpost +![Outpost Sign](http://i.imgur.com/NWfpNk5.jpg) + [![Build Status](https://travis-ci.org/SCPR/outpost.png)](https://travis-ci.org/SCPR/outpost) A Rails Engine for quickly standing up a CMS for a Newsroom. ## Dependencies @@ -81,11 +83,11 @@ ##### Routes Note that this gem doesn't provide any routes for you. It is expected that you'll want to use the path globbing to render Outpost-style 404's inside of Outpost (rather than your application's 404 page), so it gets too messy and complicated to try to combine your routes with path globbing. -You'll want to put this at the bottom of you `outpost` namespace in your routes: +You'll want to put this at the bottom of your `outpost` namespace in your routes: ```ruby root to: 'home#dashboard' resources :sessions, only: [:create, :destroy] @@ -274,10 +276,23 @@ resources :reporters, concerns: [:previewable] resources :stories, concerns: [:previewable] ``` +### Utilities + +#### Prevent the `enter` key from submitting your forms +On some pages, like New and Edit, we don't want the "Enter" key to submit the +form. You can prevent this by adding: + +```javascript + <script>outpost.Utilities.preventEnterFromSubmittingForm("#edit_blog_entry");</script> +``` + +The form ID argument is optional. By default it will target all forms on the page. + + #### More documentation to come. ## Todo A ton of stuff. Here is a sampler: @@ -291,5 +306,8 @@ make them. Fork it, make your changes, and send me a pull request. Run tests with `bundle exec rake test` + + +![Outpost](http://i.imgur.com/cU24Ylh.png)