Wednesday, January 11, 2017

RAILS - ActiveAdmin disable comments delete? | Fixed issues

Newest questions tagged ruby-on-rails - Stack Overflow

RAILS - ActiveAdmin disable comments delete? | Fixed issues


RAILS - ActiveAdmin disable comments delete?

Posted: 11 Jan 2017 08:30 AM PST

After integrating the ActiveAdmin panel, I tried to find where can I modifiy any options to remove the possibility to delete comments

But I can't find this anywhere

it is possible the remove the comments removal ?

ActionController::RoutingError (No route matches [OPTIONS] "/batches"):

Posted: 11 Jan 2017 08:28 AM PST

I am trying to perform cross-platform request in rails.

My jquery code is as follow:-

<script>      $.ajaxSetup({        headers: {          'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')        }      });      $(document).ready(function () {          $('#submit-button').click(function() {              $.ajax({                  type: "POST",                  url: "http://localhost:3000/batches",                  beforeSend: function(xhr) {xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'))},                  xhrFields: {                      withCredentials: true                  },                  data: {                           batch: {                        name: $("#name").val(),                        course_id: $("#course_id").val(),                        start_date: $("#start_date").val(),                        end_date: $("

No comments:

Post a Comment