class List
include DataMapper::Resource
property :id, Serial
property :name, String
property :items, String
end
List.auto_migrate!
get '/:id' do
@list = List.all(:id => params[:id])
@items = @list.items
erb :show
end
I get undefined method `items' for #. Any ideas?