Capistrano deploy fail to do rake db migrate

0
Rails
I follow this tutorial from crabs code and do all as in tutorial but when i do cap production deploy initial capistrano fail to do rake db migrate. I think is because capistrano not do rake db crea...
Reni-amorim posted

I miss App-Folders and Files after create a app

0
Rails
Hello and good day to all. I'm new to RVM, Ruby and Rails and I have a problem. I use RVM. If I create a new RAILS app with the following command: rails new appname -d mysql Do I get the impress...
RubySnug posted

How do I create a sortable & searchable table with pagination?

2
Rails
Not really sure how to set this up with the different query params. Could someone point me in the right direction? Thanks!
Kevin Gutowski replied

Count the number of pages in a pdf

0
Rails
Hello! I am trying to count the number of pages in a PDF for a print service using PDF-reader (https://github.com/yob/pdf-reader). Here's what I have so far but, I only get a hash of {"identified...
Nick Seferos posted

2 sites... 1 DB?

8
Rails
Hello all! It's been a while since i was here, but i am back! So today I would like to get some opinions on a project I am working on. So here we go... What would be the best way to architect 2/3...
Fugee Ohu replied

About Importmap rails gem

8
Rails
Hi Chris, Will you make a video about https://github.com/rails/importmap-rails/, what will be the benefits and hidden costs. Best Regards.
Michael Prince replied

[delegated_type] How to query a collection of entries including the (entryable) sub-entries.

0
Rails
I need to query a collection of entries based on a range of dates and then sum an attribute of the sub-entry using the delegated_type method. Something like this: ``` Entry.where(performed_at: Da...
William Cunningham posted

How to limit comment nesting with Hotwire and Turbo?

4
Rails
I asked this question in the discussion on the tutorial itself, but there doesn’t seem to be any activity there. I went through the nested comments series, and the last three videos focused on real...
Solved

How do i log user out from subdomain using devise

0
Rails
hi guys i am trying to build a blog platform like hashnode/substack where user register on root domain and create blog. I am currently using devise and i have set up subdomain routing. My question ...
Henry posted

Edit user profile with devise if user signed up with facebook omniauth

3
Rails
Hello. I use 2 gems (gem 'devise' and gem 'omniauth-facebook'). The user is able both to sign_in ou sign_up with facebook. If a User did a regular sign up in the past, he's found by email, and if ...
Ubuntus replied

Multi-step forms, without a gem?

1
Rails
I am looking for a good way to get multistep forms working, I have seen a couple of ways to do this and each has their own merits. Now I would like to be able to navigate back and forth between t...
Fatih replied

CanCanCan, Pagy, and MeiliSearch, How to combine the 3 gems?

5
Rails
I'm working on a project that has Cue model that could be accessed and searched by multiple roles like guest and admin. The authorization happens using CanCanCan gem based on some logic written in ...
mariakennet replied

How to download multiple files from s3 on fly?

3
Rails
Hi, I am able to download files from s3 as a zip by using below mentioned code. require 'open-uri' def download_all_files folder_path = "#{Rails.root}/public/downloads/" zipfile_name = "#{...
mamatharao replied

Help to debug inside Jumpstart

1
Rails
Hi, I am currently developing my client's Jumpstart application and I am seeking advice on how to effectively debug any issues that may arise during the development process. I tried to use bindi...
Chris Oliver replied

gem 'devise' error

1
Rails
Hi All When try to run "bundle install" after add gem 'devise', '~> 4.8', '>= 4.8.1' in Gemfile will shown below error "An error occurred while installing bcrypt (3.1.18), and Bundler c...
Robert Ault replied

Devise and Turbo-rails

7
Rails
I've followed the guide for implementing devise with turbo-rails. It worked for few projects. But, when i tried to implement in new rails 7.0.4 project, the line render rendering_options is throwin...
Solved

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

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

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