Displaying 20 results from an estimated 6000 matches similar to: "SystemStackError from redirect_to"
2006 Jul 12
5
SystemStackError
SystemStackError in GreyController#grey_search
stack level too deep
can anybody please enlighten me on this one...any possible way to
troubleshoot?
thanks,
MSN id: ICEMANyears@netscape.net
--
Posted via http://www.ruby-forum.com/.
2009 Jul 30
2
Can I turn off config.action_view.cache_template_loading in Production
I''ve got an app which users can edit the ERB templates for emails, the
changes aren''t taking effect till the app restarts though because
config.action_view.cache_template_loading = true
I''ve seen various comments that suggest it has to be true when in
Production for thread safety - is Rails actually running in a threaded
manner yet? Surely this is a none issue at the
2013 Jun 22
4
ActiveRecord::Base.transaction - SystemStackError - stack level too deep:
Im having an issue that seems to only happen when trying to use a
transaction. Ive used transactions many times in the past and Im at a loss
as to why im getting the stack level too deep problem.
SystemStackError - stack level too deep:
actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:70:in `''
I have a StackOveflow with more detail -
2008 Jun 05
2
RSpec Story - SystemStackError: stack level too deep
I have a story that executes the following (as an example to show the
bug I''m experiencing):
----------------------------------------------
Given "I have a fake post saved" do
@postCount = Post.find(:all).length
@post = Post.new
@post.employee_id = 123
@post.name = "Name of the Post"
@post.description = "Description of the Post"
2007 Jan 31
2
SystemStackError: stack level too deep
I''m testing the http module in console.
BUt I got the following error.
Anyone knows why?
>> Net::HTTP.get_print ''www.google.com'', ''index.html''
SystemStackError: stack level too deep
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
`newobj''
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
2006 Mar 21
2
r3981 causes SystemStackError
http://dev.rubyonrails.org/changeset/3981
?!?
The changes are a rename of RailsInfoController to
Rails::InfoController. That seems to be completely unrelated to this
error:
$ ruby script\server
=> Booting WEBrick...
./script/../config/../vendor/rails/activesupport/lib/active_support/inflector.rb:121:in
`underscore': stack level too deep (SystemStackError)
from
2008 Jan 08
4
XSendFile in development environment
Hi
I''m currently trying to use X-Sendfile to take some load off my rails
app, unfortunately in my development environment mongrel is happily
passing through the x-sendfile header, presumably for the (non-
existant) proxy to handle the header.
Is there some way to make mongrel process the x-sendfile header itself?
Thanks
jebw
2007 Oct 03
4
form_remote_tag :onsubmit not working.
Hi,
Has anyone successfully implemented the :onsubmit option for
form_remote_tag. It doesn''t seem to work for me. Is there any specific
version of rails which is required for the same.
Here''s my piece of code.
<script>
function set_tojid(){
alert(''onsubmit'');
}
</script>
<%= form_remote_tag :update => '''', :url => {
2006 Jul 18
1
Fixtures Max Size? SystemStackError: stack level too deep
Hello,
I have a table of zipcodes that I am using in my application, so there
are approximately 50,000 rows in this table. I have dumped the table to
a fixture yaml file to represent this data, but when I try to load it, I
get this error: SystemStackError: stack level too deep
Is there a max size allowed for a fixture file..?
Here is the --trace output:
rake db:fixtures:load --trace
**
2006 Aug 14
1
Postback Action Problem
I was trying to use postbacks, but its not working.
def edit
@xxxx= xxxx.find_by_id(params[:id]) || xxxx.new
if request.post?
@xxxx.attributes = params[:xxxx]
redirect_to :list and return if @xxxx.save
end
end
I get the following error: SystemStackError in xxxxxController#edit
stack level too deep. The code of list is same as the code generated by the
scaffold
2006 Aug 15
0
SystemStackError: stack level too deep
Hi
I have two models Keyword and KeywordResult, they basically look like this:
class KeywordResult < ActiveRecord::Base
belongs_to :keyword
validates_presence_of :title, :url, :keyword_id
end
class Keyword < ActiveRecord::Base
has_many :keyword_results, :dependent => :delete_all
acts_as_tree :order => "text", :foreign_key => "top_keyword"
end
Before you
2009 Feb 02
9
ActiveRecord Unexplainable SystemStackError - Only in WEBrick
This SystemStackError is driving me crazy. It only takes place when
testing with WEBrick - I can''t reproduce it with any tests. It is
caused by calling the "missing" id method (base.rb:2435) on my
ActiveRecord class.
WEBrick and my tests are running as the same user, with a `ulimit -s`
of 10240. Plus the query works sometimes so I don''t think this
matters.
2006 Aug 31
0
Net::HTTP.new produces SystemStackError?
http = Net::HTTP.new(HOST, PORT)
When I try to create a new Net::HTTP object, I get a SystemStackError:
"stack level too deep". The trace shows a long list of
"/usr/lib/ruby/1.8/net/http.rb:333:in `newobj''", which when I look at
the code seems to say that Net::HTTP keeps calling its own newobj method
recursively, with some Proxy object involved? I''m not
2008 Mar 16
3
undefined method `redirect_to'
Hi all. I''m getting the following error in my app:
undefined method `redirect_to'' for ActionController::Base:Class
I''m using Windows 2000, Rails 2.0.2 and resource_controller (from
James Golick).
My controller:
class CommentsController < ApplicationController
include ResourceController::Controller
belongs_to :post, :article, :photo
create do
2006 Dec 30
1
redirect_to(:action => ''foo'') and return
I''m not sure why this is happening, but if I do this in a controller
unless @variation && @variation.quantity > 0
flash[:error] = "Sorry, that product is currently not available."
redirect_to(:action => ''error'') and return
end
rspec tells me
2)
ActionController::DoubleRenderError in ''The Carts controller with an
2006 May 31
5
undefined method `redirect_to''
Hi all
I have followed this tute:
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger
to get rails running and all is fine except for getting:
undefined method `redirect_to''
when I load my test page.
I have the following in my xx.rhtml:
<%= select :group, :user_id, find_all_groups, {}, {:onclick =>
select_group, :size => find_all_groups.size + 1}
2009 May 07
5
Controller redirect_to to leave iframe
Inside an iframe, I want the controller to redirect_to to the parent
(i.e. target =''_parent'').
Any ideas?
(Everything I''ve tried- via redirect_to - just keeps it inside the
iframe)
2009 Apr 24
4
Undefined method "redirect_to" in before_filter
Code sample:
class SomeController < ApplicationController
before_filter do |c|
add_crumb "Blah", "/blah" #breadcrumbs plugin
redirect_to :controller => "foo", :action => "bar" unless c.send
(:has_package?)
end
# Rest of the controller...
private
def has_package?
# A bunch of logic work to check to make sure
# somebody''s session contains
2006 Jul 22
2
redirect_to error
Hi,
I have a redirect_to statement in a method that I would like to have
at the end of the method to take you to a ''Success'' page if
everything works.
When I hit the redirect_to statement, ( redirect_to :action =>
''show_success'' )
I get this in the browser:
Application error
Rails application failed to start properly"
The development.log
2006 Mar 13
1
issue with redirect_to
Hi all:
I can''t make redirect_to to unlock the current iframe using {:TARGET =>
"_top"}. It always stays in the current frame. I checked the
redirect_to code, it seems the method does not use "target". here is the
source code of redirect_to from ActionController::Base
def redirect_to(options = {}, *parameters_for_method_reference) #:doc:
753: case options