How do I create image optimization for Active storagea with Amazon S3 file storage?

1
Rails
I want to build posting with image comments web project and included vary of image show cases styles. In case, I implemented that image file upload using Active Storage but it really slow for show...

How To Handle Timeout Error In Ruby On Rails?

0
Rails
Can you please help to solve this timeout error? Timeout Error is an exception error thrown when any block of code takes too long to execute, so it terminates its execution by throwing the same er...
Allen Arlene posted

Is 'js.erb' approach obsolete? What are the alternatives?

1
Rails
Just like in the title, is using js.erb a bad practice? What are the best alternatives to manipulate the DOM? I am trying to understand when to use each approach correctly, like stimulus or turbo s...
Chris Oliver replied

Move data from one table items to another table items

0
Rails
Hi, hope you are fine. I am having a task in which BasketMenu has many BasketMenuItems, and there is another relation of OrderMenu has many OrderMenuItem, and BasketMenu has many OrderMenu. My task...
Haider Ali posted

Stimulus based ActionCable Subscriptions - possible race condition related to turbolinks preview?

0
Rails
Hi, I've been upgrading a legacy app to leverage Webpacker and Stimulus with the intention of moving to Hotwire eventually too. We have a few ActionCable (AC) channels used here and there and it se...
Craig Chamberlain posted

Configure ruby projects of old version

3
Rails
I am working on Rails 6.0.0 and now i want to configure one project which build in rails version 5.1.0 Do in need to install rails 5.1.0 and then install required bundle? Or i can configure and r...
Chris Oliver replied
Solved

Do you know how to permit these Devise sign up params within existing my set up?

0
Rails
I am using Rails 6 API with the Devise gem and Devise_JWT gem. It is early stages but currently Devise is not submitting default params to the registration controller such as email. I am receiving ...
georginavweston posted

Solid design pattern folder structure

0
Rails
How do we organize the model folder according to the example on the first episode of solid design ? Should we make another folder app/scripts or whatever ? How these new classes are imported into m...
Jules JAMET posted

Slow API Call any help?

0
Rails
I call the api for some lifestyle nutrition objects using the bellow and it returns 700 objects. Its currently taking 25-30secs. The lifestyle items do not have any attachments so don't understand ...
Stephen Sizer posted

NoMethodError in ImagesController#import

0
Rails
Good Day , I have an error while upload csv file into my webpage Error NoMethodError in ImagesController#import undefined method `import' for Image:Class Iam fresher into the ruby on rails plz help...
Vikram posted

**ActiveModel::UnknownAttributeError in ExcelsController#create**

0
Rails
Good day ,im usings ruby on rails (version 3) im trying to upload a image on my webpage but i keep on this error ActiveModel::UnknownAttributeError in ExcelsController#create , This is my first pro...
Vikram posted

Issue with Nested Forms in Rails 6.1.3.2

2
Rails
I’m working on a project that will utilize nested forms that incorporates Rails 6.1.3 and Bootstrap 5.1.2. I’m having difficulty getting the nested form feature to work. Project GitHub: cjmccormic...
Steve Polito replied

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

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

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

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