app/views/itsf/backend/resource/base/show.html.haml in itsf_backend-1.1.3 vs app/views/itsf/backend/resource/base/show.html.haml in itsf_backend-1.1.4
- old
+ new
@@ -18,11 +18,15 @@
.panel-footer
= render 'show_extras', resource: @resource
.well.well-sm
- = link_to(edit_resource_path(@resource), class: 'btn btn-primary btn-responsive') do
- %span.glyphicon.glyphicon-pencil
- %span.btn-text= t('.edit')
- = link_to collection_path, class: 'btn btn-default btn-responsive pull-right' do
- %span.glyphicon.glyphicon-arrow-left
- %span.btn-text= t('.back')
+ - begin
+ = link_to(edit_resource_path(@resource), class: 'btn btn-primary btn-responsive') do
+ %span.glyphicon.glyphicon-pencil
+ %span.btn-text= t('.edit')
+ - rescue ActionController::UrlGenerationError
+ - begin
+ = link_to collection_path, class: 'btn btn-default btn-responsive pull-right' do
+ %span.glyphicon.glyphicon-arrow-left
+ %span.btn-text= t('.back')
+ - rescue ActionController::UrlGenerationError
\ No newline at end of file