Swyper has quit [Remote host closed the connection]
jottr has joined #ruby
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
jottr has joined #ruby
mikecmpbll has quit [Read error: Connection timed out]
mikecmpbll has joined #ruby
conta1 has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
claudiuinberlin has joined #ruby
kyrylo has joined #ruby
jottr has joined #ruby
laaron has quit [Remote host closed the connection]
nowhere_man has joined #ruby
jenrzzz has joined #ruby
landakram has quit [Ping timeout: 255 seconds]
laaron has joined #ruby
nowhere_man has quit [Remote host closed the connection]
laaron has quit [Remote host closed the connection]
laaron has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
ramfjord has joined #ruby
dar123 has quit [Ping timeout: 276 seconds]
nowhere_man has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
reber has joined #ruby
cek has joined #ruby
cek has left #ruby [#ruby]
conta1 has quit [Quit: conta1]
gix has joined #ruby
fphilipe has quit [Ping timeout: 258 seconds]
m_antis has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
voidwatch has joined #ruby
laaron has quit [Remote host closed the connection]
voidwatch has quit [Client Quit]
Dbugger has joined #ruby
laaron has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
fphilipe has quit [Ping timeout: 250 seconds]
fphilipe has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
jhill has quit []
ec has quit []
jhill has joined #ruby
strmpnk has quit []
strmpnk has joined #ruby
ec has joined #ruby
englishm has quit []
englishm has joined #ruby
englishm has quit [Excess Flood]
Swyper has joined #ruby
englishm has joined #ruby
englishm has quit [Excess Flood]
englishm has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Quit: If the universe is a machine where the future is uniquely determined by its present state, it would not be possible to calculate what the future will be.]
jottr has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
nowhere_man has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
Inline has quit [Quit: Leaving]
Inline has joined #ruby
AJA4350 has joined #ruby
al2o3-cr has joined #ruby
jottr has joined #ruby
Swyper has quit [Remote host closed the connection]
cd has quit [Quit: cd]
jottr has quit [Ping timeout: 246 seconds]
Swyper has joined #ruby
dar123 has joined #ruby
sagax has quit [Quit: Konversation terminated!]
sagax has joined #ruby
jottr has joined #ruby
Swyper has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 248 seconds]
kapil____ has joined #ruby
Swyper has joined #ruby
jottr has joined #ruby
thunderbirdtr has quit [Quit: ZNC 1.7.3 - https://znc.in]
nowhere_man has quit [Ping timeout: 250 seconds]
conta1 has joined #ruby
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
aupadhye has quit [Quit: Leaving]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger_ has joined #ruby
_whitelogger has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 250 seconds]
fphilipe has joined #ruby
jottr has joined #ruby
Research has joined #ruby
<Research>
I'm getting "ERROR: While executing gem ... (NameError)" when trying to use gem uninstall
<Research>
Does anyone here know what that means?
<Research>
actually nvmd I figured it out
<Research>
apparently I had to install rdoc to uninstall gems
<Research>
but it installs them just fine without it
jottr has quit [Ping timeout: 252 seconds]
fphilipe has quit [Ping timeout: 252 seconds]
conta has quit [Ping timeout: 258 seconds]
conta1 is now known as conta
jenrzzz has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 246 seconds]
reber has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
d^sh has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
d^sh has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
postmodern has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
nowhere_man has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
leah2 has joined #ruby
jottr has joined #ruby
ur5us has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 246 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
jottr has joined #ruby
crova has joined #ruby
Xeago has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
sagax has quit [Quit: Konversation terminated!]
AJA4350 has quit [Quit: AJA4350]
crova has quit [Quit: crova]
clemens3 has quit [Ping timeout: 258 seconds]
clemens3_ has joined #ruby
TheBrayn has quit [Quit: poof]
tdy has quit [Ping timeout: 245 seconds]
TheBrayn has joined #ruby
dellavg_ has joined #ruby
wallace_mu has joined #ruby
kyrylo has joined #ruby
Ltem has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
dinfuehr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
fphilipe has joined #ruby
fphilipe has quit [Ping timeout: 264 seconds]
Ltem has quit [Remote host closed the connection]
Ltem has joined #ruby
jenrzzz has joined #ruby
crawler has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 246 seconds]
zacts has joined #ruby
jottr has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mia has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
_sfiguser has joined #ruby
crawler has quit [Quit: Leaving]
Ltem has quit [Remote host closed the connection]
Ltem has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
vindvaki has joined #ruby
vindvaki has quit [Client Quit]
jottr has joined #ruby
moei has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
yaewa has joined #ruby
yaewa has quit [Remote host closed the connection]
moei has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 246 seconds]
queip has quit [Ping timeout: 258 seconds]
jottr has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
queip has joined #ruby
jottr has joined #ruby
UncleCid__ has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
pskosinski has joined #ruby
pskosinski has quit [Remote host closed the connection]
plujon has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
claudiuinberlin has joined #ruby
cnsvc has joined #ruby
conta has quit [Remote host closed the connection]
jottr has joined #ruby
conta has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
fphilipe has quit [Ping timeout: 252 seconds]
tdy has joined #ruby
kapil____ has quit [Quit: Connection closed for inactivity]
GodFather has quit [Ping timeout: 264 seconds]
cnsvc has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
plujon has joined #ruby
wald0 has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
fphilipe has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
flatironschool has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 258 seconds]
flatironschool has joined #ruby
_sfiguser has quit [Read error: Connection reset by peer]
jottr has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 248 seconds]
flatironschool has quit [Quit: flatironschool]
rhuang has joined #ruby
desperek has joined #ruby
<desperek>
hi, how do you integrate database into your web app?
jottr has joined #ruby
<desperek>
is requiring a one file with, umh lets say a database class that handles connecting to db and then querying it a good way
flatironschool has joined #ruby
<phaul>
depends. There are two main approaches afaict , the repository pattern (prefered by most) vs the active record pattern
<phaul>
what you are describing is closer to active record pattern
<phaul>
sorry, the other one
<desperek>
the repo one?
<phaul>
repository pattern
<desperek>
right
<desperek>
and active record pattern is what
<desperek>
keeping a persistent connection?
<phaul>
having classes per "models" (db tables) whose class methods relate to all entries and instance methods relate to rows
jottr has quit [Ping timeout: 255 seconds]
rhuang has quit [Ping timeout: 255 seconds]
<phaul>
the connection can be kept persistent in the app for either solutions
fphilipe has quit [Ping timeout: 248 seconds]
<desperek>
oh right i get whats the difference now
<desperek>
thanks
segy has quit [Ping timeout: 246 seconds]
<desperek>
either way, i dont get how do you keep the connection persistent lol
<phaul>
one way: inside Singleton app object, that's created from top level "main"
<desperek>
oh thanks!
<desperek>
why didnt i think about it :thinking:
<phaul>
then you just pass that around. It's a disguised bunch of global vars
<desperek>
or wait, app object
<phaul>
still you are explicit about passing it, so a bit better than $connection
jottr has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<desperek>
phaul, well but i could just make like @db on top and then use that, right?
<phaul>
that's almsot the same.
segy has joined #ruby
<desperek>
phaul, the same as $connection or passing the object though
<desperek>
well, nvm that question i guess. thanks anyways phaul
jottr has quit [Ping timeout: 258 seconds]
<phaul>
difference being wehter every place can call $db.close and mess with things, or you can have large chunks of unrelated libraries and codes that simply can't see the db connection
<desperek>
thanks you
jottr has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
desperek has quit [Quit: mew wew]
jottr has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
Dbugger has joined #ruby
ukd1 has joined #ruby
jottr has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
cd has joined #ruby
wallace_mu has quit []
dinfuehr has joined #ruby
old_relik has joined #ruby
d0liver has joined #ruby
<old_relik>
x-post from #rubyonrails: is there an easy way to get time object for time at a specifc time of the day, like 2pm for today, but give 2pm for next day if it's already past 2pm today