Page 1 of 4 | Next »
[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... :(
[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
[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.
[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.
[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
[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: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
[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:46:11] willardg: Sorry, I made a gist of the wrong thing. https://gist.github.com/anonymous/c825a1e0cb639d9e96231f9d8063e86b
[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.
[16:34:03] willardg: anyone have any ideas for a work around for the https://github.com/getsentry/raven-js/issues/495 issue?
[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: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: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
[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:34:53] willardg: I haven't looked much into https://www.elastic.co/ but this sounds like something that would have me researching it.
[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:10:27] willardg: https://github.com/willardgmoore-portfolio/iCan_example/blob/master/app/models/user.rb
[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: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:31:38] willardg: I just fixed that, It's still not letting student see the classrooms_path. The tutorial had it wrong too. :D