« Back to channel list

#RubyOnRails - 17 January 2018

« Back 1 day Forward 1 day »
[00:05:10] catphish: has joined #RubyOnRails
[00:06:28] catphish: is this normal? is it s bug? i don't entirely understand what's happening: https://paste.ubuntu.com/26401145/
[00:07:23] NoGodDamnIdea: has joined #RubyOnRails
[00:07:29] catphish: to clarify the situation above, Sonar::SshKey is not defined, but there is an activerecord model SshKey
[00:12:28] havenwood: catphish: Until Ruby 2.5, there was a funky behavior where toplevel constants could be accessed inside nested namespaces.
[00:12:54] havenwood: catphish: That **feature** was removed in 2.5.
[00:13:17] catphish: thanks, it's a little odd, it's only sort-of-accessible
[00:13:27] havenwood: catphish: You can specify you mean toplevel by prefixing two colons, like: ::SshKey
[00:13:45] havenwood: https://bugs.ruby-lang.org/issues/11547
[00:14:36] bronson: has joined #RubyOnRails
[00:14:42] catphish: i see, thanks, sort of explains what i'm seeing
[00:14:42] havenwood: catphish: Does it work with `::SshKey.all` instead of `SshKey.all`?
[00:15:20] catphish: yes, both of those work :)
[00:16:01] catphish: i thought it puzzling that the class was accessible in the wrong namespace, but then suddenly disappared
[00:16:26] havenwood: catphish: Yeah, I'm very glad that the janky top-level lookup was removed.
[00:16:33] havenwood: catphish: 2.5 ftw!
[00:17:26] havenwood: It caused a lot of confusion.
[00:17:33] catphish: cool, it doesn't matter in practice, as long as it doesn't access the top level class when the one i actually asked for does exist
[00:18:02] catphish: i wonder why it exists? i assume it's related to the mechanism that searches upward for a match
[00:19:16] havenwood: catphish: I think the thinking was that it'd be convenient. After the tears of thousands of developers, the thinking changed to be that this is awful, we should stop it.
[00:19:40] havenwood: I've run into issues with it myself, and have seen a lot of other folk as well. So I'm glad it was backed out.
[00:19:54] catphish: does this mean that one will always have to use ::Class to access a top level class from a module? or is that separate?
[00:20:26] catphish: anyway, glad to hear it's dying, i never enjoy ambiguity :)
[00:24:33] havenwood: catphish: No, you don't need to prefix :: now always, though it's handy when you mean it.
[00:24:56] havenwood: catphish: In 2.4: FOO = 'OMGWTFBBQ'; class Bar; end; Bar::FOO #=> "OMGWTFBBQ" # with a warning
[00:25:16] fmcgeough: has joined #RubyOnRails
[00:25:27] havenwood: catphish: The same in 2.5: #!> NameError: uninitialized constant Bar::FOO
[00:26:40] havenwood: catphish: https://blog.bigbinary.com/2017/10/18/ruby-2.5-has-removed-top-level-constant-lookup.html
[00:29:31] catphish: i can't believe that feature was ever useful, thank you for the explanation!
[00:35:33] fmcgeough: has joined #RubyOnRails
[00:57:51] zigzig: has joined #RubyOnRails
[01:06:53] rubberduck_: has joined #RubyOnRails
[01:09:25] rubberduck_: I'm attempting to store user email settings as a JSONB column in my rails app via ActiveRecord::Store. So far, I've got a jsonb column and store :email_preferences, coder: JSON. Everything seems to work except I'm unable to query the data. For some reason, everything is being stored with escaped quotes. E.g. user.update(email_preferences: {some-email: false}) is stored as "{\"some-email\":false}" in postgres. Is this intend
[01:15:18] bronson: has joined #RubyOnRails
[01:18:29] rubberduck_: Ah, ok, it seems like I didn't need to use `store :email_preferences` at all.
[01:52:42] workmad3: has joined #RubyOnRails
[02:16:35] bronson: has joined #RubyOnRails
[02:34:02] wethu: has joined #RubyOnRails
[02:37:32] zigzig: has joined #RubyOnRails
[02:37:32] cschneid_: has joined #RubyOnRails
[02:39:07] _aeris_: has joined #RubyOnRails
[02:42:26] Jayson_Virissimo: has joined #RubyOnRails
[02:45:40] jnollette: has joined #RubyOnRails
[02:53:41] Jayson_Virissimo: has joined #RubyOnRails
[03:03:24] Jayson_Virissimo: has joined #RubyOnRails
[03:05:27] cpruitt: has joined #RubyOnRails
[03:17:14] bronson: has joined #RubyOnRails
[03:21:28] orbyt_: has joined #RubyOnRails
[03:30:59] chocoelho: has joined #RubyOnRails
[03:40:12] darkhanb: has joined #RubyOnRails
[03:40:30] ali_g: has joined #RubyOnRails
[03:43:07] cpruitt: has joined #RubyOnRails
[03:53:25] workmad3: has joined #RubyOnRails
[03:55:35] orbyt_: has joined #RubyOnRails
[04:18:06] bronson: has joined #RubyOnRails
[04:40:04] timdotrb_: has joined #RubyOnRails
[04:42:53] Mutsuhito: has joined #RubyOnRails
[05:04:30] KeyJoo: has joined #RubyOnRails
[05:19:12] bronson: has joined #RubyOnRails
[05:22:14] thejamespinto: has joined #RubyOnRails
[05:24:23] zigzig: has joined #RubyOnRails
[05:31:30] ur5us: has joined #RubyOnRails
[05:34:58] iamarun: has joined #RubyOnRails
[05:43:26] za1b1tsu: has joined #RubyOnRails
[06:02:34] apeiros: has joined #RubyOnRails
[06:03:59] cschneid: has joined #RubyOnRails
[06:10:17] ahrs: has joined #RubyOnRails
[06:10:58] armyriad: has joined #RubyOnRails
[06:19:46] bronson: has joined #RubyOnRails
[06:24:24] chouhoulis: has joined #RubyOnRails
[06:31:40] reber: has joined #RubyOnRails
[06:35:20] roshanavand: has joined #RubyOnRails
[06:46:35] cschneid: has joined #RubyOnRails
[06:47:38] _aeris_: has joined #RubyOnRails
[06:50:52] _aeris_: has joined #RubyOnRails
[07:00:38] darkhanb: has joined #RubyOnRails
[07:02:32] thejamespinto: has joined #RubyOnRails
[07:14:57] morfin60: has joined #RubyOnRails
[07:14:58] iamarun: has joined #RubyOnRails
[07:15:12] morfin60: when serialization of value happens in AR model?
[07:15:49] morfin60: i need to parse value of field(split by ;) before serialization happens
[07:17:41] chouhoulis: has joined #RubyOnRails
[07:20:38] bronson: has joined #RubyOnRails
[07:25:28] conta: has joined #RubyOnRails
[07:28:20] DrYockel: has joined #RubyOnRails
[07:34:19] timdotrb_: has joined #RubyOnRails
[07:37:21] AzaToth: has joined #RubyOnRails
[07:40:03] mtkd: has joined #RubyOnRails
[07:46:54] vichib: has joined #RubyOnRails
[07:55:08] workmad3: has joined #RubyOnRails
[08:04:26] roshanavand: has joined #RubyOnRails
[08:07:18] dminuoso: morfin60: You can use http://api.rubyonrails.org/classes/ActiveRecord/AttributeMethods/BeforeTypeCast.html
[08:10:47] zigzig: has joined #RubyOnRails
[08:13:16] apeiros: has joined #RubyOnRails
[08:19:09] kiffpowerss: has joined #RubyOnRails
[08:19:30] kiffpowerss: Hey guys. My date is saved as a string in this format = D:20171229111737+01'00'
[08:19:39] kiffpowerss: How can I turn this into a date ?
[08:20:32] kiffpowerss: the following works = 20171229111737+01
[08:20:52] dminuoso: kiffpowerss: https://ruby-doc.org/stdlib-2.5.0/libdoc/date/rdoc/Date.html#method-c-strptime
[08:21:12] dminuoso: Or equivalently http://ruby-doc.org/stdlib-2.5.0/libdoc/time/rdoc/Time.html#method-c-strptime
[08:21:36] morfin60: can i somehow have relation to get last Block in Pool(Pool has_many :block)?
[08:21:41] dminuoso: kiffpowerss: Also in other news: https://xkcd.com/1179/
[08:22:03] bronson: has joined #RubyOnRails
[08:22:07] kiffpowerss: Ey ey. Not my choice :d
[08:23:18] kiffpowerss: I think I need to remove the "D:" and the "'00'" or I cant get it to work
[08:24:13] dminuoso: kiffpowerss: No you dont. Just use strptime.
[08:24:45] cpruitt: has joined #RubyOnRails
[08:25:16] tbuehlmann: morfin60: you could limit(1) and order appropriately, that would return a relation
[08:26:17] kiffpowerss: Date.strptime("D:20171229111737+01'00'", '%Y-%m-%d') gives me => ArgumentError: invalid date
[08:27:08] morfin60: well, i need to show last block as embedded relation in JSONAPI::Resource
[08:27:36] morfin60: so when i request /api/pools/23.json i should get not just relation blocks but also last_block(embedded)
[08:27:50] morfin60: or not embedded, anyway
[08:28:42] dminuoso: kiffpowerss: Do you expect strptime to magically know what format that is in?
[08:29:03] dminuoso: kiffpowerss: The entire point of strptime is that you explicitly specify the format it should use to parse that bizarre format with.
[08:29:14] dminuoso: I think you're conflating strptime with strftime.
[08:29:37] kiffpowerss: Oh lol. Thought it recognizes format and gives me the date in the specified format
[08:29:47] dminuoso: kiffpowerss: How should it do that?
[08:30:10] kiffpowerss: looking at lengths and symbols used
[08:30:20] dionysus69: has joined #RubyOnRails
[08:30:35] dminuoso: kiffpowerss: Ill tell you the following date: 11101110
[08:30:40] dminuoso: kiffpowerss: Now what date is that?
[08:31:42] dminuoso: kiffpowerss: Maybe its 1110-11-10, maybe its 1110-10-11, maybe its 1011-10-11, maybe its 1011-11-10, or maybe its something else entirely
[08:31:47] dminuoso: maybe the first two characters are junk
[08:32:08] dminuoso: Unless you are an all knowing machine, its impossible to read an completely arbitrary date format that is not following some standard.
[08:32:23] kiffpowerss: Good point. Yo thanks for the help
[08:37:42] tbuehlmann: morfin60: I don't understand
[08:41:21] mheld: has joined #RubyOnRails
[08:42:11] dminuoso: ACTION pokes tbuehlmann with a jquery
[08:42:45] tbuehlmann: used jQuery just yesterday
[08:42:56] dminuoso: Do you feel shabby?
[08:44:06] tbuehlmann: quite the opposite, I got the thing working and was happy
[08:46:33] dminuoso: jQuery always has that effect, until you're the one who has to maintain the code a year later. :-P
[08:49:51] elomatreb: has joined #RubyOnRails
[08:49:54] tbuehlmann: this happened to me with a vue.js app as well, so… ¯\_(ツ)_/¯
[08:51:48] morfin60: i need to display last block as relation in pool
[08:53:17] srinidhi: has joined #RubyOnRails
[08:53:55] tbuehlmann: morfin60: you could limit(1) and order appropriately, that would return a relation
[08:57:32] cpruitt: has joined #RubyOnRails
[08:58:51] mtkd: has joined #RubyOnRails
[09:02:07] ur5us: has joined #RubyOnRails
[09:03:44] marr: has joined #RubyOnRails
[09:04:25] thejamespinto: has joined #RubyOnRails
[09:19:13] one_zero: has joined #RubyOnRails
[09:23:00] bronson: has joined #RubyOnRails
[09:23:18] Ergo: has joined #RubyOnRails
[09:24:56] morfin60: as i said in json-resources everything is not that simple
[09:25:20] morfin60: because seems like it require actual AR relation
[09:27:53] dminuoso: morfin60: you could limit(1) and order appropriately, that would return a relation
[09:27:55] tbuehlmann: what I described will return a relation
[09:27:59] dminuoso: tbuehlmann: :(
[09:28:07] dminuoso: I was hoping we could do this "repeat until it sinks in" game.
[09:28:43] tbuehlmann: 3 seconds too late, sorry buddy
[09:28:53] dminuoso: morfin60: When tbuehlmann mentioned order, he meant http://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html#method-i-order
[09:29:05] tbuehlmann: in slack, however, I could just delete my message *cough*
[09:29:08] dminuoso: And not Array#order_by
[09:29:27] lunarkitty7: has joined #RubyOnRails
[09:30:03] morfin60: well, i mean realtion like has_one
[09:30:12] dminuoso: Or.. rather Enumerable#sort heh.
[09:31:11] morfin60: actually jsonapi-resources do not allow using relation which does not exist in real model(raises an exception) but i need to return last_block
[09:31:14] cpruitt: has joined #RubyOnRails
[09:31:33] morfin60: so i should have something like has_one :last_block, ???
[09:37:22] conta: has joined #RubyOnRails
[09:43:31] zigzig: has joined #RubyOnRails
[09:53:01] Dykam: has joined #RubyOnRails
[09:54:02] morfin60: use groupwise max?
[09:54:53] cabotto: has joined #RubyOnRails
[09:56:00] workmad3: has joined #RubyOnRails
[09:56:45] cabotto: has joined #RubyOnRails
[10:03:07] cpruitt: has joined #RubyOnRails
[10:03:27] morfin60: nvm, i managed to get last block but still can't make it work with jsonapi-resources =(
[10:08:07] srinidhi: has joined #RubyOnRails
[10:08:07] noob_on_rails: has joined #RubyOnRails
[10:11:18] iamarun: has joined #RubyOnRails
[10:12:50] cabotto: has joined #RubyOnRails
[10:17:34] Torrone: has joined #RubyOnRails
[10:19:38] Torrone: hello, let's supposed I need the id of one record. I just need the id, I don't care about the other fields. How could I query the db without selecting all fields? I've tried with .find(...).pluck(:id) or .select(:id) but that doesn't seem to work
[10:21:43] Cavallari: has joined #RubyOnRails
[10:22:00] KeyJoo: has joined #RubyOnRails
[10:22:59] dminuoso: Torrone: Interesting.. well .pluck(:id).find(1).first
[10:23:21] dminuoso: Although.. I think that .find doesnt do dwhat I think it does :P
[10:23:44] Torrone: dminuoso, indeed, I thought that would work :-D
[10:23:46] bronson: has joined #RubyOnRails
[10:23:55] dminuoso: Torrone: User.where(id: 1).pluck(:id)
[10:24:36] TinkerTyper: has joined #RubyOnRails
[10:24:40] dminuoso: Torrone: pluck is not lazy, so thats why
[10:25:29] Torrone: yeah, that kinda serves the purpose but I think I need to .limit(1) as well to be sure to get an int and not an array
[10:25:48] dminuoso: Torrone: [0] or .first
[10:25:57] dminuoso: Torrone: You can safely rely on the database ensuring uniqueness in this case.
[10:26:34] dminuoso: Torrone: .limit(1) will still produce an array, it will just add an unnecessary LIMIT 1 fragment to the query
[10:26:52] DrYockel: has joined #RubyOnRails
[10:27:00] Torrone: well, I'm not find()ing by id, that's why I need to make sure of the uniqueness
[10:27:01] dminuoso: Torrone: Though keep in mind that if the id is not found you will need to cover that case as well.
[10:27:22] dminuoso: Torrone: I'd personally just live with .find unless profiling told me that there was too much time lost in fetching a large row.
[10:27:46] dminuoso: Torrone: if you do .where(id: blah) then you can only get 0 or 1 records as long as you have a primary key constraint on id.
[10:28:53] tbuehlmann: what about `Model.select(:id).find(1).id`?
[10:29:29] Torrone: profiler is telling me that it's fetching record's translations, which I don't need, I'm using globailize
[10:32:04] Torrone: tbuehlmann, it works, as I had tried before, I had the feeling that .select() didn't work with find()
[10:41:49] cpruitt: has joined #RubyOnRails
[10:45:32] fragamus: has joined #RubyOnRails
[10:46:55] morfin60: Pool.select(:id).pluck(:id) => [1,2,3,4,5,...]
[10:47:05] ephemer0l: has joined #RubyOnRails
[10:47:40] dminuoso: morfin60: there's a shortcut for that, namely Pool.ids
[10:48:08] morfin60: what about other fields :D
[10:48:15] dminuoso: Roll your own.
[10:48:42] morfin60: btw about globalize - i used it recently in one project
[10:49:41] morfin60: it does not load translations if it's not required
[10:51:13] Torrone: morfin60, thanks, it does if you query by translated fields for some reason
[10:52:52] alfiemax: has joined #RubyOnRails
[10:53:35] morfin60: you mean add condition?
[11:01:57] Cavallari1: has joined #RubyOnRails
[11:03:59] mtkd: has joined #RubyOnRails
[11:10:02] crova: has joined #RubyOnRails
[11:11:02] cpruitt: has joined #RubyOnRails
[11:14:02] cschneid: has joined #RubyOnRails
[11:14:55] crova: Greetings everyone, how is it going? I'm trying to implement full text search with Pg_Search and Filterrific but I'm running into an "undefined column" error, if someone has any hint: https://gist.github.com/crova/0e4cbe40f91961c94b2401f2e3fb3794
[11:20:26] srinidhi: has joined #RubyOnRails
[11:24:36] bronson: has joined #RubyOnRails
[11:31:46] defsdoor: has joined #RubyOnRails
[11:34:31] alfiemax: has joined #RubyOnRails
[11:38:22] conta1: has joined #RubyOnRails
[11:47:04] cpruitt: has joined #RubyOnRails
[11:56:20] workmad3: has joined #RubyOnRails
[11:57:02] za1b1tsu: Hi, I've change the name of a column but it does changes in rails env test
[11:57:38] za1b1tsu: I used rails db:migrate RAILS_ENV=test, rake db:test:prepare
[11:57:41] za1b1tsu: but no success
[12:07:20] morfin60: i always forget to migrate test db
[12:11:30] xhoy: restart it
[12:11:54] xhoy: or what morfin60 said :)
[12:25:14] fmcgeough: has joined #RubyOnRails
[12:25:22] bronson: has joined #RubyOnRails
[12:26:54] kapil___: has joined #RubyOnRails
[12:27:42] kapil___: I am using graphql ruby. Anyone using it, how do I add images to field?
[12:32:16] kossae: has joined #RubyOnRails
[12:36:40] apparition: has joined #RubyOnRails
[12:40:31] fschuindt: has joined #RubyOnRails
[12:43:43] cabotto: has joined #RubyOnRails
[12:57:32] cabotto: has joined #RubyOnRails
[13:09:03] mtkd: has joined #RubyOnRails
[13:12:32] xhoy: is there a (default) we to negative a scope? Class.not.scope or something? only thing i can find is manualy adding a negative scope
[13:12:44] xhoy: not_scope
[13:13:09] xhoy: seems like double the work and maybe i missed some rails magic!
[13:26:16] bronson: has joined #RubyOnRails
[13:32:15] arBmind: has joined #RubyOnRails
[13:32:40] workmad3: has joined #RubyOnRails
[13:32:58] fschuindt: xhoy: in this case you should not have a default scope. may you should implement 2 scopes like :scope and :not_scope. or if you plan to stick with this idea, implement a anti-scope yourself
[13:37:41] mrbubbles: has joined #RubyOnRails
[13:38:52] apeiros__: has joined #RubyOnRails
[13:40:38] roshanavand: has joined #RubyOnRails
[13:54:47] chocoelho: has joined #RubyOnRails
[13:56:40] dviola: has joined #RubyOnRails
[14:05:07] cabotto: has joined #RubyOnRails
[14:05:16] arBmind: has joined #RubyOnRails
[14:07:31] apeiros__: there is no equivalent to `where.not(…)` for scopes, right?
[14:07:53] apeiros: as in, MyModel.not.some_scope
[14:08:01] dminuoso: apeiros: scope :foo, { limit(5) }
[14:08:03] dminuoso: apeiros: what would .not do ?
[14:08:16] apeiros: negate a where clause provided by the scope
[14:08:24] dminuoso: apeiros: and about the limit?
[14:09:50] apeiros: oh, fun, I ask the same thing as somebody just recently?
[14:09:53] cabotto: has joined #RubyOnRails
[14:09:59] apeiros: lol, what a coincidence.
[14:10:11] apeiros: hi xhoy. ^5 for apparently having the same issue.
[14:11:43] dminuoso: apeiros: Im rebuilding all my gems currently. But what does Model.where.class give you? :)
[14:12:06] apeiros: WhereChain
[14:13:12] dblessing: has joined #RubyOnRails
[14:13:25] dminuoso: apeiros: it feels wrong to negate a scope
[14:13:41] apeiros: understandable. because scopes conflate all kinds of things, not just filtering.
[14:13:55] dminuoso: apeiros: ultimately the reason for .not is not because its nice, but because we abuse kwargs to mean equality, but we dont have an equivalent to mean non-equality.
[14:13:56] apeiros: jack of all trades…
[14:14:15] apeiros: I partially agree
[14:14:40] apeiros: for strictly filtering scopes, not makes sense beyond the original need you named.
[14:15:09] apeiros: it's stupid to implement multiple filtering scopes twice, given that SQL perfectly understands negation.
[14:15:14] dminuoso: You mean if your scope was just an alias for some where?
[14:15:43] apeiros: yes. which is some >90% of all the scopes here :)
[14:15:57] xhoy: fschuindt: its not a default scope
[14:16:03] apeiros: and almost all others are "only" adding order.
[14:16:08] dminuoso: apeiros: Same here I guess. So I do understand where you are coming from.
[14:16:37] apeiros: and honestly, I wouldn't mind a non-repetitive special case for those scopes.
[14:16:40] xhoy: apeiros: well the anwser is currently there isn't a no scope :)
[14:16:51] apeiros: scope :foo, -> { where() } # feels awfully boilerplatey
[14:17:02] xhoy: and where.not is a weird addon to where, i remember recently we tryed to port it to scopes faild for some reason
[14:17:17] xhoy: apeiros: well especialy if you have where(true) and just want anything that isn't true :)
[14:17:21] dminuoso: apeiros: I think I can see a hack.
[14:17:25] xhoy: so scope.not wouldn't be weird :)
[14:17:27] dminuoso: apeiros: Give me a few minutes.
[14:17:30] apeiros: dminuoso: oh I know how I'd implement it
[14:17:41] apeiros: but I don't want to :)
[14:17:48] dminuoso: apeiros: Uh..
[14:18:22] apeiros: I'd only do that if I'd see me pushing it through upstream. and I don't see me doing that. so it'd become yet another thing to maintain.
[14:19:11] crova: Greetings everyone, how is it going? I'm trying to implement full text search with Pg_Search and Filterrific but I'm running into an "undefined column" error, if someone has any hint: https://gist.github.com/crova/0e4cbe40f91961c94b2401f2e3fb3794
[14:19:39] apeiros: I mean `AR::Base::filter` which just delegates to ::scope is trivial. patching WhereChain#not to accept zero arguments and return a NegateScopeChain would not be too difficult.
[14:19:45] xhoy: apeiros: make a gist :)
[14:20:18] apeiros: xhoy: ok. since I've done my today's task already. I'll see what I can do within 1h. after that I'll just gist what I have and stop.
[14:20:39] dminuoso: apeiros: By the way, Ive been rediscovering so many nice things.
[14:20:40] xhoy: ill ask my dev to lookat it tomorow:)
[14:20:44] dminuoso: apeiros: trailblazers formular is fantastic!
[14:20:55] dminuoso: No more weird broken bootstrap 3 locked unmaintained simple_form magic shenanigans.
[14:21:04] xhoy: dminuoso: we were looking at trailblazer just a week ago
[14:21:24] xhoy: dminuoso: seems like a not so much used thing or am i wrong?
[14:21:44] apeiros: dminuoso: I'm currently shoving off those responsibilities. waiting for the team to settle on something. I lost interest in "battling" that out. and personally you know where I am in that regard ;-) (secret project)
[14:21:46] dminuoso: xhoy: Its not the most popular set of libraries, but they are cleanly written and well maintained.
[14:21:56] dminuoso: apeiros: Heh.
[14:22:21] xhoy: dminuoso: did you migrate stuff?
[14:22:25] apeiros: dminuoso: but trailblazer is one of the things we are looking at too
[14:22:29] dminuoso: xhoy: Im in the process right now yes.
[14:22:55] dminuoso: xhoy: we have completely switched to cells already though.
[14:22:58] dminuoso: We have exactly 1 view left.
[14:23:03] xhoy: there are two options 1) this is basic stuff that should be default, or we are doing something special :)
[14:23:25] xhoy: dminuoso: a lot of work per view?
[14:23:47] dminuoso: xhoy: Kind of, but not because its a lot of work - but we finally gained the ability to refactor into small highly modular and reusable cells.
[14:23:52] dminuoso: Mixed with functional paradigms.
[14:24:37] xhoy: ah so split a lot of stuff
[14:24:45] dminuoso: xhoy: But you can switch to cells with minimal efforts if you want to maintain the structure.
[14:24:49] xhoy: we use 'the same view' with some difference a lot
[14:25:17] xhoy: so there are two options, 1) duplicate the thing, 2) add *lots* and *lots* of else, if stuff
[14:26:43] dminuoso: xhoy: The main effort is mostly just figuring out where all the "magical" dependencies come from
[14:27:00] xhoy: what kind of dependencies?
[14:27:09] dminuoso: Because even cells-rails has practically no helpers. But in the end its really good because you gain a deeper understanding and finer control of your cod.
[14:27:17] bronson: has joined #RubyOnRails
[14:27:44] dminuoso: Each cell has to include the helpers it needs in its view, so its clear dependencies.
[14:28:14] xhoy: and what if you use a helper all over the place?
[14:28:34] xhoy: (customer name or something)
[14:29:04] dminuoso: xhoy: Then you include that helper in each of those cells or derive a new cell class which has the helper included.
[14:29:10] dminuoso: Make dependencies explicit, not global.
[14:29:47] xhoy: oke, but that isn't rly dry?
[14:30:11] dminuoso: xhoy: No it's just being explicit about what stuff you use where.
[14:30:29] xhoy: and when your new you can 'flow' the magic
[14:30:39] xhoy: do you use operations?
[14:31:05] dminuoso: xhoy: Nope, its cells and formular for now
[14:31:39] xhoy: any plans?
[14:31:45] apeiros: lol seriously rails, wtf? `ActiveRecord::Scoping::Named::ClassMethod#valid_scope_name?` is *contrary to its name* not a query method. it's a purely side-effect method.
[14:32:09] apeiros: name that shit assert_valid_scope_name!() or somesuch but ffs., don't imply it's a query by using …name?
[14:32:20] xhoy: apeiros: create a PR :0
[14:32:46] apeiros: xhoy: no. my experience wrt PRs on rails has been entirely negative. I'm not motivated to.
[14:32:54] dminuoso: apeiros: In all fairness its a private method.
[14:33:02] dminuoso: apeiros: If matthewd was here, he'd ask you how you even knew about this method.
[14:33:06] apeiros: dminuoso: that doesn't really make it any better.
[14:33:14] dminuoso: apeiros: Agreed.
[14:33:35] apeiros: and I know about it because of that fun 1h quest for xhoy :o)
[14:33:42] dminuoso: xhoy: Not in the near future. Im mostly busy getting started writing real Haskell tools to get some experience here.
[14:35:25] xhoy: apeiros: we got some prs accepted
[14:37:00] dminuoso: apeiros: What rails version are you on?
[14:37:22] dminuoso: Or *versions as it might be
[14:41:10] apeiros: 1.2.3, 4.1.<latest>, 4.2.<latest> and 5.1.4
[14:41:34] apeiros: at least I think we no longer have any 2.3 and 3.x based apps anymore.
[14:45:37] dminuoso: 1.2.3? ouch :S
[14:45:56] dminuoso: How did that happen?
[14:47:04] rrichardsr3: has joined #RubyOnRails
[14:52:00] thejamespinto: has joined #RubyOnRails
[14:53:29] kapil___: has joined #RubyOnRails
[14:53:41] apeiros: xhoy: ok, Scoping::Named::ClassMethod#filter "works" (smoke tests only). gist: https://gist.github.com/apeiros/ecf7047562d160b6c8c8d27ea13e2b81
[14:54:10] apeiros: dminuoso: "how did that happen" - no priority. it works.
[14:54:21] apeiros: oh, also dminuoso ^
[14:54:40] dionysus69: has joined #RubyOnRails
[14:54:55] apeiros: so remaining 25min trying to patch WhereChain#not :D
[14:57:14] xhoy: apeiros: good luck with that :P
[14:57:51] dminuoso: apeiros: Huh?
[14:58:05] xhoy: dminuoso: he just made a filter, you could use to NOT something :)
[14:58:17] xhoy: now it needs to make it work so it actualy doesn't do something :)
[14:58:38] xhoy: meanwhile i was spending my hour looking at strftime to support quarters :)
[14:58:55] apeiros: this is a replacement for `scope :foo, -> { where(…) }`
[14:59:09] apeiros: removing repetition
[14:59:30] apeiros: it's for defining scopes which can strictly only filter (i.e. are `where` clauses only)
[15:02:07] JJonah: Despite my template `app/views/ldap/enter_connection.html.haml` existing and rails finding it fine when it executes the empty controller method `enter_connection`, i get the following missing template error when I explicitly `render :enter_connnection` from a different controller method:
[15:02:14] JJonah: Missing template ldap/enter_connnection, application/enter_connnection with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :haml, :jbuilder]}. Searched in: * "/src/conjur-ui/app/views" * "/var/lib/gems/2.2.0/gems/render_async-1.1.1/app/views"
[15:02:24] xhoy: JJonah: full path?
[15:02:25] JJonah: what would cause this?
[15:02:45] JJonah: xhoy: what do you mean by full path?
[15:02:45] xhoy: so render 'ldap/enter_connection'
[15:03:06] xhoy: its looking there
[15:03:23] xhoy: restart your server?
[15:03:40] JJonah: xhoy: full path didn't work either, and yeah, already tried restarting...
[15:03:52] xhoy: restarted spring?
[15:04:24] JJonah: xhoy: what is spring? i just stopped the whole server and restarted it.
[15:04:36] xhoy: it something that cashes stuff for you
[15:04:48] xhoy: its a gem , when starting a server or console, its loaded in the background
[15:04:53] xhoy: ps aux |grep spring
[15:05:25] JJonah: xhoy: i doubt it's a caching problem because i do see any changes i make (debugging puts, etc)
[15:06:44] xhoy: anything special in the view? or just hello world?
[15:07:57] JJonah: xhoy: it's a real view, a form. again it renders fine from the controller method of the same name (enter_connection), so i don't think the view itself is the problem...
[15:08:20] xhoy: its rendering a partial?
[15:08:47] xhoy: JJonah: my tip of the day. do something else comeback in an hour, and find a really stupid typo
[15:08:58] JJonah: xhoy: the view `enter_connection.html.haml` is not a partial, but it calls one.
[15:08:59] xhoy: JJonah: everything you say makes sense
[15:09:13] xhoy: so it should work
[15:09:24] JJonah: xhoy: one possibly relevant detail. the view is called from withing a rescue, like so:
[15:09:41] JJonah: rescue => e
[15:09:41] JJonah: @error_msg = JSON.parse(e.response)['error']['message']
[15:09:41] JJonah: render :'ldap/enter_connnection'
[15:09:46] tcopeland: has joined #RubyOnRails
[15:10:19] JJonah: the `ldap/` is from your first suggestion...
[15:10:40] xhoy: you cannot do that!
[15:11:14] xhoy: (they way you call render, dunno about the rescue
[15:11:30] JJonah: xhoy: ah, what should i be doing?
[15:11:38] xhoy: good question
[15:11:51] xhoy: if you do render :enter_connection
[15:12:11] JJonah: xhoy: yeah that's what i had before
[15:12:24] xhoy: render template: 'ldap/enter_connection'
[15:12:57] istrasci: has left #RubyOnRails: ("PONG :orwell.freenode.net")
[15:14:03] veloutin: JJonah: there's also the good old absolute template path '/ldap/enter_connection' option to try
[15:14:25] cpruitt: has joined #RubyOnRails
[15:15:51] JJonah: xhoy, veloutin: I tried ` render template: '/ldap/enter_connnection'` as well as all without the leading slash and without `ldap/` altogether, but no dice...
[15:16:28] xhoy: remove the first /
[15:16:41] xhoy: move it out of the resque as a test
[15:17:08] xhoy: http://guides.rubyonrails.org/layouts_and_rendering.html#using-render <<
[15:17:26] veloutin: it really looks like it's magic context shenanigans messing up with you hehe
[15:17:39] stefanmayerpopp: hello :) in one of my active records i override a setter and if a value is given i transform the value and would like to save the transformed one into another field. the transformation itself works but putting the value to the field (called tag_aton) does not actually insert the value. in the insert sql its missing and i am wondering if its even possible to set another field from a setter - this is my overriden setter https://pastebin.com/PqX
[15:18:22] apeiros: yay! works :D
[15:18:24] stefanmayerpopp: i am sorry, something went wrong on copy pasting the url: https://pastebin.com/PqXDmaPP
[15:18:34] apeiros: loading order is a bit tricky, though
[15:19:02] JJonah: xhoy: moved it out of rescue, but still same error :(
[15:20:13] xhoy: stefanmayerpopp: self.tag_aton
[15:20:22] stefanmayerpopp: i give it a try :) thanks!
[15:20:26] desperek: has joined #RubyOnRails
[15:21:10] xhoy: JJonah: something weird is happening , try building a blog
[15:21:15] xhoy: or go home for today
[15:21:41] ali_g: has joined #RubyOnRails
[15:22:20] apeiros: xhoy, dminuoso: https://gist.github.com/apeiros/ecf7047562d160b6c8c8d27ea13e2b81 updated. something doesn't seem to work correctly. to_sql emitted a correct looking query, though. but 1h is up :)
[15:22:31] apeiros: usage: YourModel.not.your_scope
[15:22:41] apeiros: or: YourModel.some_scope.not.another_scope
[15:23:51] xhoy: ill let my dev lookat it in the morning :)
[15:24:36] apeiros: xhoy: it's almost certainly broken in one way or another. I regard this as just a "fun" exercise ;-)
[15:25:32] xhoy: buts its a start, as many open source stuff :0
[15:25:52] veloutin: JJonah: my next guess would be that the view renderer or lookup context set up by previous render call attempt (and is @_cached) doesn't like your other attempt
[15:28:24] bronson: has joined #RubyOnRails
[15:28:28] JJonah: veloutin: so i hit the page 'enter_connection', which contains the initial form, then i post it to `test_connection`. then the body of test_connection controller method is, atm of this testing, `render 'enter_connection'`. would that lend credence to your hypothesis?
[15:31:02] alfiemax_: has joined #RubyOnRails
[15:31:07] reber: has joined #RubyOnRails
[15:32:11] veloutin: JJonah: no. I thought if the begin/rescue tried something first that did set those up, but if it fails even with a 1-line body, something else is at play
[15:34:45] veloutin: you did mention being able to render that template from the enter_connection action, right ?
[15:39:10] veloutin: JJonah: can you show actual source in a paste/gist?
[15:39:11] JJonah: veloutin, xhoy: xhoy was right. it was a typo. i had written enter_connnection. unbelievable. thx for your help.
[15:39:34] xhoy: typo's ftw :)
[15:40:11] JJonah: hour wasted on a typo... invigorating way to start off the day!
[15:41:50] JusticeFries: has joined #RubyOnRails
[15:45:37] za1b1tsu: has joined #RubyOnRails
[15:46:16] za1b1tsu: Hello, anyone uses Rabl? How can I render success: true from rabl view
[15:47:22] stefanmayerpopp: @xhoy it was a mix but it works now. self was indeed missing. second thing was something i didnt know yet. i have created a datebase record and saved it to the database. some lines later i change data on the record and make save again on the same object without reloading. when i reload the object before saving it works fine
[15:48:16] stefanmayerpopp: so saving twice without reloading the record after first .save seems to be a problem (or something i do not understand, because i thought its possible to work on the same object while saving it in between.)
[15:49:44] srinidhi: has joined #RubyOnRails
[15:54:34] xhoy: stefanmayerpopp: depence on what you are doing
[15:54:52] xhoy: after_save could change the record for example
[15:54:59] xhoy: or after_commit could change it
[15:56:02] moei: has joined #RubyOnRails
[15:56:17] stefanmayerpopp: ah i see. my problem is that data required for the change is earlist available if some additional data has been loaded. in the meantime the record is saved already to the database until the missing data is returned
[15:56:26] zigzig: has joined #RubyOnRails
[15:56:45] stefanmayerpopp: but maybe i can have the record itself somehow unsaved in the meantime and do the save later when the data is returned. i will think about :) thanks!
[15:57:37] jlebrech: has joined #RubyOnRails
[16:03:33] roshanavand: has joined #RubyOnRails
[16:04:50] bga57: has joined #RubyOnRails
[16:19:40] timdotrb: has joined #RubyOnRails
[16:27:59] skawa: has joined #RubyOnRails
[16:29:06] bronson: has joined #RubyOnRails
[16:33:53] za1b1tsu: https://gist.github.com/bbtdev/1e1aba7180c65d86a8de823f72592199
[16:34:03] za1b1tsu: my @feedback_service is nil
[16:34:09] za1b1tsu: and I dont understand why
[16:34:10] havenwood: za1b1tsu: hi
[16:34:47] za1b1tsu: FeedbackService.new is okay
[16:36:09] za1b1tsu: aah oops type
[16:36:39] troys: has joined #RubyOnRails
[16:37:30] za1b1tsu: but still does not work
[16:38:09] za1b1tsu: NoMethodError:
[16:38:09] za1b1tsu: undefined method `load_feedback_data' for nil:NilClass
[16:38:31] za1b1tsu: rspec sees the last @feedback_services as nil
[16:49:05] desperek: my through: isnt working
[16:51:50] hammer065: has joined #RubyOnRails
[16:52:32] tjbp: has joined #RubyOnRails
[16:54:33] drewintx: has joined #RubyOnRails
[16:55:42] nogic: has joined #RubyOnRails
[16:55:48] za1b1tsu: has joined #RubyOnRails
[16:58:38] srinidhi: has joined #RubyOnRails
[17:03:42] za1b1tsu: has joined #RubyOnRails
[17:12:18] TobiFrano: has joined #RubyOnRails
[17:13:59] one_zero: has joined #RubyOnRails
[17:14:11] mtkd: has joined #RubyOnRails
[17:14:39] Saukk: has joined #RubyOnRails
[17:18:05] desperek: how can i do like
[17:18:16] desperek: perform association on multiple models? havenwood
[17:18:23] desperek: w/o each or map
[17:19:05] one_zero: has joined #RubyOnRails
[17:24:58] Fire-Dragon-DoL: has joined #RubyOnRails
[17:25:40] darkhanb: has joined #RubyOnRails
[17:26:34] elcontrastador: has joined #RubyOnRails
[17:27:56] desperek: yay its workin
[17:29:00] apeiros: has joined #RubyOnRails
[17:29:50] bronson: has joined #RubyOnRails
[17:34:49] Dimik: has joined #RubyOnRails
[17:36:35] reber: has joined #RubyOnRails
[17:36:37] JusticeFries: has joined #RubyOnRails
[17:42:25] DrYockel: has joined #RubyOnRails
[17:46:58] za1b1tsu: SessionsController#create is missing a template for this request format and variant.
[17:47:06] za1b1tsu: Im getting this in my rspec test
[17:47:13] za1b1tsu: Im using rabl for views
[17:47:23] za1b1tsu: I really can't find a solution
[17:50:17] hahuang61: has joined #RubyOnRails
[17:55:24] orbyt_: has joined #RubyOnRails
[17:59:39] kies: has joined #RubyOnRails
[18:03:31] alfiemax: has joined #RubyOnRails
[18:03:35] srinidhi: has joined #RubyOnRails
[18:03:39] aiguuu: has joined #RubyOnRails
[18:12:25] conta: has joined #RubyOnRails
[18:30:52] bronson: has joined #RubyOnRails
[18:34:58] Terens: has joined #RubyOnRails
[18:36:34] Terens: I have a classic rails + erb app. I was having a debate whether when building a 100% javascript frontend I should ditch old controllers and build an API with json_api etc
[18:43:22] sameerynho: has joined #RubyOnRails
[19:05:02] MrCrackPotBuilde: has joined #RubyOnRails
[19:08:03] Cavallari: has joined #RubyOnRails
[19:10:00] guacamole: has joined #RubyOnRails
[19:11:00] guacamole: is there a way to avoid putting params in the url when using form_tag? I have a form_tag and after clicking submit, the subsequent URL has some parameters in it that make it look messy. For instance:
[19:11:19] guacamole: http://localhost:3000/basicinfo?utf8=%E2%9C%93&commit=Continue
[19:11:35] guacamole: i'd prefer localhost:3000/basicinfo
[19:11:40] guacamole: has anyone dealt with this before?
[19:18:23] TobiFrano: has joined #RubyOnRails
[19:19:23] mtkd: has joined #RubyOnRails
[19:25:59] _aeris_: has joined #RubyOnRails
[19:26:02] chouhoulis: has joined #RubyOnRails
[19:26:21] mtkd: has joined #RubyOnRails
[19:30:51] FrostCandy: has joined #RubyOnRails
[19:31:30] bronson: has joined #RubyOnRails
[19:35:11] FrostCandy: So here is a question may not be related to Rails. I added some third party CSS and it works fine on my computer and on every computer in my netowrk. When my boss goes to the site he doesn't get the css downloaded from the same webhead. Any ideas on that? He says he reset his cache.
[19:38:40] FrostCandy: there wouldnt be a user specific session that controls which css page to load right?
[19:43:38] hahuang61: has joined #RubyOnRails
[19:51:59] fryguy: well, what is the url of the css that's being downloaded
[19:58:16] arBmind: has joined #RubyOnRails
[20:01:53] ali_g: has joined #RubyOnRails
[20:07:19] one_zero: has joined #RubyOnRails
[20:08:37] listenmore: has joined #RubyOnRails
[20:15:53] NoGodDamnIdea: has joined #RubyOnRails
[20:28:04] Jon30: has joined #RubyOnRails
[20:33:29] fragamus: has joined #RubyOnRails
[20:45:35] orbyt_: has joined #RubyOnRails
[20:48:33] Barrt: has joined #RubyOnRails
[20:53:02] Ericx2x: has joined #RubyOnRails
[21:02:04] crova: Greetings everyone, how is it going? I'm trying to implement full text search with Pg_Search and Filterrific but I'm running into an "undefined column" error, if someone has any hint: https://gist.github.com/crova/0e4cbe40f91961c94b2401f2e3fb3794 I Added a file with a search_query that works with those columns, so they do exist
[21:05:29] ivanskie: has joined #RubyOnRails
[21:05:45] ivanskie: i have a peculiar issue that google isn't helping with
[21:06:00] ivanskie: just cloned a project.
[21:06:03] choke: has joined #RubyOnRails
[21:06:08] ivanskie: bundle completed fine
[21:06:15] ivanskie: but when i'm trying to do rails -v i get
[21:06:16] ivanskie: _rails_command:4: permission denied: bin/rails
[21:06:22] ivanskie: if i do bundle exec rails -v. it works
[21:06:30] ivanskie: if i cd into bin. and rails -v. works.
[21:07:08] ivanskie: rbenv rehash... doesn't do anything. its the same rails version i've had before. uhm spring binstub --all doesnt work says can't find spring gem
[21:07:24] choke: Hey all -- anyone know if theres any alternative to Kaminari? Trying to add pagination to my R5 API results in horrible query-string urls that I can't get rid of
[21:08:02] fryguy: choke: will_paginate is common too
[21:08:16] fryguy: ivanskie: what is the output of `which rails`
[21:08:28] ivanskie: rails: aliased to _rails_command
[21:08:43] jottr: has joined #RubyOnRails
[21:08:58] ivanskie: interesting. outside of the project folder. rails -v works
[21:09:41] choke: fryguy awesome, i'll look into it.. thanks
[21:10:55] ivanskie: https://pastebin.com/weW6UiGV (which _rails_command)
[21:11:41] workmad3: has joined #RubyOnRails
[21:12:42] ivanskie: meh. disabled oh my zsh rails plugin.
[21:12:56] ivanskie: it worked before. not sure if high sierra update broke something or what. but its working now
[21:13:51] fryguy: ivanskie: what's the output of `ls -l bin`
[21:14:02] fryguy: well, more specifically `ls -l bin/rails`
[21:14:35] ivanskie: https://pastebin.com/8Qi2sDTD
[21:15:16] ivanskie: not executable
[21:15:20] ivanskie: interesting
[21:16:16] orbyt_: has joined #RubyOnRails
[21:17:42] jottr: has joined #RubyOnRails
[21:17:43] ivanskie: great. thanks fryguy
[21:19:30] dviola: has joined #RubyOnRails
[21:21:38] fmcgeough: has joined #RubyOnRails
[21:22:17] gambl0re: has joined #RubyOnRails
[21:27:08] Terens: I have a classic rails + erb app. I was having a debate whether when building a 100% javascript frontend I should ditch old controllers and build an API with json_api etc
[21:28:26] rrichardsr3: has joined #RubyOnRails
[21:31:37] jottr_: has joined #RubyOnRails
[21:32:43] bronson: has joined #RubyOnRails
[21:35:19] Radar: GOOD MORNING
[21:35:41] Radar: terens: have you seen graphql?
[21:36:20] Terens: nope for ruby
[21:37:03] TobiFrano: has joined #RubyOnRails
[21:39:36] baweaver: You'll save yourself a lot of pain early on by using `respond_to` in the short term and giving JSON version responses
[21:41:00] dviola: has joined #RubyOnRails
[21:45:50] fragamus: has joined #RubyOnRails
[21:46:50] Barrt: has joined #RubyOnRails
[21:51:19] ahrs: has joined #RubyOnRails
[21:58:37] FrostCandy: fryguy: Hey - that css issue was because the developers made 2 duplicate pages - one pages gets rendered when you click one link, another page renders when you click the other link lol. So like a sane person I included the css on one page not thinking there were duplicates.
[22:02:21] ksi: has joined #RubyOnRails
[22:07:43] dviola: has joined #RubyOnRails
[22:09:08] ksi: has joined #RubyOnRails
[22:13:48] ivanskie: anyone using Mina for deploying?
[22:14:49] havenwood: ivanskie: Yes, there are people here who are. Why do you ask?
[22:15:06] ivanskie: having an odd issue that i cant troubleshoot
[22:16:12] ivanskie: when i do 'mina setup' it goes through the whole thing.. then when it does '$ git config htp.sslVerify "false"' it says fatal: not in a git directory
[22:16:25] ivanskie: yet it doesnt report it as an error or a failure.
[22:16:37] ivanskie: then when i do mina deploy..
[22:16:58] ivanskie: it goes through the whole thing but then: 'bundle install --without development test --path "vendor/bundle" --deployment
[22:16:58] ivanskie: bash: line 222: bundle: command not found'
[22:17:14] ivanskie: i have correct version of ruby. rails. bundler installed
[22:17:30] ivanskie: this has worked before, then stopped working. i do not know what has changed.
[22:18:06] tycoon177: is puma still generally considered the best web server to use?
[22:18:26] ivanskie: tycoon177 pretty much. at least as far as i know.
[22:18:40] ivanskie: though 'best' is uhm subjective
[22:18:53] tycoon177: "best" can mean many things, sure
[22:19:09] tycoon177: but i was meaning performance-wise :)
[22:19:22] ivanskie: tbh i haven't checked the stats in a while
[22:20:14] tycoon177: i recently switched my app over from passenger and noticed an increase in performance, so i was mainly just making sure that i'm not missing xyz that provides another great increase in performance
[22:21:55] ivanskie: i've been using puma for a while now
[22:23:08] thejamespinto: has joined #RubyOnRails
[22:26:14] ivanskie: fixed my issue, https://github.com/mina-deploy/mina/issues/528. gabskoro's solution
[22:26:24] ivanskie: one time only fix tho.
[22:33:44] bronson: has joined #RubyOnRails
[22:40:56] dblessing: has joined #RubyOnRails
[22:41:30] TobiFrano: has joined #RubyOnRails
[22:45:36] istrasci: has joined #RubyOnRails
[22:49:28] istrasci: If I run `rails g model --help`, I see that I can pass an option of "--primary-key-type=PRIMARY_KEY_TYPE". However, there is no further explanation of this, and Google is not helping much. Can anyone point me to some documentation on this?
[22:56:06] chouhoulis: has joined #RubyOnRails
[22:57:39] robb: has joined #RubyOnRails
[23:01:42] gambl0re: has joined #RubyOnRails
[23:04:19] hahuang61: has joined #RubyOnRails
[23:04:55] wethu: has joined #RubyOnRails
[23:09:09] openstruct: has joined #RubyOnRails
[23:12:17] openstruct: Is it possible to the built in form helpers for json fields? I've got a simple object of preferences like {preference_1: true, preference_2: false} and am trying to create checkboxes for them. I know I can manually create them, but I can't seem to wrangle the helpers.
[23:12:32] workmad3: has joined #RubyOnRails
[23:12:35] openstruct: *possible to use
[23:19:00] LateralO1: has joined #RubyOnRails
[23:20:54] dogweather: has joined #RubyOnRails
[23:34:17] bronson: has joined #RubyOnRails
[23:35:56] mtkd: has joined #RubyOnRails
[23:38:29] fugee: has joined #RubyOnRails
[23:39:03] fugee: if i wanna build a multi-blog site i should use multi tenancy?
[23:47:38] tcopeland: has joined #RubyOnRails
[23:52:18] dogweather: fugee: for me it depends on the experience I want the end users to have
[23:52:59] chouhoulis: has joined #RubyOnRails
[23:54:28] mices: dogweather: what more would multi tenancy offer the user?
[23:55:33] ali_g: has joined #RubyOnRails