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
Best Rails error monitoring software ?
I think Sentry (https://sentry.io) is the best tool you can use It enables asynchronous reporting so errors are logged quickly in a background job. It filters and groups Rails exceptions intuitiv...BoTree Technologies replied • Solved
Do I need the jumpstart gem embedded in my application?
You need to keep it. It manages the configuration. 👍Chris Oliver replied • Solved
Would you like to use Rails to improve someone's mental health?
Thank you all so much for the permission to post. We received two highly qualified developers who have chosen to volunteer their time to this project! Very excited for the progress we'll get to mak...natehilpert replied • Solved
How do I create a duplicate with associations included?
hi, it's really helpful. i also have a case like this, its a quotation and invoice. does the steps, also copy the association or just the id and refer it to the tasks from previous project? thanks.msalsabil replied • Solved
Is there a way to validate image uploads to validate dimensions?
If you are using ActiveStorage, check out this gem : https://github.com/igorkasyanchuk/active_storage_validations You can use square aspect validation on this gem : `validates :avatar, aspect_rati...Axel Kee replied • Solved
Active-storage creating/uploading folder
I would say, don't think of it as folders on S3 or the file server. Use database records to group and organize them in your app. They don't have to exactly mirror the files on disk.Chris Oliver replied • Solved
How do I build a multi step wizard in ruby with StimulusJS
here we go - https://github.com/excid3/tailwindcss-stimulus-componentsTim Dowling replied • Solved
Root route bypassing before_action
we have a posts_controller which takes a slug to render the correct page. posts_controller inherits from application_controller which has a couple of before_actions routes.rb has the following ...Peter vande Put posted • Solved
"NoMethodError: undefined method `deep_symbolize_keys'" when trying to deploy my application
David McDonald replied • Solved
What's a good way for upgrading a server?
And glad it's been so helpful! This is the community I wish I had a long time ago, so that's great to hear!Chris Oliver replied • Solved
User model guidance
Hey Stephen! The way I do it in JumpstartRails.com is we have a single User everyone logs in as and they have multiple Accounts they're associated with. Each account could have a type of Coach, ...Chris Oliver replied • Solved
Why is this image_tag not working?
If I try and put this code: ``` ``` into one of my notification layout pages I only get: ``` Can't resolve image into URL: undefined method `to_model' for # Did you me...Christopher Guller posted • Solved
Navbar with Vue.js and webpacker - Flickering at page load 😒
Status update: **[SOLVED]** --- Thanks to a live code of Adam Wathan himself, I found out that `[v-cloak]` was the solution I was looking for. Here is the solution: 👉 https://www.youtube.com/watc...Thomas Sohet replied • Solved
I ended up also disabling wrap_parameters: wrap_parameters format:  So now I can simply do params.permit(:id, :name, :age). Not sure if there is a better way.Penguin replied • Solved
Nested Parameters returns ActionController::Parameters rather than parameter value
Yep, that's the built-in way. Sounds like your code doing the validation is strict about what type of object it is (a Hash) and that's the part that's not very Ruby-ish.Chris Oliver replied • Solved
Webpacker doesn't make require available in the browser window, so you have to set that explicitly. ```js window.toastr = require('toastr') ``` Working example here for you: https://github.com/ex...Chris Oliver replied • Solved