This might be easy but i am not sure about this as on beginner level in rails.
learning rails model through a tutorial i found this --
Use t = Todo.new to create an empty row in the Todo table and stores it in t
After this i run the following command -
> t.todo_item = "Assignment 1"
=> "Assignment 1"
and t.save saves data successfully. Upto this point i am ok with it, however when i executed Todo.all command its showing only single row, i was expecting 2 one from the initial with id nil.
So is that the initial blank row that created while object creation destroys after second command run on db or is that something else.
Is nil values in rails/ruby refer to the NULL?
(As this is what i got from Todo.new [ id:nil todo_item:nil ...] )