Monroe Mann

Joined

6,750 Experience
53 Lessons Completed
1 Question Solved

Activity

Posted in How to Add Pagination with Pagy Discussion

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:

QUESTION
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?

Posted in Group Chat with ActionCable: Part 3 Discussion

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.

Posted in User Referral Program From Scratch Discussion

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!

Posted in How to use ActionText in Rails 6 Discussion

Great stuff Chris! Very exciting. I also just watched the @mention episode too.

To anyone reading this, a few questions:

  1. Do you think we can get @mentions working on our Rails 5.2 app that has the Trix editor installed?
  2. Can we install the Trix editor on comments too, so that the @mentions would work there as well?
  3. What about on the live chat with actioncable? Are we in trouble there because the live chat doesn't use the Trix editor?
  4. When do you think Rails 6 will be stable?
  5. Would it make sense to upgrade our current rails 5.2 app to 6, or is that trouble?

Thanks much!

Posted in Group Chat with ActionCable: Part 7 Discussion

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.

Posted in Group Chat with ActionCable: Part 7 Discussion

Hi Stephene,

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?

-Monroe

Posted in Group Chat with ActionCable: Part 7 Discussion

Rex,

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.

-Monroe

Posted in Group Chat with ActionCable: Part 7 Discussion

Hi Chris!

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?

Thanks!
-Monroe

Posted in Debugging With BetterErrors Discussion

Hi Chris!

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?

-Monroe

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?

Thanks again!
-Monroe

Posted in Error Tracking with Errbit Discussion

Hi Chris!

Great video.

Two questions

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?

Thanks much!
-Monroe

Posted in How ActionCable Uses Redis Discussion

That's a great question. I'll try to find the answer.

Posted in Group Chat with ActionCable: Part 4 Discussion

TIP: The coffeescript files ARE indent dependent. With ruby (and I also believe generic javascript), whitespace doesn't matter. However, we learned that with these coffeescript/javascript files, if you have even ONE indent wrong, it may mess everything up. Be CERTAIN that the indentation is correct in the coffeescript files. We had the most annoying issue where the messageRelayJob kept firing multiple times, posting blank messages. The solution? One tiny indent needed to move one space to the left.

Be VERY meticulous with your whitespace in your coffeescript files! :D

Posted in User Referral Program From Scratch Discussion

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.

Posted in Group Chat with ActionCable: Part 4 Discussion

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.

Posted in Group Chat with ActionCable: Part 4 Discussion

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.

Thanks Chris!

Posted in Group Chat with ActionCable: Part 4 Discussion

Hi Chris,

Question: Two errors that I'm hoping you can assist with:

  1. 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?

  1. 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!
-Monroe

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.