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 with:
create_table :promoted_events do |t|
Now I'm having problems creating anything, so I'm wondering if theres some problem using model with two words
im in the console and tried
a = PromotedEvents.new
a = Promoted_Event.new
a = promoted_event.new
and keep getting a nameerror : uninitialized constant
error
Any ideas?