if request.xhr?
render :update do |page|
- page.replace_html "contributorTerms", :partial => "terms"
+ page.replace_html "contributorTerms", :partial => "terms", :locals => { :has_decline => params[:has_decline] }
end
else
@title = t 'user.terms.title'
else
flash.now[:error] = t 'user.login.auth failure'
end
+ else
+ flash.now[:notice] = t 'user.login.notice'
end
end