Thank you for this wonderful explanation. The Pagy docs don't mention the requirement that you need to 'import' the methods for front end and back end. This video was the missing link. Thank you once again Chris for a job well done!
Posted in User Onboarding Progress Bar Discussion
Thanks as always Chris! Great stuff. We have our onboarding checklist already working, but yours is a bit cleaner, and automatically checks off the items as they are completed! I look forward to implementing this as an improvement in the future!
If you happen to see this:
Can this work on a more complicated task, i.e. Make a post that uses the tag 'introduce-yourself'? In other words, how would we set it up so the checklist knows it wasn't just a post, but actually a post with a particular tag?
ADDING A CUSTOM BUTTON TO THE TRIX EDITOR FOR PHOTO UPLOADS?
We have the photo uploads working now (THANK YOU CHRIS FOR A GREAT TUTORIAL!), but unfortunately, there is no 'drag and drop' option on mobile, so it means only those users on desktop can add a photo to their posts. I've been searching on google for a tutorial on how to add a custom button to the Trix editor.
Any thoughts? Has anyone done it before?
I wish I could help but I don't know the answer. Why don't you try the GoRails Slack?
Are you still having trouble? Did you get it working Syed? I'm no expert, but my team and I got it working on our app, and I'll try to help as much as I can.
Hi Charlie, so if someone clicks 'forgot password', that's going to have an effect on the referral code? Can you elaborate?
Hi Taylor, glad I was able to help!
Great stuff Chris! Very exciting. I also just watched the @mention episode too.
To anyone reading this, a few questions:
- Do you think we can get @mentions working on our Rails 5.2 app that has the Trix editor installed?
- Can we install the Trix editor on comments too, so that the @mentions would work there as well?
- What about on the live chat with actioncable? Are we in trouble there because the live chat doesn't use the Trix editor?
- When do you think Rails 6 will be stable?
- Would it make sense to upgrade our current rails 5.2 app to 6, or is that trouble?
Does anyone have an update on the rspec / actioncable issue? We are slowly starting to implement rspec into our workflow as our app gets bigger.
If I understand, your chat room displays the names of the users who are currently in that chatroom chatting? Did you figure out how to get it working?
Are you still seeking an answer to this? If so, let me know, and I'll see if we can help you. We just got our chatroom working properly.
We got it working perfectly! Thanks so much! Can't wait to show you what we're putting together in a few months when we launch :D
One question: when a chatroom switches to bold, it indicates new unread messages. When I click on that chatroom, it loads the chatroom, but then it takes about 3 - 5 seconds before the new messages themselves load.
Do you have any suggestions on how to remove that load delay?
Posted in Debugging With BetterErrors Discussion
After watching this video, I remember the conversation we had that I was referring to.
We were discussing debugging. You mentioned that maybe this gem has been updated, or is now a part of rails, or something...
I'd like to use this but before trying to install, wanted to see if you remembered what it was we were discussing. Does this ring a bell?
Posted in Error Tracking with Errbit Discussion
A) Would $5/month cover our needs for the first year? What triggers the upgrades? Is it based on how many errors are received?
B) So if one of our users in France triggers a heroku rails error, it will show up in errbit, and we can link it so that it notifies us in Slack?
C) And then, if another user in Brazil triggers a different heroku rails error, that too will show up in errbit, so we can diagnose it?
D) Okay, so errbit with airbrake still works according to this video? Don't need to change anything?
E) When is the best time for a deployed app with multiple uses to get set up with this type of error tracking? Is it recommened from day one, to ensure no downtime?
Posted in Error Tracking with Errbit Discussion
a) So we could run this on hatchbox for $5/month for our three deployed apps?
b) I think you mentioned that errbit is now included in Rails or something? So we don't have to go through all of the steps you list here. Could you remind me again what it was you said?
Posted in How ActionCable Uses Redis Discussion
That's a great question. I'll try to find the answer.
Be VERY meticulous with your whitespace in your coffeescript files! :D
TIP: If any of you are using validations in devise,
before_create in the user.rb file may not work, and you will get an error.
Therefore, try changing that line in user.rb to
before_validation and you may find that it works.
TIP: One more thing: and if the redis server isn't running, and you try to go to a page where the redis server isn't running, the rails server will perhaps crash. Therefore, it seems best to launch the redis server prior to launching the rails server, so you don't get an error if you end up heading to a page that requires the redis server.
Update: Chris helped me out. Here's the thing that was covered in another video, but not made clear in this video: installing the redis gem alone is not enough: YOU MUST ALSO INSTALL REDIS TO YOUR COMPUTER AND LAUNCH IT. It's a server, just like postgresql. And it needs to be running. So if you have the same problems I was having, it may be because you didn't have redis actually installed, and it wasn't running.
Another thing I learned: in a model, if you have any associations through another, you must first declare the 'another' on the line above the 'through' association, or you'll get an error.
Question: Two errors that I'm hoping you can assist with:
- https://gyazo.com/19aaab916790ec3c1a41476cc621398b It says the redis gem is not loaded. But it is. I found some posts on StackOverflow that says the redis gem 4.0.2 doesn't work with ActionCable, so you needed to use 3.3. But I installed 3.3 and still no success. Is there perhaps some type of additional setup? I did make sure to change the cable.yml as follows:
development: adapter: redis url: redis://localhost:6379/1 test: adapter: async production: adapter: redis url: redis://localhost:6379/1
Anything obvious that I am missing, or forgetting to do?
- This may be relate to the above question. In console, when I type a message, it disappears properly. And posts when I refresh the page. But it's not showing up in the other console as an object, as the video suggests it should. Thoughts?
Thanks very much!