Displaying 3 results from an estimated 3 matches for "iso_639".
Did you mean:
iso639
2010 Aug 28
1
validates_uniqueness_of missing in rails 3.0 rc2?
...s => 3
validates_uniqueness_of :language, :scope => :book_id
validate :language, :is_proper_language_code
validates_presence_of :value
belongs_to :book
def is_proper_language_code
errors.add(:base, "invalid language code") unless !ISO_639::ISO_639_2.find{ |lang| lang[0] == self.language }.nil?
end
end
Class 2:
class Book < ActiveRecord::Base
attr_accessible :titles
validates_presence_of :titles
has_many :titles
end
Spec:
before(:each) do
@valid_title_attributes = {:book_id => 1, :langua...
2008 Oct 31
1
set the language
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20081031/1dad1061/attachment.pl>
2010 Mar 18
5
language!!!
Hi,
there´s something that really bothers me about R and after hours and hours of internet research, I´m still stuck with the same problem: I installed R and it is in Spanish, as the system on my work. I would really like it in English and there seems to be no way to change that!?! I´m doing an abroad internship, so my Spanish is far from perfect and my tutorial is in English.
Is there any