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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:57:52+00:00 2026-05-28T00:57:52+00:00

Ironically i would like some feed back on a Stack level too deep error!

  • 0

Ironically i would like some feed back on a Stack level too deep error!

I’ve been looking through my code for hours and can’t figure out what’s wrong!
It occurs when I try to load a javascript-file that is located in the welcome folder, and this is how the code looks like this:

application.html.erb:

<!DOCTYPE html>
<html>
<head>
  <title>Project1</title>
  <%= stylesheet_link_tag "application" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>

</head>
<body>

<%= yield %>
</body>
</html>

index.html.erb:

<!DOCTYPE html>
<div id="wrapper">
  <div id="header" >
    <div id="Lorem">
      <b>Lorem
    </div>
    <div id="Ipsum">
      <b><p>Ipsum</p>
    </div>
  </div>
  <div id="menuwrapper">
    <div class="tabArea">
      <%= link_to 'Link', {:action => 'update', :controller => 'welcome'},{:class=>"tab",:remote=>true} %>
    </div>
  </div>
  <div id="wrapper2">
  </div>
</div>

welcome_controller.rb:

#coding:utf-8
class WelcomeController < ApplicationController  
  def index

  end
  def update
    respond_to do |format| format.js { render :update => update} end
  end
end

update.js.erb:

$(alert("Hello"));

routes.rb:

  get "welcome/index"
  get "welcome/update"

Eternally grateful for any ideas of whats causing the overflow! Thanks you.

/Peter

Backtrace:
https://i.stack.imgur.com/92kve.png

  • 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-28T00:57:53+00:00Added an answer on May 28, 2026 at 12:57 am

    Per comments earlier,

    Rails is being told to render the update action when rendering for JS format on the update action. The offending code is:

    {render :update => update}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been fiddling around with CHESS , which seems like an incredibly useful tool.
Can anyone explain a parse error like this one: Method 'get_EnableCdn' in type 'System.Web.UI.ScriptManager'
I'm helping someone diagnose some slowness with their RoR applications. I'm not that deep
I'm getting the following error when I compile the following code on Visual Studio
Recently I have been reading up on some of the flaws with the Java
My local friendly DBA does not like the idea of allowing profiling on the
I'd like to start developing a "simple" game with HTML5 and I'm quite confused
Recently the security team on my project released a secure code guidelines document, designed
I've got an HTTPModule that does some role-based page access security (I'm having to
I just spent hours trying to debug an out of memory error caused by

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.