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

  • SEARCH
  • Home
  • 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 8034961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:10:21+00:00 2026-06-05T02:10:21+00:00

I have a question regarding displaying and updating many elements from a Rails model

  • 0

I have a question regarding displaying and updating many elements from a Rails model in response to dynamic selection criteria within the view.

I am creating an application that will allow you to step through the “history” of a series of “events” stores as an ActiveRecord relation. Initially – I would like the user to select a date range which the events will be constrained within. The page should then load a table (or only part of table) beginning with the first event within the date range.

The user should then be able to use left/right buttons to step through the events table and a series of business figures will update dynamically in response to what event we are up to in the table i.e. after stepping through the first 5 events the total revenue figure will be the sum of revenue over these 5 events.

Ideally I also want to be able to display this information on a Google Visualization…

Is anyone able to point me in the right direction for how I should go about this? I understand the controller side processing to get the right selection from the database table but I am unsure how I should be handling requests with Ajax and how often I should be requiring a new request from the client.

Any advice would be appreciated. Thanks in adv.

  • 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-05T02:10:23+00:00Added an answer on June 5, 2026 at 2:10 am

    AJAX requests are handled the same way as regular HTTP requests, you just have to make sure you have the right routes setup. The main different is that you usually will render a .js.erb file, instead of a .html.erb one (assuming you’re using ERB).

    There’s a lot of material about this out in the Web, and one of the best starting points is the Rails Guides – http://guides.rubyonrails.org/layouts_and_rendering.html.

    PS: Mind that your question is really broad, so it’s unlikely that you’ll good answers.

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

Sidebar

Related Questions

I have a question regarding parsing data from Wikipedia for my Android app. I
I have a question regarding calling methods from different threads. Well I am using
I have a question regarding removing duplicates after sorting within a tuple in R.
I have question regarding the SQLAlchemy. How can I add into my mapped class
I have question regarding the use of function parameters. In the past I have
I have question regarding disabling browser caching. I have already found few solutions, and
I have a question regarding django templates and html frameset's. I would like to
I have a question regarding FLWOR joins. Here's an overview of how my XMLs
I have a question regarding file reading and I am getting frustrated over it
I have a question regarding the FractionRgbData class of Neuroph ImageRecognition of Neuroph 2.6.

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.