Skip to content Skip to sidebar Skip to footer

No Method Error Rails On Ajax Post Request

I'm trying to do an AJAX POST request from fullcalendar to rails, but I get no method error and I don't know why as the parameters seem to be fine. If I leave out event: from the a

Solution 1:

You've defined the event_params method but you're not calling it anywhere. In the create method, at the top, (assuming the class for @event is Event), add the line

@event = Event.new(event_params)

Post a Comment for "No Method Error Rails On Ajax Post Request"