
How do I set up webpacker for production environment?
0
Rails
Im running my project first on my local machine using Production environment before deploying to production to make sure all is running fine.
im using docker with Rails version 5.2 and webpacker ve...
Dev posted

Plan limits
0
Rails
I'm currently building a sass product that has three plans beginner, intermediate and advanced. This is then linked to a stripe subscription product.
Each plan has limits eg. the number of team me...

ROR version to have a fine database management
0
Rails
Hi
I use a very old ROR (2.0.2) and ruby 1.8.6.
I would like a fine database management. What is the ROR recommended version for you? Of course the last, but if possible, i don't want to make a big...
jean posted

Using form_with produces odd results for nested namespaced resources.
0
Rails
I'm having an issue with sharing a the `new` and `edit` form for a shallow nested resource in a module/namespace.
Most everything works as expected. The issue I'm running into is using `form_with`...
Chris Born posted

Unsafe-inline
2
Rails
My apps need the following settings to get working:
script-src 'self' 'unsafe-inline'
style-src 'self' 'unsafe-inline'
unfortunately this doesn't pass the pen-test and they requested to remove the...
RyanJeff replied

docker mysql
1
Rails
Hey guys i was wondering if you ever get to connect a rails app in local host without dockerizing it and be able to use a docker image of mysql with it.i already got the mysql image running in dock...
KevinNafziger replied

Validation Errors Not Showing in Views
1
Rails
I have an app where I got the CRUD functionality working and I added some AJAX to learn how to use it. I changed a class to use AJAX for the delete, edit and show views from the index view. That ...
Drew replied

how do I properly set up rails project on my machine
0
Rails
I am not able to set up rails project on my machine. It's giving me following errors when I try to run bundle install P.S: This is my very first time on ruby
error: mingw32: key "5F944B027F7FE20919...
Mustafa Rasheed posted

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