On Sat, Jul 18, 2009 at 3:24 AM, harun<[email protected]> wrote:
>
> Hi,
>
> First, I am new at Ruby on Rails. When using scaffolding feature,
> rails pluralize some automatically generated files' names, like
> controller names, view names and helper names. What I want is to
> disable this pluralization. For example, I want the contoller name of
> model 'Post' to be 'post_controller.rb' instead of
> 'posts_controller.rb'.

If you want to gain any proficiency with Rails, I'd urge you to resist
the instinct to do things like this, and go with the flow.

A lot of Rails is following the frameworks conventions, and
pluralization is one of those.  If you do you'll find things much
easier in the long run.

If you don't you'll find yourself working much too hard in the long run.

-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to