
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

Sprockets::FileNotFound in Users::Sessions#new
4
Rails
Thank you for allowing me to be part of your group and my problem is the following, I currently have version 2.7.0 of ruby on my computer, version 5.1.7 of rails, they just shared a project that ...
Solved

[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

How to Resolve a SystemStackError in Ruby on Rails Controller?
0
Rails
Trying to create category, Getting SystemStackError (stack level too deep) in rails 6
I'm encountering a SystemStackError in my Ruby on Rails application, specifically in one of my controllers. I'v...

Session Not Persisting Across Controller Actions in Rails API
0
Rails
Hello everyone,
I'm facing an issue with session persistence in my Rails API application. I've set up a session in one controller action (`nonce`), but when I try to access it in another action (`...
Antoine Serval posted

Rails API not able to destroy session
1
Rails
I am using Rails API and devise for authentication but when sending a request to destroy the session, it doesn't return any response other then status 200.It returns the same response no matter if...