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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:54:17+00:00 2026-05-28T04:54:17+00:00

Apologies in advance if this is a silly question, am very much a beginner.

  • 0

Apologies in advance if this is a silly question, am very much a beginner.

The rails book I’m reading has reached the point where the reality of the current rails framework differs from the one that was current in the book. Specifically, this is around Ajax functionality. The book suggests creating an app/views/comments/new.js.erb file to handle ajax requests, as also demonstrated by this railscast;

http://railscasts.com/episodes/205-unobtrusive-javascript?autoplay=true

Is this still the way things are done in rails 3.1? I have seen that the javascripts/stylesheets are now fed through the assets pipeline, I was wondering if this has changed the way that ajax requests are performed (even if it’s just a new suggestion of best practice). Can I still rely on tutorials that suggest creating js.erb files in the views folder or is there a new best practice?

  • 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-05-28T04:54:18+00:00Added an answer on May 28, 2026 at 4:54 am

    Here you have a railscast about the Asset Pipeline: http://railscasts.com/episodes/279-understanding-the-asset-pipeline.

    The Asset Pipeline serves static assets, not dynamic, so we should still rely in js.erb files.
    You may also want to check this Guide, which mentions how to use js.erb files in conjunction with the Asset Pipeline: http://guides.rubyonrails.org/asset_pipeline.html#javascript-coffeescript-and-erb

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

Sidebar

Related Questions

This is a very wide-ranging/vague question, but here goes. Apologies in advance. The app
Apologies in advance, because I suspect this may be a silly question. I have
Apologies in advance if this is a silly question but I'm wondering which might
This may be a very simplistic question, so apologies in advance, but I am
Apologies in advance if this becomes a very long question... Background Info I have
I appreciate this question is a little silly, so I apologise in advance if
This may be a bit of an abstract question, so apologies in advance. I
This, I'm sure is a pretty basic question about JavaScript, so apologies in advance.
This is a very noobish question, so I apologize in advance! I have two
I apologize in advance because this is somehow a silly question, but I just

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.