Displaying 2 results from an estimated 2 matches for "reserved_word".
Did you mean:
reserved_words
2006 Mar 24
2
Where to put array to be shared across models.
Quick question: I have an array of reserved words that I want to share
across most of my models so I can do something like this in the models:
validates_exclusion_of :username, :in => RESERVED_WORDS, :message => "This
username is a reserved word. Please choose another."
Here is a sampling of the the array:
RESERVED_WORDS = %w( blog blogs forum forums search login logout signup
signout register help store )
Should I just subclass AR and then extend my models from this base clas...
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