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
Encoding error #1490
Comments
Have the same problem. All of my source code is written with UTF-8. I use mysql2 gem, so there is no problem with the older mysql adapter. |
And more details. This happened when I switched to the edge gem from github. Also I have checked the database - all of my columns are in UTF-8. |
I think this fix #1423 causes this issue. |
The only wayaround for this error is to roll back to rails_admin 0.2.0 gem. This is very frustraiting (( |
I have same issue. |
Found other way to work with 4+ version - just to turn off the history in rails_admin.rb initializer by commenting this string config.audit_with :history, 'User' |
I encountered the same issue. Commenting |
I encountered the same issue. I wasn't using config.audit_with. My solution was to not allow the fields I was using UTF-8 on to be displayed or edited. I used Javascript from the web console to change values in those fields by adding a method accessed via $.post. |
Closing this since the history adapter is legacy and will be disused. |
Encoding::CompatibilityError in Rails_admin/main#dashboard
Showing /home/snake/.rvm/gems/ruby-1.9.3-p327@holidays/gems/rails_admin-0.3.0/app/views/rails_admin/main/_dashboard_history.html.haml where line #9 raised:
incompatible character encodings: UTF-8 and ASCII-8BIT
Extracted source (around line #9):
6: %th.changes= t("admin.table_headers.changes")
7: %tbody
8: - @history.each do |t|
9: - abstract_model = RailsAdmin.config(t.table).try(:abstract_model)
10: %tr
11: %td= t.try :username
12: - if o = abstract_model.try(:get, t.item)
The text was updated successfully, but these errors were encountered: