Re: RoR how does scaffold work?



anansi wrote:
drop table if exists entrys;

create table entrys (
id int not null auto_increment,
headline varchar(100) not null,
news text not null,
primary key (id)
);

Hi!

Rails uses English rules for pluralisation, so the table should be named "entries".
If you're unsure about the form you should use, you can always check from script/console:
>> "entry".pluralize
=> "entries"

Yours sincerely,
Damian/Three-eyed Fish


.



Relevant Pages

  • Re: RoR how does scaffold work?
    ... Rails uses English rules for pluralisation, so the table should be named "entries". ... If you're unsure about the form you should use, you can always check from script/console: ...
    (comp.lang.ruby)
  • Re: RoR how does scaffold work?
    ... Damian wrote: ... Rails uses English rules for pluralisation, so the table should be named "entries". ...
    (comp.lang.ruby)
  • Re: class model question
    ... I'm new to ruby and trying to build a quick application using instant ... unsure of how to create the class model to represent this. ...
    (comp.lang.ruby)