similar to: SystemStackError

Displaying 20 results from an estimated 300 matches similar to: "SystemStackError"

2006 Feb 15
2
extending rails via /lib - problems
I wanted to group some functions which I use in some models in one place. Controllers have application.rb and views have helpers but I couldn''t find anything about models. Using the /lib directory seemed to be the only way. Alright... so I have something like this: /lib/code.rb class ActiveRecord::Base def method_a(n) ....... end def method_b(n) ........ end end
2006 Jul 10
7
problem with starting WEBrick
Following is the error I get when I run ''\root\ ruby script\server'' The server does not starts. Any help !?! ------------------------------ => Booting WEBrick... c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:280: warning: already
2008 Feb 02
1
Ruby++ FFI (theoretical)
Hi all, How does this look as a potential FFI for our theoretical Ruby++ ? I''m not sure how to do mixins, though. Some sort of special directive? Or just add it to inheritance chain? Anyway, this is just a rough prototype. No attempt at an actual implementation yet. Regards, Dan // foo.h - Function prototypes #define _FOO_H_ using namespace ruby; // Subclass Object class Foo :
2007 Nov 08
2
SystemStackError from redirect_to
Hi I''ve got a straightforward piece of code in my controller which will consistently produce a SystemStackError. @newmessage = @message.reply(params[:newmessage]) return unless request.post? if @newmessage.save flash[:notice] = "Message Sent" redirect_to :index end The error is occuring on the redirect_to line, if I comment that line out then everything behaves as it
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
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"
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
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 -
2012 Jul 27
3
Rspec: How to mock class method
Hi, I have two model: Message, User message.rb ``` class Message < ActiveRecord::Base class << self def method_a(args) [1,2] end end end ``` user.rb ``` class User < ActiveRecord::Base def method_user if Message.method_a(''anythings'') #... some code end end end ``` I want to test method_user,but I don''t want to test
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 Jul 09
1
REST Interface
Is the REST Controller (for calling APIs through the REST interface) already built-in ?? Or, I have to generate one -- generate controller rest ?? MSN id: ICEMANyears@netscape.net -- Posted via http://www.ruby-forum.com/.
2007 Jun 09
11
authentication, controller specs. I think I''m missing something simple ....
Hi all, I feel like I''m missing something really easy and I''m just not seeing it. I''m using the restful_authentication plugin and have a User model. Uesr has_many :things and Thing belongs_to :user. That''s it. I did a "script/generate rspec_scaffold thing" to generate all the necessary bits. The "rake db:migrate" to create the db. At
2024 Jun 29
2
\>
Hi, Duncan: On 6/29/24 17:24, Duncan Murdoch wrote: > >> ????? Yes. I'm not yet facile with "|>", but I'm learning. >> >> >> ????? Spencer Graves > > There's very little to know.? This: > > ???? x |> f() |> g() > > is just a different way of writing > > ??? g(f(x)) > > If f() or g() have extra
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
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 **
2007 Dec 25
1
puppetd: err: Got an uncaught exception of type SystemStackError: stack level too deep
i''m having trouble with a file resource with 0.24.1. the manifest is very simple: file { "/": ensure => directory, owner => "root", group => "root", mode => 755 } when i run puppetd, i get the attached stack trace. removing this resource enables puppetd to complete its run successfully. any ideas? didn''t have this
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
2006 Jan 02
19
AR: How to store and restore in YML.
Hello- I have a database with entries that are segmented by customers. I would like to be able to store / delete / restore a particular customer''s information. I will need to rebuild the rows on restore and also rebuild the associations for the different tables. For example, customer { id name } companies { id customer_id (belongs_to) name } contacts { id
1999 Nov 29
1
working with binary numbers in R
Hi, as part of a problem I'd have to do some simple arithmetics on binary numbers, i.e. shifting to the left and shifting to the right. What is the "fastest way" to have R do that? Thanks. Mikki. ________________________________________________________________ Get FREE voicemail, fax and email at http://voicemail.excite.com Talk online at http://voicechat.excite.com
2013 Oct 31
6
need help !!!
Hi, I am using puppet 2.7.20 server on linux and windows client with same version of puppet. Until recently everything was working fine but lately I have started getting the error below [0m [0;32minfo: Caching catalog for node_windows [0m [0;37mdebug: Puppet::Type::Exec::ProviderShell: feature posix is missing [0m [0;37mdebug: Puppet::Type::Exec::ProviderPosix: feature posix is missing [0m