If I open the Rails Console and create a new Widget:
>> widget = Widget.new
>> widget.name = "Whatever"
>> widget.save
The Widget saves without errors. However, when I run:
>> Widget.all
This new Widget does not appear in the returned list of records. However, if I restart the Rails Console and run the same command again:
>> Widget.all
The Widget now appears in the list of records. Why is this happening? I'm having the same problem with the Rails Server; if I create or edit a Widget with the scaffold views I generated, those Widgets do not appear in the show view until I restart the Rails Server.
By the way, I'm on Windows 7, using RubyMine as my IDE, and using rails 3.2.4 and sqlite3.