Alexandre Brillant
8/15/2008 3:02:00 PM
Thank you for the generate model command, I will try it to see the result.
Thank you too for the remark about the multi-lines do end idiom.
:)
"Phlip" <phlip2005@gmail.com> a écrit dans le message de news:
ELgpk.17949$xZ.15102@nlpi070.nbdc.sbc.com...
> Alexandre Brillant wrote:
>
>> are both ok, I prefer the second one
>
> I prefer the output of script/generate model, because it gets so much
> ready for you all at once. For example, it also creates matching test
> suites and fixtures.
>
> Also, you will learn that all languages come with established styles. For
> example, "everyone" typically writes a one-liner block with {}, but they
> write a multi-line block with do-end.
>
> Knowing why and how people use different Ruby idioms will help you match
> your style to your team's style, if any. And it will help you break that
> style when you know _why_ you are breaking it.
>
> --
> Phlip