How to add an "edit this item" button

Want to add an "Edit this item" button to take you straight to the edit item page? Here is how you do it ...

How to add an “edit this item” button

Want to add an “Edit this item” button to take you straight to the edit item page? Here is how you do it …

{% if current_user.admin? %} <a href="{{ item.edit_url }}" class="btn"> Edit this item &raquo; </a> {% endif %}

It’s a great timesaver!

by Craig Sullivan
launch.ly

7 Jun 2012