qyliss

Activity Graph

Page 1 of 1

2018-05-07

[01:57:58] qyliss: has joined #ruby
[01:57:58] qyliss: has joined #RubyOnRails
[08:29:28] qyliss: Quit: bye
[08:31:17] qyliss: has joined #ruby
[08:31:17] qyliss: has joined #RubyOnRails
[17:58:46] qyliss: has left #ruby: ("WeeChat 2.1")
[18:03:10] qyliss: has left #RubyOnRails: ("WeeChat 2.1")

2018-05-04

[21:38:40] qyliss: has left #RubyOnRails: ("WeeChat 2.1")

2018-04-28

[08:12:57] qyliss: Cache_Money: are you just looking for the sum of video views for a given player?
[08:16:34] qyliss: Cache_Money: I think that would be `@brightcove_players.group(:year, :month).sum(:brightcove_video_views)` or something like it
[08:18:01] qyliss: Oh, I missed a join
[08:18:41] qyliss: Cache_Money: I think that would be `@brightcove_players.joins(:monthly_brightcove_video_views).group(:year, :month).sum(:brightcove_video_views)`
[08:22:10] qyliss: No worries!

2018-04-27

[19:58:26] qyliss: has left #ruby: ("WeeChat 2.1")

2018-04-25

[12:25:49] qyliss: *.net *.split
[12:27:12] qyliss: has joined #ruby
[12:27:31] qyliss: has joined #RubyOnRails
[15:01:20] qyliss: *.net *.split
[15:03:06] qyliss: has joined #RubyOnRails
[15:03:24] qyliss: has joined #ruby

2018-04-23

[01:35:07] qyliss: Quit: bye
[01:57:29] qyliss: has joined #ruby
[01:57:29] qyliss: has joined #RubyOnRails

2018-04-17

[00:11:58] qyliss: Ping timeout: 240 seconds
[00:14:30] qyliss: has joined #ruby

2018-04-08

[10:29:28] qyliss: has joined #ruby
[10:29:34] qyliss: has joined #RubyOnRails
[10:41:07] qyliss: has left #RubyOnRails: ("WeeChat 2.0.1")

2018-04-07

[17:01:55] qyliss: Quit: bye
[22:29:06] qyliss: has joined #ruby
[23:25:48] qyliss: has joined #ruby

2018-04-05

[00:54:24] qyliss: Ping timeout: 260 seconds
[00:56:05] qyliss: has joined #ruby
[00:56:05] qyliss: has joined #RubyOnRails

2018-04-04

[12:03:31] qyliss: Ping timeout: 246 seconds
[12:04:14] qyliss: has joined #ruby
[12:04:14] qyliss: has joined #RubyOnRails

2018-03-22

[09:59:54] qyliss: I’m livetweeting a Ruby conference if anyone wants to follow along! https://twitter.com/qyliss/status/976744478198419457
[10:21:02] qyliss: tribut: the GEM_HOME/GEM_PATH env bars
[10:21:44] qyliss: In that case, you probably want a Ruby version manager
[10:21:47] qyliss: Check out Christ
[10:21:56] qyliss: ACTION sighs at autocorrect
[10:22:46] qyliss: You shouldn’t need it
[10:22:54] qyliss: I’m pretty sure you can install it anywhere

2018-03-17

[13:11:33] qyliss: Quit: bye
[13:14:25] qyliss: has joined #ruby
[13:14:25] qyliss: has joined #RubyOnRails

2018-03-04

[12:43:02] qyliss: lemonpaul: Use each_cons
[12:56:40] qyliss: apeiros: thanks!

2018-03-03

[13:46:10] qyliss: re image storage, etc, there's https://github.com/rails/rails/tree/master/activestorage, which will be part of Rails as of 5.2 (currently in beta)
[17:01:53] qyliss: mices: layout is a class method. You're trying to call it on an instance.
[17:02:49] qyliss: No, you should put it in your controller
[17:02:52] qyliss: But outside of any method
[17:09:19] qyliss: That symbol references a method
[17:11:08] qyliss: Oh, I see
[17:11:32] qyliss: It that case, `render` can take a `layout:` option
[17:45:57] qyliss: mices: render(layout: user.logged_in? ? "layout1" : "layout2")
[17:50:02] qyliss: Put it in the action you redirect to then

2018-03-02

[10:36:46] qyliss: TvL2386: are you looking for url_for?
[10:40:36] qyliss: Oh, I see
[15:11:47] qyliss: Quit: bye
[15:13:21] qyliss: has joined #RubyOnRails
[15:13:22] qyliss: has joined #ruby
[20:59:16] qyliss: Are you sure you have `belongs_to :subject` in `Rating`, za1b1tsu?
[21:04:26] qyliss: Glad you got it sorted :)
[21:07:41] qyliss: Can you explain what you're trying to find in words?
[22:02:37] qyliss: kspencer: ENV.fetch("PATH").split(File::PATH_SEPARATOR).map { |file| Pathname.new(file) }
[22:02:43] qyliss: Or something like that, is what I'd do
[22:03:07] qyliss: prutheus: some sort of quoting issue
[22:05:29] qyliss: What happens if you don't use the double quotes?
[22:06:23] qyliss: ENV gets all the environment variables from its parent process. How are you running the script?
[22:07:38] qyliss: Does the directory show up when you run `echo $PATH`?
[22:08:33] qyliss: If you run `ruby -e "puts ENV['PATH']"` (no `bundle exec`) does it show up?
[22:08:40] qyliss: prutheus: you can't :(
[22:09:03] qyliss: I think there might be something you can put in .bundle/config
[22:09:44] qyliss: And if you `bundle exec` that?/
[22:11:50] qyliss: prutheus: Bundler will pick up local gems you've installed manually
[22:12:04] qyliss: kspencer: something else in your program must be messing with ENV
[22:14:34] qyliss: What's in .bundle/config?
[22:15:31] qyliss: it should do that by default
[22:15:43] qyliss: I'm not sure, sorry

2018-03-01

[03:53:53] qyliss: Ping timeout: 240 seconds
[03:57:01] qyliss: has joined #ruby
[03:57:01] qyliss: has joined #RubyOnRails

2018-02-22

[22:52:54] qyliss: Ping timeout: 256 seconds

2018-02-10

[00:31:55] qyliss: cahoots: how are you installing gems?

2018-02-09

[20:42:45] qyliss: mices: which ones?
[20:43:03] qyliss: chridal: can you put them in public/?
[20:44:11] qyliss: `post` should probably be `@post`
[20:45:01] qyliss: As far as I can see you don't have a comment variable anywhere
[20:45:16] qyliss: Maybe you want to do `@comment = @post.comments.new` in your controller?
[20:45:33] qyliss: Then `form_for @comment, remote: true`
[21:18:20] qyliss: rasterick: pty usually comes with Ruby. How did you install it?
[21:20:38] qyliss: a fairly recent development
[21:20:41] qyliss: rasterick: which installer?
[21:20:49] qyliss: apeiros: do I know you from twitter?
[22:16:22] qyliss: Oh right okay
[22:16:36] qyliss: Can you post the error Rails gives you?
[22:24:26] qyliss: mices: does it give you a stack trace?
[22:25:16] qyliss: I’m native Scottish English and have never heard “vice”
[22:39:24] qyliss: rasterick: other way round
[22:40:06] qyliss: Actually, in Ruby, it might be -Float::INFINITY
[22:40:16] qyliss: Not at a computer I can check with
[22:41:15] qyliss: mices: what’s create.js.erb?
[22:55:59] qyliss: Really? It’s in the stack trace
[22:56:02] qyliss: app/views/blogit/comments/create.js.erb
[23:14:29] qyliss: mices: see where you’re rendering form in that file?
[23:14:39] qyliss: You’re not passing any locals
[23:37:39] qyliss: This is why stack traces are helpful :P

2018-02-06

[22:44:58] qyliss: has joined #ruby
[22:48:50] qyliss: has joined #RubyOnRails