meesles

Activity Graph

Page 1 of 1

2018-02-04

2018-01-27

[06:16:27] meesles: has joined #RubyOnRails
[17:03:46] meesles: There's no actual answer, it's personal preference
[17:03:57] meesles: Personally, if the method is simple enough, I don't even test it
[17:04:24] meesles: Have to balance the trade-off between the time it takes to run your tests, and how much risk you can tolerate
[19:33:47] meesles: gem install bundler?

2018-01-25

[03:43:03] meesles: has joined #ruby

2018-01-23

[17:48:20] meesles: Ping timeout: 260 seconds

2018-01-20

[03:22:09] meesles: Ping timeout: 248 seconds
[03:24:48] meesles: has joined #ruby
[03:25:07] meesles: has joined #RubyOnRails
[21:03:50] meesles: Press space? What do you mean?

2018-01-18

[00:15:03] meesles: has joined #ruby
[00:19:56] meesles: has joined #RubyOnRails
[02:28:17] meesles: Can you give a bit of context for the problem you're solving?
[02:28:36] meesles: Seems a bit weird, but depending on what you're doing with the records there's concerns about the IDs
[02:31:04] meesles: And are you using PSQL?
[02:34:26] meesles: https://stackoverflow.com/questions/18581792/ruby-on-rails-and-json-parser-from-url
[02:35:03] meesles: Gotta read the URL into an IO
[02:37:10] meesles: Yep, it didn't know it was a URL
[02:40:33] meesles: Haha, part of becoming a better programmer is knowing what to search :P
[02:47:42] meesles: Yeah, seriously
[02:48:00] meesles: If I had thought about IRC in college I could have saved myself some long nights :P

2018-01-13

[03:35:01] meesles: has joined #ruby

2018-01-08

[00:14:12] meesles: has joined #ruby
[02:31:01] meesles: has joined #RubyOnRails

2018-01-03

[04:54:42] meesles: has joined #ruby
[18:19:41] meesles: has joined #RubyOnRails

2018-01-01

2017-12-31

[20:56:33] meesles: has joined #ruby
[20:56:46] meesles: has joined #RubyOnRails

2017-12-30

[21:31:03] meesles: has joined #ruby
[21:34:05] meesles: has joined #RubyOnRails

2017-12-28

[06:53:01] meesles: has joined #ruby
[07:14:58] meesles: has joined #RubyOnRails
[17:23:55] meesles: has joined #ruby
[17:24:24] meesles: has joined #RubyOnRails
[18:58:15] meesles: 10/10 would use in production

2017-12-27

[01:20:55] meesles: has joined #ruby
[02:23:32] meesles: Ping timeout: 272 seconds
[04:20:05] meesles: has joined #ruby
[05:03:21] meesles: Ping timeout: 264 seconds
[05:03:37] meesles: has joined #ruby

2017-12-26

[01:34:04] meesles: has joined #ruby
[01:35:39] meesles: has joined #RubyOnRails
[16:36:00] meesles: has joined #ruby
[16:37:38] meesles: Client Quit
[16:39:25] meesles: has joined #ruby
[16:39:50] meesles: has joined #RubyOnRails
[23:54:11] meesles: Ping timeout: 252 seconds

2017-12-24

[03:51:56] meesles: Ping timeout: 260 seconds
[03:53:31] meesles: has joined #ruby
[08:11:35] meesles: Ping timeout: 240 seconds

2017-12-23

[17:04:03] meesles: has joined #ruby
[17:44:45] meesles: Ping timeout: 256 seconds
[18:31:13] meesles: has joined #ruby
[19:09:21] meesles: Ping timeout: 264 seconds
[22:24:56] meesles: has joined #ruby
[22:31:29] meesles: Ping timeout: 248 seconds
[23:54:42] meesles: has joined #ruby

2017-12-22

[00:58:29] meesles: Ping timeout: 252 seconds
[01:31:05] meesles: has joined #ruby
[02:03:56] meesles: Ping timeout: 252 seconds
[02:34:23] meesles: has joined #ruby
[03:04:46] meesles: Ping timeout: 260 seconds
[05:47:32] meesles: has joined #ruby
[06:28:17] meesles: Ping timeout: 248 seconds

2017-12-21

[02:06:43] meesles: has joined #ruby
[02:06:56] meesles: join #rubyonrails
[02:07:01] meesles: has joined #RubyOnRails
[07:20:35] meesles: Ping timeout: 240 seconds
[14:23:10] meesles: has joined #ruby
[15:22:04] meesles: Ping timeout: 268 seconds
[18:53:55] meesles: has joined #ruby
[19:27:59] meesles: Ping timeout: 248 seconds
[21:05:41] meesles: has joined #ruby
[21:54:14] meesles: Ping timeout: 252 seconds
[23:15:08] meesles: has joined #ruby

2017-12-20

2017-12-19

[02:51:41] meesles: has joined #ruby
[02:51:52] meesles: has joined #RubyOnRails
[16:43:08] meesles: has joined #ruby
[17:34:39] meesles: has joined #RubyOnRails

2017-12-18

[00:45:51] meesles: has joined #RubyOnRails
[01:22:34] meesles: It just the /factories folder under test or spec
[01:22:43] meesles: Then it's up to you to organize
[01:23:53] meesles: At least, that's what I can remember.find
[01:31:27] meesles: Yeah, should work on its own...
[01:33:12] meesles: yeah, filename doesn't matter in this instance
[01:34:43] meesles: idk his spec helper has the factorybot stuff
[01:34:45] meesles: so I think that's ok
[01:37:23] meesles: And you do have ` config.include FactoryBot::Syntax::Methods` in your factory_bot support file?
[01:37:32] meesles: Was just reading through the docs... not much more than that
[01:38:07] meesles: well that makes sense
[01:38:32] meesles: i guess just last thing for us to double check is a screenshot of the folder structure
[01:38:39] meesles: that's the only reason I can think that factory isn't being loaded
[01:38:46] meesles: but you're reading the same docs as me so idk
[01:40:14] meesles: i have an idea
[01:40:21] meesles: in your factory for user
[01:40:30] meesles: anything not a string, put curly brackets around it
[01:41:04] meesles: saw something on GH about factory eval failing and then that class isn't loaded
[01:41:22] meesles: Although yours is just ints and bools...
[01:42:21] meesles: you should delete one of those factories now, definining user twice
[01:42:29] meesles: 1 and bool
[01:43:20] meesles: Once you clear your extra file, if it doesn't work, I'd say there's an error in the factory causing it not to load. file structure looks correct
[01:54:26] meesles: doesn't matter
[01:54:33] meesles: from my experience
[01:58:14] meesles: well you call your spec helper from your rails helper
[01:58:32] meesles: so that can explain that
[02:06:23] meesles: for the record this is why i hate rspec XD
[02:06:53] meesles: sour sally over here
[02:07:04] meesles: who types sigh with a period
[02:09:39] meesles: lol it's ok it's some js setup level library
[02:09:48] meesles: Um well you need both those lines I think
[02:09:54] meesles: Since they're different gems
[02:10:20] meesles: I just don't know about calling one helper from the other, and then if you aren't missing parts if you only call one helper
[02:11:03] meesles: that's a good way to look at it :P
[02:11:13] meesles: yeah maybe start from scratch, seems like it's been overthought
[02:16:30] meesles: brother, go for it
[02:16:35] meesles: worst case you reset lol
[02:17:11] meesles: And then see if you can use a generator or something for your first factory?
[02:17:19] meesles: Then you can copy
[02:18:53] meesles: if it doesn't, it likely isn't.
[02:19:08] meesles: i've never used a factory for factorybot
[02:25:48] meesles: they.... should...
[02:28:54] meesles: you shouldn't set your env to test locally though...
[05:40:05] meesles: has joined #RubyOnRails
[05:40:13] meesles: Client Quit

2017-12-17

[21:45:35] meesles: has joined #ruby

2017-12-16

[03:30:12] meesles: has joined #ruby
[03:30:42] meesles: has joined #RubyOnRails
[06:52:21] meesles: Seems like you have an email image that is expected, and isn't there
[06:52:34] meesles: Maybe you cleared a folder, maybe the record is invalid

2017-12-15

2017-12-14

[01:40:19] meesles: Same place you set the attributes!
[01:40:40] meesles: property: { create(:apttype, :etc, :etc }
[01:40:52] meesles: Well, create Property, but you get what I mean
[01:41:06] meesles: That's one way to have it create the associations automatically
[01:41:18] meesles: Or else you can instantiate one, and then just pass it in as an attribute to the create call
[01:41:44] meesles: There's multiple ways
[01:42:13] meesles: Read this: https://github.com/thoughtbot/factory_bot/blob/master/GETTING_STARTED.md#associations
[01:43:44] meesles: Second code chunk, factory :apt type, association :property, factory: :whatever, etc
[01:44:07] meesles: Dunno what you don't understand after that
[02:32:45] meesles: *.net *.split
[02:36:17] meesles: has joined #RubyOnRails
[02:36:19] meesles: has joined #ruby

2017-12-13

[01:17:59] meesles: oh wow you dont joke around lol
[01:25:39] meesles: I just think the best resources are free and online
[01:26:03] meesles: The classic https://www.railstutorial.org/book
[01:26:49] meesles: There's another that I always loved but I can't remember it now
[01:27:11] meesles: But hey you do you
[01:27:18] meesles: We all learn differently!
[04:02:20] meesles: any code in a gist please! controllers, views, whatever might be related
[04:02:25] meesles: hard to tell anything so vague
[05:18:26] meesles: don't even need to pass it in
[05:18:58] meesles: and only create the placement if needed, don't set the placement. just let activerecord do its thing
[05:20:55] meesles: Resident.new(placement: Placement.find(whatever))
[05:21:28] meesles: If not, Resident.new only, let the callback create it
[19:23:02] meesles: Recommended update path is go to the latest minor version, then update to major from there
[19:23:09] meesles: So 4.2.7.1 first
[19:23:31] meesles: I guess 4.2.10 is most recent :)
[19:23:39] meesles: I'm behind!!
[19:28:13] meesles: Q being your liv?
[19:28:43] meesles: Decent idea, I'm a fan of '
[19:28:50] meesles: '>' and syntax like CSS selectors to do stuff
[19:29:35] meesles: http://ruby-doc.org/core-2.3.0_preview1/Hash.html#method-i-dig
[19:32:14] meesles: Harder to read for sure
[19:32:27] meesles: Kind of writing a new DSL

2017-12-12

[00:48:13] meesles: has joined #ruby
[05:17:37] meesles: has joined #ruby
[05:18:14] meesles: has joined #RubyOnRails
[22:23:07] meesles: has joined #ruby
[22:23:49] meesles: has joined #RubyOnRails
[22:54:56] meesles: Then your route declaration is incorrect. Paste it into a website so we can look
[22:55:03] meesles: The routes file
[22:55:07] meesles: Don't paste it in chat pls
[22:58:07] meesles: One part is depends on the file. Binary files are useless when opened as text-only, and vice-versa
[22:58:59] meesles: Here's the spec: http://pubs.opengroup.org/onlinepubs/009695399/functions/fopen.html
[22:59:08] meesles: (not ruby-specific)
[23:00:19] meesles: Text is default I believe
[23:00:31] meesles: That's why there's an explicit *b version of all the file modes
[23:00:58] meesles: Sure, you can specify additional encoding if needed. I'm just explaining the primary difference between the two modes you asked about
[23:02:05] meesles: Doing the same googling you could be doing
[23:02:08] meesles: Look slike utf8 is default
[23:03:06] meesles: But I would just specify if you're concerned about it
[23:25:19] meesles: A hint as you're learning Rails
[23:25:22] meesles: Naming REALLY matters
[23:25:41] meesles: The order, plurality, and consistency between class names and file names are the reason Rails is so powerful
[23:25:50] meesles: So triple-check everything
[23:26:25] meesles: And that goes for routes too

2017-12-11

2017-12-10

[03:02:43] meesles: has joined #ruby