fixed supporter page redirect after creation

This commit is contained in:
Gopesh Tulsyan 2014-03-28 00:11:08 +05:30
parent 628211f0fc
commit f4b6ff56c6
2 changed files with 2 additions and 3 deletions

View file

@ -11,7 +11,6 @@ class Admin::SupportersController < ApplicationController
def create
params[:supporter_registration][:conference_id] = @conference.id
supporter = SupporterRegistration.create!(params[:supporter_registration])
flash[:notice] = "Supporter added"
render :json => {"status" => "ok"}
redirect_to(admin_conference_supporters_path(:conference_id => @conference.short_title), :notice => "Supporter added")
end
end