search for: valid_referer

Displaying 1 result from an estimated 1 matches for "valid_referer".

2007 Nov 26
1
transition form respond_to to provides
...ike the new mime type handler however I was trying to convert some code and couldn''t figure out how. My rails action was handle 2 formats, html and xml respond_to do |format| format.html # show.html.erb format.xml do if @account.active? && @account.valid_referer?(session[:referer]) render :xml => @account.to_xml(:except => [:id, :created_at]) else render :text => ''your account has been disable'' end end Now that I''m trying to switch this controller to Merb, I can''...