Devise: Separate pages for account update and password
7
Gems / Libraries
Nothing too fancy. `users/edit` comes from Devise. `password/edit` is a passwords controller I added.
Fabiana Ramos replied
Solved
User Profile with devise
2
Gems / Libraries
Hello I'm new to rails and I am trying to work with the has_one association. I'm using Devise for authentication. I was each user to have a profile (which will include their address and some other ...
Solved
Why is this image_tag not working?
2
Rails
If I try and put this code:
```
<% if notification.actor.avatar.attached? %>
<%= image_tag notification.actor.avatar.variant(combine_options: {resize: '150x150^', extent: '150x150', ...
Aproplat replied
Solved
How do I install Google tag manager in a rails 5 app?!
4
General
Hi guys, I'm having a hard time trying to know how to install GTM in my new rails app. I searched for some time but found nothing to guide me through it!
Solved
How do I configure GlobalID in a Rails app?
1
Rails
I am working through an elaboration on the recent screencast, using GlobalID to build references to polymorphic associations, but I need to be able to take advantage of the GlobalID.app= method, an...
Walter Davis replied
Solved
Nested Comments in Rails Part 2, nested comments are showing in reverse order
2
Rails
I am trying to implement nested comments with max_nested comments as described in this episode:
https://gorails.com/episodes/nested-comment-threads-in-rails-part-2?autoplay=1
I'm at approximately...
Solved
First open source contribution to turbo-rails
4
Rails
Hello-
I'd like to take a crack at fixing https://github.com/hotwired/turbo-rails/issues/341 for turbo-rails. I'm having a little trouble navigating my local setup to verify the change is working ...
computer_smile replied
Solved
Stimulus not autoloading controllers
3
Javascript
Decided to give stimulus a try on a new app I am working on and immediately ran into issues. Up to this point this is a fresh rails 6.1 app and I have installed Hotwire-rails.
Just using the hello...
Solved
How do I resolve Rails 5.2.4.2 routing error: No route matches [GET] "/pages_about_path"?
4
Rails
I am running into a routing error for a get action when I try to render an html erb view from the '../views/pages' folder via a navbar link.
I have reviewed the routes.rb file and the output from ...
Solved
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