简体   繁体   中英

Active admin customisation ruby on rails

I'm new to active admin gem. My requirement is like admin should be able to view the table as usual. In addition to that there should be a Text box along with a button which can be used for some action. See the Uploaded Picture Below.. 在此处输入图片说明

I have a model named PushNotification now and the fields it do have are enabled, rule_name,day_limit,message.

All these values should be shown as in the picture. In addition to that I want a message box with button(send push notification) as shown in picture.

Is this possible in active admin?. If so please do help..

Thanks in advance

Put this in your admin page.

    ActiveAdmin.register_page "Push Notification" do
      menu  priority: 12
        action_item do
        link_to "Create New Rule", "/"
        end

     content do
      render partial: 'send_notification'
      end
    end

and make a view inside view/admin.

now you can create your custom view in that html page inside admin folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM