Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

71%
+3 −0
Q&A Can not create a new post on fresh installation

1 answer  ·  posted 4y ago by Yaskur‭  ·  last activity 4y ago by ArtOfCode‭

Question support
#3: Post edited by user avatar ArtOfCode‭ · 2021-01-21T01:46:38Z (almost 4 years ago)
#2: Post edited by user avatar Yaskur‭ · 2021-01-21T01:00:40Z (almost 4 years ago)
  • 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 by user avatar Yaskur‭ · 2021-01-21T00:59:15Z (almost 4 years ago)
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?