_3by8

Activity Graph

Page 1 of 5 | Next »

2018-05-11

[19:10:18] _3by8: has joined #RubyOnRails
[19:11:22] _3by8: So I started a new Rails/Vue project but my javascript_include_tag 'application' gets the application.js file from the wrong directory...
[19:41:45] _3by8: Quit: Page closed

2017-12-05

[06:23:49] _3by8: has joined #RubyOnRails
[06:24:17] _3by8: I'm having an issue with webpacker. Styles for single-file Vue components aren't getting included by it.
[06:43:09] _3by8: Ping timeout: 260 seconds

2017-10-30

[04:21:48] _3by8: has joined #RubyOnRails
[04:26:19] _3by8: Client Quit

2017-03-25

[09:55:31] _3by8: has joined #RubyOnRails
[09:55:55] _3by8: Anyone have any ideas why my CSS/JS aren't minifying? I have the correct asset compressors set in my production environment.
[10:09:37] _3by8: Anyone have any ideas why my CSS/JS aren't minifying? I have the correct asset compressors set in my production environment.
[10:41:04] _3by8: Quit: Page closed

2016-05-30

[05:29:08] _3by8: Ping timeout: 250 seconds

2016-05-29

[22:02:00] _3by8: has joined #RubyOnRails
[22:03:13] _3by8: Has anyone here worked with Postfix/spam filters?
[23:08:18] _3by8: For a web developer who's just starting out, what would you guys suggest I quote for a monthly retainer?
[23:14:40] _3by8: I mean it probably depends on the size and health of the business, right?
[23:16:23] _3by8: Maintenance and feature implementation.
[23:16:32] _3by8: For software that I wrote.
[23:17:37] _3by8: xibalba: not much but yes.
[23:25:33] _3by8: Well their last request involved me adding a column to a table which I already created in the database just as an example. Took me about 10 minutes.
[23:25:56] _3by8: Pardon me that's confusing, a table in the view.
[23:26:10] _3by8: The corresponding column already existed in the DB.
[23:26:21] _3by8: Foresight!

2016-05-27

[02:09:02] _3by8: Ping timeout: 250 seconds

2016-05-26

[21:26:12] _3by8: has joined #RubyOnRails
[21:29:15] _3by8: Trying to get a jQuery plugin working with rails. Installed it via Bower and I've included the package in my project. For reference, it's the jquery-validation plugin and it's got an optional file called "additional-methods" that isn't loading with the rest. No idea what I'm doing.
[22:30:21] _3by8: Darmani: could you show us the view as well?
[22:37:06] _3by8: Darmani: it looks like the error is originating from the time_ago_in_words method
[22:38:01] _3by8: The error is being generated by the view, correct?
[22:38:21] _3by8: Darmani: oh, sorry...
[22:38:24] _3by8: Darmani: one second...
[22:39:45] _3by8: Darmani: show us your author and comment classes please
[22:47:50] _3by8: Darmani: usually a nil:NilClass error indicates that the association doesn't exist. Have you verified that the author of that comment exists in the database?
[22:49:34] _3by8: If the database is empty then that's probably why it's erroring out. Seed the database first.
[22:52:12] _3by8: Darmani: can you show the controller also please?
[22:53:24] _3by8: Darmani: while you're at it, can you rename the files to what they are?
[22:53:41] _3by8: Helps when you're reading.
[22:59:46] _3by8: Radar: do you use Bower?
[23:02:59] _3by8: Darmani: no problem
[23:16:08] _3by8: Pretty sure I asked you if you had seeded your database.
[23:16:17] _3by8: That might be the reason!
[23:22:05] _3by8: I'm not great at programming in general but that doesn't seem "right". You probably want the code to check if there are any comments at all in the first place.
[23:22:29] _3by8: Or else the first person to comment will always get that error and you'll never have any comments.

2016-05-19

[17:56:01] _3by8: has joined #RubyOnRails
[18:43:48] _3by8: Ping timeout: 250 seconds

2016-05-16

[02:31:45] _3by8: Quit: Page closed

2016-05-15

[04:48:54] _3by8: Ping timeout: 250 seconds
[13:16:29] _3by8: has joined #RubyOnRails
[15:37:38] _3by8: Hi, trying to troubleshoot my Font Awesome installation; Font Awesome fonts showing up as squares. Using Bower. Here's what I've got: https://gist.github.com/threebyeight/a705d4334620df4fe72db994caf4e136
[15:40:59] _3by8: sevenseacat: I read a book that recommended using Bower to manage assets because of gem versioning and assets that were out of date.
[15:41:05] _3by8: I guess with Bower, you get the newest stuff.
[15:41:30] _3by8: Radar didn't write it!
[15:41:46] _3by8: I'll just use the Gem. lol
[15:43:24] _3by8: sevenseacat: this was along the lines of what I read: http://growingdevs.com/stop-using-rubygems-and-start-using-bower.html
[15:48:33] _3by8: Is there any reason you'd want to use Bower instead of just a gem?
[18:17:56] _3by8: Ping timeout: 250 seconds
[20:44:55] _3by8: has joined #RubyOnRails
[20:49:11] _3by8: So is there anyone available to help me troubleshoot a Font Awesome installation? I tried the gem like sevenseacat recommended earlier and I still couldn't get it to work.
[20:50:35] _3by8: alfie_max15: the Font Awesome icons are showing as squares.
[20:52:36] _3by8: I read a while back that some pretty large companies prototype the interface first before doing anything.
[20:52:48] _3by8: Radar: I'll try! Give me a moment.
[21:07:35] _3by8: durexlw: I tried that also but don't worry, I figured it out.

2016-05-14

[23:31:50] _3by8: has joined #RubyOnRails
[23:32:12] _3by8: Does anyone have a spare minute or two to help me troubleshoot my FontAwesome installation? I got it working on one app and it's not working on this one :()
[23:34:42] _3by8: I've already verified that the CSS points to the correct font folder--I tried downloading the font from the path in the CSS and it worked.

2016-05-08

[18:54:44] _3by8: has joined #RubyOnRails
[19:22:08] _3by8: Quit: Page closed

2016-04-29

[11:38:01] _3by8: has joined #RubyOnRails
[11:38:14] _3by8: Sprockets is built-in to Rails, right?
[11:38:24] _3by8: So I don't need to include the gem unless I need a specific version?
[11:39:24] _3by8: universa1: what's the difference between sprockets-rails and sprockets?
[11:40:56] _3by8: But then I'd have to clone a repository!
[11:42:11] _3by8: universa1: I mean I could always just click around in my browser until something opens but I'm such a hacker that I only use command-line programs like Vim, etc.
[11:42:47] _3by8: universa1: I'm too l33t for that. I use wget and vim.
[11:42:57] _3by8: My goodness.
[11:43:14] _3by8: I'll just sit over here in the corner until I've calmed down.
[11:44:35] _3by8: Thanks for the help!
[11:45:07] _3by8: Quit: Page closed

2016-04-26

[10:41:59] _3by8: has joined #RubyOnRails
[10:42:58] _3by8: I assumed that I'd be able to do this in a method: self.date || self.created_at where self.date is a user-defined date. My thinking was that it would return date if it were there and created_at if it wasn't. Obviously, that doesn't work. How should that work?
[10:44:00] _3by8: has joined #ruby
[10:44:15] _3by8: I assumed that I'd be able to do this in a method: self.date || self.created_at where self.date is a user-defined date. My thinking was that it would return date if it were there and created_at if it wasn't. Obviously, that doesn't work. How should that work?
[10:45:55] _3by8: fox_mulder_cp: it's a valid date. If the date exists in the database the code works as expect but if it returns nil then we have problems. I think I lack the understanding of how the Ruby || operator works.
[10:48:18] _3by8: toretore: https://gist.github.com/threebyeight/9a0dac17a6df299e345f01c994f2e5a6
[10:49:05] _3by8: fox_mulder_cp: https://gist.github.com/threebyeight/9a0dac17a6df299e345f01c994f2e5a6
[10:58:01] _3by8: toretore: oops, thanks.
[11:21:41] _3by8: Quit: Page closed

2016-04-21

[10:31:49] _3by8: has joined #RubyOnRails
[10:35:51] _3by8: Would someone mind looking at this Gist please? The error message is in the title: https://gist.github.com/threebyeight/dee311be560bd625d4f8a4672da99719
[10:36:03] _3by8: I'm trying to use STI but failing...
[10:36:30] _3by8: That error message occurs whenever I try to call SalesRep.new
[10:39:54] _3by8: universa1: saying that I'm attempting to use single table inheritance and that calling SalesRep.new results in that error message isn't short enough?
[10:41:12] _3by8: I'll add the error trace though I appended my original statement...
[10:41:21] _3by8: I appreciate the help.
[10:42:48] _3by8: jhass: I updated it.
[10:43:26] _3by8: universa1: the controller is simply SalesRep.new
[10:44:45] _3by8: universa1: okay!
[10:45:05] _3by8: ropeney: I've added a type column to the database.
[10:45:31] _3by8: ropeney: I don't know, I could post the migration or my schema if you'd like...
[10:48:43] _3by8: jhass: I think we're getting somewhere. I wasn't aware of the whole super thing... I tried Googling it earlier since I had a feeling there was a supersomething keyword I was missing but I couldn't immediately find it...
[10:50:12] _3by8: universa1: alright so the factory method that jhass outlined is probably better?
[10:50:54] _3by8: I'm guessing using initialize might break some of the Rails magic.
[10:56:26] _3by8: Here's something funny that just popped up, that base User model uses a has_one :sales_rep relationship on itself via class_name: "User" and a foreign key of sales_rep_id so calling self.sales_rep was causing Ruby to expect a User object when really I want to access the sales_rep property and set it to "true". Is there a way to get around that without having to rename the property in the table?
[10:57:56] _3by8: What's all of this you guys have been talking about? That's a lot to read.
[11:13:26] _3by8: jhass: I'm ashamed to say I know so little about the ruby language that your method definition made little sense. Do I then call self.blank (the method using create_with) in the initialize method of my child class?
[11:14:49] _3by8: Oh, I get it, rather than call the new method, I call that method.
[11:15:07] _3by8: jhass: duh, yeah I'm stupid.
[11:21:20] _3by8: jhass: thank you :)
[16:11:46] _3by8: Ping timeout: 250 seconds

2016-04-18

[08:21:25] _3by8: has joined #RubyOnRails
[08:24:06] _3by8: I'm looking at some code in an old example app that I followed along with and the edit method of a controller is completely empty but when I go there, everything works as expected. It's like something is creating an instance variable without my knowledge of it... I've checked the helper files and I don't see any references to the rogue instance variable there either... any ideas?
[08:25:41] _3by8: Never mind, found it...
[08:26:06] _3by8: Client Quit

2016-04-17

[05:34:28] _3by8: has joined #RubyOnRails
[05:43:08] _3by8: Ping timeout: 250 seconds

2016-04-12

[18:22:59] _3by8: has joined #RubyOnRails
[18:30:22] _3by8: So I had this idea I'm trying to protect meaning I don't want any clients having direct access to the code so that they can't distribute it freely. My idea was to host the code on one server to serve multiple sites but I'm not sure how I'd do that... I have a feeling that when the server gets a request to serve a page that the domain information is passed along, is that true? In that case, I'm sure there's a way to extract that in
[18:34:27] _3by8: tubbo: yeah that's basically my question and I'm not saying give them access to the repo but I've had clients who pay for their own hosting after I tell them what they need and then they essentially have control over the code that I've written, does that make sense?
[18:34:53] _3by8: pipework: no, I'm just trying to serve multiple domains from the same server with different databases based on the domain that user is coming from.
[18:35:46] _3by8: tubbo: thanks for the reminder but it's not retroactive.
[18:36:53] _3by8: pipework: yeah, I'm not sure what I said to make you guys think that this has to do with some project I've already completed. I'm going to sell a service.
[18:37:55] _3by8: No, like I was saying, I have an idea I'm trying to protect.
[18:38:07] _3by8: But I understand.
[18:39:31] _3by8: tubbo: I'm trying to avoid giving them the keys to the castle. This software is valuable to me and I don't want people copying it. I understand that licensing exists but I don't trust people enough to honor that license.
[18:40:13] _3by8: epochwolf: that's what I thought too, I just don't know how to do it. I figure if all of the domains are pointing to the same server then I can extract the domain from the request and serve up content accordingly, right?
[18:40:57] _3by8: That's the only question.
[18:44:28] _3by8: tubbo: apartment looks perfect.
[18:45:35] _3by8: Radar: you wrote a book on multitenancy, eh?
[18:48:43] _3by8: Quit: Page closed

2016-04-10

[21:56:59] _3by8: has joined #RubyOnRails
[21:57:22] _3by8: Has anyone had any success installing Rails on the new Windows Subsystem for Linux?
[22:00:54] _3by8: has joined #ruby
[22:00:58] _3by8: Has anyone had any success installing Rails on the new Windows Subsystem for Linux?
[22:02:43] _3by8: Radar: I'll have to look... I'm having a heck of a time.
[22:21:28] _3by8: Quit: Page closed

2016-03-13

[01:22:46] _3by8: has joined #RubyOnRails
[01:24:45] _3by8: Hello everyone.
[01:32:46] _3by8: I've already asked this question in AngularJS but I'm not really satisfied with the answer. Is there a better reason to use AngularJS over a Rails-generated view other than efficiency and not having to render the same elements over again?
[01:40:35] _3by8: bronson: I realize that but I'm asking why use Angular at all? What are its major benefits other than reducing the overhead involved when fetching a view?
[01:41:18] _3by8: Is Turbolinks worth learning about if I plan on using Angular all the time?
[01:46:50] _3by8: bronson: thank you.
[01:47:10] _3by8: bronson: I was reading about this a little bit last night. Can you explain Rack in 5 words or less?
[01:52:16] _3by8: bronson: I don't know what you mean by "pluggable" :P
[04:18:37] _3by8: Quit: Page closed

2016-03-12

[06:25:15] _3by8: has joined #RubyOnRails
[06:27:25] _3by8: I've got an application that craps out a bunch of pre-constructed objects into a view for form submission. What I've done, and assume is incorrect, is put all of the attributes of those objects in the HTML so that when the form is submitted, the objects don't have to be recreated (which would be fairly difficult). The problem that I see with that is that the end-user could change some of that information because no matter how much
[06:28:00] _3by8: They're going to be able to do some things I don't want. I was thinking about using some sort of temporary storage like sessions but that doesn't seem right either because they should be able to modify that also. I've heard of memory-based databases, would that be a viable option?
[06:29:06] _3by8: nuck: would that be the "proper" way to do it? Can you think of another way?
[06:30:10] _3by8: nuck: how could I use JS to solve my problem?
[06:31:00] _3by8: I just want to be able to put a reference to the object in my view and have the items persist in the background... I just keep thinking there has to be a better way to do it than session...
[06:32:09] _3by8: nuck: hm, okay! I'll take your word for it.
[06:32:30] _3by8: nuck: thank you :)
[10:20:33] _3by8: Quit: Page closed

2016-03-05

[05:58:20] _3by8: has joined #ruby
[06:03:18] _3by8: I've got a hash whose values contain another hash. Each key/value pair has a hash in its value whose size may differ from the hashes in other values. What I'm trying to do is just add an element to one of those nested hashes so that hash[:key] = { foo: "bar" } becomes hash[:key] = { foo: "bar", foo2: "bar2" } Do I use replace or is there something I'm missing?
[06:04:27] _3by8: has joined #RubyOnRails
[06:04:35] _3by8: I've got a hash whose values contain another hash. Each key/value pair has a hash in its value whose size may differ from the hashes in other values. What I'm trying to do is just add an element to one of those nested hashes so that hash[:key] = { foo: "bar" } becomes hash[:key] = { foo: "bar", foo2: "bar2" } Do I use replace or is there something I'm missing?
[06:28:47] _3by8: shevy: yeah, I just used merge, works fine.
[06:28:53] _3by8: I'll look at update though, thank you
[06:29:22] _3by8: shevy: is update just an alias for merge?
[06:36:29] _3by8: shevy: thanks for thei nput
[07:42:43] _3by8: Quit: Page closed

2016-03-03

[01:27:20] _3by8: has joined #RubyOnRails
[01:30:46] _3by8: I'm trying to validate that all of the nested objects added up have a quantity of at least one, anyone know of a way to do that?
[01:31:35] _3by8: smathy: mkay
[01:33:07] _3by8: slash_nick: yeah, like I don't want the object to be valid if all of the nested objects have a total quantity of zero.
[01:33:15] _3by8: slash_nick: but I'll just write a custom validation
[01:35:26] _3by8: smathy: do I put custom validation classes in the model's folder? I know it doesn't really matter a lot but is that the Rails way?
[01:37:08] _3by8: smathy: okay!
[02:02:59] _3by8: Quit: Page closed
[18:59:27] _3by8: has joined #RubyOnRails
[18:59:52] _3by8: has joined #ruby
[19:02:46] _3by8: I have someone asking me out of the blue to build them some software to interface with a USB thermometer for food temperature recording. I don't really know a whole lot about the process but it looks like there's a decent amount of documentation online. My experience with Ruby is limited to Rails and I guess my question is, with that in mind, how possible is this going to be for me? I see that Chrome has a USB API that I might be able use.
[19:04:33] _3by8: Or should I spend the time learning something like Shoes to just build a native Win32 app?
[19:07:42] _3by8: dfockler: why is that?
[19:11:26] _3by8: dfockler: I see.
[19:12:29] _3by8: They need the ability to print also and I'm not seeing that for shoes...
[19:18:58] _3by8: daxroc: talking about being able to see the contents of the whole root directory?
[20:59:37] _3by8: Quit: Page closed

2016-03-02

[18:11:22] _3by8: has joined #RubyOnRails
[18:13:49] _3by8: When I go to edit one of my records via the edit controller, it's not pulling in a boolean value... does it have something to do with it being boolean?
[18:18:55] _3by8: tweeeaks: yeah, when I go to the edit view it's not setting the value that has already been set which is boolean, and I thought the params permit list was only for when you update/create.
[18:24:36] _3by8: tweeeaks: I figured it out, I was using options_for_select in my edit view, I just placed the values directly in it.
[18:25:52] _3by8: Quit: Page closed
[19:07:17] _3by8: has joined #RubyOnRails
[19:09:04] _3by8: I have a potential client who wants me to build a form for them for their GoDaddy website. They used their Website Builder software to do it with. Looks like I can use an iframe. Can anyone think of any reasons why that's a bad idea or why it might not work?
[19:11:21] _3by8: I'm thinking about embedding a Rails app into their page using an iframe.
[19:13:00] _3by8: norc: on my end?
[19:14:57] _3by8: smathy: I'm not sure if I'm understanding what you're saying but since I can't use Ruby on their hosting plan, I was going to create a small app that I could inline on one of their pages.
[19:15:12] _3by8: smathy: Is there a better way to do it?
[19:16:16] _3by8: norc: I see, I'm going to sign up for a month just to test this out and see if it works.
[19:18:34] _3by8: smathy: unfortunately I don't think that will work, I have suuuuper limited options when it comes to actually building a form on their side. My freedom to put script elements which the customer needs and then style those elements is apparently pretty limited.
[19:19:27] _3by8: smathy: great, thanks :)
[19:19:43] _3by8: You guys are super helpful, I love it.
[19:33:11] _3by8: soahccc: that looks like that just disables iframes on the Rails side of things.
[20:36:48] _3by8: Quit: Page closed

2016-03-01

[23:47:56] _3by8: has joined #RubyOnRails
[23:49:21] _3by8: Radar: there's not a Kindle version of your book on Amazon and it's not cheaper than the Manning website either but I have a question because I'm thinking about buying another Manning book from Amazon. Do you know if I were to buy the print version of your book from Amazon if I'd get the eBook as well? It says I do in the description but I don't know if that was just pulled directly from the Manning website or what.
[23:51:05] _3by8: Radar: sweet, thanks.
[23:57:01] _3by8: Quit: Page closed

2016-02-29

[06:01:17] _3by8: Quit: Page closed

2016-02-28

[17:43:51] _3by8: has joined #RubyOnRails
[17:45:03] _3by8: Is it enough to just create a class in the models folder and generate a table in the database for an ActiveRecord object to exist?
[17:46:04] _3by8: renegadeandy: thank you
[18:14:43] _3by8: flip_digits: you should just ask
[18:15:01] _3by8: flip_digits: and if you have any code examples, paste it in a Gist
[18:16:25] _3by8: delgiudices: have you tried?
[18:38:38] _3by8: chridal: wrk might work
[19:15:16] _3by8: chridal: no problem
[20:01:09] _3by8: Qureshi: when you say you ran bundler, are you talking about taking the steps that the error message suggested?
[21:18:48] _3by8: What happens when you use ActiveRecord to create a second record for a has_one relation?
[21:18:55] _3by8: Did I even say that properly?
[21:26:35] _3by8: Radar: what's your stupid, gay book's name?
[21:28:38] _3by8: Oh, that's cool. Rails 4 in Action, I've heard that book's name uttered as a recommendation.
[21:29:05] _3by8: Yehuda Katz, too? What did he do, write a forward or something?
[21:32:20] _3by8: Radar: having only read 2 introductory books on Rails, do you think I'd be able to pick up what you put down?
[21:33:21] _3by8: Radar: okay, so, back to my question... do you think I'd be able to process it without having a really solid grasp of Ruby?
[21:34:54] _3by8: Radar: it was more of a satirical use but I understand that's difficult to understand in a chat room.
[21:35:55] _3by8: Rails 4 in Action
[21:37:31] _3by8: Michael Hartl's Ruby on Rails Tutorial and David Copeland's Rails, Angular, Postgres, and Bootstrap: Powerful, Effective, and Efficient Full-Stack Web Development
[21:40:16] _3by8: Radar: is this a project-based book?

2016-02-23

[03:45:19] _3by8: has joined #RubyOnRails
[03:45:28] _3by8: I know this is completely off-topic but I need someone's opinion (and I have no idea where else I can ask and get an answer quickly) preferably someone who is African-American or black American or whatever you prefer. Anyways, I used the term "black community" in the context of wondering what the "black community's" opinion about something is and was basically called a racist. Am I wrong? Whisper me please.
[03:51:07] _3by8: puff: yeah, I was told not to use that term because it's "othering" was the exact word they used.
[04:51:55] _3by8: Quit: Page closed

2016-02-21

[16:40:53] _3by8: has joined #RubyOnRails
[16:41:54] _3by8: Issuing ruby -v in a plain terminal returns a message telling me to install Ruby but if I run the same command in the terminal window of my IDE, it tells me what I want to hear. Why would that be?
[16:43:04] _3by8: has joined #ruby
[16:43:07] _3by8: Issuing ruby -v in a plain terminal returns a message telling me to install Ruby but if I run the same command in the terminal window of my IDE, it tells me what I want to hear. Why would that be?
[16:44:35] _3by8: Ox0dea: thanks, so I just need to set an environment variable or maybe run RVM again?
[16:46:05] _3by8: chubijs: RVM
[16:57:06] _3by8: Ping timeout: 252 seconds

2016-02-20

[16:20:11] _3by8: pwnd_nsfw: so I can test JavaScript functions in the console...
[16:20:55] _3by8: pwnd_nsfw: I can type alert("blah") into the console and it functions fine.
[16:21:11] _3by8: pwnd_nsfw: I typed in console.log and it did basically nothing that seems useful.
[16:23:31] _3by8: Will BUTTS show up in the console if I do that?
[16:41:49] _3by8: pwnd_nsfw: you're the best, thanks for the help, got everything sorted :) my plus/minus icons are working now whenever I expand an order B)
[17:00:48] _3by8: pwnd_nsfw: so there's this interesting little effect happening where the script doesn't work if it's the first time visiting the page, I have to hit reload then it works... what do you think the problem is?
[17:05:39] _3by8: pwnd_nsfw: thank you, perfect!
[17:11:02] _3by8: Quit: Page closed