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 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

Controller naming...

3
Rails
Evening all, So i have a question about naming controllers. Which would be best to use? MyOrder or MyOrders Is it just the DB which get pluralised?
Alan Reid replied
Solved

has_and_belongs_to_many associations

6
Rails
Im building an app where a `User` belogns to several projects. Is this a good approach to create a "join table" that just tracks which `Projects` are connected to which `Users`? Is the `Collaborati...
Lauro replied
Solved

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

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

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...

Start development instantly using devcontainers

0
Rails
Hello everyone, I learnt about devcontainers weeks ago and start using them and they are very helpful and easy to use. So, I putted this GitHub repo with a starter devcontainer template to setup an...

Will there be GoRails as open source project?

1
Rails
There are a lot of cool stuff that made with love. It'll be very usefull to learning advanced stuff from source code of GoRails

Rails 6/7 Template Recommendations for SaaS

1
Rails
Hi 👋 Can you recommend any good SaaS oriented (e.g. including user authentication, admin panel, stripe integration, basic landing-page) templates based on Rails 6/7 which don't require a yearly su...
Chris Oliver replied

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.