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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:38:49+00:00 2026-05-26T04:38:49+00:00

what am I doing wrong with the following Ajax request…? The link/call: <%= link_to

  • 0

what am I doing wrong with the following Ajax request…?

The link/call:

<%= link_to 'Business Analysis', it_business_analysis_path, :remote => true %>

The route:

match 'it/business_analysis' => 'informationtechnology#business_analysis', :as => :it_business_analysis

The controller:

class InformationtechnologyController < ApplicationController  
  def business_analysis

    render :update do |page|
      page.replace_html 'page_content', :partial => 'business_analysis'
    end

  end
end

The view:

<div id="page_content">
</div>

The partial is called:

_business_analysis.html.erb

The ERROR:

Action Controller: Exception caught

<h1>Template is missing</h1>
<p>Missing template informationtechnology/update, application/update with {:formats=&gt;[:js, &quot;application/ecmascript&quot;, &quot;application/x-ecmascript&quot;, :html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json], :handlers=&gt;[:builder, :coffee, :erb], :locale=&gt;[:en, :en]}. Searched in: * &quot;/home/<user_name>/Websites/<project_name>/app/views&quot;

It seems Rails is looking for a view called “update” – why and how do I fix this?

Thanks a lot!
Tom

  • 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-26T04:38:50+00:00Added an answer on May 26, 2026 at 4:38 am

    Ok, for anybody having a similar isssue, I found the solution:

    The problem is that, in Rails3, Prototype was replaced with jQuery. Therefor the following code is no longer valid:

    render :update do |page|
      page.replace_html 'page_content', :partial => 'business_analysis'
    end
    

    The following 2 links will explain the details on how to deal with jQuery:

    Rails 3: Simple AJAXy Page updates?

    http://railscasts.com/episodes/205-unobtrusive-javascript

    Tom

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

Sidebar

Related Questions

I am new to doing Ajax request and have put together the following Pastie
I have the following Ajax call: function ajaxCall(soap, url){ // Post SOAP request. $.ajax({
I am doing a cross domain request using $.ajax . It works on Firefox
I have the following jQuery ajax call setup: function Testing() { var result =
I'm using the following ajax function: function callAjax(request,callback) { if (window.XMLHttpRequest) {// code for
I have the following code: var acOptions = { source:function (request, response) { $.ajax({
The following code is intended to do a purely ajax POST request, instead it
I am currently doing the same ajax request using jQuery every 2sec. For some
I am doing an ajax request when an anchor tag is clicked with an
What am I doing wrong? I have a simple console app in VS08. When

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.