On 10/26/06, SpatialDB Advisor [email protected] wrote:
I am new to rails. I have tried Google searches, checked the tips and
doco and can’t find the answer to a simple question.
I have a table called “Activity” that I want to rename so I can use
RubyOnRails but I don’t know whether the plural form should be
“Activitys” or “Activities”.
Hey Simon! Check this out:
[email protected] editors $ ./script/console
Loading development environment.
The Rails console is your new best friend. It’s just the Ruby
shell (irb) with your Rails app already all loaded up for you to play
You can even create classes dynamically and see the results:
class Activity < ActiveRecord::Base; end
=> [would have the columns here if I had an activities table]
Can someone illuminate me on what to do?
Take yourself out for a beer to celebrate your ./script/console