README.md in base_presenter-0.0.6 vs README.md in base_presenter-0.0.7

- old
+ new

@@ -21,27 +21,36 @@ In director root_rails/app/presenters create file example_presenter.rb with content ```ruby class ExamplePresenter < BasePresenter presents :example - delegate :name, :example + delegate :id, to: :example def name "Name" end def self.class_name "Example" end + + def link_to_example + handle_none example.name do + link_to(example.name, example_path(example)) + end + end + end ``` and in file show.html.erb with: * object `@example` ```erb <% present @example do |presenter| %> + Id: <%= presenter.id %> Name: <%= presenter.name %> + Url: <%= presenter.link_to_example %> <% end %> ``` * class `Example`