dkubb changed the topic of #datamapper to: Datamapper v1.2.0 | Mailing List: http://is.gd/aa9D | Logs: http://is.gd/qWAL7V | DataMapper 2 Renamed to ROM, see #rom-rb for development
Cinchy__ has quit [Remote host closed the connection]
Cinchy__ has joined #datamapper
Cinchy__ has quit [Remote host closed the connection]
tehprofessor has quit [Quit: tehprofessor]
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #datamapper
tehprofessor has joined #datamapper
mikecmpbll has quit [Quit: ciao.]
tehprofessor has quit [Quit: tehprofessor]
rikai_ has joined #datamapper
rikai has quit [Ping timeout: 245 seconds]
rikai has joined #datamapper
rikai has joined #datamapper
rikai_ has quit [Ping timeout: 244 seconds]
skade has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
mikecmpbll has joined #datamapper
Gadgetoid has joined #datamapper
lgierth has joined #datamapper
DireFog has quit [Write error: Broken pipe]
DireFog has joined #datamapper
lgierth has quit [Quit: Ex-Chat]
dweeb_ has joined #datamapper
postmodern has quit [Quit: Leaving]
v0n has joined #datamapper
dweeb_ has quit [Quit: Computer has gone to sleep.]
mkristian has joined #datamapper
skade has joined #datamapper
mkristian has quit [Quit: bye]
lightcap has joined #datamapper
tehprofessor has joined #datamapper
mikecmpbll has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #datamapper
marcusrubymaster has joined #datamapper
<marcusrubymaster> Is it possible to convert this SQL Query Request into Datamapper? SELECT twitchtv FROM twitchtvsts WHERE twitchtvsts.user_id = thisisavaraible
<onewheelskyward> TwitchTvsts.all(user_id: thisisavariable)
<onewheelskyward> TwitchTvsts.all(user_id: thisisavariable, fields [:twitchtv])
<onewheelskyward> Wait, I'm wrong about fields.
<onewheelskyward> Read up on finding records. http://datamapper.org/docs/find.html
skade_ has joined #datamapper
skade has quit [*.net *.split]
DireFog has quit [*.net *.split]
DireFog has joined #datamapper
DireFog has quit [*.net *.split]
flori_ has quit [Ping timeout: 272 seconds]
flori has joined #datamapper
DireFog has joined #datamapper
indrek has left #datamapper ["Ex-Chat"]
<marcusrubymaster> get '/watch/:id' do |id| erb :mystream @result = Twitchtvst.all( :fields => [:Twitchtv ], :conditions => { :user_id => "#{id}" } ) puts @result end
<marcusrubymaster> how do I get @result to list only twitchtv
<onewheelskyward> To list only twitchtv what?
<onewheelskyward> the field itself?
<onewheelskyward> Probably array = @result.map {|r| r.twitchtv}
marcusrubymaster has quit [Quit: Page closed]
v0n has quit [Ping timeout: 264 seconds]
v0n has joined #datamapper
cbuxton___ has quit [Ping timeout: 252 seconds]
cbuxton___ has joined #datamapper
v0n has quit [Ping timeout: 240 seconds]
rsim has quit [Quit: Leaving.]
v0n has joined #datamapper
v0n has quit [Quit: WeeChat 0.4.3]
v0n has joined #datamapper
tehprofessor has quit [Read error: Connection reset by peer]
rsim has joined #datamapper
tehprofessor has joined #datamapper
rsim has quit [Ping timeout: 245 seconds]
rsim has joined #datamapper
skade_ has quit [Quit: Computer has gone to sleep.]