We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
method_missing': undefined method
ADMIN/POST.RB ActiveAdmin.register Post do
permit_params :title, :text, translations_attributes: [:locale, :title, :text, :id]
index do # ... translation_status # ... #default_actions end
form do |f| f.translate_inputs do |t| t.input :title t.input :text
t.input :locale, as: :hidden end f.actions
end end
MODELS/POST.RB class Post < ActiveRecord::Base active_admin_translates :title, :text do #validates_presence_of :title end
accepts_nested_attributes_for :translations
end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ADMIN/POST.RB
ActiveAdmin.register Post do
if you are using Rails 4 or Strong Parameters:
permit_params :title, :text, translations_attributes: [:locale, :title, :text, :id]
index do
# ...
translation_status
# ...
#default_actions
end
form do |f|
f.translate_inputs do |t|
t.input :title
t.input :text
end
end
MODELS/POST.RB
class Post < ActiveRecord::Base
active_admin_translates :title, :text do
#validates_presence_of :title
end
end
The text was updated successfully, but these errors were encountered: