Hi everyone,
I’m a rails & ruby nuby, and this is my first post to the list.
Here’s my environment in case it helps diagnose my problem:
Ruby version
1.8.4 (powerpc-darwin8.6.0)
RubyGems version
0.8.11
Rails version
1.1.2
Active Record version
1.14.2
Action Pack version
1.12.1
Action Web Service version
1.1.2
Action Mailer version
1.2.1
Active Support version
1.3.1
I did “rails myapp” and inserted “scaffold :foo” into the
controllers, which worked fine but I wanted to have the scaffold code
generated so I could see it and tweak it. So I did a “script/generate
scaffold foo” and it generated new views and controllers with
scaffolding in them, but now the controllers and views are all
pluralized: my user controller became users, my tag controller became
tags, etc. So looking at my file tree I wound up with two files names
tag_controller.rb & tags_controller.rb - inside the first line says
“TagsController” not “TagController” like when rails does it. Is this
a bug? Why would the generate script pluralize things just because I
want the scaffolding code inserted?
Is this a problem- will I wind up with other problems because my
controllers/views/who-knows-what-else are plural now? Every code
example I’ve read shows the controllers all being in the singular.
Any advice is appreciated!
Thanks,
-Jason