[ruby-it] [Rails] Console: non riesco ad utilizzare i modelli

Antonio Cangiano acangiano a gmail.com
Lun 30 Mar 2009 17:02:01 CEST


2009/3/30 Roberto Casadei <robyonrails a gmail.com>:
> Ho creato la seguente tabella nel database dell' environment
> "development":
>
> create table students(
>  id int auto_increment,
>  name varchar(50) not null,
>  surname varchar(50) not null,
>  registered_at timestamp not null,
>  class varchar(2),
>  primary key(id)
> );

Non chiamare un campo class. Confondi ActiveRecord.

Ciao,
Antonio
-- 
http://antoniocangiano.com - Zen and the Art of Programming
http://math-blog.com - Mathematics is wonderful!
http://stacktrace.it - Aperiodico di resistenza informatica
Follow me on Twitter: http://twitter.com/acangiano
Author of "Ruby on Rails for Microsoft Developers" (Wrox, 2009)


More information about the Ml mailing list