How do I manage business hours for a store?
Thanks @ChrisOliver. I got it working with your help! I really appreciate it, it seems rather trivial but a core function of my app - also, it seems like between the two of us we've provided the mo...Taylor Cooney replied • Solved
How do I pass my wizard form data to my search index page as filters/parameters?
I cannot for the life of me figure this out. I'm using the Algolia search API along with the Algolia gem, but I didn't set it up in the app I'm working on. The Algolia search is attached to my Proj...Liam posted
LoadError: Unable to autoload constant Validators::LapseValidator
Fernando Flores replied • Solved
How to add a prod database to a local project
I have a rails app. And of course, the development database is different from the prod database but the code is the same. So now I downloaded the prod database and I want to add it to the developme...Houssein abil posted
Use Redis as a way to update a model along a process
Thanks Chris! Your comment just confirmed my thoughts :-) yes was rather complex to deal with the serialized params stored in Redis. I could though do what you said of just storing just product id ...Eduard Garcia replied • Solved
Bundler::GemRequireError and Gem Load Error is: AddDllDirectory failed when switching from Sqlite3 to Postgres on Rails 6
I have a project in rails which worked with SQLITE3. I have to move out to POSTGRES, because Heroku needs to. **Following the docs: https://devcenter.heroku.com/articles/sqlite3#running-rails-on-p...cratag posted
Database structure advice
Hey Amanda! That is a fun challenge to solve. I wouldn't add that many columns to the table as that would get real tricky to manage. I like the idea of doing a new table, that could work well. T...Chris Oliver replied • Solved
get data from once working db
You can run `rails db:migrate` to run all the migrations in the `db/migrate` folder. That will make sure all your database tables are created. It won't restore any data, just the tables and columns...Chris Oliver replied
Where do I put a custom validator for a model?
Generally, the concerns folder is for modules so it might get confusing in there but it should work. You could also probably use `app/models/validators/my_validator` and `include Validators::MyVal...Chris Oliver replied • Solved
PG::ConnectionBad: FATAL: password authentication failed for user "deploy" capistrano rails
This might be late but I had the same error. First place to look at was in the environment variables. nano /home/deploy/myapp/.rbenv-varsThuba Mamba replied
Mysql2::Error::ConnectionError: Access denied for user 'root'@'localhost' (using password: NO)
Try this on your database.yml: default: &default adapter: mysql2 username: root password: socket: /tmp/mysql.sock Mysql usually come with auth_socket as default authentication plugin,...Elvis Serrão replied • Solved
I now have Postgres running on my local machine nicely. My issue now is i can't run a migration due to the following error: `ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "d...Tom Dringer replied
How do I transfer content of production databse to my development database
Dear experts, I have a rails application that I was running on production environment. The data upon interacting with application on browser was therefore added to the production database. I wou...Shivam Barthwal posted
How to change de database of Sqlite3 to MongoDB on rails 5?
Hello guys i have a project Rails 5 with database sqlite3 and a lot scaffolds, but now i need change the databse for MongoDB, but the MongoDB dont use the active record. How i change this or remove...Thomaz Wanderbruck Schmidt posted
PG::InsufficientPrivilege: ERROR: permission denied to create extension "pgcrypto" HINT: Must be superuser to create this extension. : CREATE EXTENSION IF NOT EXISTS "pgcrypto"
For anyone having this issue in 2020, the problem is that the user `deploy` was not created with SUPERUSER privileges which are required to create/enable extensions in Postgres. In order to sol...Julio Cesar Fausto replied • Solved
Default Order of Associated Model Collection?
I know right?! Seriously amazing people here. Welcome to the group! 🤓Chris Oliver replied • Solved