Re: RoR how does scaffold work?
- From: Damian <threeeyedfish@xxxxxxxxxx>
- Date: Tue, 1 May 2007 00:14:17 +0900
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
.
- Follow-Ups:
- Re: RoR how does scaffold work?
- From: anansi
- Re: RoR how does scaffold work?
- References:
- RoR how does scaffold work?
- From: anansi
- RoR how does scaffold work?
- Prev by Date: Re: RoR how does scaffold work?
- Next by Date: Re: Array.which_long? ( I coded an extension for Array )
- Previous by thread: Re: RoR how does scaffold work?
- Next by thread: Re: RoR how does scaffold work?
- Index(es):
Relevant Pages
|