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 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
How to link happening of API calls to tab switching in RoR ?
0
Rails
The use-case is pretty simple, though it has challenged us.
We need to make an API call as a trigger to the user switching tabs (in UI), & need to display data linked to that API call in the ac...
Pulkit Pradeep Gupta posted
jQuery.ajax url: rails
0
Rails
In my code I have this button
```
Pay
```
In my code I have this button
Pay
Expand snippet
when clicked on iframe opens from this javascript code
```
<%= javascript_tag do %>
$("#c...
JP posted
A few issues with tidying up @mentions
1
Rails
Hello, I was following along with the mentions episode here https://gorails.com/episodes/at-mentions-with-actiontext?autoplay=1
I made a few tweaks to help suit my application a bit better, and on...
Mylan Connolly replied
Why does one work for one javascript but doen't work for other
0
Rails
```
$: 'jquery/src/jquery',
jquery: 'jquery/src/jquery',
jQuery: 'jquery/src/jquery',
'window.jQuery': 'jquery',
Popper: ['popper.js', 'default']
```
why does the one above...
JP posted
Accepts_nested_attributes vs the regular way.
0
Rails
So I've spent the last couple days working with `accepts_nested_attributes_for` in an effort to understand them (I've never used them before). I've used a variety of sources (GoRails video of cour...
John Magee posted