I am using the Jquery FullCalendar in an app. When I click on a day I post
an ajax request. I keep getting the 422 response as the authenticity_token
is invalid. I put the skip_before_filter to not require it but I keep
getting the 422 error.
skip_before_filter :verify_authenticity_token
I found a post on how to send the token along but that has not fixed the
issue.
dayClick: function(event, jsEvent, view){
jQuery.ajax({
type: 'post',
url: "/days/new",
dataType: 'script'
});
},
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.