diff --git a/app/views/profiles/show.html.erb b/app/views/profiles/show.html.erb index 864b4435..56ee5735 100644 --- a/app/views/profiles/show.html.erb +++ b/app/views/profiles/show.html.erb @@ -16,5 +16,7 @@
<%= mail_to @profile.user.email %>
-<%= link_to t('.edit', :default => t("helpers.links.edit")), +<% if can? :edit, @profile %> + <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_profile_path(@profile), :class => 'btn btn-default' %> +<% end %> \ No newline at end of file