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”) %>