i have post model and admin model i am able to render post model index to the admin model view but i want admin should have approve and disapprove button. i have added Boolean status to admin model and established has one relation to post model. now i have no idea how can i set status to each post. what logic should i write in admin controller and routes? guys could you help? i am using rails 5 admin controller
def index
@post=Post.all
end
i want status approve and reject button on the same dashboard along with post entries
Aucun commentaire:
Enregistrer un commentaire