Reputation: 1412
I have trying to use the tabs in activeadmin form , but its throwing the below error
undefined method `tabs' for ActiveAdmin::Views::Pages::Form:0x007fab4d672e38
form do |f|
tabs do
tab 'Tab1' do
f.inputs do
f.input :property_name, label: "Property Name"
end
end
tab 'Tab2' do
f.inputs do
f.input :user_name
end
end
end
end
please help me to achieve this using activeadmin or any other options ?
Upvotes: 1
Views: 1001
Reputation: 9226
Tabs are not available in the latest gem release (which is at this point 0.6.3). You have to use the main branch from github, so make sure you have this in your Gemfile
:
gem "activeadmin", github: "gregbell/active_admin"
Upvotes: 2