similar to: Reserved words

Displaying 20 results from an estimated 40000 matches similar to: "Reserved words"

2007 Mar 13
13
validates_inclusion_of disabling
Hello all. I have a problem using validates_inclusion_of. I need to switch off some validations during a migration period, is there a way? I tried to use if, with a static method of one of my models, but the behaviour is something strange It seems that the static method should be in a string to be evaluated. And the order of the elements in the if is counting... :if => (:some_field
2006 Dec 05
5
Render :update and script tags
Hi All! I''m kind of new o ruby so please apologize my stupid questions on advanced... I''m using render :update do |page| page.replaca_html :element , :partial => ''apartial'' end This is working well, since I see in the page the following code: try { Element.update("element", ""); } catch (e) { alert(''RJS
2007 Sep 06
2
Change Ruby on Rails' reserved words?
Hi, One of my database tables has to have the same name as a reserved word in Ruby on Rails. Is there a way to change the name of a Ruby on Rails reserved word by overloading it or by some other means? I really do not want to change my table name. Thank you. -Nick J. Fessel http://www.nickfessel.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2006 Apr 17
4
Is "target" a reserved word?
I''m working on a cost estimation tool, that allows each estimate created to override base assumptions of price, cost, etc. Everything was fine, until we said, "Let''s add a ''target net revenue'' property." So, the resource model got a "target" column. The override model got a "new_target" column. But, whenever I set
2008 Jan 18
2
has_many :through with self-referencial AND polymorphism
Hello, despite many readings I still don''t understand how to solve my problem. I have Publication, Picture, File classes A Publication can be related (a one way relation, like a www link) with another Publication, Picture or File I tried this : Publication : has_many :related_elements, :dependent => :destroy, :foreign_key => :publication_id has_many :related, :through =>
2006 Mar 24
7
Polymorphic associations?
I''ve read the stuff about polymorphic associations here: http://wiki.rubyonrails.org/rails/pages/UnderstandingPolymorphicAssociations But I''m not sure what exactly they are and what their advantage is. Are they the same as HABTM, but they''re "two-way"? Joe -- Posted via http://www.ruby-forum.com/.
2007 Oct 16
2
Is Services a reserved word?
I want to have a controller/model called services_controller.rb/service.rb all went well, but then I tried to get a ''list'' view and I got this error... Message uninitialized constant ServicesController::Services Location /services/list Action list Controller services which worries me because it doesn''t say ServicesController::ApplicationController must I rename? ;-(
2006 Jul 28
0
reserved words
I''ve seen this topic has been discussed a couple of times. However, I''m wondering if a method exists in rails to test a name against the reserved words listed on the wiki? Just wanted to check before I write this myself (and type in all of those names -- including PostgreSQL). To explain the application: I''ve written a project that manages ldap data. On a fresh
2006 Oct 20
0
Reserved words
Is there a more definitive list of reserved words in Rails than the one at http://wiki.rubyonrails.org/rails/pages/ReservedWords ? While it''s nice to read war stories of Wiki users running into these issues, it might be nicer to get a canonical, using-these-variable-names-is-asking-for-trouble list from the developers. As an example, I had a model "Build" (as in a software
2003 Mar 05
2
reserved words documentation
I wanted a data frame component to be named "next", for example: > m <- data.frame (matrix (0, nrow=2, ncol=2)) > names (m) <- c("prev", "next") > m prev next 1 0 0 2 0 0 But "next" being reserved prevents $ indexing without quotes: > m$next Error: syntax error > m$"next" [1] 0 0 Although they are mostly
2013 Mar 01
2
using reserved words in R, and reuse variable names in different functions
Hi list, I am writing several functions and running out variable names. I am using words such as "t", "c", "matrix" to keep the notation same as formulas I am using. For example I have, unnormalized <- function(t, x, y){ val <- rnorm(t, mean=x, var=y) return(val) } metropolis <- function(t, c, x, y){ den1 <- unnormalized(t, mean=x, sd=y)
2010 Oct 27
3
Module names - limitations / reserved words?
Greeting, I''m attempting to solve a mystery we had with a puppet module we couldn''t get to auto load. The module named / folder was called "nfs" We notice when we ran ''puppetmasterd --no-daemonize --verbose'' that when the client connected that our ''nfs'' module was not being auto loaded. We reviewed and triple checked our syntax.
2008 Jan 18
8
link_to problem
hi @ all I create a new archiv.html.erb and a archiv method in the controller. Now, I would like to link from index.html.erb to archiv.html.erb. I tried to use <%= link_to ''archive'', archiv_xxx_path %> but it doesn''t run. It appears a error message "SyntaxError in xxx#index". Does anyone know, how I can enhance this problem? thanks a lot... -- Posted
2008 Jul 20
1
Installing plugins from .tar.gz file, how?
First, thanks for your attention! I''m trying to install UltraSphinx plugin from svn but unfortunately it''s down. I have a .tar.gz package, how can i install it? ./script/install package.tar.gz - doesn''t work -- Regards, Luiz Vitor Martinez Cardoso cel.: (11) 8187-8662 blog: rubz.org engineer student at maua.br --~--~---------~--~----~------------~-------~--~----~
2006 Oct 13
3
OriginateEvent reason codes.
Hi. I'm making calls via the Manager OriginateAction. My action is set to be async and therefore I receive originiate events. Within the originate event that I receive there is a reason code. In the event of failure I need to dermine why the call failed (no pickup, rejected, no such number, circuit busy, ect) and inform the user with a meaningful message. I assume that one is suppose to
2007 Feb 15
4
[LLVMdev] llvm mips backend!
Hello, I'm interested on implementing the MIPS backend as a student in a compiler course on my university, starting in 2 weeks from now!! I've seen on the mailing list history no one has done it so far (although a lot said they would)! am i right? Thanks! -- Bruno Cardoso Lopes http://www.brunocardoso.org "The knack of flying is learning how to throw yourself at the ground and
2014 Dec 11
2
[LLVMdev] Phabricator update
Hi Manuel, Thanks for the help. Still persists for me too. Instead of waiting indefinitely, now I get this error: Unhandled Exception ("AphrontDeadlockQueryException") #1205: Lock wait timeout exceeded; try restarting transaction On Thu, Dec 11, 2014 at 11:26 AM, suyog sarda <sardask01 at gmail.com> wrote: > The problem still persist :( > > On 12/11/14, Manuel Klimek
2011 Sep 01
2
[LLVMdev] Cross compling with LLVM for MIPS
I have installed LLVM on my machine (ubuntu) a while ago. I think my LLVM version is 2.8. is it supported in 2.8 ? When I install i didn't configure LLVM for mips. Do I have to configure it when I build ? Thanks in advance. Really appreciate it. --- On Thu, 9/1/11, Bruno Cardoso Lopes <bruno.cardoso at gmail.com> wrote: From: Bruno Cardoso Lopes <bruno.cardoso at gmail.com>
2011 Sep 16
2
[LLVMdev] problem with sgt's on Sparc machine
Hi Christine, > I am using LLVM 2.8 and llvm-gcc 4.2. Could you please try svn top-of-tree? Clang is also a better choice here. > The assembly files are attached. In the assembly file, the erroneous result > is associated with 'subcc', while the correct ones are associated with 'or'. -- Bruno Cardoso Lopes http://www.brunocardoso.cc
2011 Sep 01
2
[LLVMdev] Cross compling with LLVM for MIPS
Hello All, I am trying to cross compile for MIPS on x86 architecture. I want to do it using LLVM ? How can I do it ? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110901/b4e68ea3/attachment.html>