Posts by ArtOfCode
I have a test page on my local dev environment so that I can test things. If you look at .gitignore, you'll find there's an ignore in there for scratch/* already. Create a directory called scratch...
You should almost never use a style attribute. They're clunky, they mix HTML with CSS meaning you can't preload it, and they override just about everything else. Instead, either use atomic classes...
You've missed a step: you need to make sure each category is associated with a tag set. There's a full setup guide here that you can follow. For the easy fix, from each category's page, click Edit ...
The really core features (posting, voting, commenting, editing) are pretty thoroughly tested; we only really need to test those exhaustively by hand if we're making significant changes to them - ot...
This is assuming that you're new to Ruby and Rails (and the MVC design pattern that comes with it), but you have programming experience. First, some orientation: Ruby is the programming language...
This is the difference between refreshing the database and seeding the database. db:seed does what it says on the tin - seeds the database. That means it adds pre-defined data to the database. It ...
A Raspberry Pi will run QPixel, and would be almost ideal for development as a small tinkering box. It's small, it'll fit on a desk with everything else already there, it can be remoted into. The o...
You've already got a database there that you're trying to overwrite. As long as it hasn't got anything in it that you want, do a drop database qpixel_dev and drop database qpixel_test, then re-run ...
As the error message says, you can re-run the installation for that single gem to get more detail about the error: gem install mysql2 Read the log and any error messages carefully, as they will...
QPixel has limited code documentation. That's partially by design, and partially because it often just gets missed out. Ruby is a relatively verbose language which tries to be as self-documenting ...
Assuming you've followed the steps in the guide to setting up development, changing that to a production environment is relatively easy. Check your production configuration file (config/environm...
Your MySQL installation is missing timezone support for the groupdate gem that we use. Run the following: mysql_tzinfo_to_sql /usr/share/zoneinfo | sudo mysql -u root mysql and you should be g...
You don't have a homepage category set. Go to the category list (/categories), pick one to be the homepage, edit it and tick the homepage option, then save it and try again. If that's not in the s...
This is related to your other problem - it's the same root cause. Without any post types in the database, there aren't any to add to the categories, and the help and policy post types don't exist t...
I have this error in my local environment too, and I've not been able to figure it out yet. It's somehow related to ImageMagick being built (or not) with the right image libraries, but as far as I ...
When you say front-end code, do you mean views or JavaScript? The answer is different. Views are the client-side code, but are generated server-side so you have access to things like user_signed_i...
The error is actually a ActiveSupport::MessageEncryptor::InvalidMessage, which means either the message you're trying to decrypt is corrupted (it isn't), or you have the wrong key. Since the creden...
Stripe setup is handled in config/initializers/stripe.rb, where the Stripe API key is set based on the values saved in the Rails credentials file. You should be able to run rails credentials:edit ...
We have some limited automated testing already, particularly around core features. This guide covers how to create new tests. Who can write tests? Anyone who's comfortable with a little bit of re...