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 8388539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:29:34+00:00 2026-06-09T18:29:34+00:00

I am new in rails 3 I want to use some count down in

  • 0

I am new in rails 3

I want to use some count down in my view.

so I need some ajax query.

where will we write ajax code and how to use it in view?

Please help.

Thanks.

  • 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-09T18:29:35+00:00Added an answer on June 9, 2026 at 6:29 pm

    Any javascript functionality would be considered front-end. In rails or in a typical model-view-controller web framework, the view would be responsible to deal with any ajax or other javascript code. The best possible way of doing this, is having the view (a layout file, or action file) include a javascript file. Your javascript file would then have a function that would incorporate the ajax request. Your view should be the place to fire off the function. Just like an event system, the javascript would register the event (function), and the view would trigger that event. If it’s just a single ajax request then you could also leave out the trigger inside the view, and have a $(document).ready({…}) call inside your javascript file.

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

Sidebar

Related Questions

In rails I want to wrote some code to change this url string https://img.skitch.com/20101222-kg5chjx4jetgcdeaug46hi6jpk.jpg
I want to use Metrical with my brand-new Rails project using Ruby 1.9 hash
Let's say I want to add some new features to Rails. According to the
I am quite new to Rails, and I want to use a REST service
Starting a new rails project and we have a well-thought-out color palette, and want
I know new rails apps come with an empty favicon.ico file. I want to
I'm migrating my old blog posts into my new Rails blog, and I want
new on ruby and using windows xp and rails 3, i want to send
I want to build a custom ajax form (not interested in using the Rails
We have an old legacy PHP application. Now I want to write a new

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.