Nidhin S G
Nidhin S G

Reputation: 1695

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..enter image description here

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

Upvotes: 1

Views: 398

Answers (1)

Sree
Sree

Reputation: 104

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.

Upvotes: 4

Related Questions