Jeremy, thanks! But an hour later I found the same problem here

https://stackoverflow.com/questions/46200731/ruby-sequel-sqlite3-app-saves-valid-objects-to-database-with-null-attributes

I removed the username and email from attr_accessor in the User model and 
the code working now and I deleted my post.
суббота, 10 июня 2023 г. в 18:06:40 UTC+3, Jeremy Evans: 

> On Fri, Jun 9, 2023 at 11:58 PM Vladimir Shkurin <[email protected]> 
> wrote:
>
>> Hello! I created a simple user registration form with Sequel and Roda, 
>> but an error occurs when filling out the fields and submitting the form.
>>
>> Sequel::NotNullConstraintViolation at /user/new
>> SQLite3::ConstraintException: NOT NULL constraint failed: users.username
>>
>> A file of my code is attached to this message.
>>
>
> From the error message, you are not setting the username field when 
> inserting the row into the database.
>
> Please post minimal self-contained reproducible example code inline if you 
> would like additional support.
>
> Thanks,
> Jeremy 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/ced89b77-d483-40c9-93f7-0b129abdffc5n%40googlegroups.com.

Reply via email to