Skip to content

Instantly share code, notes, and snippets.

@nakaearth
Created July 2, 2014 06:25
Show Gist options
  • Save nakaearth/1bea0e1edb92d56b317b to your computer and use it in GitHub Desktop.
Save nakaearth/1bea0e1edb92d56b317b to your computer and use it in GitHub Desktop.
draperを使った場合のshow.html.erb
<p id="notice"><%= notice %></p>
<p>
<strong>Name:</strong>
<%= @user.name %>(<%= @user.short_name %>)
</p>
<p>
<strong>Age:</strong>
<%= @user.age %>
</p>
<%= link_to 'Edit', edit_user_path(@user) %> |
<%= link_to 'Back', users_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment