Does anyone know how to get an action call with csv to render html with flash? I can get it to work locally but when I upload to the server it keeps trying to render a csv file with the html inside it. unless flash[:error].blank? render :template => ''/report/action'' and return @content_type = ''text/html'' respond_to do |format| format.html end else respond_to do |format| format.html format.csv { render :layout => false } end end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.