-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Action Text error in form field on production [Heroku + Rails 6] #37672
Comments
Same here. On production (on Digital Ocean).
Ruby 2.6.5 |
@modusss I found what cause my problem.
Still looking for solution to fix conflict with AA and friendly_id without crashing ActionText UPD. Manually overriding find_resource did the trick.
|
I'm facing the same issue here. Everything works fine in development. Sentry Raw
System configuration models/buyer.rb
admin/buyers.rb
|
@modusss, the workaround I found was copy everything inside the https://github.com/rails/rails/blob/28775ff3a231253c0052531f7d4e6b264b15497b/actiontext/app/helpers/action_text/content_helper.rb to my ApplicationHelper.rb, and now It's working!
|
I'm seeing this error with the classic autoloader. |
A quick fix is to add an initializer with the following code:
|
This is still an issue in 6.0.3.1 when eager_load is on (no ActiveAdmin or friendly_id in my code). All runs fine in development (I pulled down production database). The issue popped up with eager_loading on. Both zeitwerk and classic eager_loading missed loading ActionText helpers locally. Including the helpers manually is a fix, verified in production on Heroku. |
This issue has been automatically marked as stale because it has not been commented on for at least three months. |
Just got this error on circleci. As with other posts, it works fine on development. The monkey patch on rails version: 6.0.3.2 |
I just had this happen to me and the initializers fixed worked as well rails version: 6.0.3.4 |
It causes another error: rails/rails#37672
Having the same issue. |
Same (works on production if cache_classes = False) |
No initializer solution: module ApplicationHelper
include ActionText::ContentHelper
include ActionText::TagHelper
end |
As eager_load is be default |
Addresses: #842 The bug existed in _sign-in_, _sign-up_, and _users/edit_ page. You can view it in the attached video below. https://user-images.githubusercontent.com/25191509/176618871-e3e9c2b5-b6bd-4dfb-a59b-80e9ccfecf0b.mp4 The following reference is used to patch this bug. [hotwired/turbo#45 And, below is the demo video after the fix. https://user-images.githubusercontent.com/25191509/176619214-bf10ce2c-60be-44ce-bfe8-ed97c9930dff.mp4 ## fix for action text not loading in production / staging Reference: rails/rails#37672 Addresses: #852 Co-authored-by: Prashant <alish.khadka@gmail.com>
This mysterious error was showing just after action text was installed on development environment and then vanished without any change on the code.
After many tests and working ok on localhost I pushed to staging env (heroku) and it is showing:
Config:
models/mailing.rb
System configuration
Rails 6.0.0
Ruby 2.6.5
This issue I also asked on stackoverflow with no response.
Edit:
I tried to turn around this issue just copying from html on the view:
replacing from:
<%= form.rich_text_area :body %>
to
but even showing the correct content on this view Rails cannot recognize the virtual field that I called "body" and save it to be displayed on show page:
#How the field displays with active record in console:
localhost:
heroku:
The text was updated successfully, but these errors were encountered: