app/controllers/admin/feature_names_controller.rb
# Overwrite the default destroy method so we can redirect_to(:back)
Overwrite the default destroy method so we can redirect_to(:back)
Overwrite the default destroy method so we can redirect_to ( : back )
def destroy
    name = FeatureName.find(params[:id])
    feature = name.feature
    name.destroy
    feature.update_cached_feature_names 
    redirect_to(:back)
  end
def destroy name = FeatureName . find ( params [ :id ] ) feature = name . feature name . destroy feature . update_cached_feature_names redirect_to ( :back ) end
Overwrite the default destroy method so we can redirect_to(:back)
Overwrite the default destroy method so we can redirect_to ( : back )
# took it out of the model to not choke the importer