willardg

Activity Graph

Page 1 of 4 | Next »

2018-01-14

[00:07:42] willardg: has joined #ruby
[00:07:42] willardg: has joined #RubyOnRails
[00:07:49] willardg: Client Quit

2018-01-13

[22:54:21] willardg: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-01-11

[03:27:36] willardg: has joined #RubyOnRails
[03:27:36] willardg: has joined #ruby
[03:29:04] willardg: Hey guys. I have a rake task that prompts a user for input before running. Are you sure? [Y/N] but I want to update the seed file to automatically run this task and answer that question. Is there a way you can write the task to autofill the prompt?
[03:29:45] willardg: I would just modify the original task to accept an arg to run without prompt, but the original task is brought in from an outside gem... :(

2017-07-18

[02:24:30] willardg: has joined #ruby
[02:24:30] willardg: has joined #RubyOnRails
[02:25:45] willardg: has left #ruby: ()
[02:25:50] willardg: has joined #ruby
[02:26:05] willardg: Good evening!
[03:03:04] willardg: Quit: Textual IRC Client: www.textualapp.com

2017-04-01

[00:14:53] willardg: has joined #RubyOnRails
[00:14:53] willardg: has joined #ruby
[00:17:21] willardg: Has anyone here worked with collection_select in a form?
[00:17:29] willardg: https://gist.github.com/anonymous/819330f68ab1d2ebb499a96e317457f9
[00:37:32] willardg: Quit: My MacBook has gone to sleep. ZZZzzz…
[02:56:10] willardg: has joined #ruby
[02:56:10] willardg: has joined #RubyOnRails
[05:09:14] willardg: Quit: My MacBook has gone to sleep. ZZZzzz…
[05:11:56] willardg: has joined #ruby
[05:11:56] willardg: has joined #RubyOnRails
[05:12:23] willardg: Client Quit
[05:13:04] willardg: has joined #RubyOnRails
[05:13:04] willardg: has joined #ruby
[05:13:11] willardg: Client Quit
[05:13:41] willardg: has joined #RubyOnRails
[05:13:41] willardg: has joined #ruby
[05:13:59] willardg: Client Quit
[05:14:29] willardg: has joined #ruby
[05:14:29] willardg: has joined #RubyOnRails
[05:14:47] willardg: Client Quit
[05:15:22] willardg: has joined #ruby
[05:15:22] willardg: has joined #RubyOnRails
[05:15:35] willardg: Client Quit
[05:16:02] willardg: has joined #RubyOnRails
[05:16:03] willardg: has joined #ruby
[05:16:23] willardg: Client Quit
[09:25:21] willardg: has joined #ruby
[09:25:21] willardg: has joined #RubyOnRails
[09:31:08] willardg: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[09:31:10] willardg: has left #ruby: ("Textual IRC Client: www.textualapp.com")

2017-03-30

[17:18:35] willardg: has joined #ruby
[17:18:35] willardg: has joined #RubyOnRails
[17:21:10] willardg: has left #ruby: ()
[17:21:15] willardg: Client Quit

2017-03-29

[01:35:23] willardg: has joined #RubyOnRails
[01:35:23] willardg: has joined #ruby
[01:40:50] willardg: If you want to have a user's location available in a rails controller what way have you guys gone about doing it? So far I keep finding Ajax as a solution, but I haven't played around with that much.
[01:44:18] willardg: I've already implemented ip based location and it doesn't look like it works well if you're not on wifi, like any cell user.
[01:45:37] willardg: sorry, I'm planning on showing results in order based on closest to the users location to furthest
[01:46:22] willardg: I have an addresses model with lat and lon geocoded.
[01:52:44] willardg: Thanks Doctor. I'll take a stab at it.
[02:36:08] willardg: Quit: My MacBook has gone to sleep. ZZZzzz…
[05:27:47] willardg: has joined #RubyOnRails
[05:27:47] willardg: has joined #ruby
[05:28:39] willardg: Client Quit
[15:42:34] willardg: has joined #ruby
[15:42:34] willardg: has joined #RubyOnRails
[15:46:24] willardg: Client Quit

2017-03-28

[05:44:50] willardg: has joined #RubyOnRails
[05:44:51] willardg: has joined #ruby
[06:08:44] willardg: I have this exact same issue except when action_mailer.perform_deliveries = false I get a 302 but no message sent, when it's set to true I get a 500 error.
[06:08:51] willardg: http://stackoverflow.com/questions/26294739/ruby-on-rails-mailer-not-sending-email-in-development-mode
[06:12:28] willardg: Does anyone have any experience with anything like this? I keep thinking there must be something set to turn off sending emails in development, but I can't find anything.
[06:19:47] willardg: Thanks, I'll look into that.
[06:31:25] willardg: When I'm getting the 500 error I'm getting "EOFError - end of file reached:"
[06:31:58] willardg: again only when perform_deliveries is true
[07:53:31] willardg: Andr3as, are you trying to only allow a selection of attributes in the achievements_attributes object to be accessible through domain? I have never run into any issues just setting it like this.
[07:53:32] willardg: https://gist.github.com/anonymous/2fe27465ca57a51360c987b0c44fba5d
[07:59:24] willardg: Nope, and one of the nice benefits is it remembers the association
[08:00:12] willardg: You might also be able to use something like this in your form view
[08:00:13] willardg: <%= f.fields_for :achievements do |ff| %>
[08:03:53] willardg: Andr3as What's that?
[08:04:42] willardg: Let me look at your gist again
[08:10:27] willardg: pretty sure the accepts_nested_attributes_for in domain.rb should be singular
[08:14:04] willardg: I'll take another look at it in the morning if you haven't gotten it by then. 1am is a bit late for me. best of luck
[08:15:42] willardg: Andr3as I'd be happy to hear how it comes out if you get it before I'm back
[16:07:18] willardg: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[17:04:46] willardg: Quit: Textual IRC Client: www.textualapp.com

2017-03-27

[21:08:50] willardg: has joined #ruby
[21:08:55] willardg: has joined #RubyOnRails
[21:12:36] willardg: Can someone shed some light on the error I'm getting? I'm trying to get an object instead of an AR relation by using .first or .last and I'm not sure what the error is trying to say.
[21:12:37] willardg: https://gist.github.com/anonymous/9cacdfeb462b8dfda19def4e8c013c8b
[21:16:52] willardg: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[21:22:24] willardg: Good afternoon
[21:35:26] willardg: A project I'm working on has > 1 ruby version in it right now. Couldn't tell you for sure how they are handling production deployments. but I use rbenv in my dev flow
[21:35:51] willardg: They haven't had a prod push in 6+months
[21:44:11] willardg: Remote host closed the connection
[21:45:08] willardg: has joined #RubyOnRails
[21:45:08] willardg: has joined #ruby
[21:45:42] willardg: has left #ruby: ()
[22:01:41] willardg: Quit: My MacBook has gone to sleep. ZZZzzz…
[22:24:38] willardg: has joined #RubyOnRails
[22:24:38] willardg: has joined #ruby
[22:30:32] willardg: Quit: Textual IRC Client: www.textualapp.com

2017-03-20

[07:16:12] willardg: has joined #ruby
[07:16:17] willardg: has joined #RubyOnRails
[08:06:36] willardg: Quit: Textual IRC Client: www.textualapp.com

2017-03-11

[02:23:59] willardg: Quit: Textual IRC Client: www.textualapp.com

2017-03-10

[16:29:52] willardg: has joined #RubyOnRails
[16:29:52] willardg: has joined #ruby
[16:30:03] willardg: has left #ruby: ()
[16:30:19] willardg: has left #RubyOnRails: ()
[16:34:44] willardg: has joined #RubyOnRails
[18:01:12] willardg: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:02:11] willardg: has joined #ruby
[18:02:14] willardg: has joined #RubyOnRails
[19:35:41] willardg: Quit: Textual IRC Client: www.textualapp.com
[19:39:30] willardg: has joined #ruby
[19:39:31] willardg: has joined #RubyOnRails
[19:43:50] willardg: I know there isn't a image_tag_if but is there anything similar that anyone can think of? I'm trying to show icons with links if a user has a link for that social media site stored.
[19:45:21] willardg: https://gist.github.com/anonymous/1c6ac59d65ddab42ba6930fc7606072f
[19:46:11] willardg: Sorry, I made a gist of the wrong thing. https://gist.github.com/anonymous/c825a1e0cb639d9e96231f9d8063e86b
[19:47:43] willardg: I guess I could use css to hide it.
[19:48:19] willardg: I would really prefer that the erb just not even let it get that far, but what your saying would probably work. thanks.

2016-06-30

[18:12:41] willardg: has joined #ruby
[18:13:07] willardg: has joined #RubyOnRails
[18:15:48] willardg: has left #RubyOnRails: ()
[18:15:49] willardg: has joined #RubyOnRails
[18:15:51] willardg: has left #ruby: ()
[18:15:52] willardg: has joined #ruby
[23:02:51] willardg: Ping timeout: 258 seconds

2016-06-16

[16:28:41] willardg: has joined #ruby
[16:28:42] willardg: has joined #RubyOnRails
[16:34:03] willardg: anyone have any ideas for a work around for the https://github.com/getsentry/raven-js/issues/495 issue?
[17:13:11] willardg: Ping timeout: 240 seconds

2015-11-26

[00:05:58] willardg: has joined #RubyOnRails
[00:05:58] willardg: has joined #ruby
[00:45:24] willardg: Quit: My Mac has gone to sleep. ZZZzzz???
[01:03:05] willardg: has joined #RubyOnRails
[01:03:05] willardg: has joined #ruby
[01:05:33] willardg: Client Quit
[01:16:14] willardg: has joined #RubyOnRails
[01:16:14] willardg: has joined #ruby
[01:17:22] willardg: Client Quit
[01:47:18] willardg: has joined #RubyOnRails
[01:47:18] willardg: has joined #ruby
[01:48:04] willardg: Client Quit
[01:59:26] willardg: has joined #RubyOnRails
[01:59:26] willardg: has joined #ruby
[02:04:24] willardg: Quit: Textual IRC Client: www.textualapp.com
[05:46:42] willardg: has joined #RubyOnRails
[05:46:42] willardg: has joined #ruby
[06:19:40] willardg: Quit: My Mac has gone to sleep. ZZZzzz???

2015-11-22

[04:56:13] willardg: has joined #RubyOnRails
[04:56:13] willardg: has joined #ruby
[04:57:04] willardg: http://pastie.org/10573273
[04:57:23] willardg: I'm not sure why my before_action isn't working.
[04:57:55] willardg: The error that I get is posted at the bottom of the pastie below the simple controller that I ahve.
[04:58:55] willardg: I'm just trying to set a variable. and I can't get it to set when I put it in the controller, but I've done the same thing straight into the console and it works just fine there.
[05:01:52] willardg: Is anyone one right now?
[05:02:14] willardg: typo. Is anyone on right now?
[05:05:43] willardg: I'm looking into ways to let people use the app without having to sign up for it first. I was thinking that if current user wasn't set that I could then set it manually using like ||= but I can't even get it right now with just =
[05:06:39] willardg: Yes. and devise makes current_user. So with devise that's not a variable?
[05:07:05] willardg: I have not seen that!!
[05:07:34] willardg: You guys always have something I didn't think to google!
[05:08:28] willardg: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[05:13:11] willardg: What I'm going for is that a lot of people will get to the website and just not sign up because they don't see what it really does yet. I'm thinking if they could get there and snoop around then sign up if they decide they like it, it might go better. Just have a bad bounce rate on the landing page right now. 90% of people don't even go to the about page or anything.
[05:42:52] willardg: Thanks VeryBewitching. Been thinking about what you've said and I see now how I can use that better.
[05:43:16] willardg: I'm not as much concerned about what they can and can't do as much as I need the user to already have a zip code
[05:46:16] willardg: VeryBewitching Permission to Private Message you?
[06:27:40] willardg: Quit: Textual IRC Client: www.textualapp.com

2015-11-21

[01:25:12] willardg: has joined #RubyOnRails
[01:25:12] willardg: has joined #ruby
[01:33:19] willardg: I???m trying to figure out the best way to do something.
[01:33:20] willardg: Essentially, I don???t want it to just be a list of schools for the student to pick, I would rather they have to type in a code, and if it matches, then it gets and puts the school_id into the users??? school_id collumn
[01:33:20] willardg: I have a working app where a user can sign up(devise gem) and the form takes all the normal user info. I???ve recently added a model schools that has a collumn school_code that I want the user that is signing up to fill in when signing up. How can I make that available to the form? Nested attributes?
[01:41:00] willardg: I think you're making it harder on yourself than you need to by naming things the same. You have an uploads controller and you're naming things @upload @uploads. You're going to start hanging your self up on naming things.
[01:42:07] willardg: I still get mislead by tutorials. Just have to take them for what they are worth.
[03:06:07] willardg: http://pastie.org/10571059
[03:06:31] willardg: I can't figure out what I'm doing wrong with these active record queries.
[03:07:09] willardg: I want it to return the activity status of the school, true or false
[03:15:37] willardg: Thanks @tubbo. I missed that.
[03:31:45] willardg: https://github.com/mislav/will_paginate
[03:33:20] willardg: At least he can admit it. :D
[03:34:53] willardg: I haven't looked much into https://www.elastic.co/ but this sounds like something that would have me researching it.
[04:01:32] willardg: Quit: Textual IRC Client: www.textualapp.com
[05:19:34] willardg: has joined #RubyOnRails
[05:19:34] willardg: has joined #ruby
[07:13:00] willardg: Quit: My Mac has gone to sleep. ZZZzzz???
[17:44:29] willardg: has joined #RubyOnRails
[17:44:29] willardg: has joined #ruby
[17:44:36] willardg: Remote host closed the connection

2015-11-18

[03:04:45] willardg: has joined #RubyOnRails
[03:04:45] willardg: has joined #ruby
[07:44:37] willardg: Quit: Textual IRC Client: www.textualapp.com

2015-11-12

[00:05:36] willardg: Quit: Textual IRC Client: www.textualapp.com

2015-11-11

[00:03:40] willardg: has joined #RubyOnRails
[00:03:40] willardg: has joined #ruby
[01:48:17] willardg: Cancancan question
[01:48:51] willardg: Why can't student see the classroom_path?
[01:48:52] willardg: elsif user.role?(:teacher)
[01:48:53] willardg: elsif user.role?(:student)
[01:48:53] willardg: can :read, :all
[01:48:55] willardg: can :read, Classroom
[01:49:43] willardg: I'm following a tutorial
[01:49:49] willardg: http://www.sitepoint.com/cancancan-rails-authorization-dance/
[01:50:14] willardg: I'm making the projects to be classrooms though
[01:51:10] willardg: http://www.sitepoint.com/cancancan-rails-authorization-dance/
[01:51:24] willardg: I'm following this tutorial, and I can't figure out something
[01:51:45] willardg: can :read, :all
[01:51:45] willardg: elsif user.role?(:teacher)
[01:51:47] willardg: can :read, Classroom
[01:51:47] willardg: elsif user.role?(:student)
[01:52:25] willardg: Student can't see the classroom_path for some reason. The link above shows project the same way I have classroom set up right now.
[01:55:03] willardg: I'm not sure that it's a problem per-say. It's probably how it's supposed to act. I'm still learning it, but I don't understand why it is doing what it's doing.
[01:55:35] willardg: When the role is set to student, I can't access that path, but when it is set to teacher. It can
[02:04:00] willardg: I currently have it hard coded into the project to toggle the auth level
[02:04:30] willardg: https://sitepoint-cancan.herokuapp.com/projects
[02:05:52] willardg: I think I understand what you're asking for. Let me see if I can get you that.
[02:06:57] willardg: https://github.com/willardgmoore-portfolio/iCan_example
[02:07:04] willardg: this is my current version of the project
[02:10:27] willardg: https://github.com/willardgmoore-portfolio/iCan_example/blob/master/app/models/user.rb
[02:10:37] willardg: is where i'm setting the roles
[02:16:23] willardg: sevenseacat I just reread the #rubyonrails rules. I'm new, but I'll be more thorough next time.
[02:17:51] willardg: I was under the impression that read included index. Let me see if I can find that in the documentation or not.
[02:18:07] willardg: I think it's an alias method
[02:18:51] willardg: alias_action :index, :show, :to => :read
[02:19:30] willardg: I'm still learning it and I trust you. What do you think this is.
[02:20:01] willardg: I'm going to try to put it as read in the classrooms_controller and see if it'll work
[02:25:26] willardg: Where do you see that? I'm sorry, just had a distraction that derailed my train of thought.
[02:27:47] willardg: I just did another push. Should it look more like this?
[02:27:59] willardg: I'm double checking the tutorial now about that.
[02:31:38] willardg: I just fixed that, It's still not letting student see the classrooms_path. The tutorial had it wrong too. :D
[03:00:15] willardg: Quit: My Mac has gone to sleep. ZZZzzz???
[17:24:48] willardg: has joined #RubyOnRails
[17:24:48] willardg: has joined #ruby
[20:35:30] willardg: Quit: My Mac has gone to sleep. ZZZzzz???
[20:49:38] willardg: has joined #RubyOnRails
[20:49:38] willardg: has joined #ruby
[20:54:41] willardg: Quit: My Mac has gone to sleep. ZZZzzz???
[22:04:19] willardg: has joined #RubyOnRails
[22:04:19] willardg: has joined #ruby
[22:55:09] willardg: Quit: My Mac has gone to sleep. ZZZzzz???
[23:01:22] willardg: has joined #RubyOnRails
[23:01:22] willardg: has joined #ruby
[23:05:40] willardg: Client Quit
[23:15:36] willardg: has joined #RubyOnRails
[23:15:36] willardg: has joined #ruby

2015-11-10

[21:52:05] willardg: has joined #RubyOnRails
[21:52:05] willardg: has joined #ruby
[23:08:12] willardg: Quit: My Mac has gone to sleep. ZZZzzz???
[23:10:06] willardg: has joined #RubyOnRails
[23:10:06] willardg: has joined #ruby
[23:58:45] willardg: Quit: My Mac has gone to sleep. ZZZzzz???