How to solve a status 308 with Action Mailbox?

1
Rails
Hi ! I am trying to send email from my Gmail accounts to my Rails application using Action Mailbox. To configure it, I've followed this tutorial https://gorails.com/episodes/action-mailbox-rails-...
Helena replied
Solved

Share resources among controllers?

3
Rails
Hi, I’m not even sure I’m using the correct terminology here (sharing resources among controllers) but here goes. Imagine I have a page called students with the usual CRUD functionality and anothe...
Solved

How do I #create with a double delegated_type and has_many :through

5
Rails
I have this marvelous complicated DB design that goes along these lines: events ( like calls, tasks, and meetings ) can have a number of assignees (Participants, and Assets) - like a Team Meeting c...
Walther Diechmann replied
Solved

BCrypt: Can't validate passwords

1
Rails
I can't seem to get BCrypt to validate my passwords. I'm trying to get back into rails with 7. Can't seem to get passed password validation for my Admin: As I understand it. It's a very straight ...
sweedledee replied
Solved

Ordering with included models

1
Rails
Is there a way to order results using a column from a model and a column from a related model via includes? Here is a scenario: A product that has many parts, each of which has a numerical value a...
HP replied
Solved

API params validation in Rails app

5
Rails
Hey guys! I'm wondering, what could be a good and scalable way to validate if API request is well formed, before processing it. Rails has strong params for that, but I have a case when an API endp...
simrel12 replied
Solved

With Hotwire and a long-running background job, how can I show a message indicating that data is loading?

1
Rails
So I have a long-running API call running in a background job. As records are created/updated/removed in that job I have them broadcasted to the user. I would like to have a notification/badge adde...
Solved

Runaway Memory Leak/Usage with esbuild reload

2
Gems / Libraries
After watching this episode - https://gorails.com/episodes/live-reload-esbuild-rails - we implemented the live reload functionality across several of our apps. Overwhelming it's amazing! However,...
Craig Kaminsky replied
Solved

Using find_or_create_by with accepts_nested_attributes_for

7
Rails
Hi gang...I have a Book which has_many :authors, through: :book_authorsInstead of creating a new Author each time I create a book I'd like to use find_or_create_by on the author's name attribute. R...
Solved

ActionController::UnknownFormat in MessagesController#create

3
General
Ran into this error in part 4 of the ActionCable group chat. What exactly am I missing? Schema looks fine same with MessagesController. ``` ActionController::UnknownFormat in MessagesController#...
Solved

How do i save a field in a separate table when using devise?

6
Rails
I am using devise for my users, during sign up i have an extra field i want to store in a different table in my Postgres DB. How would i go about storing this extra field? So a **company** `has_ma...
Solved

Enum in Models and Forms

1
Tips
I put together information I collected across different blogs, tutorials about how to use Enums in Models and Forms (focus on Rails 7). I might have missed some use cases, so feel free to comment ...
ghjuio replied
Solved

What are the pros/cons and considerations that should be taken in separating your mostly static front facing website from your web app in rails?

4
General
I am in the process of building a rails app and I am unsure if I need to separate my front facing mostly static website from my web application. I see lots of example of sites having there front fa...
ChristianThompson replied
Solved

How do you charge for building web app projects?

4
Rails
Hey all.. Just needed some advice/suggestions on how to charge for building a web app. Would be great to hear how you (freelancer or agencies) charge for projects? Do you breakdown into front end +...
Solved

How to send emails with jumpstartpro in digital ocean with external provider

3
General
Im trying to send emails with jumpstartpro at DO with no luck I tried with mailgun and sendgrid with same result I have activated the service add the credentials, confirmed the domaind and nothin...
Richard Walsh replied
Solved

How would one go about sorting ActiveStorage has_many_attached objects?

6
Rails
Hey there,Just wondering if anyone can shed some light here as the Google search is pretty thin right now for ActiveStorage.Is there a way to a a property (say sort_order) to each of the has_many_a...
Tomas Valent replied
Solved

Following the Ubuntu article to install Ruby, Rails, DB etc fails halfway through.

1
General
Hello! Thanks for looking at this. After going through this article => "(h)(t)(t)(p)(s)(:)(/)(/)gorails(.)com/setup/ubuntu/20.04#final-steps" On the Git configuring step and after I type in ...
savannahx replied
Solved

Data Structure - Going back to the basic with Ruby

1
Ruby
Hi Chris,Could you help me with books, material, videos about Data Structure with Ruby? I have been asked a lot about it in the interview. I am rusty about it and there are tons of pieces about on ...
William Kennedy replied
Solved

JSP rails 7 acts-as-taggable-on couldn't find a valid model

1
Gems / Libraries
With the last version of JSP ( rails 7) the compatible gem is "acts-as-taggable-on", "~> 5.0" And after done the migration and try acts_as_taggable_on :tags and acts_as_taggable I get this erro...
brobles replied
Solved

Install Bootstrap with Webpack with Rails 6 Beta

13
Javascript
For those of you who are going to give Rails 6 Beta a test run here is how I have installed Bootstrap 4.3.1 and configured with Webpack **Step 1:** `yarn add bootstrap@4.3.1 jquery popper.js` **S...
Solved

Want to stay up-to-date with Ruby on Rails?

Join 88,697+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.