I am sending push notification to some user set on creation of question. I want to add progress bar so that user can see loading , when questions sent it should stop progress bar. I am not finding any way to do this in active admin. Following is my code :
def create
question=PsychographicsQuestion.create(permitted_params["psychographics_question"])
for u in @@users
send_msg_through_gcm(u.to_i,"New PsychoGraphics question has been added.")
end
redirect_to admin_psychographics_question_path(:id=>question.id)
end