README.md in bourgeois-0.0.1 vs README.md in bourgeois-0.1

- old
+ new

@@ -31,19 +31,17 @@ ``` Then, you can use the `present` helper in your views to wrap `ActiveModel` (and `ActiveRecord`) objects around a presenter: ```erb -# app/view/users/show.erb - -<%= present(@user) do |user| %> +<% present User.first do |user| %> <p>This is <%= user.formatted_name %></p> <% end %> ``` -Methods that aren’t in the presenter (`first_name` and `last_name`) are delegated to the presented object. +Methods that aren’t in the presenter (`first_name` and `last_name`) are delegated to the presented object. You can also use the `view` method in the presenter to get the original view it was called in. -## Inpiration +## Inspiration Bourgeois was inspired by some code [@rafBM](https://twitter.com/rafBM) wrote for [his OpenCode talk](https://github.com/rafBM/opencode12-rails) on May 28th, 2013. ## License