Skip to main content
Rails has_one, belongs_to, join_table and nested form
I'm creating a User, Role and UserRole. A user can create a list of roles, and from the new user form, there is a nested form which populate a list of roles created, then the user able to select a ...
Lee Terng Gio posted
1
Rails

Why this error ? how I fix this.
From the code, most likely that patient does not have an address. Have you tried using byebug or pry to take a look?
sheng replied
4
Rails

Sorting Images using Active Storage
Sorry everyone. I didn't see your replies. IF you're still interested I can probably put something together.
Tony Serkis replied
6
Rails

Action mailer rails 6
I'm having the same problem in Rails 6.0.2. After generating a mailer UserMailer, running it in console results the following: ``` irb(main):001:0> UserMailer Traceback (most recent call la...
James Devereux replied
4
Rails

Error 500 on Heroku (app Ruby on Rails)
Hello , I created an app on Ruby on Rails, and everything is ok on my localhost. But on Heroku, it doesn't work : *We’re sorry, but something went wrong. If you are the application owner...
Olive replied
2
Rails

Using mail_form gem and Sendgrid - having an issue
I'm trying to test sending an email from the page, but I'm not receiving any emails in my inbox. While in the rails console, it looks like the email is sent correctly. I'm just not getting it. I be...
Kyle Williamson posted
1
Rails

User 'folders' for uploaded files?
Is there any best practice / tutorial for organizing user uploaded files? In my app I have an 'uploadable' polymorphic structure where the user can upload files to pretty much any model etc. ...
Dan Tappin posted
1
Rails

How do I resolve Rails 5.2.4.2 routing error: No route matches [GET] "/pages_about_path"?
Hi Chris, thank you very much for providing the solution to the routing error I was running into.
Alfred Montalvo Jr replied Solved
4
Rails

Newbie question trying to understand collection_check_boxes method
As I understand it, `author_ids` is one of those Rails built-in magic merhods that gives you all the IDs of associated records. For example, if I have a School that `has_many :teachers` I can do `...
Daniel Weaver replied Solved
3
Rails

How to delete parent object when last associated child is deleted?
I have a Family model that `has_many` Kids. I'm using `dependent: :destroy` on the family so when it is destroyed the associated kids are destroyed too. All good. Now I need to destroy the famil...
Daniel Weaver posted
1
Rails

Subscribe to the newsletter

Join 31,353+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.