Hi,
You can customise show method in active admin for your desired output. I have customise show page to have different panels of user show page.
show :title => "User details" do | user |
panel "Profile Info" do
attributes_table_for user do
row("Name") {|user| user.p.f_name}
row :email
row("Company") {|user| user.p.company}
end
end
panel "Email Notifications" do
attributes_table_for user do
row("News Letter") { |user| user.p.notification_setting.news) }
row("New Events") { |user| user.p.notification_setting.events) }
end
end
end
Here is the link to have clear view about customisation of show page:
https://gist.github.com/986730
Thank You,
Uma Mahesh
You can customise show method in active admin for your desired output. I have customise show page to have different panels of user show page.
show :title => "User details" do | user |
panel "Profile Info" do
attributes_table_for user do
row("Name") {|user| user.p.f_name}
row :email
row("Company") {|user| user.p.company}
end
end
panel "Email Notifications" do
attributes_table_for user do
row("News Letter") { |user| user.p.notification_setting.news) }
row("New Events") { |user| user.p.notification_setting.events) }
end
end
end
Here is the link to have clear view about customisation of show page:
https://gist.github.com/986730
Thank You,
Uma Mahesh
Thank you!
ReplyDelete