Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8439555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:01:40+00:00 2026-06-10T08:01:40+00:00

I have a page in my app where I’m using a button_to or button_to_function

  • 0

I have a page in my app where I’m using a button_to or button_to_function where a user can add a row to a table. Each row of the table is a data object from the Event model.

When a user clicks “Add Event” button, it should create a new Event object and render a row in the table which is a few drop downs that correspond to the fields in the event object. I will then be using best_in_place for in place editing to modify these fields.

What’s the best approach to use jquery to create a new Event object and append a row onto the table which has form fields that correspond to the newly created event object? I’m thinking a call to a controller action which creates the object and renders a partial, but not sure how to do this specifically.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:01:41+00:00Added an answer on June 10, 2026 at 8:01 am

    Have a look at Railscast #136 – http://railscasts.com/episodes/136-jquery

    It should get you headed in the right direction. Essentially your controller needs to respond to Javascript and then have a js template that will do what you want on the page when received by the browser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a single page web app that shows real time data using just
Imagine you have one page app using Javascript MVC, which should switch between sub-apps
I have a Facebook Page tab app. For a user who is not logged
I'm writing a little single page app (using knockout.js :-)) whereby i have a
I have been building a single page app using requireJS and so far loving
I have a page tab app. The authorization works fine - the user clicks
I have Page Tab App, which has a landing page with a Log In
I have page, i can contact directly without any problems. http://www.mysite.com/app_dev.php/comments/22 the page shows
I have a page X in my grails app which has a button to
I have developed a facebook page tab app for my website and now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.