similar to: Namespace/Object scope problem

Displaying 20 results from an estimated 70000 matches similar to: "Namespace/Object scope problem"

2006 Jun 15
6
Sqlite3 test fails in Rails app
Greetings: I am using Sqlite3 database with my Rails app. When I try and run "rake tests" for the app it always fails with the error: ** Invoke default (first_time) ** Invoke test (first_time) ** Execute test ** Invoke test:units (first_time) ** Invoke db:test:prepare (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:test:prepare ** Invoke
2005 Nov 08
2
IE not repopulating forms under Rails views - very odd
It is common practice to implement semi-persistent state across page views using hidden form fields since all major browsers repopulate the form fields with the last value of each field (provided that the browser hasn''t been closed). A longer explanation with samples is here: http://codinginparadise.org/weblog/2005/08/ajax-tutorial-saving-session-across.html There''s a very
2006 Mar 16
4
Mongrel 0.3.11 - speed test ... seems slow
I did some basic speed test on my rails application. I use Centrino 1.7GHz, WinXP. For simple test I used Apache ''ab -n 100 -c 10 http://url.... '' Running Mongrel 0.3.11 I got: development env. = 4.5 req./sec production env. = 11.5 req./sec Running Webrick I got: development env. = 5.7 req./sec production env. =25.9 req./sec Does anyone know why the webrick is still faster?
2012 Nov 27
0
[LLVMdev] Correct way to test if a declaration is within the scope of a namespace (anonymous or not)
Hi all, I'm trying to test if a declaration is within the scope of a namespace (anonymous or not). Actually I'm using this code to test this (it's just a hack I know). What is the correct way to do this? if (ND->getQualifiedNameAsString().find("::") != std::string::npos) { ND is defined in a namespace } ND is a DeclaratorDeck* Many thanks in advance. Best
2007 Mar 17
0
webrick failing with "NameError: cannot remove Object::UnknownPropertyMethod"
Hi, I just downloaded the latest rails, and tried to run webrick. I get this strange set of error messages. It looks like the real error is NameError: cannot remove Object::UnknownPropertyMethod I never had this problem with older versions, and the ''fastcgi'' variant, running under lighttpd runs fine. Any ideas why webrick appears to be broken? Thanks, David
2005 Mar 02
3
uprgrade to 0.10: uninitialized constant Class::Object
Hi, I installed rails 0.10 with ruby gem, and upgraded my application as described at http://manuals.rubyonrails.com/read/book/15 . Now, when accessing the action index of the controller rss_feed, I get this error in the terminal when I started the server: #<NameError: uninitialized constant Class::Object>
2012 Nov 16
4
Scope object available functions and getting the local scope, or node scope variable values
Is there a way to get the local scope values of puppet variables via scope.? wat r all the available functions in scope? can anyone provide a working example..... -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/zVW-0uI2yMAJ. To post to this group,
2006 Feb 11
3
Creating new object using params posted from form
Hi, I have a problem creating an new instance of an object using params posted from a form. The object being created is not a sub class of ActiveRecord and is very simple. It''s model file is just: class Search attr_accessor :major_build_id, :minor_build_id, :environment_id, :system_id end The controller creates an empty instance variable the first time the page is called, else
2006 Mar 21
2
Rails newbie can''t initialize a new Paginator object
Hi all, I''m using ruby 1.8.2-15 and a recent rails 1.0 download. I''m trying to implement the Classic/Custom pagination in a list action. Here''s my code: def list getSearchTerms # NOTE: @params[:search_results] is an Array of product_data objects # returned by a search action. @results = @params[:search_results] if @results.nil? then # The default
2006 Apr 27
1
scope of variable/object ?
Hi, I must be missing something here...Essentially, a short piece of code works if it's standalone, but doesn't work if it's divided into two functions. The code that works is: ################### WORKS ############### library(pamr) set.seed(120) x <- matrix(rnorm(1000*20),ncol=20) y <- sample(c(1:4),size=20,replace=TRUE) mydata <- list(x=x,y=y)
2012 Sep 18
2
Access block scope from AR object
I need to create a sort of transaction around some Active Record objects that perform many insert/updates. Example: class MyObject def transaction &block @my_var = value self.instance_eval block end end MyObject.new.transaction do Model.create Model.collection.create etc...... end I have a gem that add a method into AR::Base and I need to read
2010 Nov 04
0
namespace problem with iCalendar
i''m developing a calendar webapp for my company using ruby 1.8.7 and rails 2.3.8. naturally there are RoR models named "Calendar" and "Event" in order to send calendar events to other apps (microsoft outlook & lotus notes) i''m integrating with the iCalendar standard & ruby library. but this library contains classes called "Calendar" and
2006 Mar 26
2
Controllers in modules, not recognised - driving me mad!
Hi, I hope somebody can help me here but I''m having a very strange problem getting Rails to recognise controllers inside modules. The strange thing is, it was working the other day and I''ve not changed anything as far as I''m aware. I''m running on OSX using Ruby 1.8.4 and Rails RC1 (but I''ve also tried rolling back to Rails 1.0 and tried Edge Rails)
2008 Nov 06
2
Variable Scope Question
If I have a global variable in my dialplan and I change it, does that change immediately take affect for all calls that are active? Here is my situation. The company I work for has two office groups that share a building. The two offices are separate companies but support one another and want to be able to transfer calls as if they were all on the same phone system. Each company has 4
2020 Jun 03
2
Alias scope and noalias metadata
Hi there! Greetings! I am wondering how I may be able get these annotations !noalias and !alias.scope to show up- I have a function with restrict added to the arguments but I do not see these intrinsics with clang -emit-llvm. Which pass inserts them? Best, Ram -------------- next part -------------- An HTML attachment was scrubbed... URL:
2020 Sep 01
0
Changing IP Scope on a Samba DC
192.168.1.11 was from a time we tried to increase the number of available IP's by adding a virtual IP in Zentyal for the server to listen on. It never worked and now Zentyal won't let me remove it, due to not being able to save changes. We do use .local because Microsoft small business server, which we were playing with before we started down this route automatically suggested we use the
2011 Sep 21
1
Package dependency
Greetings R community, I am making my first package and have run into the need to use other packages. I pass all the checks in the command prompt running Rcmd check package.name. In the Description file I have included: Depends: R (>= 2.13), plotrix Repository: CRAN Now I create the zip file for windows 7. I delete my plotrix package from my library to create a setup where others
2006 May 30
0
Problems when applying search to filter rows.
Hello, I am trying to create in the main Layout of the application fields of selection of fields of the model, and other to insert its value. Next I put a search button, with the idea to leak by the search in the view of the model where it executes this button. I have generated the views with ajaxscaffold. I do not know if what I try to do it does of this form or another one. My code is the
2006 Feb 25
5
WEBrick Bad File Descriptor Error
All of a sudden I have a wierd error when running script/server on a Windows XP box. Webrick is failing with a bad file descriptor error. I''m sure it''s conflicting with something in my enviornment, but I cannot figure out what. I googled the issue and haven''t been able to find any answer for it. Although, I did find a workaround. If I''m using a port above
2006 Mar 09
3
Need help PLEASE!!! - updating collection from form
Greetings! I''m trying to update a set of records from the same model on one form. The AWD book gives an example on p.356 but I guess I''m not understanding it. I can see from the error message I''m getting that the controller is receiving a hash of hashes back from the view, and that it''s got the stuff I expected (two values per record that was sent to the