similar to: "Data RecordType could not be instantiated!: undefined".

Displaying 20 results from an estimated 80000 matches similar to: ""Data RecordType could not be instantiated!: undefined"."

2008 Dec 03
0
help with rails+sproutcore
I have been trying to use rails as the backend for sproutcore. I am following the tutorial: http://blog.lawrencepit.com/2008/07/19/sproutcore-rails/#comment-4 I have followed all the steps in the tutorial. When I try to run the http://localhost:4020/contacts, its gives me the following console errors: Contacts is not defined [Break on this error] Contacts.detailController =
2008 Dec 23
2
rails 2.2 connection to MySQL
I have been trying to connect to MySQL thru rails. Initially I had rails 2.1.2 and upgraded to rails 2.2 to use RestAPI in sproutcore. Once I have upgraded my rails version to 2.2, I have been getting this error. All I did is the following: 1. rails addressbook 2. cd addressbook 3. script/generate scaffold Contact first_name:string lastname:string 4. rake db:migrate I also change the
2005 Mar 23
2
0.11 problems
I''ve upgraded to 0.11 this morning specifically to test out the pagination stuff. When that didn''t work (didn''t recognise the command) I deleted my project and recreated from scratch. So in short rails projectname cd projectname edit config/database.yml (my database is postgres by the way) ruby scripts/generate model Recordtype ruby
2015 Sep 02
2
Error during virt-install, error is not for the guest being instantiated
Hi, I have two processes spinning up independent sets of guests, letting the guests run for a while, and tearing them down. The two processes are generally giving their set of guests a different "run-period", so the guest spin-up/tear-down will happen during different cycles/phases. Call these processes A and B, each is currently managing 32 guests. I am seeing an issue, where when
2006 Sep 03
2
Undefined method "xxx" of a model when calling a helper
Hi all I''m creating a shop page. I have a cart model that looks like the following: class Cart attr_reader :line_items def get_line_item id @line_items.each do |l| return l if l.id == id end end def initialize @line_items = [] end def empty! initialize end def empty? return true if @line_items.empty? false end end And I have some
2007 Mar 12
1
rspec on rails instantiated fixtures OFF by default ?
Hi there, Why are the instantiated fixtures turned off by default in the rspec on rails plugin? This was not the case in older versions. After upgrading (and much head scratching) I had to turn on the instantiated_fixtures in spec_helper thusly ... self.use_instantiated_fixtures = true Regards, Keith
2018 Jul 10
2
Is it really valid to discard externally instantiated functions from a TU when marked inline?
Hi, While investigating the situation of visibility annotations and linkage in libc++ with the goal of removing uses of `__always_inline__`, Eric Fiselier and I stumbled upon the attached test case, which I don't think Clang compiles properly. Here's the gist of the test case, reduced to the important parts (see the attachment if you want to repro): // RUN: %cxx -shared -o
2006 Aug 25
1
Reload instance data on instantiate
I''m working on a website which interacts with Amazon web services. I have an Item class which is a cache for amazon items. I''d like to have the class instances to refresh data every day (Time.now - item.last_updated > 1.day) but not sure how. I''ve tried with class Item < ActiveRecord::Base # ... private def instantiate(record) super
2006 Jan 25
0
Changing the instantiated table when using STI
Is there any way to get AR to instantiate a different class when using STI? Where it would normally instantiate Digit, I would like it to instantiate SkelDigit. Here''s why... My rails app has the following STI hierarchy: Digit < Glyph < ActiveRecord::Base My migrate script can''t use those classes directly however (backward compatibility issues), so I created some
2009 Oct 01
2
Any way to avoid instantiating a class twice?
Hey everyone, I''m trying to find a work around for a performance problem I''ve been having. I have a class that builds paths (among other things) dynamically to many files and folders depending on what sets of information the user accesses. Once built, this class instantiation contains all the information necessary for several pages (controllers/views) to operate. However at
2010 Jul 19
0
Sr. Web Application Developer (RoR) Career Opportunity in San Francisco !!
Title: Sr. Web Application Developer - San Francisco QUALIFICATIONS Candidates MUST have a background in Ruby-on-Rails (RoR); MUST use it for web application development not just creating web pages; NO interest in Web Designers. Candidates must have strong knowledge of the Ruby language, design principles and patterns. Solid knowledge of relational databases (Postgresql) and/or "NoSQL"
2008 Apr 16
2
undefined method exception if no data is present
I get this error if no relational data is present: undefined method `notes'' for #<Array:0x226cc4c> Here is the code that causes the error: @notes = @account.notes If I call this method through the script/console I get account = Account.find(3) => #<Account id: 3, ...> >> account.notes => [] I get the same error if I don''t declare the @notes var and
2016 Feb 18
2
Question about __NSConstantString and __NSConstantString_tag
Hi I am the maintainer of pygccxml, which uses clang/llvm and CastXML to parse c++ code. A user reported a problem with the current llvm 3.9 trunk version (I tested with r261262). Our problem is that the AST contains some declarations which were not there before. Using "clang -Xclang -ast-dump” on a c++ file, I get the following result: TranslationUnitDecl 0x8e41ab0 <<invalid
2012 May 04
1
[LLVMdev] Any way how to instantiate templates even when it is not necessary for the compilation?
Hello, I am working on a tool which takes c++ header files and based on interfaces defined in them generates csharp classes and glue layer for interop. For analyzing the c++ code I am currently using clang, which parses the headers and writes output into xml via -ast-print-xml (yes, this unfortunately means that it is a very old version of clang). I then use these xml files to generate the csharp
2012 May 07
0
[LLVMdev] Any way how to instantiate templates even when it is not necessary for the compilation?
Is the original definition of the template available in the XML file, not just the reference to the specific instantiations (i.e. IMyEnumerator<int>). On Mon, May 7, 2012 at 12:08 PM, Ondrej Kolacek <natris1 at gmail.com> wrote: > (another try from different mail account; I hope I was able to clarify > my issue better. ) > > Hello, > I am working on a tool which takes
2006 Mar 22
1
An easy one: Accessing fixture data in 1.0+
OK, we all know that Rails turned off instantiated fixtures by default in 1.0. That''s not a problem. However, what I''m now wondering is how to access the raw fixture data out of the YML file (as opposed to the database.) Mainly, for comparing my database results with my expected results in a DRY way. The book says if you have the command "fixtures :foo", that
2012 May 08
0
[LLVMdev] Any way how to instantiate templates even when it is not necessary for the compilation?
My gut tells me that if it isn't already available, then it will be difficult as the instantiation has to occur for the final compilation, but that must be occurring in a later phase of compilation than the one where the XML file is generated. Their is also a good chance that the instantiation depends on information that isn't available until after the XML file is generated (things like
2008 Jun 08
3
Plugins - helper function is an "undefined method", Objects "can't be referred"
I''m modifying a shopping cart plugin, MinimalCart, and for some reason I can add one item to the cart multiple times, but as soon as I add a second item, all kinds of strange things start happening. An actionview::template error is thrown because a method defined in application_helper is "undefined" What could cause a defined application helper method to all the sudden not be
2008 Apr 01
2
undefined method 'find' error
I just moved my app from development to test, and now getting the following error on my form: undefined method ''find'' for Status:Class The only difference between the two environments is that test is using Mongrel and we were running WEBrick in dev. We are on Rails 1.2.5 . Any suggestions? Thanks, Brian -- Posted via http://www.ruby-forum.com/.
2018 May 15
1
[tablegen] anonymous def not fully instantiated
The following is an extraction from the Operand class hierarchy of Target.td. I am trying to define a parameterized version of AsmOperandClass with a passed-in bit size. // from Target.td class AsmOperandClass { string Name; } class Operand { AsmOperandClass ParserMatchClass; } // A parameterized AsmOperandClass class myAsmOperandClass<int n> : AsmOperandClass { string Name =