
How do i run sneaker worker in rails 6.0 ,ruby '2.6.3' ?
2
Rails
I'm trying to run rails app using command foreman s
the ProcFile contains these 2 lines :
web: bundle exec passenger start -p 8000 --max-pool-size 1
sneaker_data_publisher: WORKERS=DataPublish...
lpiffer replied
Solved

How to upgrade rails 5.2 to 6.0
0
Rails
I'm trying to upgrade rails but stuck on
"bundle update rails"
I'm following this article https://fullstackheroes.com/rails/upgrade-to-rails-6/
mikkycoder posted

Action Mailbox Routes
2
Rails
I'm adding action mailbox to my Rails + React app, the problem I'm having is that the mounted routes are at the very bottom of the routes file so it will not get called due to the fact that I need ...
Stephen Sizer replied
Solved

Digital Ocean Spaces does not respect ACL Public-Read (Active Storage)
2
Rails
Hello guys,
I'm using Rails 6.1 (Edge) and I noticed a possible compatibility issue between Digital Ocean Spaces with the AWS S3 specification.
When we configure the service as "public: true" an...
Alisson Patrick replied

Rails log is to big in production?
3
Rails
Hi there, I recently view a video here talking about how to subdivide your log into multiple parts. This video talks about how you can delete them after 7 days. I forgot the title, I can't found it...
Mylan Connolly replied
Solved

syntax error, unexpected tREGEXP_BEG, expecting end-of-input
0
Rails
I'm trying to run a script but facing the error, I'm pretty new to the rails console.
```RAILS_ENV= qubole rails runner db/scripts/migrate_bulk_users_to_new_emails.rb /usr/lib/tapp2/db/scripts/mi...
kumar0205 posted

How do i write a test case using rspec for private method
1
Rails
Hello I,m new to rails
I am writing test cases for using rspec gem
In my controller I have edit function. I have before action for edit function
**This is my controller**
```
before_action :aut...
Kasey Sk replied

How do I pass params to Active Record Model has_many?
0
Rails
Hello everybody,
I have a model: account.rb, with has_many condition like this
```
has_many :purchases, -> { where(available: true, workspace_id: nil).order(id: :desc) }
```
Now I want to pas...
quydox posted

Updating Rails Applications across Rails versions?
5
Rails
Question, how do I go about handling the update process for my Rails apps?
Example: I setup many apps with Rails 4.0.0 and currently 4.2.0 is out. What's the update process look like? I tried to ...
Ernesto Tagwerker replied

Having some Issues regarding Rails 5.2 upgrade
3
Rails
Hi everyone,
I was working on using ActiveStorage on an app I had begun like 6month to 1year ago. So Rails wasn't the right version and I put 'gem 'rails', '~> 5.2', '>= 5.2.2' ' in my Gemfi...
Ernesto Tagwerker replied

Are you adding # frozen_string_literal: true to your config files
2
Rails
I was wondering if some of you are adding `# frozen_string_literal: true` to their config files?
Stéphane Paquet replied
Solved

Planning upgrade from Rails 3 to 5. How to transition assets from pipeline to webpack gracefully ? Coffee & ES6
1
Rails
Hello,
We plan to upgrade a production app from Rails 3 to 5.2.
We basically plan to use a mirror app since the production app is untested.
Current app is using jquery, coffee and asset pipeline
...
Ernesto Tagwerker replied

How can I get a file object from active storage to attach to a different model?
1
Rails
I'd like to access a file object that already exists in active storage and re-attach it to another model. Something like
`@newmodel.image.attach(file_object_already_in_active_storage`)
Is this po...
Brian Carpenter replied
Solved

Approach/thoughts for longterm settings outside of the database?
0
Rails
Beginner, playing around with Rails 6.0.
I would like to allow the admin of a Rails site to change the site for all anonymous users who come to it:
Settings like
-how many articles per page whil...
sweedledee posted

how to move existing body content to use action text?
9
Rails
I followed the great video Chris did on action text, however, I have an existing data structure and want to move it over to use actiontext for editing the body content.
How can i display the old ...
Anthony Lee replied

My html.erb view is not being loaded with style, after ajax submission.
0
Rails
0
I have created a partial that gets rendered on my index page, via AJAX. This works flawless. However when I access the route, that i also want the rendered partial to show up on, it renders wit...
Doctuh posted

How do I force users to complete their profile after sign up?
1
Rails
I'd like to 'force' users to complete their profiles after having signed up on a Rails monolith app.
Chris Oliver replied

Remote form - update partial in Rails 6
2
Rails
This may sound super dumb but is there a new and improved way to remotely update partials in Rails 6. I've used the 'update.js.erb' file before to render the partial but for rails 6 is there an upd...
Chris Oliver replied
Solved

Please help!!! My App is Down
2
Rails
Hello my app is down this morning saying ***500 Internal Server Error
If you are the administrator of this website, then please read this web application's log file and/or the web server's log file...
Chris Oliver replied
Solved

Stimuls Reflex
0
Rails
Hello Chris,
I am trying to do the calculation of a multiplication inside a div, the calculation comes from the values that enter in 3 inputs that are inside a Rails form, I want to do this using ...
Víctor Soto posted