Bourgeois is a Ruby library that makes using presenters a very simple thing.
This is <%= user.formatted_name %>
<% end %> ``` 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: ```ruby # app/presenters/user_presenter.rb class UserPresenter < Bourgeois::Presenter def birthdate # To get the original `birthdate` value, you can either use `super` or `object.birthdate` super.presence || view.content_tag(:em, 'Unknown') end end ``` ### Custom block helpers You can use the simple `helper` DSL to define block helpers that will be executed if certain conditions are matched. ```ruby class UserPresenter < Bourgeois::Presenter helper :with_profile, if: -> { profile.present? && profile.public? } end User.first.profile = Profile.create(public: true, title: 'Foo', description: 'Bar') ``` ```erb <% present User.first do |user| %>