How do i use a username instead of an email?

2
Rails
I am watching the series and really enjoying it. I am up to [Part 11](https://gorails.com/episodes/rails-for-beginners-part-11-creating-the-user-model) where you create the user model. Is there a w...
Michael Lynch replied

How do I check if a model inside a model has been liked?

1
Rails
Hello there! I implemented likes to my app using this tutorial https://gorails.com/episodes/liking-posts. I went a little bit different route though. I have PollItem < Poll. Poll has_many :poll_...
William Murphy replied

DHH's most recent hotwire update...

1
Rails
I just caught a tweet from DHH mentioning a new [hotwire related pull request](https://github.com/rails/rails/pull/42999). I'm curious to know how the go rails community feels about this. Seems lik...
Chris Oliver replied

Rails 6 ActionView::MissingTemplate Missing template errors/500

0
Rails
I am working on to upgrade existing project and upgrade version from ruby 2.3.1 to version to 3.0.1 (rails 6.1.4) with related gems. After uploading image, when execute render json, generate error...
MohitChavda posted

Checking for expired documents and sending email reminders

8
Rails
Hi, I've got a system where users upload documents with expiry dates. I want to send the user an email reminder 1 month and 1 week before expiration to remind them to upload a new document. What's...

When run Rspec System testing, the API is not working

0
Rails
I am currently using rails 6. When I run the Rspec system testing, the API cannot pass data to my index page. Here is my test code: require "rails_helper" require_relative "../support/devi...
Kent posted

Store for plugins in a SaaS

0
Rails
Hello, i wanted to ask if any has an idea if it possible to build a store for plugins just like wordpress where you can enable or disable a plugin for a rails SaaS already built and wanna implement...

How to change Boolean Value on specific date.

2
Rails
I am looking to change a boolean value on a specific date automatically. How would I do that. For example, it I have a post and would like it to publish automatically in two days at 8am. Would wou...
Solved

Alternative to JSON Schema for jsonb

0
Rails
Hi, I am using JSON Schema to validate my jsonb data. Is there an alternative to JSON Schema?

rails migration warnings

2
Rails
When I run rails db:migration it works but there will warnings like below.. /home/paritech/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapter...

Hatchbox Postgres Problem

4
Rails
Hello, I have my app running on Hatchbox. I link it with the app hosted on Github so anytime that I push something on my master branch, its deploy automatically. Yesterday I did some modification ...
Solved

Attempting to generate a URL from non-sanitized Rails 5 upgrade

0
Rails
Hi so Im upgrading my rails 4 app to rails 5. I have a link with foo _path(params.merge(format: "pdf")) Im getting the non-sanitized error. Im looking for the correct way of permiting the this p...
Francisco Quinones posted

Manage multiple rails project with different versions of rails and ruby | RVM vs Rbenv | Bundler

0
Rails
I am new to rails so I have a lot to ask and I find out there is a huge debate on ruby version managers i.e RVM and Rbenv, and there is a bundler too. Now all the articles I have read are old and t...
usama akram posted

Deploying error: The dependencies in your gemfile changed

0
Rails
Hello Devs, I am on my way to deploy a rails app, but I got this error: ``` ** DEPLOY FAILED ** Refer to log/capistrano.log for details. Here are the last 20 lines: DEBUG [504959b4] Install mis...
ykostov posted

Precompile error on hatchbox with yarn 2

1
Rails
After upgrading to yarn 2, I get the following error when deploying to hatchbox: -----> Precompiling assets... Unknown Syntax Error: Unsupported option name ("--no-progress"). $ yarn install [...
Matthias Orgler replied

Using Activestorage how do I restrict a file that can only be accessed through links and not outside the website?

3
Rails
So if you copy the link of the rails blob and paste it ( incognito ) it basically downloads the file how is this remedied?

Faraday::SSLError

2
Rails
ran into this error while using facebook to login on a project does anyone know how to fix this

Hotwire turbo stream update_or_[append/prepend] ?

1
Rails
Given a list of items that could be visible or not on a page (like a paginated list ), how is the best way to send from the server an update or append to that list? I Mean, update element when the ...
Miguel Michelson Martinez replied

Law of Demeter - Question

4
Rails
Had a question about how to refactor some of my code. I've been reading some books AntiPatterns & Refactoring. Given the code block here, should the method here be in Evaluation or Skill? If...
David McDonald replied

Moving from STI to roles

1
Rails
Finding it tricky to move from STI (Single Table Inheritance) to user roles because associations between the various user roles to other resources mean different things to different user types. `T...

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

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

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