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
lgierth has quit [Quit: Ex-Chat]
mikecmpbll has quit [Quit: i've nodded off.]
danielnolan has joined #datamapper
<danielnolan> Hello everyone, I am new to datamapper. is there a better way to write this
<danielnolan> query = "SELECT solution_id FROM option_value_solutions WHERE option_value_id = #{selected_choices.first}"
<danielnolan> if selected_choices.size > 1
<danielnolan> selected_choices.each do |s|
<danielnolan> query += " INTERSECT SELECT solution_id FROM option_value_solutions WHERE option_value_id = #{s} "
<danielnolan> end
<danielnolan> end
<danielnolan> possible_solutions = repository('1011').adapter.select(query)
danielnolan has quit [Quit: danielnolan]
zigidias has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #datamapper
mbj has joined #datamapper
dweeb_ has joined #datamapper
postmodern has quit [Quit: Leaving]
no0code has joined #datamapper
<no0code> hello
<no0code> i need help :)
<no0code> http://datamapper.org/docs/find.html there is a complex datastructure
<no0code> and i wanna know how to find data in a complex dataset
mbj has quit [Quit: leaving]
v0n has joined #datamapper
dweeb_ has quit [Quit: Computer has gone to sleep.]
mbj has joined #datamapper
mikecmpbll has quit [Quit: ciao.]
tehprofessor has joined #datamapper
tehprofessor has quit [Client Quit]
mbj has quit [Quit: leaving]
dkubb has joined #datamapper
no0code has quit [Quit: Lost terminal]
dkubb has quit [Quit: Linkinus - http://linkinus.com]
v0n has quit [Ping timeout: 246 seconds]
postmodern has joined #datamapper
v0n has joined #datamapper
v0n has quit [Ping timeout: 248 seconds]