Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?

Aime Ngongang asked in General

How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?

Reply

I just want to test if this will work

Reply

Have you watched the AJAX episode? https://gorails.com/episodes/jquery-ujs-and-ajax

Reply

To post a comment with Ajax in Rails 4.2, you first need to create a new post and select the "Post Comment" option from the drop-down menu. Then, you need to provide the necessary information, such as your name, email address, and website. After you've filled out the information, you'll be able to submit your comment.

Reply

I appreciate you sharing this helpful information on this new field. I like what you wrote. slither io

Reply

Rails 4.2 is quite old, and newer versions of Rails (such as Rails 5, 6, or later) have seen significant improvements and changes. Consider upgrading your application if possible

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 78,890+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2023 GoRails, LLC. All rights reserved.