« Back to channel list

#RubyOnRails - 14 November 2015

« Back 1 day Forward 1 day »
[00:00:46] umgrosscol: has joined #RubyOnRails
[00:01:46] mghaig: has joined #RubyOnRails
[00:03:00] waltz: hey! i've got a problem with a module reaching in to the database
[00:03:15] Papierkorb: waltz: Mh? Elaborate?
[00:03:30] waltz: Papierkorb: will do, it's a wierd situation
[00:03:57] waltz: i've got an old project i've inherited, a model uses 'taggable :foo'
[00:04:13] mices: devise failed to create the field unconfirmed_email and probably a few more, so i'm trying to figure out why
[00:04:18] waltz: turns out that the functionality is in `lib/taggable.rb` which does some wizard level metaprogramming
[00:04:28] atomical: has joined #RubyOnRails
[00:04:51] waltz: taggable reaches in to the model and searches for column names to do it's magic
[00:05:08] waltz: but that means `rake db:migrate` fails because this plugin jumps the gun
[00:05:48] applegrain: has joined #RubyOnRails
[00:06:44] Papierkorb: waltz: aha .. um .. so if you comment that line out the migration works?
[00:07:11] waltz: Papierkorb: yup, `taggable` is the culprit
[00:07:40] Papierkorb: waltz: can you gist(.github.com) the taggable.rb, or is there some NDA stuff?
[00:07:40] waltz: the library calls `column_names`
[00:07:48] centrx: has joined #RubyOnRails
[00:08:25] Papierkorb: well that doesn't break things on its own, I have migrations which uses that method too
[00:08:39] wethu: has joined #RubyOnRails
[00:09:03] waltz: Papierkorb: https://gist.github.com/waltz/9408ff4465c043767abe
[00:09:06] Megamos: has joined #RubyOnRails
[00:09:20] waltz: it's not too exciting, nothing ndaable
[00:09:53] Papierkorb: ... Eff .. O??;
[00:10:42] waltz: ha, is that a reaction to the code?
[00:11:17] dideler: has joined #RubyOnRails
[00:11:19] Papierkorb: Yeah. Well, looks like it's evaling a bunch of string <-> array methods, and some before and after save triggers.
[00:12:05] alfie_max15: has joined #RubyOnRails
[00:12:16] Papierkorb: waltz: you can check yourself. calling column_names itself doesn't break things.
[00:12:27] rdavila: has joined #RubyOnRails
[00:12:51] waltz: oh yeah, it should work great if there's a database already in place
[00:13:09] waltz: it doesn't work if someone is setting up the app from scratch though
[00:13:14] alfie_max15: has left #RubyOnRails: ()
[00:13:33] waltz: they'll go to `rake db:whatever` and it'll crash
[00:14:07] rgrmatt: has joined #RubyOnRails
[00:14:27] Papierkorb: waltz: quick test would be checking if the database table already exists, and if no, bail out of the taggable method.
[00:15:17] Puffball_: has joined #RubyOnRails
[00:19:55] nomadam: has joined #RubyOnRails
[00:22:08] gusrub: has joined #RubyOnRails
[00:25:37] sankaber: has joined #RubyOnRails
[00:27:23] maxz: has joined #RubyOnRails
[00:27:33] dviola: has joined #RubyOnRails
[00:27:42] EminenceHC: has joined #RubyOnRails
[00:27:46] tuelz: has joined #RubyOnRails
[00:27:48] kies: has joined #RubyOnRails
[00:28:47] sankaber: has joined #RubyOnRails
[00:29:48] goodcodeguy: has joined #RubyOnRails
[00:30:02] dviola: I'm using @game.each_with_index and then index+1 for rankings, also Game.ordr(score: :desc) to show games with higher scores, but folks are complaining that I'm not handling the ranking in my controller/model and I'm not keeping them in the DB
[00:30:30] dviola: not sure what to do to change my ranking code to fit into that view
[00:30:38] dviola: view/idea
[00:31:25] mices: what was that auth system someone mentioned before? binstub?
[00:31:30] dviola: how do you usually do ranking anyway? what do you base it off?
[00:31:33] owenjones: has joined #RubyOnRails
[00:31:51] owenjones: has joined #RubyOnRails
[00:31:53] yran: has joined #RubyOnRails
[00:33:03] MartinElvar: has joined #RubyOnRails
[00:33:15] MartinElvar: has joined #RubyOnRails
[00:33:28] alfie_max15: has joined #RubyOnRails
[00:33:30] alfie_max15: has left #RubyOnRails: ()
[00:34:14] based_pdev_: has joined #RubyOnRails
[00:34:56] Papierkorb: mices: "binstubs" are those scripts inside the bin/ directory, they have nothing to do with auth
[00:36:09] smathy: dviola, usually some sort of points system.
[00:37:15] dviola: smathy: well, I already have scores
[00:37:37] mices: so then there's just devise and authlogic besides rails restful authentication ?
[00:37:43] one_zero: has joined #RubyOnRails
[00:37:55] zpe: has joined #RubyOnRails
[00:37:59] bruno-: has joined #RubyOnRails
[00:38:00] mices: Papierknob: ty
[00:38:19] dviola: I'm just not sure how I could use scores to add rankings
[00:38:31] simplyianm: has joined #RubyOnRails
[00:38:37] xybre: dviola: can you Gist some example code?
[00:39:01] dviola: http://i.imgur.com/25EJ41s.png
[00:39:04] dviola: screenshot
[00:39:16] dviola: xybre: sure, whole app is here: https://github.com/diegoviola/pingpong
[00:39:24] MrPunkin: has joined #RubyOnRails
[00:39:43] gambl0re: has joined #RubyOnRails
[00:39:47] dviola: xybre: see the controller and views, it's really small app
[00:39:56] EminenceHC: has joined #RubyOnRails
[00:40:39] DLSteve: has joined #RubyOnRails
[00:40:45] xybre: Yeah there's almost no code
[00:40:59] yran: has joined #RubyOnRails
[00:41:00] xybre: Here's the each_with_index you're talking about? https://github.com/diegoviola/pingpong/blob/master/app/views/games/index.html.erb
[00:41:29] dviola: it's doing exactly what the person asked me to do though
[00:41:56] mloy: has joined #RubyOnRails
[00:42:13] dviola: I'm ok with adding the ranking in the database but I don't know how I'll go into doing that
[00:42:31] xybre: It looks like a pretty clean way to do it to me, it's low overhead for both the app and DB.
[00:42:58] dviola: xybre: you mean the way I've done this?
[00:43:38] dviola: I don't know why they are measuring my app by LoC rather than looking at the functionality
[00:43:51] dviola: and I'm doing this for a "test" or "trial", it's not real work
[00:43:59] xybre: dviola: Yeah, "ranking" isn't a concept in the app, it's just a function of the relative scores.
[00:44:02] dviola: but it's already starting to feel like one
[00:44:15] smathy: dviola, the only issue with the rank that you have is that two players with the same score ought to have the same rank.
[00:44:51] Pazician: has joined #RubyOnRails
[00:46:40] xybre: dviola: You could store the rank in the DB, but it'd have to be calculated every time a score is changed, and a new high score would require locking and rewriting the rank for every record in the table.
[00:48:20] safety_cut: has joined #RubyOnRails
[00:49:05] dviola: smathy: I've just tried that and that isn't the case, see http://i.imgur.com/EtKdhzJ.png
[00:49:44] dviola: the index is a sequence and I +1 it
[00:49:54] xybre: dviola: Yeah but he's saying they *should*.
[00:50:01] xybre: If we have the same score, we're tied.
[00:50:38] dviola: you're right, but I don't know how I would do that
[00:50:40] xybre: Easily solved with a group_by though. Which you can do in a model method.
[00:51:36] aeya: has joined #RubyOnRails
[00:52:29] dviola: not sure how I would use group_by for that
[00:52:33] rgrmatt: has joined #RubyOnRails
[00:53:06] xybre: Something like games.group_by(&:score).sort(&:first) to give you the data structure
[00:55:20] xybre: Personally I'd do a basic ViewModel, but maybe they just really want you to do the painful database side ranking system, which is basically the same, you just save it after you generate it.
[00:55:30] flip_digits: has joined #RubyOnRails
[00:56:29] cluda01: has joined #RubyOnRails
[00:57:22] dviola: ViewModel?
[00:57:50] sdwrage: has joined #RubyOnRails
[00:58:19] dviola: xybre: you mean like facades?
[00:58:43] cluda01: Anyone familiar with engines?
[00:59:34] cluda01: Can anyone see my messages?
[01:00:56] cluda01: has left #RubyOnRails: ()
[01:00:57] cluda01: has joined #RubyOnRails
[01:00:57] nya: has joined #RubyOnRails
[01:01:33] xybre: dviola: I just mean a simple object to represent exactly the data you want to display.
[01:01:34] rhizome: cluda01: ask your real question
[01:01:40] xybre: cluda01: yes
[01:01:49] x-light: has joined #RubyOnRails
[01:02:08] dviola: xybre: oh
[01:02:26] dviola: I'm still confused about how to go with this ranking stuff
[01:02:44] dviola: I'll do some reading
[01:03:50] cluda01: I'm having an issue with active model serializers not being used for models in a child engine. Prior to migrating to a rails engine our serializers were used fine but now they don't work. One workaround I came up with after looking at the docs was to define #active_model_serializer on the models to get it to find them. I'm wondering if there's another way to fix this issue as it seems like it could be a point of bugs if e.g. another developer
[01:05:14] MartinElvar: has joined #RubyOnRails
[01:07:08] rgrmatt: has joined #RubyOnRails
[01:08:03] ss_much: has joined #RubyOnRails
[01:09:17] smathy: dviola, best idea is to ask the people who are asking for the changes for clarification.
[01:10:42] xybre: 4 seconds too late
[01:14:08] shapeshifter: What's the difference between after_action and append_after_action? Docstrings look identical.
[01:14:14] darrencauthon: has joined #RubyOnRails
[01:14:39] shapeshifter: wait a minute...
[01:14:55] northfurr: has joined #RubyOnRails
[01:15:14] yran: has joined #RubyOnRails
[01:15:32] shapeshifter: after_action: "Append a callback *after* actions", but append_after_action: "Append a callback *before* actions". I still don't get it though. after action before??
[01:15:58] shapeshifter: no, that's wrong, too.
[01:16:16] tuelz: has joined #RubyOnRails
[01:16:58] pusewicz: has joined #RubyOnRails
[01:18:01] applegrain: has joined #RubyOnRails
[01:18:14] bruce_lee2: has joined #RubyOnRails
[01:19:00] iateadonut: has joined #RubyOnRails
[01:19:48] colleenmcguckin: has joined #RubyOnRails
[01:23:56] Trynemjoel: has joined #RubyOnRails
[01:27:38] chouhoul_: has joined #RubyOnRails
[01:28:39] roxtrongo: has joined #RubyOnRails
[01:30:14] twilling: has joined #RubyOnRails
[01:32:54] SteveC: has joined #RubyOnRails
[01:33:22] krramos: has joined #RubyOnRails
[01:34:45] rickmasta: has joined #RubyOnRails
[01:35:24] neanderslob: has joined #RubyOnRails
[01:37:02] paradisaeidae: has joined #RubyOnRails
[01:38:07] chouhoulis: has joined #RubyOnRails
[01:42:36] mices: rvm 1.9.1 2.2.3
[01:42:38] mices: The source ruby was not a valid ruby string.
[01:42:53] rgtk: has joined #RubyOnRails
[01:43:27] stannard: has joined #RubyOnRails
[01:45:02] bruno-: has joined #RubyOnRails
[01:48:20] rgrmatt: has joined #RubyOnRails
[01:50:28] baweaver: has joined #RubyOnRails
[01:51:29] ebbflowgo: has joined #RubyOnRails
[01:52:04] d5sx43: has joined #RubyOnRails
[01:55:20] mices: if i install rvm and ruby together with curl will it know to upgrade my old ruby
[01:56:14] FailBit: you seem to have very little understanding of what a package manager does
[01:57:49] smathy: Shapeshifter, the the after_action is a shorthand convenience for append_after_action
[01:58:33] mary5030: has joined #RubyOnRails
[02:02:03] helpa-bot: has joined #RubyOnRails
[02:02:49] DLSteve: has joined #RubyOnRails
[02:03:13] Netun0: has joined #RubyOnRails
[02:03:54] helpa: has joined #RubyOnRails
[02:04:26] joshkovach: has joined #RubyOnRails
[02:06:06] mices: ACTION is rebooting 
[02:06:53] shinnya: has joined #RubyOnRails
[02:07:10] DLSteve: has joined #RubyOnRails
[02:08:50] Avon: has joined #RubyOnRails
[02:09:37] knight_: has joined #RubyOnRails
[02:10:12] matt_d: has joined #RubyOnRails
[02:10:24] erichmenge: has joined #RubyOnRails
[02:10:25] pragmatism: has joined #RubyOnRails
[02:10:26] vigintas: has joined #RubyOnRails
[02:10:37] sadaf2605: has joined #RubyOnRails
[02:11:18] twilling: has joined #RubyOnRails
[02:12:13] Radar: has joined #RubyOnRails
[02:12:20] spekode: has joined #RubyOnRails
[02:13:44] FooMunki: has joined #RubyOnRails
[02:15:22] darrencauthon: has joined #RubyOnRails
[02:16:17] LambdaSource: has joined #RubyOnRails
[02:16:25] owenjones: has joined #RubyOnRails
[02:16:48] surrealanalysis: has joined #RubyOnRails
[02:17:50] paradisaeidae: has joined #RubyOnRails
[02:19:35] urkle: has joined #RubyOnRails
[02:20:03] rgrmatt: has joined #RubyOnRails
[02:22:50] duncannz: has joined #RubyOnRails
[02:23:22] rgrmatt: has joined #RubyOnRails
[02:25:26] yoongkang: has joined #RubyOnRails
[02:25:28] northfurr: has joined #RubyOnRails
[02:26:42] IrishGringo: has joined #RubyOnRails
[02:26:44] zpe: has joined #RubyOnRails
[02:27:11] dikaio: has joined #RubyOnRails
[02:27:17] yran: has joined #RubyOnRails
[02:28:13] colleenmcguckin: has joined #RubyOnRails
[02:28:29] rgrmatt: has joined #RubyOnRails
[02:30:50] upgrayeddd: has joined #RubyOnRails
[02:33:51] krramos: has joined #RubyOnRails
[02:34:01] Trynemjoel: has joined #RubyOnRails
[02:35:21] banister: has joined #RubyOnRails
[02:36:42] northfurr: has joined #RubyOnRails
[02:36:58] x-light: has joined #RubyOnRails
[02:37:18] quazimodo: has joined #RubyOnRails
[02:40:10] nomad: has joined #RubyOnRails
[02:40:17] rgrmatt: has joined #RubyOnRails
[02:40:27] nonmadden: has joined #RubyOnRails
[02:44:10] simplyianm: has joined #RubyOnRails
[02:44:19] flip_digits: has joined #RubyOnRails
[02:45:23] quazimodo: has joined #RubyOnRails
[02:45:56] owenjones: has joined #RubyOnRails
[02:46:01] yran: has joined #RubyOnRails
[02:46:04] bruno-: has joined #RubyOnRails
[02:47:22] koprom: has joined #RubyOnRails
[02:49:32] mices: has joined #RubyOnRails
[02:50:20] mices: how do i tell all my gems about the new path to /usr/lib/ruby/gems ...
[02:50:50] applegrain: has joined #RubyOnRails
[02:50:52] dkam: has joined #RubyOnRails
[02:51:06] twilling: has joined #RubyOnRails
[02:51:10] mices: um i think i have to uninstall and reinstall all my gems
[02:51:11] mag42c: has joined #RubyOnRails
[02:51:55] xcesariox: has joined #RubyOnRails
[02:54:11] beast: has joined #RubyOnRails
[02:54:17] mary5030: has joined #RubyOnRails
[02:54:20] rgrmatt: has joined #RubyOnRails
[02:55:37] apeiros: has joined #RubyOnRails
[02:55:51] Davey: has joined #RubyOnRails
[02:55:51] Davey: has joined #RubyOnRails
[02:56:00] csmb: has joined #RubyOnRails
[02:57:53] k1i: has joined #RubyOnRails
[02:57:55] n88: has joined #RubyOnRails
[02:58:05] mices: FailBit: yea i should have used the package manage, i was intimidated because the package name is rbenv and i was looking for rvm
[02:58:15] skyjumper: has joined #RubyOnRails
[02:58:31] htmldrum: has joined #RubyOnRails
[02:58:59] gmci: has joined #RubyOnRails
[02:59:34] jpterry: has joined #RubyOnRails
[02:59:44] mices: i found a nice little linux command set to uninstall and reinstall all gems by listing them out to a file and reading them back in it's running like a blender
[03:01:11] teegee543: has joined #RubyOnRails
[03:01:18] Radar_: has joined #RubyOnRails
[03:03:55] gbailey: has joined #RubyOnRails
[03:05:56] atomical: has joined #RubyOnRails
[03:08:57] atomical_: has joined #RubyOnRails
[03:10:27] nonmadden: has joined #RubyOnRails
[03:11:02] blackhuey: has joined #RubyOnRails
[03:11:26] sdwrage: has joined #RubyOnRails
[03:12:38] LambdaSource: has joined #RubyOnRails
[03:15:00] jahbrewski: has joined #RubyOnRails
[03:16:09] yoongkang: has joined #RubyOnRails
[03:18:43] Maletor: has joined #RubyOnRails
[03:20:03] rdavila: has joined #RubyOnRails
[03:23:11] smoitra: has joined #RubyOnRails
[03:24:22] jahbrewski: has joined #RubyOnRails
[03:24:50] beast_: has joined #RubyOnRails
[03:31:07] darrencauthon: has joined #RubyOnRails
[03:35:56] beast__: has joined #RubyOnRails
[03:38:05] nickenchuggets: has joined #RubyOnRails
[03:38:36] moei: has joined #RubyOnRails
[03:40:11] psyonix: has joined #RubyOnRails
[03:40:20] dmarr: would i use the paperclip gem if i had a db field i wanted to display? or whats the send_data equivalent in Rails 4?
[03:40:28] surrealanalysis: has joined #RubyOnRails
[03:41:52] sevenseacat: has joined #RubyOnRails
[03:43:31] vigintas: has joined #RubyOnRails
[03:43:35] xcesariox: has joined #RubyOnRails
[03:43:45] rgtk: has joined #RubyOnRails
[03:45:07] Trynemjoel: has joined #RubyOnRails
[03:46:32] yran: has joined #RubyOnRails
[03:48:05] bruno-: has joined #RubyOnRails
[03:49:10] roxtrongo: has joined #RubyOnRails
[03:49:17] hahuang65: has joined #RubyOnRails
[03:49:49] FailBit: paperclip is for attaching files to models
[03:50:07] FailBit: you upload, paperclip puts on disk.
[03:56:32] sdwrage: has joined #RubyOnRails
[03:57:34] Trynemjoel: has joined #RubyOnRails
[03:59:36] chouhoulis: has joined #RubyOnRails
[04:02:49] dmarr: so what about my usecase, simply displaying a field of MEDIUMTEXT from a db
[04:03:06] dmarr: its stored in mysql as binary data
[04:04:25] erbse: has joined #RubyOnRails
[04:05:45] Pistos: has left #RubyOnRails: ("WeeChat 1.1.1")
[04:05:58] MartinElvar: has joined #RubyOnRails
[04:07:11] sankaber: has joined #RubyOnRails
[04:07:24] dmarr: This is what I found on SO but its > 5y old http://stackoverflow.com/a/4294697/234277
[04:07:25] flip_digits: has joined #RubyOnRails
[04:07:49] mary5030: has joined #RubyOnRails
[04:09:16] krramos: has joined #RubyOnRails
[04:12:09] Trynemjoel: has joined #RubyOnRails
[04:15:29] zpe: has joined #RubyOnRails
[04:15:34] makenoise: has joined #RubyOnRails
[04:17:26] braincrash: has joined #RubyOnRails
[04:22:39] Spami: has joined #RubyOnRails
[04:23:03] simplyianm: has joined #RubyOnRails
[04:24:45] rickmasta: has joined #RubyOnRails
[04:25:58] djbkd: has joined #RubyOnRails
[04:33:07] surrealanalysis: has joined #RubyOnRails
[04:33:17] rubyonrailed: has joined #RubyOnRails
[04:36:44] shibabu: has joined #RubyOnRails
[04:43:53] pawnbox: has joined #RubyOnRails
[04:44:01] SteveC: has joined #RubyOnRails
[04:44:18] vigintas: has joined #RubyOnRails
[04:45:19] pixelhandler: has joined #RubyOnRails
[04:47:43] yran: has joined #RubyOnRails
[04:47:52] kp666: has joined #RubyOnRails
[04:48:19] roxtrongo: has joined #RubyOnRails
[04:48:46] bruno-: has joined #RubyOnRails
[04:51:08] Trynemjoel: has joined #RubyOnRails
[04:51:32] benlieb: has joined #RubyOnRails
[04:52:18] yoongkang: has joined #RubyOnRails
[04:55:03] ebbflowgo: has joined #RubyOnRails
[04:56:12] The_Phoenix: has joined #RubyOnRails
[04:57:01] The_Phoenix: has joined #RubyOnRails
[05:03:35] yfeldblum: has joined #RubyOnRails
[05:05:21] helpa-bot: has joined #RubyOnRails
[05:05:59] mghaig: has joined #RubyOnRails
[05:06:15] The_Phoenix1: has joined #RubyOnRails
[05:06:56] LicHacker: has joined #RubyOnRails
[05:06:59] sadaf2606: has joined #RubyOnRails
[05:07:22] helpa-bot: has joined #RubyOnRails
[05:07:32] waseem__: has joined #RubyOnRails
[05:07:37] abracada-: has joined #RubyOnRails
[05:07:41] Scientz: has joined #RubyOnRails
[05:08:07] yoongkang: has joined #RubyOnRails
[05:08:53] shinnya_: has joined #RubyOnRails
[05:09:23] helpa-bot: has joined #RubyOnRails
[05:09:32] sung_: has joined #RubyOnRails
[05:09:36] kanzure_: has joined #RubyOnRails
[05:09:43] sunya7a: has joined #RubyOnRails
[05:09:46] ivanyk: has joined #RubyOnRails
[05:09:49] suffice_: has joined #RubyOnRails
[05:09:51] arthurix: has joined #RubyOnRails
[05:09:53] jamo: has joined #RubyOnRails
[05:10:09] Criten_: has joined #RubyOnRails
[05:10:12] ejnahc_: has joined #RubyOnRails
[05:10:15] wwalker_: has joined #RubyOnRails
[05:10:28] Gabriel413: has joined #RubyOnRails
[05:10:29] xhoy_: has joined #RubyOnRails
[05:11:25] helpa-bot: has joined #RubyOnRails
[05:12:38] lele`: has joined #RubyOnRails
[05:13:00] baweaver: has joined #RubyOnRails
[05:13:10] six: has joined #RubyOnRails
[05:13:26] helpa-bot: has joined #RubyOnRails
[05:14:06] james1: has joined #RubyOnRails
[05:14:28] Haydos_: has joined #RubyOnRails
[05:14:33] sheepman_: has joined #RubyOnRails
[05:15:27] helpa: has joined #RubyOnRails
[05:15:28] Fuzai: has joined #RubyOnRails
[05:16:08] bahar: has joined #RubyOnRails
[05:17:37] g3funk: has joined #RubyOnRails
[05:18:19] hyperdrive: has joined #RubyOnRails
[05:18:19] eyck: has joined #RubyOnRails
[05:18:19] Kuukunen: has joined #RubyOnRails
[05:18:28] funnel: has joined #RubyOnRails
[05:18:35] funnel: has joined #RubyOnRails
[05:22:20] psyonix: has joined #RubyOnRails
[05:23:10] mary5030: has joined #RubyOnRails
[05:23:59] gusrub: has joined #RubyOnRails
[05:28:39] rdavila: has joined #RubyOnRails
[05:29:03] wethu: has joined #RubyOnRails
[05:30:27] yran: has joined #RubyOnRails
[05:37:20] dionysus69: has joined #RubyOnRails
[05:37:37] simplyianm: has joined #RubyOnRails
[05:38:24] framling: has joined #RubyOnRails
[05:40:25] dmarr: so im trying to get the say/cheese controller to show an attachments file from the db https://github.com/marr/phormat/tree/rails
[05:44:33] tatertot: has joined #RubyOnRails
[05:44:51] edward__: has joined #RubyOnRails
[05:44:58] rgtk: has joined #RubyOnRails
[05:45:05] vigintas: has joined #RubyOnRails
[05:46:25] maxx88_: has joined #RubyOnRails
[05:46:54] Trynemjoel2: has joined #RubyOnRails
[05:48:19] owenjones: has joined #RubyOnRails
[05:49:18] dmarr: i think im trying to render an image_tag inside a show action, but the url_for is still going back to that same action
[05:49:24] parus_: has joined #RubyOnRails
[05:49:36] SuppliedRelic_: has joined #RubyOnRails
[05:49:42] chrisarc1nd: has joined #RubyOnRails
[05:49:57] mary5030: has joined #RubyOnRails
[05:50:01] bruno-: has joined #RubyOnRails
[05:50:13] ngr_: has joined #RubyOnRails
[05:50:14] Dreeg_: has joined #RubyOnRails
[05:50:21] hendrici1s: has joined #RubyOnRails
[05:50:24] krainboltgreene_: has joined #RubyOnRails
[05:50:33] contradictioned_: has joined #RubyOnRails
[05:50:37] sung: has joined #RubyOnRails
[05:50:37] sung: has joined #RubyOnRails
[05:50:38] aeffle: has joined #RubyOnRails
[05:50:38] martinbjeldbak_: has joined #RubyOnRails
[05:51:01] Shapeshi1ter: has joined #RubyOnRails
[05:51:10] skmp_: has joined #RubyOnRails
[05:51:13] Kilo`byte: has joined #RubyOnRails
[05:51:14] skmp_: has joined #RubyOnRails
[05:51:14] soahccc: has joined #RubyOnRails
[05:51:22] elektronaut: has joined #RubyOnRails
[05:51:26] borkdude: has joined #RubyOnRails
[05:51:37] Quintasan: has joined #RubyOnRails
[05:51:37] Quintasan: has joined #RubyOnRails
[05:51:58] tubbo: has joined #RubyOnRails
[05:52:00] kies: has joined #RubyOnRails
[05:52:02] DefV: has joined #RubyOnRails
[05:52:03] _fortis: has joined #RubyOnRails
[05:52:05] ddv: has joined #RubyOnRails
[05:52:06] sevenseacat: has joined #RubyOnRails
[05:52:09] dvdchr: has joined #RubyOnRails
[05:52:19] AlHafoudh: has joined #RubyOnRails
[05:52:38] vedu: has joined #RubyOnRails
[05:52:52] drPoggs: has joined #RubyOnRails
[05:53:12] Shidash: has joined #RubyOnRails
[05:53:13] noodle: has joined #RubyOnRails
[05:53:18] phrozen77: has joined #RubyOnRails
[05:53:36] differentreality: has joined #RubyOnRails
[05:53:38] smoitra_: has joined #RubyOnRails
[05:53:52] cgfbee: has joined #RubyOnRails
[05:53:53] Sirecote: has joined #RubyOnRails
[05:55:18] bauruine: has joined #RubyOnRails
[05:55:51] leex: has joined #RubyOnRails
[05:55:55] LicHacker: has left #RubyOnRails: ()
[05:56:04] TheMonster: has joined #RubyOnRails
[05:56:11] flip_digits: has joined #RubyOnRails
[05:56:31] uranther: has joined #RubyOnRails
[05:56:43] Obi_obi: has joined #RubyOnRails
[05:56:55] nyandoge: has joined #RubyOnRails
[05:58:19] ewilliam: has joined #RubyOnRails
[05:58:28] tejasmanohar: has joined #RubyOnRails
[05:58:28] jxf: has joined #RubyOnRails
[05:58:54] kapowaz: has joined #RubyOnRails
[05:59:07] dionysus69: so I have this "back" button which points to the product index page, when its pushed, the filters and search results are obviously reset. How can I preserve them?
[05:59:10] barttenbrinke: has joined #RubyOnRails
[05:59:19] darkxploit: has joined #RubyOnRails
[05:59:30] pimpin: has joined #RubyOnRails
[06:00:12] arta82: has joined #RubyOnRails
[06:00:46] BBHoss: has joined #RubyOnRails
[06:01:39] mjc_: has joined #RubyOnRails
[06:01:58] lxkm: has joined #RubyOnRails
[06:02:00] shwoodard: has joined #RubyOnRails
[06:02:34] Meow-J: has joined #RubyOnRails
[06:03:44] machty: has joined #RubyOnRails
[06:04:07] Pazician: has joined #RubyOnRails
[06:04:15] zpe_: has joined #RubyOnRails
[06:06:29] Trynemjoel: has joined #RubyOnRails
[06:12:29] rhizome: "the" filters?
[06:14:30] arta82: has joined #RubyOnRails
[06:14:47] helpa: has joined #RubyOnRails
[06:14:56] rdavila: has joined #RubyOnRails
[06:15:05] Tref_: has joined #RubyOnRails
[06:16:56] skakri`: has joined #RubyOnRails
[06:17:59] DefV_: has joined #RubyOnRails
[06:17:59] leex_: has joined #RubyOnRails
[06:18:47] shamanime_: has joined #RubyOnRails
[06:18:50] machuga_: has joined #RubyOnRails
[06:19:01] ngr: has joined #RubyOnRails
[06:19:14] svkurowsl: has joined #RubyOnRails
[06:19:31] neanderslob_: has joined #RubyOnRails
[06:19:39] gregf: has joined #RubyOnRails
[06:19:48] cfloare_: has joined #RubyOnRails
[06:19:50] Sanguine1nomaly: has joined #RubyOnRails
[06:19:53] sptq_: has joined #RubyOnRails
[06:19:57] diprotic: has joined #RubyOnRails
[06:19:58] valerie2: has joined #RubyOnRails
[06:19:58] diprotic: has joined #RubyOnRails
[06:20:32] adam_: has joined #RubyOnRails
[06:20:45] tw1sted: has joined #RubyOnRails
[06:20:45] jamesdickerson: has joined #RubyOnRails
[06:20:56] timmyBsd: has joined #RubyOnRails
[06:20:56] jpterry: has joined #RubyOnRails
[06:21:04] K0nserv-: has joined #RubyOnRails
[06:21:16] phon: has joined #RubyOnRails
[06:21:26] Pro|: has joined #RubyOnRails
[06:21:51] Davey: has joined #RubyOnRails
[06:21:51] atrius: has joined #RubyOnRails
[06:22:17] xybre: has joined #RubyOnRails
[06:22:20] bodie_: has joined #RubyOnRails
[06:22:20] Trynemjoel: has joined #RubyOnRails
[06:22:21] \13k: has joined #RubyOnRails
[06:22:28] Davey: has joined #RubyOnRails
[06:22:34] chouhoulis: has joined #RubyOnRails
[06:23:45] arta82: has joined #RubyOnRails
[06:25:09] jamesadickerson: has joined #RubyOnRails
[06:27:20] Trynemjoel: has joined #RubyOnRails
[06:28:55] Sirecote: has joined #RubyOnRails
[06:29:15] bruce_lee2: has joined #RubyOnRails
[06:30:01] jamesadickerson: hello guys, I'm developing a webapp for a class in ruby on rails and I was wondering if anyone could help me on a problem I'm having?
[06:30:15] baweaver: has joined #RubyOnRails
[06:31:03] RailsGirl: has joined #RubyOnRails
[06:31:26] jamesadickerson: I've been all over the interwebz, especially stack overflow, and I haven't found anything that can help.
[06:31:54] lemur: has joined #RubyOnRails
[06:33:07] DanielVartanov: has joined #RubyOnRails
[06:33:11] neanderslob: has joined #RubyOnRails
[06:33:44] jamesadickerson: I use omniauth-facebook to login. My user controller has full access to what is stored in my database, but I have a controller for books that I can't get to access the facebook credentials stored in the database.
[06:34:20] jamesadickerson: is anyone active?
[06:38:26] DanielVartanov: has joined #RubyOnRails
[06:38:57] lxsameer: has joined #RubyOnRails
[06:39:10] shibabu: has joined #RubyOnRails
[06:41:38] jamesadickerson: has joined #RubyOnRails
[06:43:38] DanielVartanov: If I use only ActiveRecord in my project, how do I fork ActiveSupport and use that fork? The problem is: all rails subprojects live in one repo, under subdirectories
[06:45:55] Trynemjoel: has joined #RubyOnRails
[06:47:32] wldcordeiro: has joined #RubyOnRails
[06:47:44] exadeci: has joined #RubyOnRails
[06:49:29] arta82: has joined #RubyOnRails
[06:50:20] bruno-: has joined #RubyOnRails
[06:51:30] Radar_: has left #RubyOnRails: ()
[06:51:44] Radar: has joined #RubyOnRails
[06:51:52] Radar: !botsnack
[06:51:52] helpa: Nom nom. Thanks, Radar!
[06:52:38] rhizome: DanielVartanov: you'd probably have to specify all of the rails gems individually, pointing to your fork(s) where necessary
[06:53:29] rhizome: i guess you're asking about the fact that it's all gems on your side
[06:57:00] djbkd: has joined #RubyOnRails
[06:57:51] DanielVartanov: rhizome: how can I do it? Imagine a line in Gemfile: gem 'activerecord', git: 'github.com/myfork/rails', subpath: '/activerecord' <-- I didn't find anything like 'subpath'
[06:58:41] tater: has joined #RubyOnRails
[06:58:56] Trynemjoel: has joined #RubyOnRails
[06:59:04] Radar: gem 'activerecord', path: "~/Projects/gems/rails/activerecord"
[06:59:05] tw1sted: has joined #RubyOnRails
[06:59:15] edward_: has joined #RubyOnRails
[06:59:21] tercenya: has joined #RubyOnRails
[06:59:24] DanielVartanov: Radar: how'd I deploy it then to a remote server?
[06:59:41] Radar: gem 'activerecord', github: 'github.com/myfork/rails'
[06:59:48] Radar: that'll work just fine because AR is a nested gem inside that
[06:59:53] Radar: Bundler is smart enough to work in that case
[07:00:01] Radar: bbl partying and whatnot
[07:00:03] jamesadickerson: Is there a way to share data between two controllers?
[07:00:12] lxsameer: has joined #RubyOnRails
[07:00:20] DanielVartanov: Radar: oh! I'll try it now, thanks!
[07:00:25] rhizome: jamesadickerson: sort of. it's kind of what the database is for
[07:01:01] jamesadickerson: I've got a facebook login working, and it stores it to my database, but I can't get one of my controllers to access the data...
[07:01:19] rhizome: there's probably some session stuff you can use
[07:01:25] shaman42: has joined #RubyOnRails
[07:01:35] rtl_: has joined #RubyOnRails
[07:01:36] tenderlove: has joined #RubyOnRails
[07:02:19] masscrx_: has joined #RubyOnRails
[07:02:59] jamesadickerson: My user controller works fine and I can pull any of it I need, but I have another controller that I need to use it and I haven't had much luck so far with anything I've tried. I'm sure it has something to do with my session, but I'm stuck.
[07:03:50] Wingar: has joined #RubyOnRails
[07:03:58] nightsh_: has joined #RubyOnRails
[07:04:04] hendricius: has joined #RubyOnRails
[07:04:14] jalcine: has joined #RubyOnRails
[07:04:31] Phelps: has joined #RubyOnRails
[07:04:50] gmci: has joined #RubyOnRails
[07:04:53] djinni`: has joined #RubyOnRails
[07:04:57] oddalot: has joined #RubyOnRails
[07:05:00] samuelkadolph: has joined #RubyOnRails
[07:05:01] CustosLimen: has joined #RubyOnRails
[07:05:17] Davey: has joined #RubyOnRails
[07:05:17] Davey: has joined #RubyOnRails
[07:05:20] spectra: has joined #RubyOnRails
[07:05:20] chaas: has joined #RubyOnRails
[07:05:23] swhitt: has joined #RubyOnRails
[07:05:30] neilfse: has joined #RubyOnRails
[07:05:30] arathald: has joined #RubyOnRails
[07:05:41] arthurnn: has joined #RubyOnRails
[07:05:44] p8m: has joined #RubyOnRails
[07:05:50] fumduq: has joined #RubyOnRails
[07:05:52] atrius: has joined #RubyOnRails
[07:05:52] joelsmith: has joined #RubyOnRails
[07:06:06] tubbo: has joined #RubyOnRails
[07:06:10] shtirlic: has joined #RubyOnRails
[07:06:34] waltz: has joined #RubyOnRails
[07:07:11] Gm4n: has joined #RubyOnRails
[07:07:16] Pazician: has joined #RubyOnRails
[07:07:23] cajone: has joined #RubyOnRails
[07:07:23] cswelin: has joined #RubyOnRails
[07:08:32] reaVer: has joined #RubyOnRails
[07:09:33] lorn: has joined #RubyOnRails
[07:09:34] michael_mbp: has joined #RubyOnRails
[07:12:40] krramos: has left #RubyOnRails: ()
[07:12:56] K_r3aPeR: has joined #RubyOnRails
[07:16:40] apofis: has joined #RubyOnRails
[07:20:00] zpe_: has joined #RubyOnRails
[07:24:30] rromanch_: has joined #RubyOnRails
[07:28:33] baweaver: has joined #RubyOnRails
[07:29:12] x-light: has joined #RubyOnRails
[07:30:15] djbkd: has joined #RubyOnRails
[07:35:29] darutoko: has joined #RubyOnRails
[07:36:02] crdpink2: has joined #RubyOnRails
[07:38:58] chipotle: has joined #RubyOnRails
[07:39:47] kerunaru: has joined #RubyOnRails
[07:43:49] AzaToth: has joined #RubyOnRails
[07:44:57] flip_digits: has joined #RubyOnRails
[07:45:28] rgtk: has joined #RubyOnRails
[07:47:55] raunicolae: has joined #RubyOnRails
[07:48:45] raunicolae: has left #RubyOnRails: ()
[07:49:12] rails690: has joined #RubyOnRails
[07:51:36] rails690: im trying to export data to excel in my rails app, and im submitting the form via AJAX, but when I click 'export', i can see it correctly renders the xlsx response but it doesn't appear as a download link and nothing happens on my page
[07:51:44] rails690: i click 'export', and i get this response:
[07:51:45] K_r3aPeR: has joined #RubyOnRails
[07:51:55] bruno-: has joined #RubyOnRails
[07:52:17] owenjones: has joined #RubyOnRails
[07:55:27] rails690: https://gist.github.com/anonymous/1fa113d11099b245e36c
[07:56:51] rails690: anyone know why no download link is popping up? This is in my controller:
[07:59:04] rails690: https://gist.github.com/anonymous/ca9a5291cf42393873c4
[08:01:31] dici: has joined #RubyOnRails
[08:01:55] abracadaniel: has joined #RubyOnRails
[08:06:56] nygrenh: has joined #RubyOnRails
[08:07:18] naftilos76: has joined #RubyOnRails
[08:08:07] A124: has joined #RubyOnRails
[08:09:18] shibabu: has joined #RubyOnRails
[08:11:28] rgtk: has joined #RubyOnRails
[08:15:15] mrtomme: has joined #RubyOnRails
[08:20:06] jmaradin: has joined #RubyOnRails
[08:22:21] arta82: has joined #RubyOnRails
[08:23:29] trosborn: has joined #RubyOnRails
[08:23:36] benlieb: has joined #RubyOnRails
[08:24:41] crdpink: has joined #RubyOnRails
[08:29:36] baweaver: has joined #RubyOnRails
[08:30:35] Cervajz_: has joined #RubyOnRails
[08:32:51] Cervajz__: has joined #RubyOnRails
[08:33:40] nertzy: has joined #RubyOnRails
[08:33:47] chouhoulis: has joined #RubyOnRails
[08:34:26] yoongkang: has joined #RubyOnRails
[08:35:16] vigintas: has joined #RubyOnRails
[08:35:34] marr: has joined #RubyOnRails
[08:45:42] trosborn: has joined #RubyOnRails
[08:53:02] roxtrongo: has joined #RubyOnRails
[08:53:16] owenjones: has joined #RubyOnRails
[08:58:31] solars: has joined #RubyOnRails
[08:59:29] htmldrum: has joined #RubyOnRails
[09:08:28] Helheim: has joined #RubyOnRails
[09:08:45] zpe: has joined #RubyOnRails
[09:11:42] bruno-: has joined #RubyOnRails
[09:12:25] sevenseacat: has joined #RubyOnRails
[09:13:02] trosborn: has joined #RubyOnRails
[09:15:34] adac: has joined #RubyOnRails
[09:17:27] rgtk: has joined #RubyOnRails
[09:18:25] Cervajz_: has joined #RubyOnRails
[09:19:02] lapide_viridi: has joined #RubyOnRails
[09:19:57] roxtrongo: has joined #RubyOnRails
[09:21:22] Grundell_: has joined #RubyOnRails
[09:25:06] njero: has joined #RubyOnRails
[09:30:26] baweaver: has joined #RubyOnRails
[09:33:45] flip_digits: has joined #RubyOnRails
[09:34:07] benlieb: has joined #RubyOnRails
[09:36:21] tetraktys: has joined #RubyOnRails
[09:36:44] Spami: has joined #RubyOnRails
[09:37:34] wildlander: has joined #RubyOnRails
[09:38:27] Spami: has joined #RubyOnRails
[09:39:50] Grundell: has joined #RubyOnRails
[09:45:44] lipoqil: rails690: Doesn't this work? http://stackoverflow.com/questions/617055/setting-the-filename-for-a-downloaded-file-in-a-rails-application/3876038#3876038
[09:50:33] freezevee: has joined #RubyOnRails
[09:51:00] Pazician: has joined #RubyOnRails
[09:59:02] tetraktys: has joined #RubyOnRails
[09:59:09] Grundell: has joined #RubyOnRails
[10:00:59] apeiros: twitter-bootstrap-rails still the way to go? (my preferences with template languages are slim + sass)
[10:02:09] Antoine59: has joined #RubyOnRails
[10:13:16] shibabu: has joined #RubyOnRails
[10:13:22] apeiros: hm, actually I just see that I used bootstrap-sass in another project. I guess I'll use that again.
[10:17:09] AnoHito_: has joined #RubyOnRails
[10:17:57] leex: has joined #RubyOnRails
[10:17:58] mostlybadfly_: has joined #RubyOnRails
[10:18:56] joeytwiddle_: has joined #RubyOnRails
[10:18:58] lxsameer: has joined #RubyOnRails
[10:18:58] lxsameer: has joined #RubyOnRails
[10:19:40] SuppliedRelic_: has joined #RubyOnRails
[10:19:58] moeabdol: has joined #RubyOnRails
[10:19:59] jbrinkmu1ic: has joined #RubyOnRails
[10:20:02] richipar1o: has joined #RubyOnRails
[10:20:03] raldu_: has joined #RubyOnRails
[10:20:04] nej: has joined #RubyOnRails
[10:20:05] dogedra: has joined #RubyOnRails
[10:20:05] hoodow__: has joined #RubyOnRails
[10:20:15] raenk: has joined #RubyOnRails
[10:20:16] bakingbread: has joined #RubyOnRails
[10:20:26] Mession_: has joined #RubyOnRails
[10:20:41] artmann: has joined #RubyOnRails
[10:20:41] G: has joined #RubyOnRails
[10:20:41] GarethAdams: has joined #RubyOnRails
[10:20:41] toydestroyer: has joined #RubyOnRails
[10:20:41] zly: has joined #RubyOnRails
[10:20:42] G: has joined #RubyOnRails
[10:20:42] toydestroyer: has joined #RubyOnRails
[10:20:42] golgaroth: has joined #RubyOnRails
[10:20:42] GarethAdams: has joined #RubyOnRails
[10:20:42] davidt: has joined #RubyOnRails
[10:20:42] Ankhers_: has joined #RubyOnRails
[10:20:43] daniel: has joined #RubyOnRails
[10:20:43] golgaroth: has joined #RubyOnRails
[10:20:44] nizmow-: has joined #RubyOnRails
[10:20:45] Olipro_: has joined #RubyOnRails
[10:20:46] knight_: has joined #RubyOnRails
[10:20:53] Dreeg: has joined #RubyOnRails
[10:20:58] skmp_: has joined #RubyOnRails
[10:21:01] kerunaru: has joined #RubyOnRails
[10:21:05] Majadon: has joined #RubyOnRails
[10:21:31] andatche: has joined #RubyOnRails
[10:21:39] lord4163: has joined #RubyOnRails
[10:21:39] Shidash: has joined #RubyOnRails
[10:21:45] nickyd: has joined #RubyOnRails
[10:21:50] Emily: has joined #RubyOnRails
[10:22:01] sptq: has joined #RubyOnRails
[10:22:48] Phoop: has joined #RubyOnRails
[10:22:59] kalzz: has joined #RubyOnRails
[10:23:10] camilasan: has joined #RubyOnRails
[10:23:24] vigintas: has joined #RubyOnRails
[10:25:16] nettoweb: has joined #RubyOnRails
[10:26:14] ValicekB_: has joined #RubyOnRails
[10:26:29] pfg: has joined #RubyOnRails
[10:26:37] eggoez: has joined #RubyOnRails
[10:26:43] krainboltgreene: has joined #RubyOnRails
[10:27:05] DukeDave: has joined #RubyOnRails
[10:27:43] AckZ: has joined #RubyOnRails
[10:27:55] TheMoonMaster: has joined #RubyOnRails
[10:28:04] RubyNewbey_: has joined #RubyOnRails
[10:28:04] vayan: has joined #RubyOnRails
[10:29:17] jord: has joined #RubyOnRails
[10:29:27] Aeyrix: has joined #RubyOnRails
[10:29:34] Hosh: has joined #RubyOnRails
[10:29:55] iateadonut: has joined #RubyOnRails
[10:30:31] jlpeters: has joined #RubyOnRails
[10:31:23] baweaver: has joined #RubyOnRails
[10:31:30] Lloyd: has joined #RubyOnRails
[10:34:06] stevenleeg: has joined #RubyOnRails
[10:36:05] stamina: has joined #RubyOnRails
[10:37:50] mission712: has joined #RubyOnRails
[10:39:32] zpe: has joined #RubyOnRails
[10:39:33] surrealanalysis: has joined #RubyOnRails
[10:40:34] FooMunki: has joined #RubyOnRails
[10:41:13] Scripore: has joined #RubyOnRails
[10:41:43] sdwrage: has joined #RubyOnRails
[10:41:58] roxtrongo: has joined #RubyOnRails
[10:42:14] nygrenh: has joined #RubyOnRails
[10:42:43] romdi: has joined #RubyOnRails
[10:51:00] srinidhi: has joined #RubyOnRails
[10:57:40] youngbaks: has joined #RubyOnRails
[11:00:57] njero: has joined #RubyOnRails
[11:04:40] wethu: has joined #RubyOnRails
[11:04:50] roxtrongo: has joined #RubyOnRails
[11:07:58] lxsameer: has joined #RubyOnRails
[11:09:19] dvdchr: has joined #RubyOnRails
[11:09:44] quazimodo: has joined #RubyOnRails
[11:12:24] vigintas: has joined #RubyOnRails
[11:12:56] trosborn: has joined #RubyOnRails
[11:15:53] dionysus69: has joined #RubyOnRails
[11:18:17] rgtk: has joined #RubyOnRails
[11:22:33] flip_digits: has joined #RubyOnRails
[11:29:29] arBmind: has joined #RubyOnRails
[11:30:20] Megamos: has joined #RubyOnRails
[11:31:55] darrencauthon: has joined #RubyOnRails
[11:32:28] Megamos: has joined #RubyOnRails
[11:33:20] baweaver: has joined #RubyOnRails
[11:36:23] yottanami: has joined #RubyOnRails
[11:37:41] yottanami: I created an API with grape and secure it with doorkeeper, Now I want to write a client for it. What gem should I use?
[11:40:18] zpe: has joined #RubyOnRails
[11:40:59] Cervajz__: has joined #RubyOnRails
[11:41:28] nettoweb: has joined #RubyOnRails
[11:42:38] Sceko: has joined #RubyOnRails
[11:44:17] zpe_: has joined #RubyOnRails
[11:45:23] egray: has joined #RubyOnRails
[11:45:46] bruno-: has joined #RubyOnRails
[11:50:51] jensljungblad: has joined #RubyOnRails
[11:59:38] treaki: has joined #RubyOnRails
[11:59:41] srinidhi: has joined #RubyOnRails
[12:01:13] roxtrongo: has joined #RubyOnRails
[12:01:59] jensljungblad: has joined #RubyOnRails
[12:02:05] egray: has joined #RubyOnRails
[12:04:11] roxtrongo: has joined #RubyOnRails
[12:06:02] roxtrongo: has joined #RubyOnRails
[12:07:39] wethu: has joined #RubyOnRails
[12:09:37] Spami: has joined #RubyOnRails
[12:13:41] yottanami: FailBit, What about oauth2 ?
[12:14:15] FailBit: what about it
[12:15:51] shibabu: has joined #RubyOnRails
[12:16:26] lipoqil: yottanami: Usual solution is RestClient ( https://rubygems.org/gems/rest-client ), but you'll probably find more lightweight clients. For example Net::HTTP ( http://bit.ly/1PsVDcr ) provided by FailBit
[12:16:31] yottanami: FailBit, I found Oauth2 gem useful but there is a problem, for accessing auth code it needs to redirect and can not receive it whithout redirecting
[12:17:40] lipoqil: yottanami: I believe Oauth2 is just for authentication. Wasn't you question more about client for API ?
[12:18:11] yottanami: Liothen, An API that is using doorkeeper as authentication
[12:21:37] fredrickdorn: has joined #RubyOnRails
[12:21:37] MartinElvar: has joined #RubyOnRails
[12:22:14] lipoqil: yottanami: Oauth2 (technology, not gem) does not require any special client. You just provide the provider with login success and error url to come back and then it is up to your application
[12:23:07] yottanami: lipoqil, Do I need authorize application for each request in oauth technology?
[12:23:14] flip_digits: has joined #RubyOnRails
[12:23:24] yottanami: because it needs to redirect to API url and authorize and ...
[12:23:26] lipoqil: yottanami:
[12:23:29] lipoqil: yottanami: No
[12:23:45] yottanami: Liothen, You mean Just one time?
[12:24:11] ruid: has joined #RubyOnRails
[12:24:24] lipoqil: yottanami: The Liothen is meant to be me? :)
[12:25:05] ruid: has joined #RubyOnRails
[12:25:31] lipoqil: yottanami: Outh provider is just telling, yes we know that guy and probably provide you with some informations about him. What do you do with that in your app, it's up to you
[12:25:57] Megamos: has joined #RubyOnRails
[12:26:01] fredrickdorn: Does anyone have any pointers for a bird's eye view of Rails (and optionally, Bundler and gemsets)
[12:26:24] fredrickdorn: Just getting started, already familiar with Ruby
[12:26:48] yottanami: lipoqil, Yes wrong mention
[12:28:24] lipoqil: fredrickdorn: http://railsforzombies.org ?
[12:28:57] lxsameer: has joined #RubyOnRails
[12:30:54] fredrickdorn: lopoqil: Thanks, I'll check it out.
[12:31:01] WillAmes: has joined #RubyOnRails
[12:31:27] lipoqil: Why don't you use tab key for nick completion guys :)
[12:32:26] lxsameer: has joined #RubyOnRails
[12:32:33] Antoine59: hello , I have a part of my model in origin it is HTML but saved as plain, I want to render the html itself inside the era file, but it appears as raw whenever trying to use raw @article.html or @article.html.safe_html
[12:33:00] lipoqil: fredrickdorn: gemsets are not that big concept so I guess there will anything about them. Maybe try this https://rvm.io/gemsets/basics
[12:33:47] fredrickdorn: lipoqil, yeah, but I'm a little confused as to why we have gemsets when we have bundler.
[12:33:59] fredrickdorn: some overview would certainly be helpful
[12:34:02] baweaver: has joined #RubyOnRails
[12:34:35] tbuehlmann: fredrickdorn, you are right, you don't really need gemsets when using bundler
[12:35:33] lipoqil: fredrickdorn: Bundler does not separate them gems actually. With bundler you have one heap of gems and bundler picks the ones for current project. Gemsets are true separation, so imagine you have three projects bundled. Each under different gemset
[12:35:36] fredrickdorn: tbuehlmann, any resources you'd recommend I read?
[12:35:44] tbuehlmann: about that topic? nope
[12:35:59] tbuehlmann: but for starting with rails: http://guides.rubyonrails.org/getting_started.html
[12:36:23] lipoqil: fredrickdorn: Now??? you'll not works on project 2 anymore. You can delete the gemset and you have all the gems gone
[12:36:25] fredrickdorn: tbuehlmann, was looking for that specific topic
[12:37:26] lipoqil: fredrickdorn: Same way you could remove all the gems for specific project and bundle again if you need it. Instead of removing gems for all the projects you have bundled
[12:37:27] tbuehlmann: did you gewgle already? http://rakeroutes.com/blog/how-to-use-bundler-instead-of-rvm-gemsets/
[12:38:43] fredrickdorn: Yeah, I am on that page and was curious if there are any beginner-friendly resources..focusing on just the concepts.
[12:39:19] lipoqil: fredrickdorn: But you can still share some gems which you want between projects. For example I install bundler always under global gemset and stuff in this gemset is available every in all gemsets I create
[12:41:39] fredrickdorn: lipoqil, I'll go through what you said + Google stuff. This will probably require more reading, really.
[12:42:19] ruid: has joined #RubyOnRails
[12:44:33] matthewd: I won't claim there aren't still cases where gemsets are useful... but I think the beginner-friendly answer, post-bundler, is to ignore them
[12:44:38] lipoqil: fredrickdorn: Let me know what you've found. My opinion is that it's just about preferences and the way you work. Somebody uses just bundler, somebody uses both. It really depends on how you work
[12:46:44] yottanami: lipoqil, I create a simple API client but I think to authorize every time I want to use this client
[12:46:54] nertzy: has joined #RubyOnRails
[12:47:01] Antoine59: hello , I have a part of my model in origin it is HTML but saved as plain, I want to render the html itself inside the era file, but it appears as raw whenever trying to use raw @article.html or @article.html.safe_html
[12:47:11] yottanami: lipoqil, I tried using my old auth code I got this message OAuth2::Error: invalid_grant: The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.
[12:47:26] Antoine59: era = era template file, sorry for the mistypo
[12:47:31] Antoine59: era = erb template file, sorry for the mistypo
[12:47:41] zpe: has joined #RubyOnRails
[12:52:44] Pazician: has joined #RubyOnRails
[12:54:38] lipoqil: fredrickdorn: matthewd is right. For beginning you can just ignore the gemsets and use just bundler
[12:55:29] FailBit: has left #RubyOnRails: ("WeeChat 0.4.2")
[12:57:24] lipoqil: yottanami: It depends on how you use Oauth. If you use it just as Identity provider it works as I already sad
[12:58:46] yottanami: lipoqil, I just used doorkeeper for making secure my Grape API, but now I think it is not very ok to get authorize key for every request
[12:58:50] lipoqil: yottanami: If you use it to authenticate APIs you need to provide every request with token your client got with success response
[13:00:46] lipoqil: yottanami: no, you use still the same key. After some time the key could expire, but it's expiring like after let's say day of inactivity
[13:01:12] lipoqil: !If server is configured so!
[13:03:26] yottanami: lipoqil, So it seams my configuration is not ok because my token will not expire but auth code will expire after each token generation
[13:04:41] lipoqil: yottanami: Here is example of Oauth authentication against App.net API https://developers.app.net/reference/authentication/flows/web/#server-side-flow
[13:05:00] fredrickdorn: lipoqil, matthewd, thanks guys. I'll certainly come back to this topic at a later point :)
[13:06:00] johnflux: has joined #RubyOnRails
[13:06:01] johnflux: has joined #RubyOnRails
[13:07:16] krramos: has joined #RubyOnRails
[13:07:24] Pazician: has joined #RubyOnRails
[13:10:26] syath: has joined #RubyOnRails
[13:13:37] nya: has joined #RubyOnRails
[13:19:12] rgtk: has joined #RubyOnRails
[13:21:52] Megamos: has joined #RubyOnRails
[13:22:43] raunicolae: has joined #RubyOnRails
[13:24:03] flip_digits: has joined #RubyOnRails
[13:24:33] n1ck7: has joined #RubyOnRails
[13:26:37] njero: has joined #RubyOnRails
[13:27:29] arta82: has joined #RubyOnRails
[13:27:41] kerunaru: has joined #RubyOnRails
[13:28:34] melter: has joined #RubyOnRails
[13:30:25] Cork: has joined #RubyOnRails
[13:31:37] dionysus69: has joined #RubyOnRails
[13:35:18] flip_digits: has joined #RubyOnRails
[13:40:23] pawnbox: has joined #RubyOnRails
[13:43:04] rgrmatt: has joined #RubyOnRails
[13:49:45] bahar: has joined #RubyOnRails
[13:50:06] ahmgeek: has joined #RubyOnRails
[13:50:34] goodcodeguy: has joined #RubyOnRails
[13:51:40] rgtk: has joined #RubyOnRails
[13:54:49] Scripore: has joined #RubyOnRails
[13:56:12] Megamos: has joined #RubyOnRails
[13:56:14] moeabdol: has joined #RubyOnRails
[13:56:40] rgrmatt: has joined #RubyOnRails
[14:00:44] sdwrage: has joined #RubyOnRails
[14:02:18] rgtk: has joined #RubyOnRails
[14:02:59] tuelz: has joined #RubyOnRails
[14:08:16] northfurr: has joined #RubyOnRails
[14:09:39] A124: has joined #RubyOnRails
[14:10:28] SteveC: has joined #RubyOnRails
[14:10:29] Jasaka: has joined #RubyOnRails
[14:13:50] osakanwolf: has joined #RubyOnRails
[14:14:41] IrishGringo: has joined #RubyOnRails
[14:17:37] darrencauthon: has joined #RubyOnRails
[14:17:38] unreal: has joined #RubyOnRails
[14:17:49] ruid: has joined #RubyOnRails
[14:18:35] shibabu: has joined #RubyOnRails
[14:19:06] Encapsulation: has joined #RubyOnRails
[14:19:50] srinidhi: has joined #RubyOnRails
[14:21:01] nickjj: has joined #RubyOnRails
[14:23:57] yoongkang: has joined #RubyOnRails
[14:25:30] shibabu: has joined #RubyOnRails
[14:29:05] osakanwolf: has left #RubyOnRails: ()
[14:30:11] youngbaks: has joined #RubyOnRails
[14:30:18] lxsameer: has joined #RubyOnRails
[14:33:18] maxz: has joined #RubyOnRails
[14:34:23] pawnbox: has joined #RubyOnRails
[14:35:37] bruno-: has joined #RubyOnRails
[14:37:31] smoitra: has joined #RubyOnRails
[14:39:22] Dbugger: has joined #RubyOnRails
[14:39:25] Dbugger: Hello everyone
[14:39:49] Dbugger: Do you guys know if there is a way to know if a user is online on the site or not, in real-time?
[14:39:58] Dbugger: I am using Devise as the auth system
[14:40:51] smoitra: I am rails enthusiast I have some understanding on how rails work. I am trying to design my personal blog and portfolio for that I want to learn wire framing I want to use free and open source tools like inkscape and pencil can anyone point to good tutorials for that
[14:40:56] jhass: dbugger: not without for example a permanent websocket connection
[14:41:02] arta82: has joined #RubyOnRails
[14:41:31] Dbugger: jhass, I want to build a sort of chat. Do you think Rails is not the best framework for it?
[14:42:00] jhass: "sort of chat" is too vague to answer that
[14:42:15] jhass: the chat component will likely sit aside of your web framework anyhow
[14:42:21] Dbugger: jhass, well, for starters, to get me used to this kind of web app, I wanted to build something like Google Hangouts
[14:43:03] Hates_: smoitra: what are you trying to learn? how to use those tools or how to go from a wireframe to a full app?
[14:43:08] Dbugger: So far this is just a training exercise to get me used to the way it works
[14:43:12] jhass: it's not a "for starters" thing if you aim for more than 100 concurrent users really
[14:43:55] Dbugger: jhass, well, let me bring it down a notch:
[14:43:59] jhass: and as said "chat" can mean many things with wide implications for what underlying technologies would work best
[14:44:06] smoitra: Hates_ :I am trying to go from a wireframe to full app
[14:44:10] Dbugger: jhass, how could I do it to build a system that allows me to know who is online and offline in real time?
[14:44:56] jhass: dbugger: as said, either through requiring a permanent connection to one of your servers of some sort
[14:45:04] jhass: dbugger: or you ask the user to mark it explicitly
[14:45:15] smoitra: dbugger: This is nice tutorial http://josephndungu.com/tutorials/gmail-like-chat-application-in-ruby-on-rails
[14:45:26] Dbugger: smoitra, thanks, I will take a look at it
[14:45:29] jhass: or if you don't need sub second accuracy you could regularly ping your server
[14:46:48] Dbugger: I dont need sub second accuracy. I just dont want to have someone waiting 3 minutes, to read "the user is offline"
[14:47:03] smoitra: dbugger: Also this one is useful https://www.youtube.com/watch?v=hJXtPoTlkt0
[14:48:40] qejk: has joined #RubyOnRails
[14:49:01] jhass: dbugger: if you want a lot of things for free build something on top of XMPP, just write for example plugins for authentication and roster management for prosody, ejabberd or similar
[14:50:08] daivyk: has joined #RubyOnRails
[14:51:39] njero: has joined #RubyOnRails
[14:52:01] northfurr: has joined #RubyOnRails
[14:52:05] kerunaru: has joined #RubyOnRails
[14:52:36] ewnd9: has joined #RubyOnRails
[14:53:19] njero: has joined #RubyOnRails
[14:54:07] atomical: has joined #RubyOnRails
[14:54:10] mghaig: has joined #RubyOnRails
[14:54:33] northfurr: has joined #RubyOnRails
[14:55:31] pawnbox: has joined #RubyOnRails
[14:57:03] northfurr: has joined #RubyOnRails
[14:58:45] ewnd9: has joined #RubyOnRails
[14:59:12] rclanan: has joined #RubyOnRails
[14:59:31] northfurr: has joined #RubyOnRails
[14:59:55] nonmadden: has joined #RubyOnRails
[15:01:56] northfurr: has joined #RubyOnRails
[15:02:21] youngbaks: has joined #RubyOnRails
[15:03:04] aevitas: has joined #RubyOnRails
[15:04:38] northfurr: has joined #RubyOnRails
[15:07:35] northfurr: has joined #RubyOnRails
[15:08:08] sevenseacat: has joined #RubyOnRails
[15:11:04] adavia: has joined #RubyOnRails
[15:11:21] northfurr: has joined #RubyOnRails
[15:11:34] sankaber: has joined #RubyOnRails
[15:12:30] owenjones: has joined #RubyOnRails
[15:12:48] veg_: has joined #RubyOnRails
[15:13:48] northfurr: has joined #RubyOnRails
[15:14:47] erbse: has left #RubyOnRails: ()
[15:16:44] rgtk: has joined #RubyOnRails
[15:16:50] dvdchr: has joined #RubyOnRails
[15:19:01] bmalum: has joined #RubyOnRails
[15:19:47] DLSteve: has joined #RubyOnRails
[15:20:07] umgrosscol: has joined #RubyOnRails
[15:20:24] PlasmaStar: has joined #RubyOnRails
[15:21:06] roxtrongo: has joined #RubyOnRails
[15:24:56] mrtomme: has joined #RubyOnRails
[15:25:11] mghaig: has joined #RubyOnRails
[15:26:20] rgrmatt: has joined #RubyOnRails
[15:27:15] Scripore: has joined #RubyOnRails
[15:34:21] nettoweb: has joined #RubyOnRails
[15:34:50] njero: has joined #RubyOnRails
[15:37:20] joshkovach: has joined #RubyOnRails
[15:37:56] njero: has joined #RubyOnRails
[15:37:59] mghaig: has joined #RubyOnRails
[15:38:20] annlewis: has joined #RubyOnRails
[15:40:05] njero: has joined #RubyOnRails
[15:40:44] njero: has joined #RubyOnRails
[15:46:43] youngbaks: has joined #RubyOnRails
[15:47:13] Dbugger: I have been using "onliner" (https://github.com/kbokhonko/onliner) to check if a user is online or not, but that shows offline if the user is idle for 30 seconds.... isnt there a better way to check the availability of a user?
[15:47:26] Dbugger: something that shows "online", "offline", "away..."
[15:47:27] njero: has joined #RubyOnRails
[15:48:04] krz: has joined #RubyOnRails
[15:48:07] renews: has joined #RubyOnRails
[15:48:22] njero: has joined #RubyOnRails
[15:48:52] jhass: are you expecting a different answer by asking the same question over and over again?
[15:50:58] njero: has joined #RubyOnRails
[15:51:15] jhass: dbugger: can you explain what HTTP is and how it works? Can you explain what TCP is and how it works? Do you know what a TCP connection is and how long it exists during a HTTP request?
[15:51:27] njero: has joined #RubyOnRails
[15:52:42] jensljungblad: has joined #RubyOnRails
[15:53:34] Prkl8r: has joined #RubyOnRails
[15:57:17] smathy: has joined #RubyOnRails
[15:58:08] Scripore: has joined #RubyOnRails
[15:58:57] xcesariox: has joined #RubyOnRails
[16:00:12] xcesariox: has joined #RubyOnRails
[16:00:26] pawnbox: has joined #RubyOnRails
[16:00:28] umgrosscol: dbugger, what are you considering "online" ?
[16:00:55] umgrosscol: dbugger, still looking at a web page?
[16:02:13] Hacker_TO: has joined #RubyOnRails
[16:08:02] njero: has joined #RubyOnRails
[16:10:23] Palsson_: has joined #RubyOnRails
[16:11:49] sadaf2605: has joined #RubyOnRails
[16:11:53] User458764: has joined #RubyOnRails
[16:12:02] pawnbox: has joined #RubyOnRails
[16:14:10] atomical_: has joined #RubyOnRails
[16:16:03] blackmesa: has joined #RubyOnRails
[16:17:57] woods: has joined #RubyOnRails
[16:18:02] woods: good morning
[16:18:52] riotjones: has joined #RubyOnRails
[16:21:42] gambl0re: has joined #RubyOnRails
[16:22:01] corioliss: has joined #RubyOnRails
[16:23:49] smathy: has joined #RubyOnRails
[16:29:33] MartinElvar: has joined #RubyOnRails
[16:39:03] SteveC: has joined #RubyOnRails
[16:40:25] annlewis: has joined #RubyOnRails
[16:41:22] smathy: has joined #RubyOnRails
[16:42:32] MachbooSS: has joined #RubyOnRails
[16:43:58] ruid: has joined #RubyOnRails
[16:44:54] pimpin: has joined #RubyOnRails
[16:45:42] roxtrongo: has joined #RubyOnRails
[16:48:26] Dbugger: has joined #RubyOnRails
[16:53:11] treaki: has joined #RubyOnRails
[16:53:50] acti0nman: has joined #RubyOnRails
[16:58:17] arta82: has joined #RubyOnRails
[17:01:34] dviola: has joined #RubyOnRails
[17:02:35] annlewis: has joined #RubyOnRails
[17:02:45] MangoCookie: has joined #RubyOnRails
[17:04:20] qejk: has joined #RubyOnRails
[17:06:58] atomical: has joined #RubyOnRails
[17:08:05] apeiros: oh, yay, MyModel.uniq.pluck("unnest(tags)") does the right thing. nice :D
[17:08:22] apeiros: (tags being a `t.string :tags, array: true` column in pg)
[17:09:21] simplyianm: has joined #RubyOnRails
[17:09:56] dopie: has joined #RubyOnRails
[17:14:48] pimpin: has joined #RubyOnRails
[17:16:30] smathy: has joined #RubyOnRails
[17:19:40] riotjones: has joined #RubyOnRails
[17:22:32] ur5us: has joined #RubyOnRails
[17:25:30] yoongkang: has joined #RubyOnRails
[17:26:49] Antoine59: has joined #RubyOnRails
[17:28:22] EminenceHC: has joined #RubyOnRails
[17:30:32] zpe: has joined #RubyOnRails
[17:30:52] simplyianm: has joined #RubyOnRails
[17:33:14] qejk: has joined #RubyOnRails
[17:35:56] krz: has joined #RubyOnRails
[17:37:50] northfurr: has joined #RubyOnRails
[17:40:03] moeabdol: has joined #RubyOnRails
[17:40:25] northfurr: has joined #RubyOnRails
[17:41:27] tuelz: has joined #RubyOnRails
[17:42:49] northfurr: has joined #RubyOnRails
[17:43:33] bhaveshletter: has joined #RubyOnRails
[17:45:15] northfurr: has joined #RubyOnRails
[17:45:31] arta82: has joined #RubyOnRails
[17:48:21] darrencauthon: has joined #RubyOnRails
[17:51:24] arta82: has joined #RubyOnRails
[17:51:46] bhaveshletter: has joined #RubyOnRails
[17:52:46] Joufflu: has joined #RubyOnRails
[17:53:07] mrtomme: has joined #RubyOnRails
[17:53:41] owenjones: has joined #RubyOnRails
[17:54:37] arBmind: has joined #RubyOnRails
[17:55:39] owenjones: has joined #RubyOnRails
[17:55:41] rromanch_: has joined #RubyOnRails
[17:56:25] bhaveshletter: has joined #RubyOnRails
[17:59:19] fedexo: has joined #RubyOnRails
[17:59:59] htmldrum: has joined #RubyOnRails
[18:02:08] qejk: has joined #RubyOnRails
[18:03:30] mices: i had to upgrade ruby to 1.9.3 but all my gems are still under /usr/lib/ruby/gems/1.9.1, what can i do about this
[18:04:14] jhass: that's normal
[18:04:25] jhass: note that 1.9.3 is out of support, 2.0 will be soon
[18:04:29] jhass: 2.3 is close to release
[18:07:25] Ergo: has joined #RubyOnRails
[18:08:48] krz: has joined #RubyOnRails
[18:12:08] northfurr: has joined #RubyOnRails
[18:15:08] northfurr: has joined #RubyOnRails
[18:16:37] mices: jhass: gonna upgrade to 2 now, ty, what about bundle is still looking for gem files in the 1.9.1 directory?
[18:17:04] jhass: Ruby has actually two versions, the interpreter version and the ABI version
[18:17:13] jhass: what's used in directory paths is the ABI version
[18:17:21] mices: i'm sorry, i'm running ruby 2.2.1
[18:17:26] jhass: for 1.9.2 and 1.9.2 that's 1.9.1
[18:17:38] jhass: for 2.2.0 to 2.2.3 it's 2.2.0
[18:17:43] northfurr: has joined #RubyOnRails
[18:18:00] s2013: has joined #RubyOnRails
[18:18:33] mices: do i have to uninstall and reinstall all my gems because whatever i do rails complains it can't find things under the 1.9.1 directory
[18:20:49] jhass: then you're not using ruby 2.2
[18:21:02] mices: yes i am i upgraded
[18:21:07] jhass: but yes, you have to reinstall gems when the ABI version changes
[18:21:33] qejk: has joined #RubyOnRails
[18:21:37] mices: how do i uninstall all gems including rails
[18:21:46] superlou: has joined #RubyOnRails
[18:21:48] jhass: depends on how you installed them
[18:22:15] jhass: so uninstall them likewise
[18:22:28] jhass: not that I expect that to solve any of your issues
[18:22:51] twilling: has joined #RubyOnRails
[18:27:43] gambl0re: has joined #RubyOnRails
[18:29:45] ewnd9: has joined #RubyOnRails
[18:29:47] mices: i ran gem uninstall -all and then i ran gem list and all my gems are still there
[18:31:10] zpe: has joined #RubyOnRails
[18:31:42] Coldblackice: has joined #RubyOnRails
[18:33:34] rromanch_: has joined #RubyOnRails
[18:34:07] VeryBewitching: has joined #RubyOnRails
[18:34:12] bmalum: has joined #RubyOnRails
[18:35:08] rakm: has joined #RubyOnRails
[18:35:29] rdavila: has joined #RubyOnRails
[18:35:34] tbuehlmann: mices, no need to uninstall the gems
[18:35:59] havenwood: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[18:38:38] baweaver: has joined #RubyOnRails
[18:39:34] arthurnn: has joined #RubyOnRails
[18:39:54] Palsson_: has joined #RubyOnRails
[18:45:40] baweaver: has joined #RubyOnRails
[18:45:53] moeabdol: has joined #RubyOnRails
[18:46:00] blackmes1: has joined #RubyOnRails
[18:47:11] lemur: has joined #RubyOnRails
[18:48:02] northfurr: has joined #RubyOnRails
[18:49:08] youngbaks: has joined #RubyOnRails
[18:51:25] baweaver: has joined #RubyOnRails
[18:52:24] lipoqil: has joined #RubyOnRails
[18:55:21] apotry: has joined #RubyOnRails
[18:56:14] nfk: has joined #RubyOnRails
[19:07:45] djangoJocky: has joined #RubyOnRails
[19:09:29] makenoise: has joined #RubyOnRails
[19:10:07] youngbaks: has joined #RubyOnRails
[19:12:24] djangoJocky: /msg nickserv help
[19:13:36] sdwrage: has joined #RubyOnRails
[19:15:25] kadoppe: has joined #RubyOnRails
[19:16:14] zpe: has joined #RubyOnRails
[19:19:02] makenoise: how's it going
[19:19:06] srinidhi: has joined #RubyOnRails
[19:19:20] n1ck7: has joined #RubyOnRails
[19:19:42] simplyianm: good makenoise
[19:19:46] simplyianm: lets make some noise man!
[19:20:34] Meow-J: has joined #RubyOnRails
[19:22:05] s2013: has joined #RubyOnRails
[19:25:08] futilegames: has joined #RubyOnRails
[19:26:12] njero: holoooooooooooooo
[19:26:45] yoongkang: has joined #RubyOnRails
[19:26:47] bruno-: has joined #RubyOnRails
[19:27:04] freezevee: has joined #RubyOnRails
[19:27:39] VeryBewitching: If I could be legally wed or otherwise exlusively bound, it would be to the jsonb column type in Postgres.
[19:27:39] DrShoggoth: has joined #RubyOnRails
[19:27:51] VeryBewitching: I just thought that was important to say :D
[19:27:55] blackmes1: has joined #RubyOnRails
[19:28:20] djangoJocky: Hi Everyone, Im having an issue creating the approiate migration to associate two models via a through model. I have two models User and Event, as well as an Attendence through model. Id like to be able to do something along the lines of event.users in my controllers. I???ve followed the rails active records guide carefully, but am missing the migration part. Or at least how this type of relationship is described in the rails active record migrat
[19:28:21] djangoJocky: guide. I have a proposed migration in this gist: https://gist.github.com/Pal0r/517de9845451be14e8fa Hoping one of you folks could take a look. Thanks!
[19:28:47] njero: VeryBewitching: is there a jsonb type for postgress?
[19:29:03] VeryBewitching: n_e_o: Yes, which is why I'm pleased :D
[19:29:10] VeryBewitching: Takin' a look djangoJocky
[19:29:23] njero: VeryBewitching: shit that's awesome :)
[19:29:49] djangoJocky: yes. there is in postgres 9.4
[19:30:45] djangoJocky: Big fan of it!
[19:31:22] asianMike: has joined #RubyOnRails
[19:31:49] jhass: djangoJocky: https://gist.github.com/Pal0r/517de9845451be14e8fa#file-rails-through-model-migration-L43 already does that, no?
[19:33:02] futilegames: has joined #RubyOnRails
[19:33:47] VeryBewitching: You should already have event.users
[19:34:09] djangoJocky: That???s what I thought. Just ran into some issues mucking around in console. Lemme confirm.
[19:34:13] annlewis: has joined #RubyOnRails
[19:35:24] djangoJocky: Throws : ActiveRecord::HasManyThroughAssociationNotFoundError: Could not find the association
[19:35:24] djangoJocky: :attendences in model Event
[19:35:48] djangoJocky: When I try to call event.users
[19:36:26] VeryBewitching: Hmm, lemme spin up an app and try this.
[19:37:08] makenoise: has joined #RubyOnRails
[19:40:42] theblang: has joined #RubyOnRails
[19:41:50] jhass: djangoJocky: ah, you're missing the has_many :attendences in the Event model, nothing more
[19:42:00] jhass: and in the User model too
[19:42:18] jhass: through: goes through an existing association
[19:43:44] djangoJocky: Since both models have already been created, Im assuming I have to create a migration for this? Sorry if my questions seem rudimentary, Im coming from a django background.
[19:44:15] jhass: djangoJocky: no, just add has_many :attendences to the Event and User model
[19:44:30] djangoJocky: Excellent! Will give it a shot.
[19:45:45] futilegames: has joined #RubyOnRails
[19:46:13] VeryBewitching: Yes, that is what I found too :D
[19:46:21] brendan-: has joined #RubyOnRails
[19:46:37] jhass: it helps to see the error message :P
[19:47:41] makenoise: has joined #RubyOnRails
[19:51:10] mghaig: has joined #RubyOnRails
[19:51:21] djbkd: has joined #RubyOnRails
[19:51:43] djangoJocky: 49 > attend.event = event
[19:51:44] djangoJocky: ActiveModel::MissingAttributeError: can't write unknown attribute `event_id`
[19:51:58] nerdynav: has joined #RubyOnRails
[19:52:18] VeryBewitching: Given your migration that's a little confusing.
[19:52:24] djangoJocky: 6 > event.users << user
[19:52:24] djangoJocky: (0.2ms) BEGIN
[19:52:25] djangoJocky: (0.2ms) ROLLBACK
[19:52:26] djangoJocky: ActiveRecord::UnknownAttributeError: unknown attribute 'event_id' for Attendence.
[19:52:33] jhass: djangoJocky: what's your schema.rb look like?
[19:53:18] armyriad: has joined #RubyOnRails
[19:54:08] sbhatore: has joined #RubyOnRails
[19:54:35] djangoJocky: https://gist.github.com/Pal0r/517de9845451be14e8fa Updated the models and added the schema section.
[19:55:17] VeryBewitching: Attendences has no fields
[19:55:41] VeryBewitching: djangoJocky: !gistusage
[19:56:05] VeryBewitching: When you use gist, gist each file individually please, makes it easier to read.
[19:56:39] VeryBewitching: djangoJocky: https://gist.github.com/Pal0r/517de9845451be14e8fa#file-rails-through-model-migration-L94-L95
[19:57:13] jhass: djangoJocky: yeah, could it be that you ran the generated migration before editing it for the associations?
[19:57:23] jhass: or created the table manually or something?
[19:57:41] jhass: in any case you want to rerun it
[19:58:03] rgrmatt: has joined #RubyOnRails
[19:58:06] sdwrage: has joined #RubyOnRails
[19:58:46] blackmes1: has joined #RubyOnRails
[20:01:54] moeabdol: has joined #RubyOnRails
[20:01:56] pwnd_nsfw: has joined #RubyOnRails
[20:02:25] djangoJocky: I apologize for the large gist. This is the most recent migration https://gist.github.com/Pal0r/17f9ac316a259f023e17 Which also reflects the version number in my schema.
[20:02:51] nej: has left #RubyOnRails: ()
[20:03:03] Prkl8r: has joined #RubyOnRails
[20:03:19] stevenw_: has joined #RubyOnRails
[20:03:34] djangoJocky: ran db:migrate:up VERSION=<version>
[20:04:36] djbkd: has joined #RubyOnRails
[20:05:02] rromanch_: has joined #RubyOnRails
[20:05:05] jhass: djangoJocky: my guess is that you ran it before it looked like that
[20:05:06] Mia: has joined #RubyOnRails
[20:05:06] Mia: has joined #RubyOnRails
[20:05:12] _fesuy: has joined #RubyOnRails
[20:05:31] djangoJocky: Gotcah. Will revert and rerun. Thank you.
[20:07:58] jhass: just rake db:migrate:redo VERSION=... iirc
[20:08:36] threeminutemonta: has joined #RubyOnRails
[20:09:40] nym: has joined #RubyOnRails
[20:14:02] diosmiux: has joined #RubyOnRails
[20:16:53] mghaig: has joined #RubyOnRails
[20:17:17] psyonix: has joined #RubyOnRails
[20:17:22] tuelz: has joined #RubyOnRails
[20:17:43] b2zeldafreak: has joined #RubyOnRails
[20:18:37] chipotle: has joined #RubyOnRails
[20:19:33] _fesuy: has left #RubyOnRails: ("Leaving")
[20:19:41] djangoJocky: Neat! I dig the redo command. thanks. Still listing a blank schema under the create_table ???attendences??? section https://gist.github.com/Pal0r/e9b6d60f94dcd0780ceb <<<migration. https://gist.github.com/Pal0r/453c2a0b1919d33dd574 <<< schema.
[20:19:55] b2zeldafreak: I'm getting this error when I try to run rake commands on my staging server: "You have already activated rake 10.1.0, but your Gemfile requires rake 10.4.2." I'm having trouble figuring out how to fix it. Can anyone help?
[20:21:22] rhizome: grep 10.4.2 Gemfile.lock
[20:21:32] rhizome: maybe grep -5
[20:21:45] rickmasta: has joined #RubyOnRails
[20:22:26] User458764: has joined #RubyOnRails
[20:22:48] weaksauce: has joined #RubyOnRails
[20:25:52] rhizome: Parameters: {"action"=>"create", "controller"=>"sessions", "format"=>"lua"}
[20:26:00] rhizome: ppl will try anything
[20:26:05] robbyoconnor: has joined #RubyOnRails
[20:27:46] rubyonrailed: has joined #RubyOnRails
[20:28:56] EminenceHC: has joined #RubyOnRails
[20:29:31] nickenchuggets: has joined #RubyOnRails
[20:30:52] djangoJocky: has joined #RubyOnRails
[20:31:44] cornerma1: has joined #RubyOnRails
[20:32:15] dmarr: I am trying to render an image and in the response I see Content-Transfer-Encoding:binary but no Content-Size header
[20:32:42] dmarr: in my controller: send_data @attachment.filedata, type: 'image/jpeg', disposition: 'inline'
[20:34:03] dmarr: and im seeing this in my server log which may not be what i want: Rendered text template (0.0ms)
[20:34:21] rhizome: maybe try send_file
[20:34:59] annlewis: has joined #RubyOnRails
[20:35:10] dmarr: rhizome: thanks, seems closer: ArgumentError (string contains null byte):
[20:36:29] dmarr: and if I try send_file @attachment.filedata.gsub("\u0000",''), type: 'image/jpeg', disposition: 'inline'
[20:36:41] dmarr: Cannot read file ?????? ...
[20:37:02] rubyonra_: has joined #RubyOnRails
[20:37:28] dmarr: guess i will try this in php
[20:38:06] doodlehaus: has joined #RubyOnRails
[20:41:47] youngbaks: has joined #RubyOnRails
[20:42:08] Brando753: has joined #RubyOnRails
[20:43:56] nym: has joined #RubyOnRails
[20:44:47] nYmo: has joined #RubyOnRails
[20:45:30] djangoJocky: Thank you everyone for helping me resolve. I had manually created that migration file. << issue. Just generated another migration and it generated the schema file as expected.
[20:45:32] Mia: has joined #RubyOnRails
[20:45:32] Mia: has joined #RubyOnRails
[20:46:51] purplexed-: has joined #RubyOnRails
[20:47:00] cluda01: has joined #RubyOnRails
[20:47:15] Megamos: has joined #RubyOnRails
[20:48:19] Mia: has joined #RubyOnRails
[20:48:19] Mia: has joined #RubyOnRails
[20:48:38] purplexed-: Hi all. I'm very new to RoR, and I am having trouble making a form to create a new object, that has a parent object. https://gist.github.com/sonicjolt/62d84fe4698a3a932559 - My problem is, I'm not sure how to get the "host.id", added to the "create new task" form as a hidden input..
[20:49:10] darrencauthon: has joined #RubyOnRails
[20:50:09] rhizome: purplexed-: "nested form" is the google term you're looking for
[20:50:10] purplexed-: a user on the view "hosts/show.html.erb", will click a link, that sends him to "tasks/new_task.html.erb", and on that view, the host id should be a hidden input
[20:50:26] purplexed-: nested form, right
[20:52:28] purplexed-: oh, I guess I'm thinking about it wrong. like I want to create a new task, with a parent host. And instead, I should be thinking I have a host, and I want to add a task
[20:52:52] rhizome: :thumbsup:
[20:53:26] rhizome: user/1/new_task, but you don't need a separate action for that, because you could/should be using Task#create
[20:53:45] purplexed-: yeah, I think I understand that :)
[20:53:54] purplexed-: it's just my form_for that is wrong
[20:54:17] purplexed-: i think.. we?ll see :)
[20:54:18] rhizome: new_user_task_path
[20:54:29] Axy: has joined #RubyOnRails
[20:54:29] Axy: has joined #RubyOnRails
[20:56:13] cluda01: has left #RubyOnRails: ()
[20:57:51] arup_r: has joined #RubyOnRails
[20:59:43] Mia: has joined #RubyOnRails
[21:02:37] moeabdol: has joined #RubyOnRails
[21:03:32] nymble: has joined #RubyOnRails
[21:03:58] rromanch_: has joined #RubyOnRails
[21:05:47] mices: has joined #RubyOnRails
[21:06:07] mices: i'm trying to uninstall all gems but they're still there when i run `gem list`
[21:06:19] Kingdutch: In Rails 5 --api, how do I set the root (/) uri to display a 404? I'm not sure what else I should be displaying at root because it's not a resource?
[21:06:52] adavia: has joined #RubyOnRails
[21:09:50] Mia: has joined #RubyOnRails
[21:09:50] Mia: has joined #RubyOnRails
[21:09:53] MartinElvar: has joined #RubyOnRails
[21:10:08] MartinElvar: has joined #RubyOnRails
[21:10:21] asianMike: has joined #RubyOnRails
[21:13:17] Glenny: has joined #RubyOnRails
[21:16:31] purplexed-: rhizome: got it to work, thanks!"
[21:18:03] rgtk: has joined #RubyOnRails
[21:19:37] moeabdol: has joined #RubyOnRails
[21:23:10] owenjones: has joined #RubyOnRails
[21:23:41] mices: has joined #RubyOnRails
[21:24:12] mices: has joined #RubyOnRails
[21:24:46] mices: how do i uninstall all global gems
[21:24:58] mices: the gems i installed as root
[21:27:08] rickmasta: has joined #RubyOnRails
[21:27:23] yoongkang: has joined #RubyOnRails
[21:28:12] arup_r: has joined #RubyOnRails
[21:29:14] sasi: has joined #RubyOnRails
[21:31:41] crystalneth: has joined #RubyOnRails
[21:32:49] Tref: has joined #RubyOnRails
[21:33:41] djbkd: has joined #RubyOnRails
[21:36:04] annlewis: has joined #RubyOnRails
[21:36:07] Mia: has joined #RubyOnRails
[21:36:07] Mia: has joined #RubyOnRails
[21:37:21] chipotle: has joined #RubyOnRails
[21:37:31] mices: seemingly i can install gems to my application or to my system?
[21:38:33] mices: what's the difference between local and global gems
[21:38:51] Ajkthx: has joined #RubyOnRails
[21:38:59] techandy1: has joined #RubyOnRails
[21:39:17] Ajkthx: is codecademy an OK place to learn this language
[21:39:20] Ajkthx: or am i wasting my time
[21:39:26] techandy1: hi all, how is it going?
[21:40:01] chipotle_: has joined #RubyOnRails
[21:40:02] mices: i think i'm making a mistake intsalling rails as root?
[21:40:18] mices: i dunno i'm not clear on this
[21:40:33] robbyoconnor: has joined #RubyOnRails
[21:40:59] tbuehlmann: mices, yes, don't install gems as root
[21:41:20] mices: not even rails?
[21:41:21] aevitas: has joined #RubyOnRails
[21:41:26] tbuehlmann: yes, not even rails
[21:41:34] mices: and now that i just did what should i do
[21:41:56] mices: still running even
[21:41:57] tbuehlmann: I personally stick with ruby-install (https://github.com/postmodern/ruby-install) for installing a ruby version and using chruby (https://github.com/postmodern/chruby) to switch between them
[21:42:20] tbuehlmann: when installing gems, they'll be installed somewhere in your home directory
[21:42:20] mices: now i'm gonna have to manually uninstall all these gems again?
[21:42:44] mices: what's the different root vs user
[21:43:14] mices: difference
[21:43:27] mices: how am i gonna suffer by installing gems as root
[21:43:53] mices: i guess what happens is i end up with a mix of local and root gems?
[21:44:00] mices: or local and global gems?
[21:44:20] tbuehlmann: you are installing gems for all users when using sudo
[21:44:41] Axy: has joined #RubyOnRails
[21:44:41] Axy: has joined #RubyOnRails
[21:45:08] tbuehlmann: it's just not needed, right?
[21:45:14] mices: sudo gem clean
[21:45:25] mices: should uninstall all sys gems?
[21:45:35] tbuehlmann: you wanted to switch the ruby version anyway, right?
[21:45:36] mices: i mean gems (not sys gems)
[21:45:54] mices: yea i did already
[21:46:09] tbuehlmann: how did you install the different ruby version?
[21:46:11] simplyianm: has joined #RubyOnRails
[21:46:19] mices: i had to go higher for devise option reconfirmable it didn't work with my rails version 1.9.1
[21:46:24] chipotle: has joined #RubyOnRails
[21:46:31] mices: it's for 1.93 or higher
[21:46:51] stamina: has joined #RubyOnRails
[21:46:59] mices: it's only taking a long time cause this is my first time doing this ha ha
[21:49:06] mices: rvm update
[21:49:13] Scripore: has joined #RubyOnRails
[21:49:16] tbuehlmann: ah, so you're using rvm
[21:49:34] mices: that was a wing dinger of an installation too
[21:49:55] darrencauthon: has joined #RubyOnRails
[21:50:02] mices: just joking that went smoothly enough
[21:50:11] alias-ls-to-rm: has joined #RubyOnRails
[21:50:18] tbuehlmann: no idea how it's gonna work using rvm. just uninstall the gems you previously installed via sudo and reinstall without sudo?
[21:51:02] mices: this is why my .gemrc has no effect
[21:51:15] flip_digits: has joined #RubyOnRails
[21:51:16] mices: because i'm always installing them as root
[21:51:20] Mia: has joined #RubyOnRails
[21:51:20] Mia: has joined #RubyOnRails
[21:51:37] mices: but if i try to install a gem as user i get permissions denied
[21:51:47] b2zeldafreak: has joined #RubyOnRails
[21:51:53] mices: which means what?
[21:52:05] mices: that's how i came to install gems as root in the first place
[21:52:21] tbuehlmann: dunno, I don't use rvm
[21:52:35] mices: neither do i, i just installed it today
[21:52:37] allcentury: has joined #RubyOnRails
[21:52:57] sarink: has joined #RubyOnRails
[21:53:37] tbuehlmann: stuff like that made me change from using rvm to use ruby-install and chruby (which "just works" for me)
[21:53:41] Cervajz_: has joined #RubyOnRails
[21:54:13] njero: has joined #RubyOnRails
[21:54:50] nickenchuggets: has joined #RubyOnRails
[21:55:07] mices: hmm let's see how it goes, maybe i'll have to follow your lead
[21:55:12] Liza18: has joined #RubyOnRails
[21:55:30] mices: if these docs ever get finished installing
[21:56:22] mices: what are the methodologies, why would someone choose to install gems as root or user
[21:56:36] bruno-: has joined #RubyOnRails
[21:57:53] duncannz: has joined #RubyOnRails
[21:58:02] meoblast001: has joined #RubyOnRails
[21:59:04] tbuehlmann: mices, gems installed via sudo are installed for all users: http://stackoverflow.com/a/2119413
[21:59:47] rakm: has joined #RubyOnRails
[22:01:42] mices: thank you, i just read that i shouldn't install gems as root
[22:02:40] rromanch_: has joined #RubyOnRails
[22:02:55] tbuehlmann: that's what I told you 20 minutes ago :p
[22:03:35] yfeldblum: has joined #RubyOnRails
[22:03:48] b2zeldafreak: I'm getting this error when I try to use rake: "You have already activated rake 10.1.0, but your Gemfile requires rake 10.4.2." I'm having trouble findinga solution on Google, can anyone help me?
[22:03:52] mices: so now i have a choice a /home or /home/user
[22:04:04] mices: from which to run gem install commands
[22:04:10] mices: does it make a difference?
[22:04:22] mices: s/choice a/choice of/
[22:04:24] tbuehlmann: b2zeldafreak, have you tried `$ bundle update rake`?
[22:05:17] b2zeldafreak: On my staging server I get a warning about only running that on a development machine. Rake is not explicitly in my Gemfile, it is in my Gemfile.lock for 10.4.2
[22:05:59] tbuehlmann: b2zeldafreak, then try `$ bundle exec rake` instead of just `$ rake`
[22:06:42] tbuehlmann: and even better, add rake to your gemfile, bundle install, and always use `$ bundle exec rake` (or `$ bin/rake` if existing)
[22:06:47] b2zeldafreak: Is there a way to fix it so I don't need bundle exec?
[22:07:08] tbuehlmann: you want to use bundle exec (or bin/rake)
[22:07:33] b2zeldafreak: What's the difference between bundle exec and just rake? Or is there a good place I can go online to read about that?
[22:07:34] tbuehlmann: that way you're telling bundler to use the bundled version, not any installed rake gem
[22:08:05] b2zeldafreak: Ok, so best practice is actually to say 'bundle exec' always? (Like on my deployment scripts?)
[22:08:08] shibabu: has joined #RubyOnRails
[22:08:46] tbuehlmann: yes, or use a binstub from the bin/ directory if existing
[22:09:10] b2zeldafreak: What is a binstub?
[22:10:11] tbuehlmann: see http://blog.barbershoplabs.com/blog/2013/03/01/upgrading-to-rails-40-binstubs
[22:11:27] ferz_: has joined #RubyOnRails
[22:12:20] zpe: has joined #RubyOnRails
[22:14:02] b2zeldafreak: Should rake go before or after rails in the gemfile?
[22:15:27] smathy: has joined #RubyOnRails
[22:15:28] tbuehlmann: it shouldn't really matter
[22:16:02] tbuehlmann: b2zeldafreak, you actually don't need it in the gemfile. have you tried without it being in the gemfile?
[22:16:05] mices: tbuehlmann: always use bundle exec rake instead of bundle install?
[22:16:18] tbuehlmann: mices, no, that doesn't make sense
[22:16:27] mices: instead of what?
[22:16:34] tbuehlmann: instead of just rake
[22:17:00] b2zeldafreak: Oh yeah, I guess I don't need it in the Gemfile if I'm using bundle exec
[22:17:04] yoongkang: has joined #RubyOnRails
[22:17:47] mices: i have to intsall gems from the directory containing my .gemrc file if i want the file to have any effect right?
[22:17:55] tbuehlmann: newer versions of rails have a bin/rake file. check if it exists
[22:18:26] tbuehlmann: mices, no, that file _should_ have effect everywhere
[22:18:52] mices: should be in /home or /home/<username> ?
[22:19:38] tbuehlmann: mices, what does the rvm docs say?
[22:20:58] dmarr: anyone have any thoughts on this? http://stackoverflow.com/questions/33713993/how-do-i-extract-an-image-from-a-mediumtext-myisam-field
[22:21:09] pimpin: has joined #RubyOnRails
[22:21:47] mices: can you give me the link
[22:22:33] tbuehlmann: mices, seriously, that's one google result away..
[22:22:34] tbuehlmann: https://rvm.io/gemsets/basics
[22:23:18] jhass: mices: gist your `rvm info` output
[22:23:48] jhass: mices: and `gem env` too while we're at it
[22:26:33] arta82: has joined #RubyOnRails
[22:27:12] mices: https://gist.github.com/mices/5217b8cd876e3f825305
[22:29:31] IrishGringo: has joined #RubyOnRails
[22:31:38] jhass: mices: you installed RVM as root
[22:31:56] mices: so uninstall it and reinstall as user?
[22:32:09] jhass: that would be good, yes
[22:32:14] mices: ok cool ty
[22:32:28] jhass: rvmsudo implode iirc
[22:32:43] jhass: or rvmsudo rvm ? I never remember
[22:33:49] mices: permission denied
[22:34:04] mices: `gem install rvm`
[22:34:07] mices: permission denied
[22:34:13] jhass: who told you to run gem install rvm?
[22:34:56] djbkd: has joined #RubyOnRails
[22:35:00] rhizome: voices in head
[22:35:52] b2zeldafreak: tbuehlmann, Did you say I could also use bin/rake instead of bundle exec?
[22:36:08] tbuehlmann: bin/rake instead of bundle exec rake
[22:36:41] b2zeldafreak: Ok cool. It looks like half of the deploy scripts were using bin/rake, but the ones that were failing were just using rake
[22:36:51] annlewis: has joined #RubyOnRails
[22:37:27] mices: stable with ruby, additionally with rails, or with jruby rails and puma ?
[22:37:52] jhass: whatever pleases you the most
[22:37:57] mices: ruby's already installed (i installed it as root)
[22:38:43] mices: don't i need without ruby
[22:38:44] jhass: what do you mean?
[22:38:51] tbuehlmann: do us all a favor and don't use jruby for now, will you?
[22:39:20] jhass: we're installing RVM to install Ruby
[22:39:33] mices: ruby's installed
[22:40:06] jhass: cool, then we all can go home now!
[22:40:27] mices: ruby is a gem to rvm ?
[22:40:47] jhass: I don't even ...
[22:41:15] mices: gem uninstall -i /usr/local/rvm/gems/ruby-2.2.1@global rvm
[22:41:21] mices: is the command i ran
[22:41:28] mices: so now ruby's still installed or not?
[22:41:31] mices: seemingly would be not
[22:41:47] jhass: that's not sufficient to remove your global RVM install
[22:41:51] jhass: who told you it is?
[22:42:02] arta82: has joined #RubyOnRails
[22:43:03] mices: http://stackoverflow.com/questions/4667150/what-is-the-best-way-to-uninstall-gems-from-a-rails3-project
[22:43:21] mices: no that's not it never mind
[22:43:27] mices: i don't know where i got that form
[22:43:40] mices: can you give me the right syntax
[22:43:56] jhass: I don't know it off the top of my head, I tried above
[22:44:03] jhass: rvmsudo implode, rvmsudo rvm implode, something like that
[22:46:32] viiralvx: has joined #RubyOnRails
[22:47:15] mices: says i should restart now if i wanna have a fresh environment
[22:47:46] jhass: if you don't know how you get yourself a fresh login shell ...
[22:47:49] mices: i deleted the rvm group and /etc/rvmrc
[22:48:03] sdwrage: has joined #RubyOnRails
[22:48:08] mices: close terminal and open another?
[22:48:14] mices: or log out?
[22:48:17] mices: and log back in?
[22:48:30] jhass: I don't know if your terminal launches a login shell or not
[22:48:38] jhass: login and logout should certainly do
[22:50:41] mices: has joined #RubyOnRails
[22:51:02] pimpin: has joined #RubyOnRails
[22:53:34] sarink: has joined #RubyOnRails
[22:55:57] mices: so why is ruby 1.9.3 still installed
[22:55:59] EminenceHC: has joined #RubyOnRails
[22:56:16] freezevee: has joined #RubyOnRails
[22:56:27] jhass: because it wasn't installed via the RVM we removed, I guess
[22:57:03] dmarr: if i have a field of stored image which i can retrieve with 'select binary filedata from attachment' how would i use that in a model
[22:58:08] jhass: dmarr: what error do you get just trying to access the attribute?
[22:58:13] chipotle: has joined #RubyOnRails
[22:58:38] djbkd: has joined #RubyOnRails
[22:58:41] EasyCo: has joined #RubyOnRails
[22:59:20] htmldrum: has joined #RubyOnRails
[23:00:47] mices: with ruby or with rails (poor man's railsinstaller) ?
[23:01:16] mices: that's ruby and rails i guess
[23:02:02] jhass: I don't get what you're asking
[23:02:14] dmarr: jhass: im seeing the data as a stream from what i can tell
[23:02:33] dmarr: a = Attachment.find(1); a.filedata => \xC3 ...
[23:02:42] mices: curl -sSL https://get.rvm.io | bash -s stable --ruby vs \curl -sSL https://get.rvm.io | bash -s stable --rails
[23:03:08] jhass: dmarr: well, that's not any output .inspect would produce. I assume you omitted a " ?
[23:03:37] mices: https://rvm.io/rvm/install
[23:03:40] jhass: dmarr: check a.filedata.class and if it returns String, a.filedata.encoding
[23:04:01] mlitwiniuk: has joined #RubyOnRails
[23:04:32] jhass: mices: as said previously, whatever pleases you, it makes no real difference. Just don't run it as root again. Never run things as root unless you can explain why you need to or someone who can told you so
[23:04:35] dmarr: => #<Encoding:ASCII-8BIT>
[23:05:05] jhass: dmarr: so that's what Ruby uses for arbitrary byte sequences, ASCII-8bit is actually no encoding at all
[23:05:33] jhass: dmarr: if you were to File.write that string now, you'd probably be able to open it with an image viewer
[23:07:53] johnflux: has joined #RubyOnRails
[23:07:54] johnflux: has joined #RubyOnRails
[23:07:56] mices: jhass: ty
[23:08:16] mices: and now i'll be installing gems the same old way or using rvm?
[23:08:20] annlewis: has joined #RubyOnRails
[23:08:22] dmarr: ok thanks jhass i'll try that in a bigt
[23:08:54] jhass: mices: I don't know what "the same old way" is in your head
[23:09:19] mices: `gem install <gemname>`
[23:09:41] pydave6367: has joined #RubyOnRails
[23:11:52] allcentury: has joined #RubyOnRails
[23:12:50] treaki: has joined #RubyOnRails
[23:13:15] moeabdol: has joined #RubyOnRails
[23:15:41] marr: has joined #RubyOnRails
[23:17:51] VeryBewitching: has joined #RubyOnRails
[23:19:08] rgtk: has joined #RubyOnRails
[23:22:27] theblang: has joined #RubyOnRails
[23:22:31] trosborn: has joined #RubyOnRails
[23:23:24] x-light: has joined #RubyOnRails
[23:24:04] Tref: has joined #RubyOnRails
[23:28:32] simplyianm: has joined #RubyOnRails
[23:29:11] FooMunki: has joined #RubyOnRails
[23:31:18] theblang: has joined #RubyOnRails
[23:37:48] gusrub: has joined #RubyOnRails
[23:45:12] dmarr: jhass: seems to me this should work <%= '<img src="data:type=text/jpeg;base64,%s">' % Base64.encode64(pic.filedata) %> to display the image, but it is displaying the <img html in the browser
[23:46:16] fryguy: dmarr: you need to mark the string as html_safe otherwise rails will escape it
[23:46:27] dmarr: (as just a big text string... <img src="data:type=text/jpeg;base64,w7/DmMO/w6AAE
[23:46:28] jhass: dmarr: or have the html outside
[23:46:28] fryguy: or just don't even use <%= because it's not needed
[23:46:41] owenjones: has joined #RubyOnRails
[23:47:13] jhass: dmarr: <img src="data:type=text/jpeg;base64,<%= Base64.encode64(pic.filedata) %>" />
[23:47:29] jhass: dmarr: are you sure that was the right mime type btw? text/jpeg seems weird
[23:48:03] roxtrongo: has joined #RubyOnRails
[23:48:04] jhass: yeah, it's image/jpeg
[23:48:42] user1138: has joined #RubyOnRails
[23:48:57] dmarr: doesn't seem to work though
[23:49:16] VeryBewitching: The image has to be a .jpg
[23:49:16] dmarr: i think the db has to do the binary conversion somehow
[23:49:24] b2zeldafreak: Is there ever a time where you should have a *.js.erb in app/views rather than app/assets?
[23:49:52] dmarr: VeryBewitching: yes it is stored in a db as ascii though
[23:50:03] VeryBewitching: dmarr: ASCII or blob?
[23:50:08] fryguy: b2zeldafreak: if you have a controller action that responds to js
[23:50:13] jhass: dmarr: how sure are you it's jpg btw?
[23:50:13] flip_digits: has joined #RubyOnRails
[23:50:15] rhizome: b2zeldafreak: pretty much always for js.erb
[23:50:39] dmarr: jhass: In dbVis I did a SELECT BINARY and then right clicked the cell and Save as file..
[23:50:40] b2zeldafreak: ok, thanks. I have a project that I inherited from a team last year, and sometimes I don't know if they're the dumb ones or if I am
[23:50:56] dmarr: then I file <thefile> and it spits out JPEG
[23:51:01] jhass: dmarr: what's pic.filedata.bytes.first(2).map {|b| b.to_s(16) }.join ? Also .last(2) ?
[23:51:02] rhizome: i think it's bad juju to use erb in assets
[23:51:30] matthewd: dmarr: Can you please show a few more characters after '\xC3' ?
[23:51:47] dmarr: VeryBewitching: pretty sure ASCII becaue when I output the prop (a.filedata.encoding): <Encoding:ASCII-8BIT>
[23:52:12] b2zeldafreak: I wasn't sure whether JS belonged in views at all, but I guess it would have to if it's also .erb
[23:52:15] jhass: dmarr: as I explained ASCII-8bit is Ruby speak for saying no encoding at all, true ASCII is US-ASCII
[23:52:15] fryguy: dmarr: saving binary as ASCII == you are gonna have a bad time
[23:52:36] rhizome: b2zeldafreak: respond_to ... format.js
[23:52:55] dmarr: matthewd: sure, im in a console but not sure how to truncate the output
[23:53:10] jhass: dmarr: see my snippet above
[23:53:16] matthewd: dmarr: Any sequence of 10 characters from somewhere in the string would be fine
[23:54:21] dmarr: jhass: matthewd first(2): "c3bf", last(2): "c399"
[23:54:43] jhass: well, the jpeg magic bytes are ff d8
[23:54:50] jhass: and ff d9 at the end
[23:55:09] dmarr: yeah i think thats why i need to specify somewhere to SELECT BINARY
[23:55:25] matthewd: dmarr: What RDBMS are you using, and what's the (SQL) type of the column?
[23:55:43] dmarr: but not sure where. if I select binary then output that data to disk in dbvis its an actual jpeg fiel
[23:55:53] dmarr: matthewd: mysql, mediumtext
[23:57:25] dmarr: http://stackoverflow.com/questions/33713993/how-do-i-extract-an-image-from-a-mediumtext-myisam-field my php 'college try'
[23:58:04] jhass: well, storing images in the db is probably not the best idea in the first place, not using BLOB then ...
[23:58:21] blackmesa: has joined #RubyOnRails
[23:59:56] dmarr: yah this is data from the bad old days