Retrieving image from database to HTML

What are the field names for your classifieds table?

That is it...

  create_table "categories", :force => true do |t|
    t.string "name"
  end

  create_table "classifieds", :force => true do |t|
    t.string "title"
    t.float "price"
    t.string "location"
    t.text "description"
    t.string "email"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer "category_id"
    t.string "content_type", :default => "image/png"
    t.binary "image"
    t.string "filename"
  end

nickflux wrote: