Tutorial 6.rails console

Above the picture , you see call the rails console , and  call a User new ,

Call the User.First but the result is false

Because I have already made a this table at rails console -sandbox whose function is not influence on real environment so that's why the result would be false

I guess that .

How to solve the situation ?

What's the solution ?

Do you have the solution ?

 

 

On the database , value exist whose data has not id , the id becoms nil so

You need to id to the value

How to the id into the value ?

データベース上に、値は、ある。しかし、id がnilになっている。それを改善したい。

In what way ?

 

 

Why did't I solve the situation ?

I did it , I solved it

 

Answer

 

This was I have already made a model and

Like I wrote down some descriptions in the model , so the model prevened my descripton , so I did't use the database , in other words I can not change my databease because  the model prevens my description ,

It took a many time to solve the problem