README.markdown in roar-rails-0.0.5 vs README.markdown in roar-rails-0.0.6
- old
+ new
@@ -89,13 +89,15 @@
Any URL helpers from the Rails app are automatically available in representers.
```ruby
module FruitRepresenter
include Roar::Representer::JSON
+ include Roar::Representer::Feature::Hypermedia
link :self do
fruit_url self
end
+end
```
To get the hyperlinks up and running, please make sure to set the right _host name_ in your environment files (config/environments):
```ruby
config.representer.default_url_options = {:host => "127.0.0.1:3000"}