Hi I have to read a logo from DB and set in each page..I ahve a table named company with a BLOB field company_logo So i wrote application controller code like after_filter :logo_set, :except => [:login,:process_login] private def logo_set @logo=CompanySetting.find(3) send_data @logo.company_logo, :type => "image", :disposition => "inline" end
And my view has <%= image_tag("@logo.company_logo", :alt => "Image") %> <table border="0" cellspacing="0" cellpadding="0" align='right'> <tr> ..............(other html data) But what happens is only the image get displayed in browser no other html data ..Why this happens..Please help
Thanks in advance Sijo