
How do I learn to write dry code?
1
Ruby
I've been learning RoR for a year now and have a basic functioning site that people actually use, but my code is not even close to dry... it's probably wetter than the Amazon! Once you have the bas...

Sharing on social network
17
General
What is the best way for the visitors of my page (not logged in) to share models data (for example articles and courses) on Facebook and Twitter.
I have been looking for an answer without really fi...

Setup Ubuntu 21.04 Hirsute Hippo Discussion
6
General
Great guide as always! However, I believe that postgresql is now at version 12 and that 'sudo apt install postgresql-11' will return an unable to locate package error, I would suggest using 'sudo a...
Devon Kiss replied

Setting up Customer Support models with Hotwire Discussion
3
General
It's for useful episodes like this, that I'm here since 2014. Super thank you!
magico replied

How to use Uppy with ActiveStorage Discussion
37
General
Thanks for this!
Brian Carpenter replied

Properly adding Turbolinks 5 event handling
0
General
Here's what I understand:
* Turbolinks preserves the `window` and `document` from request to request
* As a result, I should add click/change listeners to the window/document once when the js is f...

How can I test sortableJs ? (RSpec)
0
Testing
I made a drag and drop to-do-list with SortableJs and i'm trying to test the drag-n-drop with RSpec/Selenium/Capybara if the request is sent onEnd.
I'm able to do the drag n drop using selenium `dr...
paul lahana posted

learning ruby
1
General
Hi)
probably I will ask a banal question, but I'm wondering if I can master ruby at a good level, which will allow me to get a position in the middle of the developer, against the background of th...

Create a User Profile after saving a Devise User
10
Gems / Libraries
1. When the user registers, do you want to have them fill out some of the profile information as well? If so, then I would recommend updating the Devise form to be a nested form. That way you creat...
Alex Ventura replied

How to deploy Rails to a Staging Environment Discussion
1
General
Chris,
Great video as usual. One question: when using custom environments, how do you handle Gem's that customize behavior based on Rails.env? For example: Rails.env.production? ? prod_thing : n...
Eitán replied

Contrasting Colors with YIQ and Helper Tests in Rails Discussion
1
General
Great Video For Learning..!
I have just applied on my Website and it looks very well
jivizza12 replied

Mitigating Spammers with Recaptcha Discussion
0
General
Nice episode. But where do I find the source code?

MushroomObserver.org Now Hiring
0
General

Can anyone suggest me best Ruby on Rails 5 book?
8
Rails
I have watched few video tutorials of gorails and codeschools. I think it will be better if I read a book. Can anyone suggest me a ruby on rails 5 book which will helpful for beginner?

Row-level Multitenancy with ActsAsTenant Discussion
8
General
Of all the multi tenancy methods you have used, which one do you think is the best. I know it depends, but I need your opinion, which one would your mind start thinking of?
bradley replied

Action cable - How to delete message in chatroom that belongs to current user?
0
Rails
I've tried to use if else statement, and display a link next to the message, when I submit a message, the link won't display, and I have to refresh the page. It seems like if else statement doesn't...

How to set correct host for action-text-attachment figure img src?
0
Rails
My rails 6 app is set up with amazon s3 with a react front-end.
I serve the react front-end with json and in my json I have Post model with a rich content body.
In the body I have added an image. W...

Rails for Beginners Part 12: Validations Discussion
10
General
I tried copying this regex "\A[^@\s]+@[^@\s]+\z" to https://rubular.com/ but it aren't working until I remove the \A and \z making this [^@\s]+@[^@\s]+ before it could work, any reason for that?
Jerry Lupo replied

@Mentions, Autocomplete, Notifications, and Links Discussion
1
General
How would go about doing this using devise? I'm a bit confused of how to accomplish this.
Jake Yeaton replied

User Referral Program From Scratch Discussion
23
General
Just the thing I was needed for a current project, as usual, perfect timing Chris !
Ajay Mishael replied