Hobo / hobo

The web app builder for Rails (moved from tablatom/hobo)
http://hobocentral.net
103 stars 39 forks source link

disabling #show action disables trashcan link in <bootstrap-table-actions/> #164

Open HuBandiT opened 9 years ago

HuBandiT commented 9 years ago

auto_actions :all, except: :show causes the <bootstrap-table-actions/> trashcan icon to lose its link, with the following message appearing in the log:

recognize_path has failed: No route matches "/foos/1-asd"

Looks like the logic within the link validity test tests the path with the default HTTP verb GET (which ends up testing the existence of the #show action) instead of the correct DELETE (which would correctly test the existence of the #destroy action).