Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

How do I get Rails Ajax to work using ujs

Javascript • Asked by Denswami

I am trying to user ajax on rails using the ujs library.

I am calling the new controller action,with the remote: true property, however the request is being processed as JSON instead of JS.

Have you added the correct js “format” in your controller's action?

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 31,152+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.