similar to: How do I substitute variables into class names?

Displaying 20 results from an estimated 3000 matches similar to: "How do I substitute variables into class names?"

2006 Jun 01
4
What i do if i have a table with a column named "type"?
Hi everybody! The class ActiveRecord::Base have a atribute named type and if my table have a column with the same name i get an error if i use model.finde, model.save and more... I dont know what i can do to solve this problem! Someone know? Thanks -- _________ Noel R. Morais
2007 Mar 28
4
Disabling ActiveRecord "type" column subclassing
Hi! I have a legacy table that has a column named "type" and need to remove this automatic subclassing by ActiveRecord. The api pages are vague about this, and I tried self.inheritance_column = "xtype" which seemed to get me half-way. In the validate_on_create method, the value of self.type was my model Class name. How would you disable this feature? -- Posted via
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde
2006 Feb 24
5
Controller Methods gets called twice on single invocation
I have no idea why this is happening but it seems like every method on my controller gets called twice. Here is what it looks like when I call a list using the scaffold code ========================== Processing DepartmentsController#index (for 127.0.0.1 at 2006-02-24 01:05:00) [GET] Parameters: {"action"=>"index", "controller"=>"departments"}
2006 May 17
13
Using NTLM for S.S.O. in Rails
Greetings all, To all the good souls that happen to know NTLM and Rails.... Short version: -------------- - I''m looking for server code to extract credentials through NTLM dialog with the client (IE) - I found nothing usable/useful (as they both implement the client side code) in - rubyntlm on rubyforge - lib ntlm-ruby by Jonathan Bastien-Filiatrau LONG version:
2006 Nov 21
5
acts_as_ferret with STI models
Can acts_as_ferret search only one of the inherit models in the hierarchy of STI models? Say you have Contents, with types articles and comments. I know that you do Contents.find_by_contents, but can you also create indexed for Comment and Articles? Thanks for you help Miguel -- Posted via http://www.ruby-forum.com/.
2006 Feb 24
6
when i save, rails doesnt update the model instance with the id of the new record
Hi everybody, Im using sqlserver (sqlserver adapter). I think that is some bug. any idea? -- _________ Noel R. Morais
2008 Apr 03
2
Change the value stored in inheritance_column
I have been struggling for quite sometime with this. Is there any way to configure the Model to store user defined value in the inheritance_column instead of the default value (which is class_name) The problem I have is like this: I have a User model and there are different models which inherit from this like Admin, Premium, Professional, etc. Each of these inherited models are identified by a
2009 May 22
4
How to stop a background music
Hi Guys, I would like to know if is there a way to actively stop a Background() music? Thanks, Noel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090522/1e317b99/attachment.htm
2013 Jan 26
2
different legends in lattice panels
Hi listers, I want to make lattice plots xyplots with the indication of legends inside each panel with only the points and the lines actually ploted inside each given panel according to the group(ing) factor. The code below shows what I have achieved so far and I hope will make clear what I want to have. It seems to me that my solution is a very "dirty hack" and there certainly is
2006 Apr 01
2
Can i cache models?
Can i cache models that never get changed? -- _________ Noel R. Morais
2007 Apr 18
1
Windows don't show domain groups
I recently updated the samba to latest Debian stable version (3.0.24-2), after that I couldn't see groups on Windows stations anymore, only domain users, and any changes on smb.conf has been made. Currently I'm using Samba along with LDAP in my servers to authenticate users from Windows 9X/2000/XP workstations. I'm a bit clue less about how solve that problem, since with oldest
2007 Nov 04
4
Problems with garch() function tseries package R 2.6.0
Hi all, I recently updated my to R 2.6.0 and tseries package ?tseries? version: 0.10-11. When i was using R Version 2.3.1 (2006-06-01) with tseries 'tseries' version: 0.10-7, the code > garch(dflnRCLC1) ***** ESTIMATION WITH ANALYTICAL GRADIENT ***** Call: garch(x = dflnRCLC1) Coefficient(s): a0 a1 b1 4.985e+00 1.880e-01 6.210e-14 > worked very
2003 Feb 13
3
search contrasts tutorial
I'm looking for a tutorial or notes on the use of contrasts factor in linear model in R, I've found some mails and infos about in various documents about R, but I've probably missed a good review on this subject. -- Robert Espesser Laboratoire Parole et Langage UMR 6057, CNRS 29 Av. Robert Schuman 13621 AIX (FRANCE) Tel: +33 (0)4 42 95 36 26 Fax: +33 (0)4 42 59 50
2012 Jun 09
3
ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'Transactions::DummyDdnlTransaction'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Pleas
Hello, I stumble upon this error when loading a subclass of the Transaction class. For full details, see the pastie: http://pastie.org/4053678 Error message: ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: ''Transactions::DummyDdnlTransaction''. This error is raised because the column ''type'' is reserved for
2006 Mar 30
2
Rails lost connection to MySQL server!
I getting this error on my project Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS FROM ... i think that it''s because the mysql database don''t allow persistent connections ..... any idea? thanks -- _________ Noel R. Morais
2019 Feb 07
2
Cri-o 1.13 package
Hi there, I was looking for cri-o 1.13 package to install on CentOS 7.6 but it seems that we only have 1.11 packaged. There is any alternative to 1.13 package to CenOS 7.6 or if I want to use it I should build from source? Thanks. -- Matheus Eduardo Bonif?cio Morais Analista de Infraestrutura de TI, Plataforma e Aplica??es Confedera??o Sicredi Centro Administrativo Sicredi ? Porto Alegre +55
2006 Aug 23
2
Re: STI and Joins Broken
I''ve made a inheritance rework some weeks ago that would possible fix it since it only loads the inheritance support in the class that''ll use it. In STI case, it would load only if the class that descends directly from AR has been inherited and the column specified in the inheritance_column is available. People here told me to wait until next release so we can dig into this, but
2002 Mar 14
2
File size on 2.2
Hello guys, I have a question about ext3 on Linux 2.2: Are there the same file size limitation (2Gb) like with ext2? I tried google but I still with this question. ps.: Include Reply-to me, I'm not subscribed on list. Thaks for aswners, []'s -- ::: .''`. ::: ::: : :' : ::: Rodrigo Morais Araujo (rma) <rma@cin.ufpe.br> ::: `. `'` ::: UIN: 101720839
2006 Feb 20
2
How can i render an external url?
Hi everybody, Well, how can I render an external url? In java, I do something like this: <html> <head> <title>External URL</title> </head> <body> <jsp:include page="www.rubyonrails.org" /> </body> </html> Noel R. Morais RFC - Ready for Calls +55 (11) 3471-4005 www.rfcnet.com.br -------------- next part