Post History
#2: Post edited
- I'm running qpixel on my local and followed instruction on README. After signed up and try to create a new post it's return error :
- > ActiveRecord::NotNullViolation: Mysql2::Error: Field 'tag_set_id' doesn't have a default value: INSERT INTO `tags` (`name`, `created_at`, `updated_at`, `community_id`) VALUES ('test', '2021-01-21 00:49:53', '2021-01-21 00:49:53', 2)
- > /ruby/qpixel/app/models/post.rb:142:in `block in update_tag_associations'
- > /ruby/qpixel/app/models/post.rb:141:in `each'
- /ruby/qpixel/app/models/post.rb:141:in `update_tag_associations'
- /ruby/qpixel/app/controllers/posts_controller.rb:91:in `create'
- I go to http://localhost:3000/categories/3/tags and got error too:
- > NoMethodError: undefined method `tags' for nil:NilClass
- > /ruby/qpixel/app/controllers/tags_controller.rb:30:in `category`
- How to fix it?
- I'm running qpixel on my local and followed instruction on README. After signed up and try to create a new post it's return error :
- > ActiveRecord::NotNullViolation: Mysql2::Error: Field 'tag_set_id' doesn't have a default value: INSERT INTO `tags` (`name`, `created_at`, `updated_at`, `community_id`) VALUES ('test', '2021-01-21 00:49:53', '2021-01-21 00:49:53', 2)
- > /ruby/qpixel/app/models/post.rb:142:in `block in update_tag_associations'
- > /ruby/qpixel/app/models/post.rb:141:in `each'
- /ruby/qpixel/app/models/post.rb:141:in `update_tag_associations'
- /ruby/qpixel/app/controllers/posts_controller.rb:91:in `create'
- I go to http://localhost:3000/categories/3/tags and got error too:
- > NoMethodError: undefined method `tags' for nil:NilClass
- > /ruby/qpixel/app/controllers/tags_controller.rb:30:in `category`
- I installed on Mac OS Big Sur.
- How to fix it?
#1: Initial revision
Can not create a new post on fresh installation
I'm running qpixel on my local and followed instruction on README. After signed up and try to create a new post it's return error : > ActiveRecord::NotNullViolation: Mysql2::Error: Field 'tag_set_id' doesn't have a default value: INSERT INTO `tags` (`name`, `created_at`, `updated_at`, `community_id`) VALUES ('test', '2021-01-21 00:49:53', '2021-01-21 00:49:53', 2) > /ruby/qpixel/app/models/post.rb:142:in `block in update_tag_associations' > /ruby/qpixel/app/models/post.rb:141:in `each' /ruby/qpixel/app/models/post.rb:141:in `update_tag_associations' /ruby/qpixel/app/controllers/posts_controller.rb:91:in `create' I go to http://localhost:3000/categories/3/tags and got error too: > NoMethodError: undefined method `tags' for nil:NilClass > /ruby/qpixel/app/controllers/tags_controller.rb:30:in `category` How to fix it?