This is really a question about naming conventions.
I have a model called PromotedEvents
The file is called promoted_events.rb
I created the table wi
Model names are singular and camel case like so pe = PromotedEvent.new()
pe = PromotedEvent.new()
the file should be promoted_event.rb
promoted_event.rb
Controllers are plural
PromotedEventsController
constants are ALL_CAPS
ALL_CAPS
locals are separated_by_underscores_and_lowercase
separated_by_underscores_and_lowercase
table names are plural 'SELECT * FROM promoted_events`