CorySimmons

Activity Graph

Page 1 of 5 | Next »

2016-01-11

[01:18:19] CorySimmons: has joined #ruby

2016-01-10

[07:50:41] CorySimmons: has joined #ruby
[12:02:36] CorySimmons: has joined #ruby
[12:02:40] CorySimmons: Max SendQ exceeded
[12:03:17] CorySimmons: has joined #ruby
[13:48:25] CorySimmons: has joined #ruby
[17:54:48] CorySimmons: has joined #ruby
[19:56:59] CorySimmons: has joined #ruby

2016-01-09

[01:51:06] CorySimmons: has joined #ruby
[21:46:18] CorySimmons: has joined #ruby

2016-01-08

[01:15:41] CorySimmons: has joined #ruby

2016-01-07

[06:33:28] CorySimmons: has joined #ruby
[20:45:18] CorySimmons: has joined #ruby

2016-01-06

[17:31:53] CorySimmons: has joined #ruby

2016-01-05

[03:34:07] CorySimmons: has joined #ruby

2016-01-04

[16:01:15] CorySimmons: has joined #ruby
[19:53:06] CorySimmons: has joined #ruby
[21:36:25] CorySimmons: has joined #ruby
[22:31:22] CorySimmons: has joined #ruby

2016-01-02

[21:49:03] CorySimmons: has joined #ruby

2016-01-01

[21:42:11] CorySimmons: has joined #ruby
[21:42:15] CorySimmons: Max SendQ exceeded
[21:42:55] CorySimmons: has joined #ruby

2015-12-31

[19:44:07] CorySimmons: has joined #ruby
[22:35:28] CorySimmons: has joined #ruby

2015-12-18

[17:12:52] CorySimmons: has joined #ruby

2015-11-18

[02:12:03] CorySimmons: has joined #ruby

2015-10-28

[16:42:10] CorySimmons: has joined #ruby

2015-09-10

[17:22:26] CorySimmons: has joined #ruby

2015-08-27

[15:54:54] CorySimmons: has joined #ruby

2015-08-26

[16:01:44] CorySimmons: has joined #ruby

2015-08-24

[18:49:59] CorySimmons: has joined #ruby

2015-08-23

[05:29:42] CorySimmons: has joined #ruby

2015-08-22

[16:02:39] CorySimmons: has joined #ruby

2015-08-20

[15:21:26] CorySimmons: has joined #ruby

2015-08-19

[19:32:28] CorySimmons: has joined #ruby

2015-08-17

[19:05:31] CorySimmons: has joined #ruby

2015-08-14

[15:18:06] CorySimmons: has joined #ruby

2015-08-10

[14:30:22] CorySimmons: has joined #ruby

2015-08-07

[14:43:05] CorySimmons: has joined #ruby

2015-08-06

[03:02:44] CorySimmons: has joined #ruby

2015-08-05

[02:30:55] CorySimmons: has joined #ruby
[03:44:36] CorySimmons: has joined #ruby

2015-08-04

[16:34:45] CorySimmons: has joined #ruby

2015-08-03

[15:48:49] CorySimmons: has joined #ruby

2015-07-30

[02:24:54] CorySimmons: has joined #ruby
[17:34:47] CorySimmons: has joined #ruby

2015-07-28

[16:09:53] CorySimmons: has joined #ruby
[16:09:56] CorySimmons: Max SendQ exceeded
[16:10:30] CorySimmons: has joined #ruby

2015-07-25

[21:47:43] CorySimmons: has joined #ruby
[21:47:51] CorySimmons: Max SendQ exceeded
[21:48:30] CorySimmons: has joined #ruby
[21:50:47] CorySimmons: has joined #ruby

2015-07-24

[15:25:35] CorySimmons: has joined #ruby
[19:52:48] CorySimmons: has joined #ruby

2015-07-23

[16:07:42] CorySimmons: has joined #ruby

2015-07-20

[04:38:07] CorySimmons: has joined #ruby

2015-07-19

[18:03:41] CorySimmons: has joined #ruby

2015-07-13

[16:21:26] CorySimmons: has joined #ruby

2015-07-10

[20:40:20] CorySimmons: has joined #ruby

2015-07-09

[16:20:36] CorySimmons: has joined #ruby
[18:02:20] CorySimmons: has joined #ruby

2015-07-02

[19:24:40] CorySimmons: has joined #ruby

2015-07-01

[01:32:21] CorySimmons: has joined #ruby

2015-06-23

[16:07:05] CorySimmons: has joined #ruby

2015-06-19

[16:27:48] CorySimmons: has joined #ruby

2015-06-17

[19:00:17] CorySimmons: has joined #ruby

2015-06-05

[19:25:30] CorySimmons: has joined #ruby

2015-05-30

[03:25:57] CorySimmons: has joined #ruby
[04:18:39] CorySimmons: has joined #ruby

2015-05-29

[20:33:41] CorySimmons: has joined #ruby

2015-05-28

[15:57:59] CorySimmons: has joined #ruby

2015-05-20

[15:21:55] CorySimmons: has joined #ruby
[16:40:39] CorySimmons: has joined #ruby

2015-04-23

[19:49:16] CorySimmons: What is a block? Can it be outside of curly braces?
[19:51:15] CorySimmons: Appreciate the clarification
[19:51:35] CorySimmons: Can you make a proc out of a multiline block?
[19:52:59] CorySimmons: Awesome thanks

2015-04-02

[03:16:46] CorySimmons: Anyone here use Sass/Compass? Their channels are dead.
[03:39:51] CorySimmons: sevenseacat: I'm getting these errors when I try to use the Sassy Strings lib. I'm new to Compass so i'm not sure if it's my fault or the lib's fault https://github.com/at-import/Sassy-Strings/issues/12#issuecomment-88712186
[03:43:50] CorySimmons: Radar: Because I'm a super cool dude trying to make a super cool grid system
[03:44:11] CorySimmons: Basically I'm trying to make a Sass mixin where I can grab the numerator and denominator of a fraction and perform griddy stuff on them
[03:44:55] CorySimmons: I've got this in my config.rb http://pastie.org/10068898
[03:45:27] CorySimmons: And this in my stylesheet http://pastie.org/10068900
[03:45:32] CorySimmons: But $bar returns false
[03:45:58] CorySimmons: sevenseacat: I take it you're a dev?
[03:46:22] CorySimmons: If you don't see value in things like Bootstrap and such I don't know what to tell you
[03:47:47] CorySimmons: Yeah I'm not a fan of Bootstrap either, but I see it's value
[03:48:09] CorySimmons: Not sure what sevenseacat meant by bastardizing simple things
[03:48:25] CorySimmons: referring to my grid system specifically i guess?
[03:48:51] CorySimmons: that's cool. what you do sucks too
[03:49:31] CorySimmons: just don't like people shitting on what i'm interested in because they don't understand it
[03:50:16] CorySimmons: sevenseacat: Sorry, misinterpretted "bastardizing" as a bad thing
[03:50:38] CorySimmons: Ugh, sorry =[
[03:50:49] CorySimmons: Just pissed off at this Compass problem and taking it out on you guys. My bad

2015-02-23

[00:06:19] CorySimmons: tc-coug: No, I haven't gotten to nested forms yet. Baby steps!! :)
[00:08:04] CorySimmons: reading about it here: http://guides.rubyonrails.org/form_helpers.html#nested-forms
[00:08:32] CorySimmons: not too worried about nested forms myself. more interested in getting my create/read controller working with ajax now
[00:08:38] CorySimmons: good luck though
[00:32:50] CorySimmons: Is there a prettier way to write the html part of this so it doesn't use hash-rockets? <%= form_for :disease, remote: true, url: diseases_path, :html => {:class => 'foo'} do |f| %>
[00:34:41] CorySimmons: Radar: What is the difference between @disease and :disease in this context?
[00:35:01] CorySimmons: Radar: I'm aware of that
[00:38:18] CorySimmons: Radar: I tried it and it threw an error. I'm assuming because I haven't made the new action set the instance variable.
[00:39:23] CorySimmons: First argument in form cannot contain nil or be empty
[03:26:51] CorySimmons: Is there any practical way to prevent this kind of code duplication? https://github.com/corysimmons/cancerbase/blob/master/app/controllers/diseases_controller.rb https://github.com/corysimmons/cancerbase/blob/master/app/controllers/treatments_controller.rb
[03:28:00] CorySimmons: Radar: What do you mean?
[03:28:31] CorySimmons: So it's best just to duplicate in these cases?
[03:37:12] CorySimmons: Anyone use Devise? Have a preference on how to create admin roles? https://github.com/plataformatec/devise/wiki/How-To:-Add-an-Admin-Role
[04:01:29] CorySimmons: I'm sure this is a dumb question, but how can I use that if current_user.admin? in my views?
[04:01:36] CorySimmons: (from https://github.com/plataformatec/devise/wiki/How-To:-Add-an-Admin-Role#option-2---adding-an-admin-attribute)
[04:03:13] CorySimmons: nahtnam: That doesn't work in the view
[04:03:57] CorySimmons: Oh wait, maybe I'm stupid
[04:04:01] CorySimmons: Gimme a minute
[04:04:06] CorySimmons: I didn't even read the error message
[04:04:09] CorySimmons: I deserve to burn in hell
[04:04:52] CorySimmons: I should've been using if current_user.try(:admin?)
[04:05:15] CorySimmons: I can't afford no book
[04:06:18] CorySimmons: Radar: Ah thanks man! :D
[04:06:34] CorySimmons: hah, I literally cannot afford the book right now but when I can I'll buy it
[04:06:56] CorySimmons: (like I literally don't have $30 to my name)
[04:09:30] CorySimmons: nahtnam: Nah, I just prefer to study than "work" at the moment
[04:09:44] CorySimmons: Radar: Who are you?
[04:10:40] CorySimmons: You said you wrote the book so you're one of those few people
[04:19:50] CorySimmons: Radar: Jesus Christ your bio is legendary
[04:25:45] CorySimmons: Radar: How's Go? I saw where TJ Huckchuck dropped Node for it
[04:25:56] CorySimmons: Looks like braille to me
[04:44:38] CorySimmons: I have a user model with an admin attribute on it. I have a disease model. As an admin, I'm adding diseases to the disease table. As a user, I want to be able to select the diseases that apply to me. What's the best way to approach this problem? (I'm new to programming/rails)
[04:46:49] CorySimmons: sivsushruth: https://github.com/corysimmons/cancerbase
[04:47:27] CorySimmons: I have Users with an Admin attribute column; Disease model; and Treatment model
[05:05:50] CorySimmons: nahtnam: Each disease could belong to many users (e.g. "lung cancer"). Should this be a has_and_belongs_to_many association?
[05:12:32] CorySimmons: Anyone feel free to answer that
[05:27:16] CorySimmons: okay, burnt out on Rails. Going to go see if I can learn some JS API stuff with SoundCloud
[05:27:22] CorySimmons: Thanks for all your help guys and girls
[05:29:42] CorySimmons: Radar: Actually, remember how I only have $30 to my name? Should probably actually "work-work" tomorrow.
[05:31:00] CorySimmons: I'm definitely interested in fleshing out this app
[05:31:23] CorySimmons: j_mcnally: too easy
[05:32:45] CorySimmons: But yeah, as soon as I've got some money coming in I'll get back to studying Rails

2015-02-22

[22:20:22] CorySimmons: treatments should be. Models?
[22:20:22] CorySimmons: Hi, I'm new to Rails and programming in general. I'm trying to make a site where users can add diseases, and treatments, and how effective those treatments were. I want other users to be able to search for a disease, and see a list of treatments ordered by how effective they were. I've made the user system by using Devise, but now I'm stuck (and this is usually the part where I get stuck in programming). I'm not sure what the diseases and
[22:21:39] CorySimmons: nickjj: Thanks
[22:25:11] CorySimmons: I've read about foreign key tables and how to modify migrations to link tables together. It's hard for me to really wrap my head around. I'm sure after I build this app it will be easier.
[22:27:00] CorySimmons: It's just getting through that first app by yourself. :)
[23:03:05] CorySimmons: So for my create disease action, I have render plain: params[:disease].inspect but when I submit the form it says there's a parse error on line 1 and it's expecting EOF
[23:04:48] CorySimmons: Any idea what that's about?
[23:05:15] CorySimmons: http://i.imgur.com/OtQFq5M.png
[23:07:07] CorySimmons: The create action of my diseases controller has this: render plain: params[:disease].inspect
[23:07:29] CorySimmons: So it's displaying the params correctly, but for some reason it's throwing that EOF error
[23:08:31] CorySimmons: It was JSONView Chrome Extension
[23:54:50] CorySimmons: badass. i'm getting a grip on rails
[23:55:36] CorySimmons: still going to be screwed trying to wrap my head around foreign keys and all that jazz, but i've got create/read working (without using scaffold)

2014-12-16

[03:26:46] CorySimmons: How can I rewrite this to get rid of the old hash-rocket syntax? t.boolean 'visible', :default => false
[03:27:01] CorySimmons: just :default: false ?
[03:29:26] CorySimmons: mroach: So I don't have to notate the default with a preceeding colon?
[03:29:34] CorySimmons: (to indicate it's a symbol)?
[03:30:02] CorySimmons: Or does the JSON syntax only work with symbols?
[03:31:14] CorySimmons: I see. Thank you

2014-12-10

[05:33:06] CorySimmons: Hello, I'm learning Rails with the Lynda.com course. In it, the instructor says to use `match ':controller(/:action(/:id))', :via => :get` within the routes file to lazily match routes. Is this a good practice? If not, why? And is there a better/standard way?
[20:31:31] CorySimmons: New to programming/Ruby. Anyone know of a place where I could find some real-world exercises to practice with?
[20:33:49] CorySimmons: j2p2: Thanks, these are perfect

2014-09-06

[02:25:16] CorySimmons: i'll screw around with it and quit like i always do
[02:25:26] CorySimmons: story of my grid's life in rails
[02:25:47] CorySimmons: also, will paypal someone $50 to do this for me
[02:46:17] CorySimmons: is there a ruby jobs room?
[02:46:32] CorySimmons: for paying for someone to make something small for me?
[02:48:05] CorySimmons: meh, offering $50 to someone to build a simple gem that will load some scss files into vendor/assets/stylesheets/foo
[02:50:41] CorySimmons: jhass: No, looking now
[02:54:09] CorySimmons: Wow looks simply