I have installed active admin and also add my model -controller
rate_professor there…I can add/delete/edit data using active admin
…but if I click on submit button of my form in rate_professor
controller
… I can see whatever I added in the index page …but I don’t
want
to see that one…I want to find the information(whatever I added by
clicking submit button) on the website after reviewing by
admin…Can
anyone please help me to fix this…?It will be great… here are
my
codes…
in rate_professors controller:(1:n relationship)
def create
@professor=Professor.find(params[:id])
@rate_professor
[email protected]_professors.build(params[:rate_professor])
if @rate_professor.save
redirect_to rate_professors_index_path(:id=> @professor.id)
end
end
end
def index
@professor=Professor.find(params[:id])
@rate_professor [email protected]_professors.build
end