i am trying to retrieve a row from a dataset
my model class is
require ‘sequel’
class Item < Sequel::Model
end
and one my hello.rb file is
require "rubygems"
require './post'
require "sequel"
require './item'
# connect to an in-memory database
#DB = Sequel.connect('postgres://ritesh:newpassword@localhost')
puts Item.filter(:id =>'1').first
its giving me output
#<Item:0xb693996c>
i want to get all the columns of the row whose id field is 1 what should be the query??
try
or
(for better formatting if you have
yamlrequired in your code like sorequire 'yaml')