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
uninitialized constant Formtastic::I18n::SCOPES #5939
Comments
I added this line to all files: config.filters = false And this partially solved the problem. Now I can see the
25 to 32 lines: form do |f|
f.inputs do # <- 26
f.input :title # <- 27
f.input :code
f.input :link
end
f.actions
end The same situation with User (for edit):
29 to 36 lines: form do |f|
f.inputs do # <- 30
f.input :email # <- 31
f.input :full_name
f.input :roles
end
f.actions
end If necessary, I can invite an ActiveAdmin team member to my project repository. |
If I delete this code: form do |f|
f.inputs do
f.input :title
f.input :code
f.input :link
end
f.actions
end I still can't add anything. Now in the logs it will be:
Log in full: https://pastebin.com/raw/pMucjedh |
In the console on the server. In the container of the running application.
|
Can someone explain to me what it was? I added these puts: controller do
puts
puts
puts Formtastic::I18n.inspect
puts Formtastic::I18n::SCOPES.inspect
puts
puts
def find_resource
scoped_collection.find_by!(code: params[:id])
end
end That is, initially the controller was like this: controller do
def find_resource
scoped_collection.find_by!(code: params[:id])
end
end And there is no more problem! What the hell is this? :D In the next deployment I deleted these |
Rails 6.0.1, Puma 4.3.0, Devise 4.7.1, ActiveAdmin 2.4.0, Formtastic 3.1.5
Once again I am creating a Rails application. Created the foundation. A couple of models. Made a simple front-end for them. Next install Devise, ActiveAdmin.
In general, nothing unusual. Locally everything works fine.
But on the server, some kind of nonsense began to happen with ActiveAdmin.
In general, the application on the server is working fine. Through the console, I can create all the data. These data are successfully displayed on the site.
But if I go into ActiveAdmin...
Dashboard page displayed successfully. But if I go to the index page of any entity, then I will get the following error (from the log):
The entire log: https://pastebin.com/raw/buWSveBZ
Only one section for entities works - this is the show action. Only two actions for entities work - these are
show
anddestroy
. Everyone else catches the error that I showed above.I absolutely don't understand what's the matter.
I successfully use the identical
config/initializers/active_admin.rb
file in two other Rails 6 applications. Below I will show an example of one of the file for ActiveAdmin:I'm hope for your help.
The text was updated successfully, but these errors were encountered: