README.md in parklife-0.5.1 vs README.md in parklife-0.6.0
- old
+ new
@@ -21,18 +21,18 @@
## How to use Parklife with Rails
Parklife is configured with a file called `Parkfile` in the root of your project, here's an example `Parkfile` for an imaginary Rails app:
```ruby
+# Load Parklife's Rails-specific integration which, among other things, allows
+# you to use URL helpers within the `routes` block below.
+require 'parklife/rails'
+
# Load the Rails application, this gives you full access to the application's
# environment from this file - using models for example.
require_relative 'config/environment'
-# Load Parklife and some Rails-specific settings allowing you to use URL
-# helpers within the `routes` block below.
-require 'parklife/rails'
-
Parkfile.application.routes do
# Start from the homepage and crawl all links.
root crawl: true
# Some extra paths that aren't discovered while crawling.
@@ -74,10 +74,10 @@
build/location/index.html
build/feed.atom
build/sitemap.xml
```
-Parklife doesn't know about assets (images, CSS, etc) so you likely also need to generate those and copy them to the build directory, see the [Rails example's full build script](examples/rails/parklife-build) for how you might do this.
+Parklife doesn't know about assets (images, CSS, etc) so you likely also need to generate those and copy them to the build directory, see the [Rails example's full build script](examples/rails/bin/static-build) for how you might do this.
## More examples
Take a look at the [Rails](examples/rails/Parkfile), [Rack](examples/rack/Parkfile) and [Sinatra](examples/sinatra/Parkfile) working examples within this repository.