Skip to content

Issue when creating post #4

@GustaMatos0

Description

@GustaMatos0

Screenshot from 2024-02-01 16-45-12

When clicking on the save and close button, I get this error on the rails server terminal:

Started POST "/blog/admin/posts" for 127.0.0.1 at 2024-02-01 16:43:46 -0300 ActiveRecord::SchemaMigration Load (0.2ms) SELECT schema_migrations.versionFROMschema_migrationsORDER BYschema_migrations.version` ASC
Processing by Bloak::Admin::PostsController#create as JS
Parameters: {"authenticity_token"=>"[FILTERED]", "post"=>{"author_name"=>"G", "author_email"=>"g@home", "published_at"=>"2024-02-01", "title"=>"Test", "cover_image"=>#<ActionDispatch::Http::UploadedFile:0x00007f1f63a8af00 @tempfile=#Tempfile:/tmp/RackMultipart20240201-59618-ey15vb.jpg, @content_type="image/jpeg", @original_filename="favicon.jpg", @headers="Content-Disposition: form-data; name="post[cover_image]"; filename="favicon.jpg"\r\nContent-Type: image/jpeg\r\n">, "topic"=>"word", "summary"=>"Just a test", "content"=>"# Hello TinyMDE!\r\nEdit here", "published"=>"0", "featured"=>"0"}, "commit"=>"Save and Close"}
Completed 500 Internal Server Error in 40ms (ActiveRecord: 4.7ms | Allocations: 36255)

ActiveRecord::StatementInvalid (Mysql2::Error: Table 'mysql_test_development.active_storage_blobs' doesn't exist):

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions