« Back to channel list

#RubyOnRails - 02 December 2015

« Back 1 day Forward 1 day »
[00:00:03] diegoviola: https://groups.google.com/forum/#!topic/comp.os.minix/wlhw16QWltI%5B1-25%5D
[00:00:15] jmrepetti: has joined #RubyOnRails
[00:00:29] markh: 92? jesus
[00:01:00] diegoviola: yes, old flamewar
[00:01:08] diegoviola: https://en.wikipedia.org/wiki/Tanenbaum%E2%80%93Torvalds_debate
[00:01:12] owenjones: has joined #RubyOnRails
[00:02:09] diegoviola: Linus was 22
[00:05:03] xlegoman: has joined #RubyOnRails
[00:05:25] pragmatism: has joined #RubyOnRails
[00:06:24] lemur: has joined #RubyOnRails
[00:08:26] ellisTAA: has joined #RubyOnRails
[00:08:37] rubyonrailed: has joined #RubyOnRails
[00:10:47] yoongkang: has joined #RubyOnRails
[00:11:17] pyemkey: has joined #RubyOnRails
[00:12:05] ellisTAA: has joined #RubyOnRails
[00:13:13] rubyonrailed: I'm trying to run my delayed jobs in development. But i'm getting this error, does anyone know why this is happening, or can point me in the right direction to fix it? https://gist.github.com/JasonMannon/c5de86b5d62080fd1d43
[00:14:53] joshkovach: has joined #RubyOnRails
[00:15:11] blackmesa: has joined #RubyOnRails
[00:18:48] michaeldeol: has joined #RubyOnRails
[00:19:45] hahuang65: has joined #RubyOnRails
[00:20:20] michaeldeol: has joined #RubyOnRails
[00:22:05] deol: has joined #RubyOnRails
[00:23:06] ngr: has joined #RubyOnRails
[00:23:24] aaronr: has joined #RubyOnRails
[00:23:58] nyminal: has joined #RubyOnRails
[00:24:09] RegulationD: has joined #RubyOnRails
[00:24:53] patrick99e99: has joined #RubyOnRails
[00:25:10] nyminal: has left #RubyOnRails: ()
[00:25:43] patrick99e99: hey rails friends.. I have a routing question.. I've got: namespace 'admin' { route.get '/users/:id', :as => :user, :constraints => { :id => /\d+/ } } ... yet if I go to /admin/users/ it does not blow up... Started GET "/admin/users/" for 127.0.0.1 at 2015-12-01 16:24:02 -0800 gives a 200 OK... ?
[00:26:34] MaDErroR123: has joined #RubyOnRails
[00:29:31] jhass: patrick99e99: gist your entire rake routes output
[00:31:47] patrick99e99: jhass https://gist.github.com/patrick99e99/087f72ebafe4ace33fe4
[00:32:00] argoneus: where do people generally keep their secret keys, API keys etc?
[00:32:12] argoneus: from what I've seen ENV seems to be popular, but im on windows and its annoying for development
[00:32:38] jhass: argoneus: config/secrets.yml
[00:32:45] Synthead: has joined #RubyOnRails
[00:32:46] argoneus: jhass: but I push this file to git too, no?
[00:32:53] Coldblackice: has joined #RubyOnRails
[00:33:06] jhass: patrick99e99: admin_users GET /admin/users(.:format) admin/admin#show
[00:33:11] jhass: argoneus: no
[00:33:12] annlewis: has joined #RubyOnRails
[00:33:14] jhass: you shouldn't
[00:33:19] wkoszek: argoneus: Don't push to Git.
[00:33:45] wkoszek: argoneus: Make a backup and make sure this file isn't in Git and that you have .gitignore set properly.
[00:33:49] diegoviola: I need to store this in a field: 20151127081035
[00:33:58] diegoviola: this seems to be the date and time
[00:34:05] diegoviola: should I store it as timestamp or datetime?
[00:34:27] jhass: diegoviola: depends on what it is for
[00:34:49] jhass: it's also popular to use such a timestamp for manually increased monotonic serials
[00:34:53] patrick99e99: jhass: but that's not where it's going.. its going to /admin/users/ not /admin/users
[00:35:04] diegoviola: jhass: basically I'm importing data from a CSV file
[00:35:14] jhass: patrick99e99: you generate that route somewhere. /admin/users/ and admin/users is the same
[00:35:20] diegoviola: jhass: and I need to show that later as a report
[00:35:36] demonlove: has joined #RubyOnRails
[00:35:37] jhass: diegoviola: that tells me nothing at all about the semantics of the field
[00:36:16] diegoviola: jhass: not sure what else to say honestly
[00:36:25] patrick99e99: jhass is there any way to distinguish between admin/users/ and admin/users
[00:36:55] diegoviola: jhass: my just is to just import this data I have into the db
[00:36:56] jhass: patrick99e99: maybe there's a hack, but that be bad UX too, I'd avoid it
[00:37:30] jhass: diegoviola: then nobody can answer your question
[00:37:35] shibabu: has joined #RubyOnRails
[00:37:39] Coldblackice: has joined #RubyOnRails
[00:37:48] alex88: has joined #RubyOnRails
[00:38:21] diegoviola: jhass: what exactly do you want to know?
[00:38:23] maloik: has joined #RubyOnRails
[00:38:26] demonlove: please take a look https://gist.github.com/aj07/879846ab46d1dbb8ae1c
[00:38:43] jhass: diegoviola: what the semantic meaning of the field is, what it is used for
[00:38:46] demonlove: it says syntax error, unexpected ':', expecting keyword_end before_action : find_job, only: [:show, :edit, :update, :delete] ^
[00:39:02] didymus: has joined #RubyOnRails
[00:39:34] diegoviola: there is also fields that contain this: 0000-00-00 00:00:00
[00:39:43] jhass: patrick99e99: btw not sure how wanting to have different actions behind /admin/users and /admin/users/ relates to wanting to make sure /admin/users/123 to only accept numerical values for the last part
[00:39:53] diegoviola: 2015-11-27 11:21:38
[00:40:01] threeminutemonta: has joined #RubyOnRails
[00:40:20] demonlove: jhass take a look on my problem
[00:40:30] jhass: demonlove: I was about to but now I won't
[00:40:46] bergs: has joined #RubyOnRails
[00:40:55] demonlove: somebody help
[00:41:31] jhass: demonlove: read a fucking style guide. has been some time since I saw such a huge mess, seriously
[00:43:09] Radar: My goodness.
[00:43:26] Radar: demonlove: ?rails
[00:43:30] Radar: ?rails demonlove
[00:43:35] Radar: oh, this is Rails.
[00:43:39] Radar: Please ignore my stupidity.
[00:43:43] jhass: good morning Radar :D
[00:44:06] demonlove: radar send me the link which i have to follow
[00:44:09] threeminutemonta: has joined #RubyOnRails
[00:44:19] Radar: demonlove: https://github.com/bbatsov/ruby-style-guide
[00:44:25] Radar: demonlove: Your error is on this line: https://gist.github.com/aj07/879846ab46d1dbb8ae1c#file-jobs_controller-rb-L2
[00:44:36] paradisaeidae: has joined #RubyOnRails
[00:44:54] Radar: Most of your issues are to do with indentation, but you're also using "job" where you probably mean to be using "Job"
[00:45:06] Radar: Lines 10, 15, and 38.
[00:45:35] ModusPwnens: How do I resolve the error "Unable to autoload constant VERSION, expected <path>"? It was working fine until I upgraded our rails site from 4.0 => 4.2. Autoloading lib in our engine doesn't seem to be working anymore...anyone run into this?
[00:45:48] Radar: ModusPwnens: !ncnh
[00:45:48] helpa: ModusPwnens: If you don't provide any code, it becomes really difficult for us to help you. Providing code to reproduce the problem increases your chances of getting great, accurate help immensely.
[00:46:52] argoneus: no code no help?
[00:46:58] AlHafoudh: has joined #RubyOnRails
[00:47:17] Radar: ACTION gives argoneus a gold star
[00:47:32] argoneus: can I sell it
[00:47:43] argoneus: ACTION sells it to Radar 
[00:48:09] ModusPwnens: uhh, okay. Here: http://pastie.org/10596835
[00:48:22] Radar: ModusPwnens: What's the full error message?
[00:48:39] Radar: Why is it lib/ModelBase and not lib/model_base
[00:48:40] renews: has joined #RubyOnRails
[00:48:40] wwalker: has joined #RubyOnRails
[00:49:05] ModusPwnens: full error, with path removed: Unable to autoload constant VERSION, expected <path>/version.rb to define it"
[00:49:22] ModusPwnens: Sorry, it should be model_base. it's a copy paste error.
[00:49:22] Radar: ModusPwnens: Can you reproduce this at all in a new app?
[00:49:39] juddey: has joined #RubyOnRails
[00:50:20] wwalker: Every transaction that hits rails in dev mode runs twice. The request only comes in once, but it is run twice 30 to 50 microseconds apart
[00:50:26] desmondhume: has joined #RubyOnRails
[00:50:33] Radar: wwalker: !specific
[00:50:33] helpa: wwalker: Questions concerning problems with code you've written must describe the specific problem and include valid code to reproduce it. See http://SSCCE.org for guidance.
[00:51:20] andatche: has joined #RubyOnRails
[00:51:35] ModusPwnens: Radar: Not sure. I haven't tried that yet. It's not trivial for me to do that in the environment that I'm working on so I normally do that as a last resort
[00:51:58] Radar: ModusPwnens: It's hard for me to help with this problem without a reproducible example.
[00:52:23] wwalker: Radar: wget http://localhost:3000/favicon.ico runs twice. I've no idea what to look for. I've googled and come up with lots of tlk of different # anchors etc causing some browsers to double request pages, but that isn't it.
[00:52:33] demonlove: radar: take a look https://gist.github.com/aj07/879846ab46d1dbb8ae1c
[00:52:35] ModusPwnens: Radar: I figured. It was sort of a long shot. I was wondering if anyone knew of any autoloading lib issues with a rails 4.0 => 4.2 upgrade. Looks like i have my work cut out for me then.
[00:52:35] Radar: wwalker:show us what indicates to you that it's running twice
[00:52:44] Radar: ModusPwnens: No, I haven't seen any.
[00:52:52] Radar: demonlove: It's still terrible.
[00:53:01] wwalker: I just see _everything_ in the log twice. If it does an insert in the DB, I see that it was inserted twice, so it isn't a logging issue
[00:53:12] Radar: demonlove: Please look at the docs for before_action to see the right syntax
[00:53:17] Radar: demonlove: Also, please read that style guide.
[00:53:45] maloik: has joined #RubyOnRails
[00:54:01] one_zero: has joined #RubyOnRails
[00:55:34] sevenseacat: has joined #RubyOnRails
[00:56:36] uri: has joined #RubyOnRails
[00:58:21] moeabdol: has joined #RubyOnRails
[01:01:07] wwalker: https://gist.github.com/wwalker/8844730e3ba2591fc664
[01:01:26] uri: has joined #RubyOnRails
[01:01:39] wwalker: It only happens in dev mode. If I switch to prod mode it doesn't do it.
[01:03:15] quazimodo: has joined #RubyOnRails
[01:03:55] Radar: wwalker: Hard to debug without seeing it happening for myself.
[01:06:20] jhass: wwalker: I would bet you somehow managed to have two loggers writing to the same file
[01:06:35] Radar: jhass: Doesn't explain the double insertions.
[01:06:37] wwalker: it happens on every single thing. I was hoping someone here had seen it happen before. it's ":which is worse" everything runnign twice, or having to restart rails after every edit
[01:06:56] jhass: oh, missed that part
[01:07:33] rickmasta: has joined #RubyOnRails
[01:08:01] jhass: wwalker: you just bin/rails s? What's your OS?
[01:08:09] wwalker: jhass: I thought it was double logging till i started having weird failures for inserts. They were failing on uniqueness validation. Looked further and every insert that did not have uniqueness vaidation was in the db twice, in dev, but not in prod...
[01:08:09] renegadeandy: Radar did you see my question to you above?
[01:08:48] wwalker: seen it on my linux box, the linux staging server , and the other dev's OS X
[01:08:52] diegoviola: has joined #RubyOnRails
[01:09:11] wwalker: rvm, rails 4.2.1
[01:09:21] jhass: well, that's interesting
[01:09:36] wwalker: just rails server, yes.
[01:09:39] jhass: any non standard rack middleware perhaps? rake middleware
[01:09:49] renegadeandy: Does anybody know if it would be easy to add a method to this https://github.com/ryanb/private_pub which would allow me to interrogate all current subcriptions? I don???t see that being part of the PrivatePub object as it currently stands? Radar
[01:10:03] diegoviola: I'm passing in a hash to my views for using chartkick but I would like to get an estimate of seconds from my @logins: https://gist.github.com/diegoviola/e0013ae68b01e8d64b90
[01:10:05] wwalker: not that I know of, but I got pulled into this project after the first team quit....
[01:10:08] Trynemjoel: has joined #RubyOnRails
[01:10:17] Ropeney: has joined #RubyOnRails
[01:10:23] diegoviola: the :time field is basically where I store seconds
[01:10:33] jhass: wwalker: well gist the output of rake middleware, maybe we can spot something
[01:10:34] wwalker: good point though. I'll create a virgin rails project and compare the dev environment and the gemfile
[01:10:38] diegoviola: not sure how though
[01:11:51] hahuang61: has joined #RubyOnRails
[01:11:56] yoongkang: has joined #RubyOnRails
[01:12:24] wwalker: jhass: https://gist.github.com/wwalker/8844730e3ba2591fc664
[01:14:55] jhass: wwalker: that looks entirely unsuspicious, was worth a shot though
[01:14:58] baweaver: has joined #RubyOnRails
[01:15:21] hahuang65: has joined #RubyOnRails
[01:17:30] njero: has joined #RubyOnRails
[01:18:12] wwalker: jhass: thanks for looking. I'm diffing stuff with a virgin rails app, so far the diffs are entirely unsuspicious
[01:18:31] jhass: it's certainly very weird
[01:19:13] nettoweb: has joined #RubyOnRails
[01:20:38] Encapsulation: has joined #RubyOnRails
[01:20:45] wwalker: nothing obvious in config/environment.rb, config/environments/development.rb, Gemfile Any recommendations on where else to look?
[01:22:02] renegadeandy: jhass: can you help - Does anybody know if it would be easy to add a method to this https://github.com/ryanb/private_pub which would allow me to interrogate all current subcriptions? I don???t see that being part of the PrivatePub object as it currently stands?
[01:22:35] jhass: renegadeandy: !rule10
[01:22:35] helpa: renegadeandy: Do not beg / plead with people to help you. This includes asking questions like "Any ideas?" after posting your original question.
[01:23:03] renegadeandy: jhass: sure ok, so how do i know if nobody knows how to help me, or if nobody had the time to see my message? How long should I wait before reasking?
[01:23:19] hahuang65: has joined #RubyOnRails
[01:23:31] jhass: wwalker: not really, config/routes.rb, config/initializers/, app/controllers/application_controller.rb are things that could affect stuff globally
[01:23:53] jhass: wwalker: some also stuff hacks into config/application.rb or even config/boot.rb
[01:24:04] wwalker: jhass: ok, thanks, checking
[01:24:13] nurey: has joined #RubyOnRails
[01:25:21] argoneus: I can't figure out how to properly write omniauth strategies
[01:25:29] argoneus: apparently there's no easy way to redirect with some POST data
[01:26:04] argoneus: s//s*easy/s*/ /
[01:26:16] asteros: has joined #RubyOnRails
[01:26:24] argoneus: s/\s*easy\s*/ / ffs
[01:26:26] jhass: yes, 30x always cause a GET, HTTP forbids it
[01:26:40] argoneus: aren't there any oauth/openid providers that use POST?
[01:27:01] jhass: not for redirection based flows, as said it's not technically possible
[01:27:15] FailBit: https://rpm.newrelic.com/public/charts/5HL9PuWRSLT
[01:27:18] argoneus: then I need to figure out how to feed the redirection GET data gracefully
[01:27:30] argoneus: I could force the link with all the ?/&s but isn't that dirty?
[01:27:42] jhass: it's pretty normal
[01:28:19] jhass: normally you have some route on your app which you hit with a post or whatever and that issues a redirect to the provider with the query parameters
[01:29:46] Rubie: has joined #RubyOnRails
[01:30:28] diegoviola: I have this code that I'm using in order to get a chart from chartkick: https://gist.github.com/diegoviola/e0013ae68b01e8d64b90 .sum(:time) is basically where I store seconds for my logins, but I want to get an estimate of seconds from that also in order to show it on the views, like Login: 5s
[01:30:32] Tempesta: has joined #RubyOnRails
[01:30:34] diegoviola: any ideas how can I accomplish this?
[01:31:56] diegoviola: Login.group(:created_at).sum(:time) is returning a hash like this https://gist.github.com/diegoviola/c50f20f45b31372bbf6f
[01:33:58] annlewis: has joined #RubyOnRails
[01:35:43] maloik: has joined #RubyOnRails
[01:39:27] Cache_Money: has joined #RubyOnRails
[01:39:33] wwalker: has left #RubyOnRails: ()
[01:40:57] argoneus: is there no easy way to have a global variable in secrets.yml?
[01:41:03] argoneus: my api key is the same for production, testing and development
[01:41:50] B1n4r10: has joined #RubyOnRails
[01:41:52] sevenseacat: its a hint that they shouldnt be :P
[01:42:27] FailBit: give me your keys
[01:42:28] FailBit: show me your site
[01:42:37] FailBit: ima gonna l33t h4xx0r u
[01:42:48] FailBit: okay but seriously, don't do that
[01:42:53] FailBit: I can hijack your cookies
[01:43:26] owenjones: has joined #RubyOnRails
[01:43:57] rclanan: has joined #RubyOnRails
[01:44:41] ewnd9: has joined #RubyOnRails
[01:44:58] argoneus: rails has some of the most useless errors ive seen
[01:45:14] argoneus: could possibly compete with C++
[01:45:28] FailBit: c++ doesn't have errors
[01:45:30] FailBit: it just segfaults
[01:45:48] argoneus: sevenseacat: there was a problem with finding a .coffee file
[01:45:49] FailBit: or busfault, if you're unlucky enough
[01:45:56] sevenseacat: and the error is?
[01:45:57] argoneus: what I got was a stack trace of about 30 internal files
[01:46:03] sevenseacat: gist the error
[01:46:09] argoneus: I already fixed it >>
[01:46:17] argoneus: let me see if I can find it in scrollback
[01:46:40] sevenseacat: it wasnt really useless if thelped you fix the problem then?
[01:46:49] argoneus: I googled the error
[01:46:56] FailBit: C++ doesn't help you fix problems.
[01:47:00] FailBit: It doesn't print out stack traces.
[01:47:03] argoneus: it should be in the history 1sec
[01:47:05] FailBit: It just crashes
[01:47:22] argoneus: "Object does not support this property or method" was the error itself
[01:47:30] sevenseacat: gist the full error.
[01:47:31] argoneus: and it meant "you don't have a valid .coffee file"
[01:47:37] argoneus: I don't have that anymore :<
[01:47:49] sevenseacat: k, nothing to do here
[01:48:25] waka: has joined #RubyOnRails
[01:48:35] waka: has joined #RubyOnRails
[01:50:07] Rubie: has joined #RubyOnRails
[01:50:21] sevenseacat: for the record, i dont think that error had anything to do with rails.
[01:50:33] argoneus: well, the solution was really weird as well
[01:50:52] argoneus: basically, I had to install "coffee-script-source" 1.8.0 instead of 1.10.0
[01:50:58] argoneus: because for some reason 1.10.0 doesn't work on windows
[01:51:06] sevenseacat: right, a problem with coffeescript
[01:51:14] sevenseacat: bloody useless rails error messages
[01:51:24] argoneus: i didnt mean to offend you :<
[01:51:44] argoneus: its not like coffeescript isnt part of rails
[01:51:47] sevenseacat: you didn't, its just frustrating
[01:51:51] sevenseacat: its not anything to do with rails
[01:51:59] sevenseacat: its a completely separate library
[01:52:06] argoneus: well thats like saying "oh right, a Rack error, nothing to do with rails"
[01:52:28] sevenseacat: you cant blame rails for something it has no control over
[01:52:43] sevenseacat: rack is slightly more applicable because its a core dependency of rails
[01:52:48] argoneus: i started doing ruby yesterday, I barely even know what rack does
[01:52:52] sevenseacat: coffeescript is some external gem that you choose to use
[01:54:12] FailBit: rack is an elegant means for application developers to do really shitty things
[01:54:17] FailBit: that is all
[01:55:08] maxz: has joined #RubyOnRails
[01:55:13] argoneus: my secrets.yml seems to be broken as well
[01:55:36] argoneus: I just wrote API_KEY: 12345 in development under the secret key, and I use Rails.application.secrets.API_KEY to invoke it, but it seems to return nil
[01:55:45] argoneus: am I missing something? >_>
[01:56:05] sevenseacat: downcase the key
[01:56:10] sevenseacat: when you call it
[01:56:26] argoneus: that's the last thing I thought of doing
[01:56:40] Pazician: has joined #RubyOnRails
[01:57:05] argoneus: hm, it's still nil
[01:57:11] sevenseacat: http://guides.rubyonrails.org/4_1_release_notes.html#config-secrets-yml
[01:57:23] sevenseacat: then you might have to post some code
[01:57:23] wsewolod: has joined #RubyOnRails
[01:57:40] sevenseacat: did you restart your server and/or spring after modifying the file?
[01:57:50] argoneus: what is the preferred paste destination here?
[01:58:00] sevenseacat: see channel topic
[01:58:01] syzygy_: has joined #RubyOnRails
[01:58:04] helpa: https://gist.github.com/996779
[01:58:49] renegadeandy: Does anybody know if it would be easy to add a method to this https://github.com/ryanb/private_pub which would allow me to interrogate all current subcriptions? I don???t see that being part of the PrivatePub object as it currently stands?
[01:59:36] sevenseacat: thats an old gem
[01:59:53] renegadeandy: sevenseacat: it is!
[02:00:01] renegadeandy: good one though!
[02:00:08] nickenchuggets: has joined #RubyOnRails
[02:01:20] argoneus: https://gist.github.com/argoneuscze/7689998fe8eac4ea0c9f
[02:01:25] joshkovach: has joined #RubyOnRails
[02:02:02] argoneus: I guess it's time to make a new api key
[02:02:37] pwnd_nsfw: title of file in gist seems to not lie amirite
[02:04:32] argoneus: im seriously not sure how it can be nil
[02:04:45] nickenchuggets: has joined #RubyOnRails
[02:04:45] nickenchuggets: has joined #RubyOnRails
[02:07:08] baweaver: has joined #RubyOnRails
[02:08:10] argoneus: oh, turns out I was stupid
[02:08:39] rubyonrailed: has joined #RubyOnRails
[02:10:53] patrick99e99: jhass: the problem is the front end client thinks users/ is not users, so it renders the wrong view. i was trying to make rails just reject users/ to fix that problem
[02:11:19] maloik: has joined #RubyOnRails
[02:11:49] jhass: patrick99e99: what generates a link to users/ in the first place??
[02:12:12] patrick99e99: jhass: nothing.. but putting it in the url...
[02:12:28] yoongkang: has joined #RubyOnRails
[02:12:47] jhass: so don't? :P
[02:13:46] pyemkey: has joined #RubyOnRails
[02:13:56] argoneus: is there a magic trick to get the correct url for an endpoint?
[02:14:12] sevenseacat: argoneus: 'correct url for an endpoint'?
[02:14:19] argoneus: basically I redirect to some oauth place or whatever and I need to pass it redir_uri, to which it will send back the response
[02:14:33] argoneus: and I was wondering if there was an easy way to get my current origin
[02:14:54] argoneus: something like redirect_uri=url_for("/auth/myprovider/callback")
[02:15:01] sevenseacat: you dont want to redirect it back to the same page
[02:15:06] sevenseacat: use the named route
[02:15:11] sevenseacat: whatever you named it
[02:17:10] diegoviola: I have a Login#time and Spreadsheet#time, both are models, but they only have that field, it seems silly to have 2 models just to save the time for each (I use them for charts)
[02:17:39] chouhoulis: has joined #RubyOnRails
[02:18:26] diegoviola: https://gist.github.com/diegoviola/d34511e0b99856ab2bfd
[02:18:29] diegoviola: I'm doing something like this
[02:19:23] argoneus: yeah I've got no clue what I am doing
[02:19:27] diegoviola: I wonder if I could just have a Chart model and have Chart#login_time and #Chart#spreadsheet_time
[02:19:54] argoneus: could anyone tell me where the callback_url thing came from? I can't figure it out for the love of god https://github.com/intridea/omniauth-oauth2/blob/master/lib/omniauth/strategies/oauth2.rb#L89
[02:20:28] argoneus: nevermind the fact I don't know what :redirect_uri is doing there
[02:21:22] sevenseacat: argoneus: perhaps you should have picked something a bit less ambitious for a first ruby project?
[02:21:28] shanemcd: has joined #RubyOnRails
[02:21:33] argoneus: callback_url seems to be defined in omniauth/strategy.rb I see
[02:22:05] chouhoulis: has joined #RubyOnRails
[02:22:18] argoneus: sevenseacat: won't I make more progress trying to learn something I want to learn rather than doing random shitprojects I'll throw away?
[02:22:33] argoneus: if you want me to stop asking stupid questions just tell me
[02:22:57] sevenseacat: "won't i make more progress trying to learn how to run without knowing how to stand up"
[02:22:57] pwnd_nsfw: Gotta learn how to walk before you can run bruh
[02:23:00] Radar: Getting feisty in here.
[02:23:17] sevenseacat: it was just a suggestion.
[02:23:43] sevenseacat: I totally get wanting to make useful things instead of shitprojects, I have that same dilemma with learning elixir
[02:24:17] sevenseacat: Radar: rawr. *claws*
[02:24:48] ellisTAA: has left #RubyOnRails: ()
[02:25:11] argoneus: this callback_url is exactly the thing I've been looking for all along, it's a simple variable that's already defined in omniauth
[02:25:20] user1138: has joined #RubyOnRails
[02:25:25] argoneus: instead I've been trying random suggestions from stackoverflow and trying to find anything in documentation
[02:25:27] Radar: argoneus: What is this project doing?
[02:25:35] Radar: Omniauth which who as the auth provider?
[02:25:45] argoneus: Radar: the project itself is easy, the problem is authing people
[02:25:46] Radar: Wondering why you're new to Ruby and wanting to dive around in the omniauth source.
[02:26:06] argoneus: I could just get devise and force people to register and be done with it, but I wanted to do this
[02:26:20] argoneus: the problem is, the provider im using is using a non-standard openid-ish thing, which doesnt have a gem
[02:26:22] Radar: with who as the auth provider*
[02:26:35] corioliss: has joined #RubyOnRails
[02:26:45] argoneus: so instead of trying to hack omniauth-openid I thought it'd be more rewarding to try and write my own strategy
[02:26:50] maloik: has joined #RubyOnRails
[02:26:58] argoneus: it seems to work now, callback_url is the thing I was looking for all along
[02:27:05] argoneus: but seriously, why is this not documented anywhere, not even in the code
[02:27:43] diegoviola: does this looks ok to you guys? I'm basically storing seconds for logins and spreadsheets in a Chart class: https://gist.github.com/diegoviola/c8c44cec36ef05f60c2f
[02:27:51] argoneus: it does EXACTLY what I wanted it to do, without needing to hack anything
[02:27:59] diegoviola: Not sure I want Login#time and Spreadsheet#time
[02:28:13] sevenseacat: ACTION munching on popcorn
[02:28:13] Radar: argoneus: I don't have an answer for you.
[02:28:33] Radar: argoneus: It's like you're going after the Super Boss without tackling any of the minions first.
[02:28:35] argoneus: I'm just wondering if I'm retarded and can't search or if it's a common thing that things aren't documented
[02:28:43] Radar: argoneus: yay open source, amirite
[02:28:59] argoneus: the worst part is
[02:29:04] Radar: !enternotspace
[02:29:04] helpa: The enter key should not be used as a space bar. Lines on IRC can be up to 400 characters long.
[02:29:16] argoneus: if I was following stackoverflow advice, I'd have hacked half of rails by now to get the same functionality
[02:29:40] Radar: https://github.com/intridea/omniauth/wiki/Strategy-Contribution-Guide
[02:29:43] Radar: Did you read this yet?
[02:30:04] argoneus: yes, it has a magic incantation with no explanation
[02:30:21] argoneus: which uses "callback_url" and some other things, but doesn't say anything about them
[02:30:32] Radar: Maybe it doesn't need to?
[02:30:57] argoneus: I don't like black boxes in my code :(
[02:31:18] Radar: argoneus: Great so start by writing everything from scratch then
[02:31:23] Radar: here is a good starting point: https://github.com/rack/rack
[02:31:47] argoneus: by that I don't mean I need to understand every line, but I at least want to understand what it does
[02:32:08] duncannz: has joined #RubyOnRails
[02:32:21] creature: If you don't like black boxes in your code, oAuth might not be for you.
[02:32:25] argoneus: when I look at "redirect client.auth_code.authorize_url({:redirect_uri => callback_url}.merge(options.authorize_params))" it's very abstract for me
[02:32:37] sevenseacat: looks pretty self-explanatory here.
[02:33:07] argoneus: I just don't know where all these objects suddenly came from
[02:33:18] argoneus: like what "client" is, what "auth_code" is, what "authorize_url" does
[02:33:19] duncannz: has joined #RubyOnRails
[02:33:44] sevenseacat: ACTION is wisely keeping Opinions to herself right now
[02:34:43] annlewis: has joined #RubyOnRails
[02:35:42] argoneus: the closer I get to webdev the more I want to run away from it
[02:36:56] dmz: has joined #RubyOnRails
[02:36:57] dmz: has joined #RubyOnRails
[02:39:05] argoneus: but anyway, thanks for your help
[02:39:10] argoneus: im starting to see things in the code
[02:39:12] asteros: has joined #RubyOnRails
[02:39:30] hahuang65: has joined #RubyOnRails
[02:39:39] argoneus: ill try to avoid asking too many questions because im not elite :^)
[02:40:17] sevenseacat: no-one here is 'elite'.
[02:40:39] shibabu: has joined #RubyOnRails
[02:42:41] mary5030: has joined #RubyOnRails
[02:43:30] tariqc: has joined #RubyOnRails
[02:44:26] owenjones: has joined #RubyOnRails
[02:45:21] Radar: argoneus: You can ask as many questions as you like.
[02:45:24] Radar: argoneus: All we ask is...
[02:45:25] helpa: Do your research before hand. Your question may be answerable with a quick Google search or by simply experimenting. If you're using a method in Rails, look it up in the API Docs or in the Official Guides.
[02:45:27] helpa: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[02:45:28] helpa: If you've tried Googling, explain what terms you've tried to use so people can better help you.
[02:45:31] helpa: Clearly explain what is happening and create a Gist (http://gist.github.com), (formatted neatly please: http://bit.ly/1q75oia) of the code that is causing the problem you are encountering, as well as any useful output like stacktraces.
[02:45:35] Radar: ^ All of that.
[02:45:56] Radar: (yes, Rule 0 and Rule 3 are the same)
[02:46:11] asteros: has joined #RubyOnRails
[02:46:26] Radar: argoneus: What we're trying to help you see is that this project you've picked up might be a bit too ambitious for someone with as much experience as yourself.
[02:46:51] argoneus: I know, I know...
[02:46:58] njero: has joined #RubyOnRails
[02:47:07] argoneus: I keep thinking that my experience from other languages will translate eventually, but it sure is taking its time
[02:47:47] argoneus: but I'm having fun and made a lot of progress in terms of my project and understanding things, so I think it won't be that bad
[02:48:02] uri: has joined #RubyOnRails
[02:48:14] argoneus: I'm just starting to feel like you guys would rather not see me here asking these questions
[02:48:41] jscheel: has joined #RubyOnRails
[02:49:14] argoneus: besides, it's kinda difficult to ask "so uh, there's this variable that's mentioned in one place in the entire doc and it doesn't say what it actually does, can someone, uh, explain?", the only response to that is "just git gud"
[02:49:52] Radar: Just sevenseacat actually :P
[02:49:55] argoneus: trust me, if someone made a gem for what I need to do I'd have used it by now
[02:50:08] Radar: She sets a high bar
[02:50:18] argoneus: if I wanted to do it in another language I'd have to figure out the whole openid thing as well
[02:50:19] Radar: sevenseacat: you do! It's because you care :P
[02:50:19] sevenseacat: I have never told someone to just 'git gud'
[02:50:28] sevenseacat: I wouldnt make such poor typos
[02:50:48] Radar: argoneus: Chances are that it's a method defined in some other part of the gem.
[02:50:53] Radar: argoneus: Did you find where it was defined btw?
[02:51:01] argoneus: yes, I found where it was defined and what it returns
[02:51:11] desmondhume: has joined #RubyOnRails
[02:51:11] argoneus: but I had to go into code, and there were no comments
[02:51:25] argoneus: and there's still many things I'm yet to find where they are defined
[02:52:20] Radar: Some of the things might be defined in a different codebase, like omniauth's.
[02:52:53] argoneus: rack itself seems to be poorly documented as well
[02:53:05] creature: To be fair, the Omniauth documentation isn't great.
[02:53:10] argoneus: it would probably help if I could sight read the language easily
[02:53:24] argoneus: but I struggle with figuring out what which syntax does, but that's fine, that's easy to look up ^^
[02:53:24] creature: But I would worry less about the internals of these things, and more about the interfaces given to you by the project.
[02:54:02] argoneus: as I said, if I found a gem that does what I need, I'd be using it right now
[02:54:09] justinweiss__: has left #RubyOnRails: ()
[02:54:20] argoneus: when I get the openid stuff figured out, the rest should be a textbook sample project
[02:54:26] diegoviola: I'm storing seconds as a float, so I get something like 0.23982429834, how do I round that to like 0.2 or 0.3?
[02:54:29] Radar: argoneus: Do you have anyone in your city that is experienced with Ruby and can go through this with you?
[02:54:33] Radar: diegoviola: !g ruby round float
[02:54:45] argoneus: Radar: nope and if there was I wouldn't bother them with it anyway
[02:54:57] justinweiss: has joined #RubyOnRails
[02:55:06] argoneus: inb4 "so you bother us instead" :P
[02:55:07] Radar: argoneus: Where are you in the world anyway?
[02:55:13] Radar: Bah, bothering.
[02:55:23] argoneus: software engineering bachelor student
[02:55:27] Radar: The whole fucking point of this channel to exist is to provide some way for people to get help.
[02:55:32] argoneus: or do you mean country
[02:55:35] Radar: country / city
[02:55:46] argoneus: prague, czech rep.
[02:55:49] Radar: Don't have to get to 5th decimal place for GPS coords, so just country will do
[02:55:58] Radar: oh, neat. I'm in Melbourne, Australia.
[02:56:05] argoneus: let's go for a beer
[02:56:36] argoneus: but as I said
[02:56:38] Radar: I enjoy that you're passionate about this stuff.
[02:56:45] argoneus: ruby doesn't seem that hard, it just seems like it has some gotchas
[02:56:45] sevenseacat: Radar: you still owe me an iced coffee.
[02:56:55] argoneus: if I invest time into it it should come to me
[02:57:03] Radar: sevenseacat: Happy to receive it at Railscamp?
[02:57:08] sevenseacat: absolutely. :)
[02:57:09] Radar: argoneus: Definitely.
[02:57:14] Radar: sevenseacat: Adding a reminder now.
[02:57:28] argoneus: so far trying to work it like other languages I've worked with has not been a good idea
[02:57:31] creature: argoneus: Sorry, I was under the impression that you were working with Omniauth and omniauth-openid.
[02:57:43] argoneus: creature: I'm trying to implement a custom strategy
[02:57:57] argoneus: on top of omniauth
[02:58:27] Radar: Alrighty, I need to go focus on work for a couple more hours. Have a good day everyone :)
[02:59:07] sevenseacat: ACTION has been writing a README while this discussion has happened
[02:59:13] creature: argoneus: You're found https://github.com/intridea/omniauth/wiki/Strategy-Contribution-Guide already, right?
[02:59:21] argoneus: I'm going to hit the sack, 4 AM is a fun time to dev at, anyway, thanks for your help, everyone, helped tons, I'll stick around for a while :)
[02:59:41] argoneus: creature: yeah I've read that, but it seems to be magic incantations.. me not knowing ruby doesn't help much
[03:00:13] argoneus: I'm basically learning 3 things at once: ruby, rails, how to work with a framework/lib on top of rails
[03:00:22] argoneus: ACTION is probably retarded
[03:02:17] ElectricAlan: has joined #RubyOnRails
[03:03:23] banister: has joined #RubyOnRails
[03:05:34] diegoviola: https://gist.github.com/diegoviola/1b0a34a4432499f5f6c6
[03:05:36] diegoviola: does this makes sense?
[03:06:39] diegoviola: I don't feel confident about this code
[03:07:13] creature: Sounds like something you should write a test for. :)
[03:07:47] diegoviola: it works though
[03:09:06] diegoviola: dealing with time in code can be a pain
[03:10:28] i: has joined #RubyOnRails
[03:13:21] yoongkang: has joined #RubyOnRails
[03:17:06] ElectricAlan: having a problem with my record, I'm creating a new one when I try to update
[03:17:16] ElectricAlan: fairly new to ror been following the getting started guide
[03:18:08] ElectricAlan: I think the issue is the gues says to use a templte _form or w/e for both edit and new
[03:18:35] jetpackjoe: has joined #RubyOnRails
[03:19:05] sevenseacat: canwe see some of your code? like the form you're using, or the logs of whats happening when you try to edit a record?
[03:19:31] Cache_Money: has joined #RubyOnRails
[03:19:40] maloik: has joined #RubyOnRails
[03:19:53] ElectricAlan: give me a sec
[03:20:34] ElectricAlan: pastebin of choice?
[03:21:03] ElectricAlan: I have unwittingly used the wronte paste site in the past upset a channel admin
[03:21:30] helpa: https://gist.github.com/996779
[03:22:13] brainslug: has joined #RubyOnRails
[03:22:19] diegoviola: I need to find a way to produce an average number of seconds from a list of seconds
[03:22:38] diegoviola: I have no single idea how I'm going to do this though
[03:22:58] diegoviola: I have seconds (floats) by created_at though
[03:23:22] lacuna: has joined #RubyOnRails
[03:23:23] lacuna: has joined #RubyOnRails
[03:25:10] diegoviola: there's an #average in AR
[03:27:17] Haydos: has joined #RubyOnRails
[03:29:00] ElectricAlan: sevenseacat, sry was dragged way briefly, pasting now
[03:30:26] nyaa: has joined #RubyOnRails
[03:31:44] ElectricAlan: sevenseacat, http://pastie.org/10597021
[03:31:50] ElectricAlan: there's my form and controller
[03:31:53] Rubie: has joined #RubyOnRails
[03:32:10] sevenseacat: right, so the very first line of the form is the problem
[03:32:21] sevenseacat: you're submitting the form to users_path, which is the create action of your controller
[03:32:45] SalexW: has joined #RubyOnRails
[03:33:10] sevenseacat: if you were using `form_for @user`, Rails would be able to determine the correct path to submit to by itself
[03:33:20] sevenseacat: based on whether @user is a new record or an existing record
[03:34:21] PlasmaStar: has joined #RubyOnRails
[03:35:08] maloik: has joined #RubyOnRails
[03:35:29] annlewis: has joined #RubyOnRails
[03:35:57] grotewold: has joined #RubyOnRails
[03:37:41] ElectricAlan: so what happened was I didn't read closely enough, and copied wrong
[03:38:08] baweaver: has joined #RubyOnRails
[03:38:13] ElectricAlan: thanks for the help sevenseacat, I figured it was as simple as that error, but wasn't likely to figure it out on my own
[03:38:14] Emily: has joined #RubyOnRails
[03:38:31] sevenseacat: no problem :) Rails comes with a lot of 'magic' like that
[03:38:58] claytonzaugg: has joined #RubyOnRails
[03:39:49] shanemcd: has joined #RubyOnRails
[03:40:30] FooBarWidget: has joined #RubyOnRails
[03:40:33] LBRapid: has joined #RubyOnRails
[03:42:26] jessemcgilallen: has joined #RubyOnRails
[03:43:30] quazimodo: has joined #RubyOnRails
[03:44:11] robert45: has joined #RubyOnRails
[03:44:39] mary5030: has joined #RubyOnRails
[03:45:18] jetpackjoe: has joined #RubyOnRails
[03:47:14] Rodya_: has joined #RubyOnRails
[03:47:46] njero: has joined #RubyOnRails
[03:47:58] goodcodeguy: has joined #RubyOnRails
[03:52:55] kies: has joined #RubyOnRails
[03:57:01] Rubie: has joined #RubyOnRails
[03:57:07] tariqc: How is everyone
[03:57:47] Pazician: has joined #RubyOnRails
[04:00:19] moeabdol: has joined #RubyOnRails
[04:00:31] sevenseacat: not bad, and yourself?
[04:01:33] tariqc: I just have one minor problem
[04:01:34] jetpackjoe: has joined #RubyOnRails
[04:01:37] tariqc: Just all.
[04:01:40] colleenmcguckin: has joined #RubyOnRails
[04:02:38] MaDErroR123: has joined #RubyOnRails
[04:02:40] tariqc: And that is, I am downloading the wrong files in my seed data
[04:02:51] ElectricAlan: so sevenseacat am I right in thinking @user is an instance variable, and :user is a label for a model?
[04:03:41] sevenseacat: @user is an instance variable, yes. :user there is kind of like a placeholder, it gives the form a hint as to what the form is for, but its easy to provide better info
[04:04:35] bronson: has joined #RubyOnRails
[04:05:21] sevenseacat: typically you would use symbols in a form_for declaration if you wanted to give the form a hint as to where to submit the form, eg. form_for [:admin, @user] would work if you wanted to submit the form to a page inside the admin namespace
[04:05:32] sevenseacat: but thats a bit over the 'getting started' level :)
[04:05:32] ElectricAlan: hmm, now when I try to edit I get No route matches [PATCH] "/users" but my routing data includes these lines user_path GET /users/:id(.:format) users#show
[04:05:32] ElectricAlan: PATCH /users/:id(.:format) users#update
[04:05:38] annlewis: has joined #RubyOnRails
[04:05:46] Radar: ElectricAlan: Difference between PATCH /users and PATCH /users/:id.
[04:05:56] sevenseacat: right, did you remove the `url: users_path` part? you dont need that anymore.
[04:06:00] ElectricAlan: well I definitely want to get over the "getting started" level
[04:06:05] sevenseacat: absolutely :)
[04:06:22] sevenseacat: Rails can infer from the @user record that you mean either users_path or user_path(@user)
[04:06:27] nurey: has joined #RubyOnRails
[04:06:29] sevenseacat: the magic i mentioned
[04:06:44] ElectricAlan: so form_for @user do |f| is all I need, but the demo wants you to do a bunch of other stuff somewhy
[04:07:01] sevenseacat: yeah I'm not a huge fan of that getting started guide
[04:07:17] Radar: which one is that?
[04:07:34] hahuang65: has joined #RubyOnRails
[04:07:38] sevenseacat: the official rails one
[04:07:41] owenjones: has joined #RubyOnRails
[04:07:55] ElectricAlan: Radar, http://guides.rubyonrails.org/getting_started.html
[04:08:07] ElectricAlan: well I am pleased to have made progress so far today
[04:08:41] ElectricAlan: next step, figure out why bootstrap isn't rendering my <a> tags with class=".btn" aren't rendering as buttons
[04:08:57] tariqc: That's very odd
[04:08:59] tariqc: It should do that
[04:09:29] Radar: ElectricAlan: If you want us to help with that we're going to need to see some code.
[04:10:49] ElectricAlan: Radar, nw, I have to head off now tho
[04:10:54] ElectricAlan: will be back later in my life no doubt
[04:10:57] ElectricAlan: thank's for the help all
[04:11:03] ElectricAlan: this is a very friendly and helpful channell
[04:11:04] simplyianm: has joined #RubyOnRails
[04:11:15] Radar: ElectricAlan: thanks :)
[04:11:18] sevenseacat: glad to hear it, we try :)
[04:11:22] ElectricAlan: qualities I find sorely missed at times when you would expect them in other channels
[04:11:28] ElectricAlan: ACTION bails out the window
[04:14:47] Radar: http://i.imgur.com/vdS71dm.png taking bets on if this is an "our code" problem or "lightspeed is fucked" again. Current odds are 5:1 in lightspeed's favour.
[04:15:08] Radar: I think this is happening because I thought Bad Thoughts(tm) about Omniauth a couple of hours ago.
[04:15:16] jetpackjoe: has joined #RubyOnRails
[04:15:18] Rubie: has joined #RubyOnRails
[04:16:36] braincrash: has joined #RubyOnRails
[04:16:55] pyemkey: has joined #RubyOnRails
[04:25:36] tariqc: I need help in downloading a file online and saving it in Paperclip
[04:25:44] tariqc: All I'm getting is this weird semiblank image being downloaded instead
[04:27:03] tariqc: Would anyone be here?
[04:28:24] jadergabriel: has joined #RubyOnRails
[04:31:56] Radar: Tariq_: !anyone
[04:31:56] helpa: Tariq_: Nope. No one. Ever. In the history of the world.
[04:31:59] moeabdol: has joined #RubyOnRails
[04:32:40] tariqc: I really need to be more patient
[04:32:57] yfeldblum: has joined #RubyOnRails
[04:35:07] Radar: Oh, right, underscore bug.
[04:35:10] Radar: Tariq_: !rule0
[04:35:10] helpa: Tariq_: Show rather than tell. Explaining your problem with code, stacktraces or errors is always preferred to explaining it with just text. Show us what's happening, rather than telling us. Put the code on https://gist.github.com and then give us the HTTP link to the Gist.
[04:39:10] tariqc: has joined #RubyOnRails
[04:41:06] tariqc: https://gist.github.com/tra38/62787708770b8e691d0c
[04:41:11] tariqc: Here is my attempt to follow Rule 0
[04:42:02] Rubie: has joined #RubyOnRails
[04:42:24] tariqc: I want to download the following image and save it into a database using the Paperclip gem
[04:42:27] tariqc: not download this weird empty image
[04:44:13] colleenmcguckin: has joined #RubyOnRails
[04:44:59] shibabu: has joined #RubyOnRails
[04:45:28] colleenmcguckin: has joined #RubyOnRails
[04:46:00] sevenseacat: https://github.com/thoughtbot/paperclip/wiki/Attachment-downloaded-from-a-URL might help
[04:46:20] sevenseacat: you dont have to open the file, just parse the URL
[04:46:40] syzygy_: has joined #RubyOnRails
[04:47:09] tariqc: Okay, let me look. Thanks.
[04:49:22] tariqc: Uh, it did not work
[04:49:32] tariqc: it works for something else
[04:49:39] tariqc: Hmph. Something's wrong with my code logic
[04:50:33] sevenseacat: what sort of images are you getting downloaded?
[04:51:17] tariqc: Half the images are being downloaded due to some other syntax I was using
[04:51:25] tariqc: where I just gave the URL directly
[04:51:46] desmondhume: has joined #RubyOnRails
[04:52:18] tariqc: But giving the URL directly to the other guy doesn't really work either
[04:53:43] tariqc: Whatever, I'll handle this later
[04:55:06] djbkd: has joined #RubyOnRails
[05:00:31] joshkovach: has joined #RubyOnRails
[05:05:40] kies: has joined #RubyOnRails
[05:08:14] hahuang65: has joined #RubyOnRails
[05:09:54] ats: has joined #RubyOnRails
[05:14:32] njero: has joined #RubyOnRails
[05:14:45] lacuna: has joined #RubyOnRails
[05:15:22] annlewis: has joined #RubyOnRails
[05:16:29] ats: I can't run my rails app on a ec2 ubuntu instance, server is running ok, but can't access the server. NOTE: the concerning rails app. was imported from another machine. I tried creating a new app and that was accessible. But why can't I access the imported app. There is no error message and server shows no incoming request
[05:21:06] jscheel: has joined #RubyOnRails
[05:25:26] quazimodo: https://gist.github.com/siassaj/f08c4df2517f51cc60df
[05:25:38] quazimodo: does this arel look right (don't worry about the actual logic)
[05:25:56] quazimodo: i'm not sure if i'm using the arel as correcly as I could, the sql that this produces is what I expected
[05:27:01] grotewold: has joined #RubyOnRails
[05:27:41] xybre: ats: AWS needs explicit port settings
[05:28:00] xybre: ats: set up a zone or whatever they call it which opens port 80 for requests
[05:29:18] maloik: has joined #RubyOnRails
[05:29:50] ats: xybre: all of my incoming and outgoing ports are set as open. Some other app worked that was created in the concerning instance. Problem is only occuring for imported apps
[05:33:47] baweaver: quazimodo: single letter variables do not incentivize people to continue reading.
[05:34:38] krz: has joined #RubyOnRails
[05:36:56] xybre: ats: ruby-webserver issues? Unicorn configuration?
[05:41:42] mary5030: has joined #RubyOnRails
[05:42:30] ss_much: has joined #RubyOnRails
[05:42:49] rickmasta: has joined #RubyOnRails
[05:44:12] kp666: has joined #RubyOnRails
[05:44:55] maloik: has joined #RubyOnRails
[05:47:40] jetpackjoe: has joined #RubyOnRails
[05:51:32] MaDErroR123: has joined #RubyOnRails
[05:52:05] tjbiddle: has joined #RubyOnRails
[05:52:19] rvanlieshout: has joined #RubyOnRails
[05:55:02] quazimodo: baweaver: sorry, I was copying sql fragments to try to build that. I can revise it
[05:56:22] Tref: has joined #RubyOnRails
[05:57:52] krz: has joined #RubyOnRails
[05:58:14] sevenseacat: having all that logic in a scope on some other AR model is icky. and i hope there's about 4000 tests covering that logic.
[05:58:36] Pazician: has joined #RubyOnRails
[05:59:20] quazimodo: sevenseacat: it's not production code, i'm trying to learn this arel procedure
[05:59:34] sevenseacat: i dont know how thats relevant
[06:02:57] dionysus69: has joined #RubyOnRails
[06:03:27] MasterNayru: has joined #RubyOnRails
[06:03:57] ewnd9: has joined #RubyOnRails
[06:05:05] bronson: has joined #RubyOnRails
[06:06:07] yfeldblum: has joined #RubyOnRails
[06:09:31] B1n4r10: has joined #RubyOnRails
[06:14:03] jetpackjoe: has joined #RubyOnRails
[06:16:07] annlewis: has joined #RubyOnRails
[06:16:16] gaussblurinc1: has joined #RubyOnRails
[06:16:32] multiscan: has joined #RubyOnRails
[06:18:04] ur5us: has joined #RubyOnRails
[06:20:33] tariqc: has joined #RubyOnRails
[06:23:19] maloik: has joined #RubyOnRails
[06:29:21] drupald: has joined #RubyOnRails
[06:30:54] aganov: has joined #RubyOnRails
[06:34:28] simplyianm: has joined #RubyOnRails
[06:36:53] alaing: has joined #RubyOnRails
[06:37:08] alaing: has joined #RubyOnRails
[06:39:22] tagrudev: has joined #RubyOnRails
[06:41:39] Macaveli: has joined #RubyOnRails
[06:42:06] trautwein: has joined #RubyOnRails
[06:44:04] alaing: is there a way in rails to generate like a MD5 using some values so its encrypted.
[06:45:01] alaing: I'm hoping to use this for a websocket channel name so people cannot simply listen in on a channel if they do not have permission too
[06:45:42] norc: has joined #RubyOnRails
[06:46:23] alaing: eg. if I have a channel called /claim/1 and 1 references the claim it I dont want people to be able to setup their own websocket connect but change the channel themselves like /claim/2
[06:46:56] Guest90584: has left #RubyOnRails: ()
[06:47:14] norc: has joined #RubyOnRails
[06:47:22] shibabu: has joined #RubyOnRails
[06:47:32] rvanlieshout: md5 is a weak encryption
[06:47:58] rvanlieshout: and why not identify the user in the show action and authorize there?
[06:50:12] DoubleMalt: has joined #RubyOnRails
[06:52:28] alaing: rvanlieshout: I dont think I can with websockets
[06:52:40] desmondhume: has joined #RubyOnRails
[06:53:46] multiscan: has joined #RubyOnRails
[06:54:09] alaing: rvanlieshout: basically I have a broadcast class that is triggered in some of my rails application and it would push that content to my faye websocket push server and that would push to browsers that have subscribed to a specific channel
[06:54:37] Pazician: has joined #RubyOnRails
[06:54:52] Pazician: has joined #RubyOnRails
[06:55:10] Rubie: has joined #RubyOnRails
[06:55:43] arup_r: has joined #RubyOnRails
[06:55:50] alaing: '/claim/1' or '/claim/2' are not normal rails routes they are channels in websockets.
[06:56:30] rvanlieshout: but what happens if somebody opens that?
[06:56:45] alaing: nothing, i dont think
[06:57:09] rvanlieshout: so nobody knows that somebody is subscribing to a channel
[06:59:34] alaing: its not obvious to a non-technical user how it works but if you using devtools you could potentially manual subscribe to channel that you should not have access too
[06:59:46] sevenseacat: this is why we have authorization
[07:00:02] sevenseacat: to not let people access things they should not have access to
[07:02:45] cac: has joined #RubyOnRails
[07:04:56] lacuna: has joined #RubyOnRails
[07:05:37] lacuna: has joined #RubyOnRails
[07:05:52] bronson: has joined #RubyOnRails
[07:05:56] nocontrol: has joined #RubyOnRails
[07:06:04] Rodya_: has joined #RubyOnRails
[07:06:46] owenjones: has joined #RubyOnRails
[07:07:40] tvw: has joined #RubyOnRails
[07:10:37] solars: has joined #RubyOnRails
[07:10:40] yardenbar: has joined #RubyOnRails
[07:10:45] lxsameer: has joined #RubyOnRails
[07:14:34] eoy: has joined #RubyOnRails
[07:16:52] annlewis: has joined #RubyOnRails
[07:18:17] Pazician: has joined #RubyOnRails
[07:18:22] arup_r: has joined #RubyOnRails
[07:18:22] K_r3aPeR: has joined #RubyOnRails
[07:18:42] pyemkey: has joined #RubyOnRails
[07:19:12] bratsche: has joined #RubyOnRails
[07:21:49] Pazician: has joined #RubyOnRails
[07:25:17] Pazician: has joined #RubyOnRails
[07:25:20] arup_r: has joined #RubyOnRails
[07:25:24] agit0: has joined #RubyOnRails
[07:25:45] sevenseacat: datepickers and date formatting sucks
[07:25:48] Pazician: has joined #RubyOnRails
[07:26:12] squiercaster: has joined #RubyOnRails
[07:29:08] juddey: has joined #RubyOnRails
[07:30:20] alaing: ACTION is wondering how to authenticate his websocket subscribes
[07:31:56] tjbiddle: has joined #RubyOnRails
[07:34:38] infoget: has joined #RubyOnRails
[07:35:05] infoget: Hi guys, I would like to use created_at.lte method for
[07:35:37] infoget: Model, but sometimes created_at param is empty, then it throws error, is it good to put there Date.new object instead?
[07:36:25] kmckelvin: has joined #RubyOnRails
[07:36:45] nbdy: has joined #RubyOnRails
[07:37:53] Cervajz: has joined #RubyOnRails
[07:37:55] paulodiniz: has joined #RubyOnRails
[07:44:00] lubekpl: has joined #RubyOnRails
[07:45:00] nbdy: has joined #RubyOnRails
[07:46:30] infoget: sevenseacat: sometimes created_at.lte or created_at.gte is empty, then it throws error, is this clear solution? http://pastie.org/10597438
[07:46:35] sandstrom: has joined #RubyOnRails
[07:46:56] sevenseacat: created_at is never empty on a persisted record
[07:47:32] sevenseacat: i dont have a clear sense on what your problem is, and not seeing an error, that doesnt help
[07:48:39] teclator: has joined #RubyOnRails
[07:50:07] MaDErroR123: has joined #RubyOnRails
[07:52:59] Pumukel: has joined #RubyOnRails
[07:53:09] elton: has joined #RubyOnRails
[07:54:14] build22: has joined #RubyOnRails
[07:58:16] B1n4r10: has joined #RubyOnRails
[07:58:27] AzaToth: has joined #RubyOnRails
[08:02:27] quazimodo: has joined #RubyOnRails
[08:03:35] srinidhi: has joined #RubyOnRails
[08:03:57] maloik: has joined #RubyOnRails
[08:06:00] alaing: has joined #RubyOnRails
[08:06:10] alaing: has joined #RubyOnRails
[08:06:24] comrad: has joined #RubyOnRails
[08:08:52] Rodya_: has joined #RubyOnRails
[08:09:11] User458764: has joined #RubyOnRails
[08:09:14] darutoko: has joined #RubyOnRails
[08:09:36] shibabu: has joined #RubyOnRails
[08:11:54] rvanlieshout: has joined #RubyOnRails
[08:14:36] desmondhume: has joined #RubyOnRails
[08:15:15] maloik: has joined #RubyOnRails
[08:17:09] desmondhume: has joined #RubyOnRails
[08:17:38] annlewis: has joined #RubyOnRails
[08:17:42] tjbiddle: has joined #RubyOnRails
[08:18:10] qejk: has joined #RubyOnRails
[08:18:32] Secretmapper: has joined #RubyOnRails
[08:19:59] edwinvdgraaf: has joined #RubyOnRails
[08:20:34] krz: has joined #RubyOnRails
[08:21:28] troys: has joined #RubyOnRails
[08:22:50] jas02: has joined #RubyOnRails
[08:25:50] sadaf2605: has joined #RubyOnRails
[08:28:30] kimegede: has joined #RubyOnRails
[08:30:21] baweaver: has joined #RubyOnRails
[08:31:22] Cervajz: has joined #RubyOnRails
[08:33:56] artto: has joined #RubyOnRails
[08:34:41] ewnd9: has joined #RubyOnRails
[08:35:29] yfeldblum: has joined #RubyOnRails
[08:35:38] nettoweb: has joined #RubyOnRails
[08:37:05] brunto: has joined #RubyOnRails
[08:38:29] kmckelvin: has joined #RubyOnRails
[08:42:53] iateadonut: has joined #RubyOnRails
[08:44:23] norc: Hi. Can someone explain to me why the first HAML variant does not work? http://pastie.org/10597559
[08:44:24] Cervajz: has joined #RubyOnRails
[08:45:55] SalexW: has joined #RubyOnRails
[08:46:22] Cervajz_: has joined #RubyOnRails
[08:46:32] rvanlieshout: norc: because of exactly what's written for that error?
[08:47:21] norc: rvanlieshout: Im trying to figure out what ambiguity is created
[08:48:27] rvanlieshout: back in an hour ish
[08:48:43] Cervajz: has joined #RubyOnRails
[08:49:09] yoongkang: has joined #RubyOnRails
[08:51:02] sandstrom: has joined #RubyOnRails
[08:51:47] blackhuey: has joined #RubyOnRails
[08:52:58] CharliB: has joined #RubyOnRails
[08:55:14] brunto: has joined #RubyOnRails
[08:56:03] CharliB: I am a new rails developer and im currently stuck in a project :( So, i found this irc channel and hoped someone is able to help me
[08:57:22] CharliB: i created a question on stackoverflow, but it did not solve my problem
[08:57:22] CharliB: http://stackoverflow.com/questions/34019125/passing-user-id-and-vote-id-to-a-comment/34019532?noredirect=1#comment55795356_34019532
[08:57:27] yogeshrt: has joined #RubyOnRails
[08:58:40] tagrudev: has joined #RubyOnRails
[08:58:54] edwinvdgraaf: has joined #RubyOnRails
[09:04:10] Secretmapper: im building an embeddable js widget
[09:04:26] multiscan: has joined #RubyOnRails
[09:04:27] Secretmapper: im having trouble though because of CORS + CSRF
[09:04:49] Secretmapper: is it even safe to provide the CSRF token through a get request? or would that defeat the purpose?
[09:05:24] hadifarnoud: has joined #RubyOnRails
[09:06:20] hadifarnoud: There is an app I want to add Persian language support. it uses TintMCE as editor and the settings are inside application.js > tinyMCE.init
[09:06:38] hadifarnoud: I can get the local by I18n.locale
[09:06:58] hadifarnoud: how can I set tinymce settings based on locale inside application.js?
[09:09:15] bronson: has joined #RubyOnRails
[09:09:48] jetpackjoe: has joined #RubyOnRails
[09:10:00] Rodya_: has joined #RubyOnRails
[09:10:37] herbst: has joined #RubyOnRails
[09:10:37] herbst: has joined #RubyOnRails
[09:11:34] quazimodo: has joined #RubyOnRails
[09:11:52] Ergo: has joined #RubyOnRails
[09:12:57] defsdoor: has joined #RubyOnRails
[09:13:12] herbst: has joined #RubyOnRails
[09:13:43] edwinvdgraaf: has joined #RubyOnRails
[09:13:55] elaptics: hadifarnoud: you'd need to add the locale to the html so that you could have some javascript look for it and set what you need for tinymce when the javascript runs
[09:14:15] User458764: has joined #RubyOnRails
[09:14:19] elaptics: hadifarnoud: the easiest thing usually is to add some data attributes to the body tag or similar
[09:14:47] jsrn_: has joined #RubyOnRails
[09:15:04] elaptics: e.g. <body data-locale='en'> and then some jquery like $("body").data("locale") will pick that up
[09:16:03] edwinvdgraaf: has joined #RubyOnRails
[09:16:41] hadifarnoud: elaptics: the only thing different would be the language, directionality, and rtl ltr buttons. how can I change tinyMCE.init based on locale?
[09:17:04] hadifarnoud: elaptics:but init happened in application.js
[09:17:12] hadifarnoud: https://gist.github.com/hadifarnoud/ecfddee3a0c947f541b9#file-application-js-L6:L8
[09:17:58] Cork: hadifarnoud: the csrf is available in the dom, just use that
[09:18:29] joelsmith: has joined #RubyOnRails
[09:18:35] annlewis: has joined #RubyOnRails
[09:18:54] Cork: hadifarnoud: specifically https://github.com/rails/jquery-ujs/blob/master/src/rails.js#L60
[09:19:26] hadifarnoud: Cork: don't know what csrf have to do with this. but as you see in my gist url, my init is different in application.js
[09:19:50] Cork: i think i misunderstood
[09:19:57] Cork: you need the csrf cross domain?
[09:20:17] hadifarnoud: if I can have that bit set by a condition such as 'I18n.locale ', that bit would work.
[09:20:28] edwinvdgraaf: has joined #RubyOnRails
[09:20:38] pyemkey: has joined #RubyOnRails
[09:20:52] Cork: that is doable
[09:20:58] hadifarnoud: see my gist, highlighted lines are the ones I want to be there if 'I18n.locale' is 'fa'. just don't know how to do it in application.js
[09:21:27] Cork: i solve it by in my application.html.erbs html tag set data-locale
[09:21:45] Cork: then i just do $('html').data('locale')
[09:22:19] hadifarnoud: oh. so you're saying I set local in there and retrieve it in application.js?
[09:22:32] Cork: i do it for currency/number formating
[09:22:37] Macaveli: has joined #RubyOnRails
[09:22:38] Cork: but very close to what you need
[09:22:46] Macaveli: what is the log level t osee everything?
[09:22:46] Cervajz: has joined #RubyOnRails
[09:22:58] Macaveli: what is the log level t osee everything?
[09:23:11] hadifarnoud: cool. so, I do the rest by adding an if statement based on locale
[09:23:25] norc: Macaveli: http://guides.rubyonrails.org/debugging_rails_applications.html#log-levels
[09:23:48] Macaveli: norc no explenation of the differences :debug, :info, :warn, :error, :fatal,
[09:24:00] Macaveli: so I think it's debug?
[09:24:03] norc: Macaveli: I think the names are pretty self explanatory.
[09:24:04] Macaveli: to see everything
[09:24:10] norc: Macaveli: Yes.
[09:24:30] norc: "The available log levels are: :debug, :info, :warn, :error, :fatal, and :unknown, corresponding to the log level numbers from 0 up to 5 respectively. "
[09:24:53] norc: No idea how :unknown plays into that though.
[09:25:00] krz: has joined #RubyOnRails
[09:25:15] hadifarnoud: I still struggle with short if. how can I add 'fa' in addition to 'ar' here? <%= 'direction:rtl;' if [:ar].include?(I18n.locale)%>
[09:25:54] pyemkey: has joined #RubyOnRails
[09:26:52] CornishPasty: hadifarnoud: if [:ar,:fa]
[09:27:03] CornishPasty: The [] is an array
[09:27:20] hadifarnoud: good to know. thanks
[09:27:32] CornishPasty: norc: :unknown is 5
[09:27:52] CornishPasty: Think it's pretty much to turn off logging
[09:28:07] norc: CornishPasty: Guess it makes sense..
[09:28:24] CornishPasty: http://ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html#method-i-unknown
[09:28:44] CornishPasty: Out of date version but it's still the same for ruby 2
[09:29:42] sandstrom: has joined #RubyOnRails
[09:30:35] swhitt: has joined #RubyOnRails
[09:30:35] w5isp: has joined #RubyOnRails
[09:30:35] csmb: has joined #RubyOnRails
[09:32:29] marr: has joined #RubyOnRails
[09:32:51] jpterry: has joined #RubyOnRails
[09:33:12] sadaf2607: has joined #RubyOnRails
[09:33:49] Peg-leg: has joined #RubyOnRails
[09:36:55] annlewis: has joined #RubyOnRails
[09:38:18] Sylario: has joined #RubyOnRails
[09:40:56] Sylario: I have a problem with the Jquery_ui command draggable : https://gist.github.com/bsylvain/e6c670a2b682201456ce after page is loaded, the drag does not work, but if i run my online js in the browseer console it works
[09:41:17] alaing: has joined #RubyOnRails
[09:41:23] alaing: has joined #RubyOnRails
[09:41:48] sevenseacat: sylario: not waiting for the document to be ready before trying to fire your js?
[09:42:08] Sylario: sevenseacat: isn't coffescript precompiled to wait?
[09:42:35] sevenseacat: that wouldnt work with rails really well if it did, because if you're using turbolinks in rails you generally also need to wait for page:load
[09:42:38] teclator: has joined #RubyOnRails
[09:43:04] sevenseacat: i dont see a document.ready in either code snippet
[09:43:21] sevenseacat: either way, unrelated to rails
[09:44:24] Sylario: you are right a $ is missing to use the jquery shortcut for document ready
[09:44:39] Sylario: thx sevenseacat
[09:47:06] B1n4r10: has joined #RubyOnRails
[09:47:48] Cervajz: has joined #RubyOnRails
[09:51:00] arup_r: has joined #RubyOnRails
[09:52:05] MaDErroR123: has joined #RubyOnRails
[09:52:46] rodfersou: has joined #RubyOnRails
[09:53:42] artto: has joined #RubyOnRails
[09:54:28] elton: has joined #RubyOnRails
[09:56:23] Cervajz: has joined #RubyOnRails
[10:00:11] pyemkey: has joined #RubyOnRails
[10:00:20] threeminutemonta: has joined #RubyOnRails
[10:00:31] pyemkey: Hello. I started to write feature tests by using rspec with capybara. I decided to use outside-inside pattern. I started in good way, because my test was red :) Problem is that I don't have idea why user is redirecting to sign in page instead of "page with welcome message". Here is sample code https://gist.github.com/pyemkey/b1605c8029e47e8e47c9 I don't understand why there is no current user.
[10:01:33] snowy: has joined #RubyOnRails
[10:02:36] sevenseacat: pyemkey: do you also have a login form on the same page as your signup form? like in the navigation or something?
[10:02:54] pyemkey: login form is on separate page
[10:03:17] sevenseacat: is this using devise? and devise confirmable?
[10:03:50] ibouvousaime: has joined #RubyOnRails
[10:04:17] pyemkey: Yes, I'm using confirmable, but I'm letting user to log in without confirmation. As you can see there is a before_action to recognize if user is confirmed.
[10:04:41] sevenseacat: there's also a before_action to authenticate them, which fails first, I'm guessing
[10:04:43] Cervajz: has joined #RubyOnRails
[10:05:02] sevenseacat: what does the save_and_open_page show?
[10:05:33] dionysus69: has joined #RubyOnRails
[10:06:52] pyemkey: actually I've use this before. When I used Rack::Test driver I wanted to see the result.
[10:07:00] rickmasta: has joined #RubyOnRails
[10:08:47] pyemkey: When I try run this in development mode, everything works correct. Unconfirmed user is logged in to let's say "welcome page"
[10:09:07] rodfersou: has joined #RubyOnRails
[10:09:07] sevenseacat: and what does the save_and_open_page show?
[10:09:29] pyemkey: save_and_open_page shows login form
[10:10:24] sevenseacat: any flash messages or errors?
[10:11:04] Cervajz_: has joined #RubyOnRails
[10:11:17] sevenseacat: do you have flash messages configured to display in your app?
[10:11:21] Rodya_: has joined #RubyOnRails
[10:11:37] pyemkey: No, I don't use flash messages
[10:12:41] sevenseacat: ok, so you're hiding the error :)
[10:13:37] pyemkey: I'm curious why current_user is nil
[10:13:45] sevenseacat: can we get the actual test failure? where does it say its nil?
[10:15:30] pyemkey: sure, I added to the gist file https://gist.github.com/pyemkey/b1605c8029e47e8e47c9
[10:16:28] sevenseacat: ok, so nothing to do with current_user being nil
[10:16:33] goldbug: has joined #RubyOnRails
[10:17:00] pyemkey: when I move before_action :authenticate_user below other filters, then I'm getting error
[10:19:28] yogeshrt: has joined #RubyOnRails
[10:19:48] pyemkey: Ok, that's not make sense to move authenticate_user below other filters :)
[10:21:08] nyaa: has joined #RubyOnRails
[10:24:21] pyemkey: It looks like session with current user is skipped during test mode. Please correct me if I'm wrong. Registration -> setup session with current user -> redirect_to defined after_sign_up page
[10:24:52] Glenny: has joined #RubyOnRails
[10:27:15] roshanavand: has joined #RubyOnRails
[10:30:46] pyemkey: @sevenseacat any ideas?
[10:32:20] syzygy_: has joined #RubyOnRails
[10:34:42] artto: has joined #RubyOnRails
[10:38:24] nfk|laptop: has joined #RubyOnRails
[10:39:32] Pazician: has joined #RubyOnRails
[10:39:47] weihan: has joined #RubyOnRails
[10:42:34] lacrymology: has joined #RubyOnRails
[10:42:36] annlewis: has joined #RubyOnRails
[10:43:38] squiercaster: has joined #RubyOnRails
[10:44:52] krz: has joined #RubyOnRails
[10:48:22] nbdy: has joined #RubyOnRails
[10:51:59] ldnunes: has joined #RubyOnRails
[10:52:51] kmckelvin: has joined #RubyOnRails
[10:55:13] aganov: has joined #RubyOnRails
[10:55:13] tagrudev: has joined #RubyOnRails
[10:55:27] elton: has joined #RubyOnRails
[10:58:29] Rubie: has joined #RubyOnRails
[11:00:40] SalexW: has joined #RubyOnRails
[11:01:08] ql6wlld: has joined #RubyOnRails
[11:01:20] tagrudev: has joined #RubyOnRails
[11:02:24] aganov: has joined #RubyOnRails
[11:06:19] build22_: has joined #RubyOnRails
[11:10:06] maloik: has joined #RubyOnRails
[11:11:00] bronson: has joined #RubyOnRails
[11:11:02] Diabolik: has anyone here done internationalization with spree before?
[11:11:15] marr: has joined #RubyOnRails
[11:12:48] tibra: has joined #RubyOnRails
[11:12:53] Rodya_: has joined #RubyOnRails
[11:15:24] nfk|laptop: has joined #RubyOnRails
[11:19:37] desmondhume: has joined #RubyOnRails
[11:22:20] badoo: has joined #RubyOnRails
[11:22:30] Osw: has joined #RubyOnRails
[11:23:03] strehi: has joined #RubyOnRails
[11:25:31] strehi: https://gist.github.com/anonymous/a255f0aa405ede6c1282
[11:26:05] strehi: Since I moved my application on new server
[11:26:09] strehi: I keep getting errors
[11:26:18] strehi: I am trying to solve it for like 40 hours
[11:26:29] strehi: with no sucsess
[11:26:49] Osw: has joined #RubyOnRails
[11:26:56] strehi: I connect to MSSQL trough tinyTDS
[11:27:26] strehi: I can't print the select value
[11:27:55] strehi: https://gist.github.com/anonymous/35677a6c05f7c941bbe4
[11:27:59] strehi: that's error log :/
[11:29:26] jhass: line 14 in the code you pasted is a comment
[11:29:38] jhass: so the error and the code don't get together
[11:29:58] strehi: sec I will post again
[11:30:26] snowy: has joined #RubyOnRails
[11:30:32] jhass: strehi: choose a filename that ends .rb so we get syntax highlighting
[11:30:50] jhass: strehi: if you repost the error too, make a single gist with multiple files
[11:30:57] roshanavand: has joined #RubyOnRails
[11:32:40] strehi: https://gist.github.com/
[11:33:05] strehi: https://gist.github.com/anonymous/d87162caecab640aa9d2
[11:33:17] strehi: Here you have.. If you need anything else please let me know
[11:33:38] roxtrongo: has joined #RubyOnRails
[11:34:07] chouhoulis: has joined #RubyOnRails
[11:34:13] jhass: strehi: that still doesn't match up, the error says there's a call to #[], but there's none in line 15
[11:35:43] strehi: print found_year.id => that's #[]
[11:35:53] B1n4r10: has joined #RubyOnRails
[11:36:21] jalcine: has joined #RubyOnRails
[11:36:26] strehi: I have moved application to a new server.... I am using same version of gem,ruby and rails
[11:36:34] strehi: I don't know what is causing the problems
[11:36:55] Cervajz: has joined #RubyOnRails
[11:36:58] strehi: I've installed required adds with bundle
[11:39:56] eoy_: has joined #RubyOnRails
[11:40:05] jhass: strehi: no, found_year.id does not call #[]
[11:40:50] Cervajz: has joined #RubyOnRails
[11:41:39] mig9: has joined #RubyOnRails
[11:42:25] strehi: jhass: do you have any idea why I am getting this mess?
[11:42:49] jhass: not really, the code you look at seems different from the code you run
[11:42:59] mig9: has joined #RubyOnRails
[11:43:34] annlewis: has joined #RubyOnRails
[11:43:36] mig9: How do you handle DB migrations, when applying rolling updates to a set of application servers/instances?
[11:43:50] strehi: jhass: But it is not different... I guarantee =)
[11:44:08] jhass: strehi: actually your error message proves you wrong
[11:45:11] jhass: strehi: well, you get an error page in your browser too right? Is the "Full trace" any different there?
[11:45:54] strehi: jhass: print found_year.id => THis line is marked with red
[11:46:06] strehi: with an error undefined method `[]' for nil:NilClass
[11:46:11] strehi: it doesn't make any sense to me
[11:46:12] jhass: strehi: that's not what I asked
[11:46:40] strehi: jhass: that's written in browser
[11:47:32] strehi: jhass: I can copy full trace into gist?
[11:47:39] paulodiniz: has joined #RubyOnRails
[11:48:27] strehi: https://gist.github.com/anonymous/34dc348cb6839d2d27ef
[11:48:37] srinidhi: has joined #RubyOnRails
[11:49:04] User458764: has joined #RubyOnRails
[11:53:48] roshanavand: has joined #RubyOnRails
[11:56:12] elton: has joined #RubyOnRails
[11:56:20] jsrn_: has joined #RubyOnRails
[11:57:32] avril14th: has joined #RubyOnRails
[11:59:03] avril14th: Hello, I've a job that exports all the records of a model that have not been exported yet. What's the fastest way to mark a bunch of records as exported? Record.update_all ?
[11:59:37] yoongkang: has joined #RubyOnRails
[11:59:39] Secretmapper: in my model i want to edit the variable passed to my scope
[11:59:41] Secretmapper: is this possible?
[11:59:47] brunto: has joined #RubyOnRails
[11:59:49] Secretmapper: currnetly: scope :origin, -> (origin) { where origin: origin }
[11:59:52] Secretmapper: i want it to be something like
[11:59:55] avril14th: Secretmapper: yes, scopes are plain classs methos
[12:00:17] Secretmapper: so i can do a def origin in this case?
[12:00:41] avril14th: you can either do a def self.origin or you can pass a proc, up to you
[12:00:57] build22: has joined #RubyOnRails
[12:01:12] avril14th: I like to differentiate scopes from class methods but that's me. in the end, all the same
[12:01:53] roxtrongo: has joined #RubyOnRails
[12:03:07] yfeldblum: has joined #RubyOnRails
[12:03:29] strehi: jhass: Did you get any clue?
[12:03:56] strehi: jhass: The right direction would be really useful to me
[12:04:32] MaDErroR123: has joined #RubyOnRails
[12:05:04] Secretmapper: I actually want my origin to not matter if it's set to a specific value
[12:05:13] Secretmapper: unfortunately
[12:05:16] Secretmapper: this didn't work
[12:05:17] Secretmapper: origin = "1=1" if origin == :anywhere
[12:05:17] Secretmapper: where origin: origin
[12:05:21] jhass: strehi: didn't had a chance yet, looking now
[12:05:21] adre: has joined #RubyOnRails
[12:05:25] avril14th: Secretmapper: gist
[12:05:34] platzhirsch: has joined #RubyOnRails
[12:07:07] argoneus: are you kidding me
[12:07:14] argoneus: the entire code to implement my custom strategy is
[12:07:25] argoneus: omniauth automagically does everything else
[12:07:28] argoneus: this is bullshit
[12:07:37] avril14th: argoneus: you can add comments though
[12:07:47] jhass: strehi: that kind of looks like (the version of) the adapter you're using is incompatible with the version of activerecord you're using
[12:08:30] platzhirsch: How can I specify a custom format in a Rails form without using form_for? form_tag(... format: :csv) gives me a form with format="csv" but in the controller it's received as request.format = 'text/html' : (
[12:08:43] Secretmapper: avril14th: https://gist.github.com/Secretmapper/099bf07948e32755200e
[12:09:12] sevenseacat: argoneus: do you want to do more work?
[12:09:31] argoneus: sevenseacat: no im quite happy I don't have to reinvent the wheel
[12:09:44] argoneus: the problem is figuring out which 1 line solves my problem :D
[12:09:57] sevenseacat: yes, it sounded that way lol
[12:10:01] strehi: jhass: ty
[12:11:19] avril14th: Secretmapper: so you want to look for origin equal "1=1" string? That's a weird string. But your code should work. what happens, wrong result or error?
[12:11:27] Pazician: has joined #RubyOnRails
[12:11:35] jhass: sevenseacat: keep in mind, this is still culture shock for the python folk :P
[12:12:15] bronson: has joined #RubyOnRails
[12:12:48] jhass: avril14th: I guess it's meant as a hack to "undo" the scope
[12:12:59] Secretmapper: avril14th, agggh my mistake indeed! I meant to look for any possible value
[12:13:09] Secretmapper: something like where = "asda" or "1=1"
[12:13:12] Secretmapper: if that makes sense...
[12:13:12] Pazician: has joined #RubyOnRails
[12:13:15] robert45: has joined #RubyOnRails
[12:13:31] jhass: Secretmapper: it doesn't really. Why can't you just not call the scope on the call side?
[12:13:49] Rodya_: has joined #RubyOnRails
[12:13:56] avril14th: a Model.anywhere scope call would sure look nice
[12:14:34] Secretmapper: i just feel it would make more sense with my code (i.e. Model.origin(myvar) would just work)
[12:14:41] argoneus: im still trying to figure out how things tie in together, like I have an initializer that uses omniauth builder to do provider :MyProvider, and then in routes.rb I can use /auth/:provider/callback, im still trying to figure out where that comes from
[12:14:44] Secretmapper: myvar takes "anywhere" from my clientside
[12:15:02] argoneus: ruby in general seems to pull random symbols out of nowhere for me right now
[12:15:06] Secretmapper: so i don't need to do an if statement in my controller
[12:15:06] avril14th: Secretmapper: ok. well then I guess it's just you query conditions that don't work. the scope-as-class-method thing does
[12:15:08] jhass: Secretmapper: just return all or scoped then?
[12:15:11] brotspinne: has joined #RubyOnRails
[12:15:18] jhass: Secretmapper: also keep in mind "anywhere" != :anywhere
[12:16:11] sevenseacat: :provider in your routes is just a placeholder for some value
[12:16:27] argoneus: oh, like that
[12:16:33] Secretmapper: thanks for that, would have missed it. shame though i like the :syntax haha
[12:16:49] jhass: argoneus: yeah, the controller then takes that value to look up the right registered provider
[12:16:51] argoneus: so then when it's routed to my controller, I can check :provider to see if they used auth/dongs/callback or what
[12:16:58] nonmadden: has joined #RubyOnRails
[12:17:32] argoneus: this is the same like article/:id, not sure why I didn't see it
[12:20:10] sevenseacat: its the same, yes :)
[12:22:53] Cervajz: has joined #RubyOnRails
[12:23:33] Cervajz: has joined #RubyOnRails
[12:25:52] pulgalipe: has joined #RubyOnRails
[12:26:47] Pazician: has joined #RubyOnRails
[12:29:17] Mia: has joined #RubyOnRails
[12:29:28] RegulationD: has joined #RubyOnRails
[12:29:35] kmckelvin: has joined #RubyOnRails
[12:30:04] brotspinne: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[12:34:57] chouhoulis: has joined #RubyOnRails
[12:36:01] Puffball: has joined #RubyOnRails
[12:37:42] kmckelvin: has joined #RubyOnRails
[12:39:27] kmckelvin: has joined #RubyOnRails
[12:40:00] ewnd9: has joined #RubyOnRails
[12:42:32] srinidhi: has joined #RubyOnRails
[12:43:00] arup_r: has joined #RubyOnRails
[12:43:23] nickenchuggets: has joined #RubyOnRails
[12:43:23] nickenchuggets: has joined #RubyOnRails
[12:44:07] annlewis: has joined #RubyOnRails
[12:46:59] fideliom: has joined #RubyOnRails
[12:47:15] fideliom: has left #RubyOnRails: ()
[12:48:16] Pazician: has joined #RubyOnRails
[12:49:46] multiscan: has joined #RubyOnRails
[12:50:49] roxtrongo: has joined #RubyOnRails
[12:51:47] build22_: has joined #RubyOnRails
[12:52:21] roshanavand: has joined #RubyOnRails
[12:53:58] roshanav_: has joined #RubyOnRails
[12:56:10] arup_r: has joined #RubyOnRails
[12:57:18] MaDErroR_: has joined #RubyOnRails
[12:57:31] sandstrom: has joined #RubyOnRails
[12:58:09] shibabu: has joined #RubyOnRails
[12:59:41] arup_r: 100 bug tickets .. lol carzy
[13:01:33] SalexW: has joined #RubyOnRails
[13:04:25] paulodiniz: has joined #RubyOnRails
[13:04:34] roshanavand: has joined #RubyOnRails
[13:04:46] multiscan: has joined #RubyOnRails
[13:08:24] Sigfrid: has joined #RubyOnRails
[13:10:13] sankaber: has joined #RubyOnRails
[13:10:32] nubyonnails: has joined #RubyOnRails
[13:12:21] User458764: has joined #RubyOnRails
[13:12:42] shibabu: has joined #RubyOnRails
[13:16:22] Rodya_: has joined #RubyOnRails
[13:17:15] argoneus: what purpose does the AuthHash in omniauth serve? right now I just get the response from the callback into a controller and parse it there, but apparently the "correct" way is to put it into an authhash during the callback
[13:18:27] desmondhume: has joined #RubyOnRails
[13:19:54] MaDErroR123: has joined #RubyOnRails
[13:23:17] nonmadden: has joined #RubyOnRails
[13:23:17] herbst: has joined #RubyOnRails
[13:23:59] artto: has joined #RubyOnRails
[13:24:32] B1n4r10: has joined #RubyOnRails
[13:26:12] multiscan: has joined #RubyOnRails
[13:26:19] jkamenik: has joined #RubyOnRails
[13:26:26] nbdy: has joined #RubyOnRails
[13:27:39] elton: has joined #RubyOnRails
[13:28:14] Pazician: has joined #RubyOnRails
[13:29:01] multiscan: has joined #RubyOnRails
[13:31:53] multiscan: has joined #RubyOnRails
[13:33:05] d0nn1e: has joined #RubyOnRails
[13:35:41] multiscan: has joined #RubyOnRails
[13:35:54] arup_r: argoneus: AuthHash is wrapper object of the JSON you get from Google. so that you can call info.email info.first_name etc...
[13:35:57] chouhoulis: has joined #RubyOnRails
[13:36:03] arup_r: access to key/values are flexible
[13:36:17] argoneus: so I can either parse them manually in my controller
[13:36:25] argoneus: or I parse them into an authhash so they can be used universally
[13:37:12] arup_r: Which gem you are using ? I was using Google-Oauth strategy gem
[13:37:25] argoneus: im making a custom strategy
[13:37:25] arup_r: and I don't event need to parse, I just access the value I need
[13:37:46] arup_r: then not sure. I didn't look the Omniauth gem
[13:38:02] arup_r: but you can see a gem to see what they did with the Authhash
[13:44:18] roxtrongo: has joined #RubyOnRails
[13:44:45] thedaniel: has left #RubyOnRails: ()
[13:44:52] annlewis: has joined #RubyOnRails
[13:49:25] big|bad|wolf: has joined #RubyOnRails
[13:50:33] rikkipitt: has joined #RubyOnRails
[13:52:07] rikkipitt: hey everyone, if I have a json end point with associations (Rails data), is there an easy way to save the data via the endpoint into another Rails app including the nested associations?
[13:53:32] krz: has joined #RubyOnRails
[13:54:36] cdrage: has joined #RubyOnRails
[13:55:30] cdrage: Okay, so I'm trying to wrap my head around Ruby on Rails. It's a framwork, I get that. Now, I want to have real-time loading / modifying on some of my pages (for example, a single-page control panel). Would I use React / Meteor for this? Or can I actually do this in ruby on rails?
[13:56:06] symbol: has joined #RubyOnRails
[13:56:50] sankaber: has joined #RubyOnRails
[13:57:03] desmondhume: has joined #RubyOnRails
[13:57:31] lacrymology: has joined #RubyOnRails
[13:58:48] elaptics: cdrage: right now you'd probably need to use something else but when Rails 5 drops with actioncable then you'd probably be able to do it with out of the box rails
[14:00:12] pyemkey: Yes, I'm using confirmable, but I'm letting user to log in without confirmation. As you can see there is a before_action to recognize if user is confirmed. Problem is that I'm automatically redirecting to login page. Any idea?
[14:00:22] chouhoulis: has joined #RubyOnRails
[14:00:57] pyemkey: Hello. I started to write feature tests by using rspec with capybara. I decided to use outside-inside pattern. I started in good way, because my test was red :) Problem is that I don't have idea why user is redirecting to sign in page instead of "page with welcome message". Here is sample code https://gist.github.com/pyemkey/b1605c8029e47e8e47c9 I don't understand why there is no current user.
[14:01:06] annlewis: has joined #RubyOnRails
[14:02:18] goodcodeguy: has joined #RubyOnRails
[14:05:38] drbayer: has joined #RubyOnRails
[14:06:51] eoy: has joined #RubyOnRails
[14:07:26] pixilla: has joined #RubyOnRails
[14:09:40] arup_r: cdrage: we are using the gem sync which does what you want. It use pusher to do realtime update though.. but elaptics is 100% right.
[14:09:48] moeabdol: has joined #RubyOnRails
[14:11:10] cdrage: arup_r: elaptics that's awesome, thanks! it's cool that they are adding that to rails 5. imo, ruby on rails is one of the few projects that I see "modernizing" on each iteration.
[14:11:40] User458764: has joined #RubyOnRails
[14:11:48] arup_r: cdrage: thanks for linking RoR .. yes we have one branch only..
[14:12:05] arup_r: we are not like JS lol .. several branches haha
[14:12:11] cdrage: hahaha lol
[14:12:23] shanemcd: has joined #RubyOnRails
[14:12:28] User458764: has joined #RubyOnRails
[14:12:45] sandstrom: has joined #RubyOnRails
[14:12:45] arup_r: React, Angular, Backbone.. etc etc ....
[14:13:19] renegadeandy: has joined #RubyOnRails
[14:13:29] renegadeandy: Can somebody help with this: http://stackoverflow.com/questions/34033517/how-can-i-find-the-number-of-current-subscriptions-using-privatepub-and-faye-in
[14:14:14] multiscan: has joined #RubyOnRails
[14:15:49] mig9: has joined #RubyOnRails
[14:16:54] Rodya_: has joined #RubyOnRails
[14:17:27] ramortegui: has joined #RubyOnRails
[14:17:54] Rodya_: has joined #RubyOnRails
[14:18:17] doublemalt_: has joined #RubyOnRails
[14:18:23] Cervajz: has joined #RubyOnRails
[14:18:24] nbdy: has joined #RubyOnRails
[14:18:48] Diabolik: has anyone here used spree for sending internationalised emails?
[14:19:27] shapeshifter: Ok this is driving me nuts... I want to add some JS to my rails app (which is a modified spree application). So I add a file "./app/assets/javascripts/cookie_banner.js". And "./app/assets/javascripts/application.js" looks like this: http://ix.io/i36 But the JS is not being loaded in development. It's just not there.
[14:20:01] sevenseacat: that js file likely isnt getting used.
[14:20:10] shapeshifter: sevenseacat: "getting used"?
[14:20:18] sevenseacat: by your application.
[14:20:23] sevenseacat: spree has all its own assets.
[14:20:56] sevenseacat: theres a frontend.js and a backend.js from memory
[14:21:10] sevenseacat: those will be what you should modify
[14:21:34] shapeshifter: sevenseacat: but those are in vendor, not app
[14:22:08] MaDErroR123: has joined #RubyOnRails
[14:22:18] shapeshifter: sevenseacat: this is vendor/assets/javascripts/spree/frontend/all.js http://ix.io/ijs It also says require_tree .
[14:22:37] sevenseacat: so it will require_tree everything in vendor/assets/javascripts/spree/frontend
[14:22:48] sevenseacat: your cookie_banner.js isnt in that folder
[14:23:52] yoongkang: has joined #RubyOnRails
[14:23:57] wsewolod: has joined #RubyOnRails
[14:24:14] shapeshifter: sevenseacat: well even if I move it to vendor/assets/javascripts/spree/frontend/cookie_banner.js it still isn't loaded. Nor if I put it in vendor/assets/javascripts/cookie_banner.js or vendor/assets/javascripts/spree/cookie_banner.js
[14:24:40] ponky: hmm, does anyone know if the creator of pastie (Josh) hang around in IRC?
[14:24:44] mostlybadfly: has joined #RubyOnRails
[14:24:51] sevenseacat: ponky: from time to time. Dreamer3 is his handle.
[14:24:58] ponky: sevenseacat: thanks
[14:25:12] sevenseacat: Shapeshifter: hmm
[14:25:32] sevenseacat: try manually requiring the file in your js?
[14:25:45] sevenseacat: i'm not too familiar with require_tree, i dont tend to use it
[14:25:50] sevenseacat: maybe it behaves differently than i thought it did
[14:26:09] snowy: has joined #RubyOnRails
[14:26:40] uri: has joined #RubyOnRails
[14:27:42] MaDErroR123: has joined #RubyOnRails
[14:28:07] maxz: has joined #RubyOnRails
[14:29:08] elton: has joined #RubyOnRails
[14:29:21] shapeshifter: man this is driving me crazy. I've tried every possible path and require combination and it's just not picked up. I think I need to take a break or something.
[14:29:39] shapeshifter: Is there some command to list all assets that sprockets tries to include?
[14:30:01] sevenseacat: sprockets is a big black box to me, but if you specifically list it, it should error if it cant find it
[14:32:12] shapeshifter: Uhm, I think I've *just* identified the problem... a syntax error in the js file. No errors whatsoever anywhere.
[14:32:28] kmckelvin: has joined #RubyOnRails
[14:32:36] snowy: has joined #RubyOnRails
[14:33:46] sevenseacat: definitely should have raised an error if it was being included and didnt compile
[14:35:32] cdrage: arup_r: is it possible to git pull rails 5 alpha and use that with actioncable instead? i know it's quite early, but rather be on the edge and learn all that new shit :)
[14:36:02] Pazician: has joined #RubyOnRails
[14:36:16] mag42c: has joined #RubyOnRails
[14:36:22] cdrage: I can't tell if actioncable is even *in* the master branch at the moment
[14:36:29] sevenseacat: if youre not already very familiar with rails, I would *not* advise that.
[14:36:52] sevenseacat: its not even out in beta yet.
[14:37:32] Pazician: has joined #RubyOnRails
[14:38:32] arup_r: cdrage: ^^ my answer
[14:39:22] desiph3r: has joined #RubyOnRails
[14:39:35] arup_r: you may work on some other features of projects and wait for it.. once come add all one by one
[14:39:42] chouhoulis: has joined #RubyOnRails
[14:48:55] hardtail: has joined #RubyOnRails
[14:49:11] norc: has joined #RubyOnRails
[14:49:20] flashpoint9: has joined #RubyOnRails
[14:49:42] uri: has joined #RubyOnRails
[14:50:31] c355E3B: has joined #RubyOnRails
[14:50:52] norc: Hi. I have the need to render various versions of an index (different columns) for some resources (the data set is the same though). Should I keep the common code in my index.html.haml and just render different partials based on say params[:view_type] ?
[14:51:07] atomical: has joined #RubyOnRails
[14:51:20] norc: Or dispatch to different templates in the controller?
[14:53:39] joshkovach: has joined #RubyOnRails
[14:55:23] rikkipitt: has joined #RubyOnRails
[14:57:53] twilling: has joined #RubyOnRails
[14:58:07] mig9: has joined #RubyOnRails
[15:01:12] Rubie: has joined #RubyOnRails
[15:01:33] eoy_: has joined #RubyOnRails
[15:01:53] annlewis: has joined #RubyOnRails
[15:02:21] SalexW: has joined #RubyOnRails
[15:05:16] melonstorm: has joined #RubyOnRails
[15:06:42] MaDErroR123: has joined #RubyOnRails
[15:08:51] desiph3r: has joined #RubyOnRails
[15:09:24] multiscan: has joined #RubyOnRails
[15:09:43] yardenbar: has joined #RubyOnRails
[15:10:22] ewnd9: has joined #RubyOnRails
[15:11:12] Frem: has joined #RubyOnRails
[15:13:39] grotewold: has joined #RubyOnRails
[15:14:58] The_Phoenix: has joined #RubyOnRails
[15:14:59] bronson: has joined #RubyOnRails
[15:15:57] mig9: has joined #RubyOnRails
[15:16:22] pragmatism: has joined #RubyOnRails
[15:17:32] iateadonut: has joined #RubyOnRails
[15:21:04] diegoviola: has joined #RubyOnRails
[15:21:09] axl_: has joined #RubyOnRails
[15:22:38] diegoviola: has joined #RubyOnRails
[15:22:53] big|bad|wolf: has joined #RubyOnRails
[15:22:55] diegoviola: do you guys see any potential problem with this code? https://gist.github.com/diegoviola/3739a6261eff9da4dc59
[15:23:16] diegoviola: I'm just getting the average time with that
[15:23:53] `based_pdev`: has joined #RubyOnRails
[15:24:16] erichu: has joined #RubyOnRails
[15:25:21] ascarter: has joined #RubyOnRails
[15:27:11] krz: has joined #RubyOnRails
[15:29:46] adavia: has joined #RubyOnRails
[15:29:53] elton: has joined #RubyOnRails
[15:30:36] MaDErroR123: has joined #RubyOnRails
[15:30:37] morsik: has joined #RubyOnRails
[15:31:05] morsik: hi, is there any setting in rails that can prevent access to page from some ips? (or allow from only them)
[15:31:10] eoy: has joined #RubyOnRails
[15:31:32] morsik: strange, but my application stopped working (but works when i'm connecting to itself "localhost" by it's domain)
[15:31:38] morsik: (actually it's GitLab)
[15:31:58] fryguy: morsik: typically that's something done at the webserver level, not the app server, but the request object has the requester IP in it that you can use for things like routing constraints
[15:32:29] morsik: all requests are correctly forwarded to Rails (confirmed with uwsgi and rails application.log) but GitLab somehow returns 403 for everything except server internal connections
[15:32:38] B1n4r10: has joined #RubyOnRails
[15:32:47] tubbo: might be because it's not authenticating internal connections
[15:32:57] tubbo: because gitlab communicates with other services on the same box
[15:33:13] User458764: has joined #RubyOnRails
[15:33:36] morsik: tubbo: you mean user authentication on web page? nope, tried incognito mode ??? i can't even see login page.
[15:34:15] tubbo: morsik: no, i mean connections coming from the same machine. gitlab (the rails application) has some other processes that run alongside it, right?
[15:34:17] ortesac: has joined #RubyOnRails
[15:34:22] The_Phoenix: has joined #RubyOnRails
[15:34:23] Ergo: has joined #RubyOnRails
[15:34:49] tubbo: diegoviola: i wouldn't have chosen that path, but i suppose it's sufficient.
[15:34:51] morsik: tubbo: redis and mysql in my case. gitlab-shell is just executed as normal application
[15:40:08] uri: has joined #RubyOnRails
[15:41:41] nibbo: has joined #RubyOnRails
[15:41:41] JonasOSDever: has joined #RubyOnRails
[15:41:41] teegee543: has joined #RubyOnRails
[15:41:41] Kilo`byte: has joined #RubyOnRails
[15:41:41] abracadaniel: has joined #RubyOnRails
[15:41:41] leex: has joined #RubyOnRails
[15:41:41] nickjj: has joined #RubyOnRails
[15:41:41] jcm__: has joined #RubyOnRails
[15:41:41] crankharder: has joined #RubyOnRails
[15:41:42] darrik: has joined #RubyOnRails
[15:41:42] arcanez: has joined #RubyOnRails
[15:41:42] hfp_work: has joined #RubyOnRails
[15:41:42] tubbo: has joined #RubyOnRails
[15:41:42] Prira: has joined #RubyOnRails
[15:41:42] ankhers: has joined #RubyOnRails
[15:41:42] skyjumper: has joined #RubyOnRails
[15:41:42] deavidsedice: has joined #RubyOnRails
[15:41:42] nygrenh_: has joined #RubyOnRails
[15:41:42] raenk: has joined #RubyOnRails
[15:41:42] machuga: has joined #RubyOnRails
[15:41:42] noah256_: has joined #RubyOnRails
[15:41:42] waltz_: has joined #RubyOnRails
[15:41:42] timnovins: has joined #RubyOnRails
[15:41:42] pavelz: has joined #RubyOnRails
[15:41:42] itkin-: has joined #RubyOnRails
[15:41:42] JoshL: has joined #RubyOnRails
[15:41:42] sekrit: has joined #RubyOnRails
[15:41:42] Sigma00: has joined #RubyOnRails
[15:41:42] slava_: has joined #RubyOnRails
[15:41:42] ereslibre_laptop: has joined #RubyOnRails
[15:41:42] dcope: has joined #RubyOnRails
[15:41:42] Rikle_S: has joined #RubyOnRails
[15:41:42] jto: has joined #RubyOnRails
[15:41:42] jbrinkmusic: has joined #RubyOnRails
[15:41:42] AnoHito: has joined #RubyOnRails
[15:41:42] davout: has joined #RubyOnRails
[15:41:42] GJdan: has joined #RubyOnRails
[15:41:42] skullcrasher: has joined #RubyOnRails
[15:41:42] w5isp: has joined #RubyOnRails
[15:41:42] swhitt: has joined #RubyOnRails
[15:41:43] csmb: has joined #RubyOnRails
[15:41:43] jpterry: has joined #RubyOnRails
[15:41:43] mloy: has joined #RubyOnRails
[15:41:43] marienz: has joined #RubyOnRails
[15:41:43] Majadon: has joined #RubyOnRails
[15:41:43] nomadicoder: has joined #RubyOnRails
[15:41:43] danlucraft: has joined #RubyOnRails
[15:41:43] KorriX_: has joined #RubyOnRails
[15:41:43] iamdevnul: has joined #RubyOnRails
[15:41:43] Phoop_: has joined #RubyOnRails
[15:41:43] lbotos: has joined #RubyOnRails
[15:41:43] Guest96625: has joined #RubyOnRails
[15:41:43] Davey: has joined #RubyOnRails
[15:41:43] draig: has joined #RubyOnRails
[15:41:43] trbox_: has joined #RubyOnRails
[15:41:43] ArTiSTiX_: has joined #RubyOnRails
[15:41:43] ewilliam_: has joined #RubyOnRails
[15:41:43] barttenbrinke: has joined #RubyOnRails
[15:41:43] DukeDave: has joined #RubyOnRails
[15:41:43] hoodow: has joined #RubyOnRails
[15:41:43] Pro|_: has joined #RubyOnRails
[15:41:43] sptq_: has joined #RubyOnRails
[15:41:43] IceBear: has joined #RubyOnRails
[15:41:43] samuelkadolph: has joined #RubyOnRails
[15:41:43] bl0m1: has joined #RubyOnRails
[15:41:43] mhenrixon: has joined #RubyOnRails
[15:41:43] FailBit: has joined #RubyOnRails
[15:41:43] martinbjeldbak: has joined #RubyOnRails
[15:41:44] maxmanders: has joined #RubyOnRails
[15:41:44] Symbiosisz: has joined #RubyOnRails
[15:41:44] differentreality: has joined #RubyOnRails
[15:41:44] matt_d: has joined #RubyOnRails
[15:41:44] CornishPasty: has joined #RubyOnRails
[15:41:44] nullwarp: has joined #RubyOnRails
[15:41:44] waldi_: has joined #RubyOnRails
[15:41:44] Shidash: has joined #RubyOnRails
[15:41:44] Killerkeksdose: has joined #RubyOnRails
[15:41:44] tw1sted: has joined #RubyOnRails
[15:41:44] knight_: has joined #RubyOnRails
[15:41:44] RTG`: has joined #RubyOnRails
[15:41:44] styx__: has joined #RubyOnRails
[15:41:44] funnel: has joined #RubyOnRails
[15:41:44] tomaw: has joined #RubyOnRails
[15:41:44] spectra: has joined #RubyOnRails
[15:41:44] thomasfedb: has joined #RubyOnRails
[15:41:44] targaf: has joined #RubyOnRails
[15:41:44] tekk: has joined #RubyOnRails
[15:41:44] sonOfRa: has joined #RubyOnRails
[15:41:44] bakingbread: has joined #RubyOnRails
[15:41:44] benlakey: has joined #RubyOnRails
[15:41:44] gregf_: has joined #RubyOnRails
[15:41:44] execute: has joined #RubyOnRails
[15:41:44] jtdowney: has joined #RubyOnRails
[15:41:44] alevy: has joined #RubyOnRails
[15:41:44] urkle: has joined #RubyOnRails
[15:41:44] Scient: has joined #RubyOnRails
[15:41:44] ^Denis: has joined #RubyOnRails
[15:41:44] aep: has joined #RubyOnRails
[15:41:44] eggoez: has joined #RubyOnRails
[15:41:44] okdas: has joined #RubyOnRails
[15:41:44] Paradox: has joined #RubyOnRails
[15:41:44] apeiros: has joined #RubyOnRails
[15:41:44] gbailey: has joined #RubyOnRails
[15:41:45] Uptime: has joined #RubyOnRails
[15:41:45] aguynamedben: has joined #RubyOnRails
[15:41:45] bahar: has joined #RubyOnRails
[15:41:45] tpendragon: has joined #RubyOnRails
[15:41:45] rhizome: has joined #RubyOnRails
[15:41:45] shtirlic: has joined #RubyOnRails
[15:41:45] creature: has joined #RubyOnRails
[15:41:45] arthurnn: has joined #RubyOnRails
[15:41:45] Klumben: has joined #RubyOnRails
[15:41:45] jlpeters: has joined #RubyOnRails
[15:41:45] krainboltgreene: has joined #RubyOnRails
[15:41:45] Denarii: has joined #RubyOnRails
[15:41:45] th0m__: has joined #RubyOnRails
[15:41:45] jord: has joined #RubyOnRails
[15:41:45] pwnd_nsfw: has joined #RubyOnRails
[15:41:45] mclee: has joined #RubyOnRails
[15:41:45] atrius: has joined #RubyOnRails
[15:41:45] cornerman: has joined #RubyOnRails
[15:41:45] shinenelson: has joined #RubyOnRails
[15:41:45] jahbrewski: has joined #RubyOnRails
[15:41:45] adamholt: has joined #RubyOnRails
[15:41:45] kadoppe: has joined #RubyOnRails
[15:41:45] Grag_Harker: has joined #RubyOnRails
[15:41:45] CustosLimen: has joined #RubyOnRails
[15:41:45] aaronr: has joined #RubyOnRails
[15:41:45] AlHafoudh: has joined #RubyOnRails
[15:41:45] Tempesta: has joined #RubyOnRails
[15:41:45] banister: has joined #RubyOnRails
[15:41:45] MasterNayru: has joined #RubyOnRails
[15:41:45] drupald: has joined #RubyOnRails
[15:41:46] nocontrol: has joined #RubyOnRails
[15:41:46] darutoko: has joined #RubyOnRails
[15:41:46] sadaf2605: has joined #RubyOnRails
[15:41:46] alaing: has joined #RubyOnRails
[15:41:46] maloik: has joined #RubyOnRails
[15:41:46] marr: has joined #RubyOnRails
[15:41:46] nfk|laptop: has joined #RubyOnRails
[15:41:46] Mia: has joined #RubyOnRails
[15:41:46] roshanavand: has joined #RubyOnRails
[15:41:46] Sigfrid: has joined #RubyOnRails
[15:41:46] nonmadden: has joined #RubyOnRails
[15:41:46] d0nn1e: has joined #RubyOnRails
[15:41:46] cdrage: has joined #RubyOnRails
[15:41:46] goodcodeguy: has joined #RubyOnRails
[15:41:46] erichu: has joined #RubyOnRails
[15:41:46] crdpink2: has joined #RubyOnRails
[15:41:46] uranther: has joined #RubyOnRails
[15:41:46] alxndr: has joined #RubyOnRails
[15:41:46] leeky: has joined #RubyOnRails
[15:41:46] kapowaz_: has joined #RubyOnRails
[15:41:46] upgrayeddd: has joined #RubyOnRails
[15:41:46] mozzarella: has joined #RubyOnRails
[15:41:46] avelldiroll: has joined #RubyOnRails
[15:41:46] TheMoonMaster: has joined #RubyOnRails
[15:41:46] levifig: has joined #RubyOnRails
[15:41:46] zrl: has joined #RubyOnRails
[15:41:46] lord4163: has joined #RubyOnRails
[15:41:46] mheld: has joined #RubyOnRails
[15:41:46] epochwolf: has joined #RubyOnRails
[15:41:46] Marquel: has joined #RubyOnRails
[15:41:46] w0rd-driven: has joined #RubyOnRails
[15:41:46] gaustin: has joined #RubyOnRails
[15:41:46] Sirecote: has joined #RubyOnRails
[15:41:46] kitallis: has joined #RubyOnRails
[15:41:46] llakey: has joined #RubyOnRails
[15:41:47] svkurowski: has joined #RubyOnRails
[15:41:47] russt: has joined #RubyOnRails
[15:41:47] eduardodeoh: has joined #RubyOnRails
[15:41:47] andrew-l: has joined #RubyOnRails
[15:41:47] alexblom: has joined #RubyOnRails
[15:41:47] matthewd: has joined #RubyOnRails
[15:41:47] kaspergrubbe: has joined #RubyOnRails
[15:41:47] clamstar: has joined #RubyOnRails
[15:41:47] davidcelis: has joined #RubyOnRails
[15:41:47] wldcordeiro: has joined #RubyOnRails
[15:41:47] michael_mbp: has joined #RubyOnRails
[15:41:47] cydrobolt: has joined #RubyOnRails
[15:41:47] Fridtjof: has joined #RubyOnRails
[15:41:47] speakingcode: has joined #RubyOnRails
[15:41:47] fryguy: has joined #RubyOnRails
[15:41:47] G: has joined #RubyOnRails
[15:41:47] pipework: has joined #RubyOnRails
[15:41:47] tris: has joined #RubyOnRails
[15:41:47] Liothen: has joined #RubyOnRails
[15:41:47] blowmage: has joined #RubyOnRails
[15:41:47] mcr-credil: has joined #RubyOnRails
[15:41:47] TDJACR: has joined #RubyOnRails
[15:41:47] Haydos: has joined #RubyOnRails
[15:41:47] ajb: has joined #RubyOnRails
[15:41:47] DanKnox[away]: has joined #RubyOnRails
[15:41:47] markelite: has joined #RubyOnRails
[15:41:47] skarn: has joined #RubyOnRails
[15:41:47] Avon: has joined #RubyOnRails
[15:41:47] loglaunch: has joined #RubyOnRails
[15:41:47] gr3yR0n1n: has joined #RubyOnRails
[15:41:47] lorn: has joined #RubyOnRails
[15:41:48] rromanch_: has joined #RubyOnRails
[15:41:48] gnugmanov: has joined #RubyOnRails
[15:41:48] EXCHGR: has joined #RubyOnRails
[15:41:48] cajone: has joined #RubyOnRails
[15:41:48] teamcoltra: has joined #RubyOnRails
[15:41:48] dmarr: has joined #RubyOnRails
[15:41:48] pontiki: has joined #RubyOnRails
[15:41:48] gambl0re: has joined #RubyOnRails
[15:41:48] Kedare: has joined #RubyOnRails
[15:41:48] nertzy: has joined #RubyOnRails
[15:41:48] stannard: has joined #RubyOnRails
[15:41:48] Gm4n: has joined #RubyOnRails
[15:41:48] zeknox: has joined #RubyOnRails
[15:41:48] humd1ng3r: has joined #RubyOnRails
[15:41:48] ebertx: has joined #RubyOnRails
[15:41:48] thekkid: has joined #RubyOnRails
[15:41:48] Dreeg: has joined #RubyOnRails
[15:41:48] jhill: has joined #RubyOnRails
[15:41:48] user083: has joined #RubyOnRails
[15:41:48] andatche: has joined #RubyOnRails
[15:41:48] rclanan: has joined #RubyOnRails
[15:41:48] PlasmaStar: has joined #RubyOnRails
[15:41:48] Emily: has joined #RubyOnRails
[15:41:48] FooBarWidget: has joined #RubyOnRails
[15:41:48] LBRapid: has joined #RubyOnRails
[15:41:48] simplyianm: has joined #RubyOnRails
[15:41:48] Pumukel: has joined #RubyOnRails
[15:41:48] CharliB: has joined #RubyOnRails
[15:41:48] defsdoor: has joined #RubyOnRails
[15:41:48] Sylario: has joined #RubyOnRails
[15:41:48] rickmasta: has joined #RubyOnRails
[15:41:48] goldbug: has joined #RubyOnRails
[15:41:48] nyaa: has joined #RubyOnRails
[15:41:48] ldnunes: has joined #RubyOnRails
[15:41:49] avril14th: has joined #RubyOnRails
[15:41:49] brunto: has joined #RubyOnRails
[15:41:49] pulgalipe: has joined #RubyOnRails
[15:41:49] desmondhume: has joined #RubyOnRails
[15:41:49] drbayer: has joined #RubyOnRails
[15:41:49] shanemcd: has joined #RubyOnRails
[15:41:49] renegadeandy: has joined #RubyOnRails
[15:41:49] ramortegui: has joined #RubyOnRails
[15:41:49] doublemalt_: has joined #RubyOnRails
[15:41:49] nbdy: has joined #RubyOnRails
[15:41:49] wsewolod: has joined #RubyOnRails
[15:41:49] mostlybadfly: has joined #RubyOnRails
[15:41:49] snowy: has joined #RubyOnRails
[15:41:49] mag42c: has joined #RubyOnRails
[15:41:49] Pazician: has joined #RubyOnRails
[15:41:49] chouhoulis: has joined #RubyOnRails
[15:41:49] flashpoint9: has joined #RubyOnRails
[15:41:49] atomical: has joined #RubyOnRails
[15:41:49] twilling: has joined #RubyOnRails
[15:41:49] ewnd9: has joined #RubyOnRails
[15:41:49] Frem: has joined #RubyOnRails
[15:41:49] iateadonut: has joined #RubyOnRails
[15:41:49] axl_: has joined #RubyOnRails
[15:41:49] `based_pdev`: has joined #RubyOnRails
[15:41:49] krz: has joined #RubyOnRails
[15:41:49] adavia: has joined #RubyOnRails
[15:41:49] elton: has joined #RubyOnRails
[15:41:49] B1n4r10: has joined #RubyOnRails
[15:41:50] The_Phoenix: has joined #RubyOnRails
[15:41:50] Ergo: has joined #RubyOnRails
[15:41:50] dustinm`: has joined #RubyOnRails
[15:41:50] machty: has joined #RubyOnRails
[15:41:50] sparr: has joined #RubyOnRails
[15:41:50] jbermudes: has joined #RubyOnRails
[15:41:50] morsik: has joined #RubyOnRails
[15:41:50] bbrowning: has joined #RubyOnRails
[15:41:50] moty66: has joined #RubyOnRails
[15:41:50] ltd: has joined #RubyOnRails
[15:41:50] Zackio: has joined #RubyOnRails
[15:41:50] elaptics: has joined #RubyOnRails
[15:41:50] thejoecarroll: has joined #RubyOnRails
[15:41:50] redondos: has joined #RubyOnRails
[15:41:50] constantinexvi: has joined #RubyOnRails
[15:41:50] xMopxShell: has joined #RubyOnRails
[15:41:50] gavit: has joined #RubyOnRails
[15:41:50] lsone: has joined #RubyOnRails
[15:41:50] digneety: has joined #RubyOnRails
[15:41:50] rtl: has joined #RubyOnRails
[15:41:50] mist: has joined #RubyOnRails
[15:41:50] penguinpowernz: has joined #RubyOnRails
[15:41:50] jkwood: has joined #RubyOnRails
[15:41:50] hyperdri-: has joined #RubyOnRails
[15:41:50] Fire-Dragon-DoL: has joined #RubyOnRails
[15:41:50] hendrici1s: has joined #RubyOnRails
[15:41:50] gthank: has joined #RubyOnRails
[15:51:09] MissionCritical: has joined #RubyOnRails
[16:06:40] owenjones: has joined #RubyOnRails
[16:15:30] jkamenik: has joined #RubyOnRails
[16:23:24] mig9: has joined #RubyOnRails
[16:28:42] mary5030: has joined #RubyOnRails
[16:28:42] RegulationD: has joined #RubyOnRails
[16:28:42] desmondh_: has joined #RubyOnRails
[16:28:42] MissionCritical: has joined #RubyOnRails
[16:28:42] s2013: has joined #RubyOnRails
[16:28:42] Guest90348: has joined #RubyOnRails
[16:28:42] bratsche: has joined #RubyOnRails
[16:28:42] Helheim: has joined #RubyOnRails
[16:28:42] g3funk: has joined #RubyOnRails
[16:28:42] 18VAADMSM: has joined #RubyOnRails
[16:28:42] pragmatism: has joined #RubyOnRails
[16:28:42] grotewold: has joined #RubyOnRails
[16:28:42] desiph3r: has joined #RubyOnRails
[16:28:42] shibabu: has joined #RubyOnRails
[16:28:42] Puffball: has joined #RubyOnRails
[16:28:42] platzhirsch: has joined #RubyOnRails
[16:28:42] adre: has joined #RubyOnRails
[16:28:42] jsrn_: has joined #RubyOnRails
[16:28:42] ql6wlld: has joined #RubyOnRails
[16:28:42] pyemkey: has joined #RubyOnRails
[16:28:42] teclator: has joined #RubyOnRails
[16:28:42] qejk: has joined #RubyOnRails
[16:28:42] AzaToth: has joined #RubyOnRails
[16:28:42] lxsameer: has joined #RubyOnRails
[16:28:42] gaussblurinc1: has joined #RubyOnRails
[16:28:43] ngr: has joined #RubyOnRails
[16:28:43] workmad3: has joined #RubyOnRails
[16:28:43] hackeron: has joined #RubyOnRails
[16:28:43] Geffy: has joined #RubyOnRails
[16:28:43] rclements: has joined #RubyOnRails
[16:28:43] K0nserv-: has joined #RubyOnRails
[16:28:43] reaVer: has joined #RubyOnRails
[16:28:43] solenoids: has joined #RubyOnRails
[16:28:43] Scriptonaut: has joined #RubyOnRails
[16:28:43] argoneus: has joined #RubyOnRails
[16:28:43] wkoszek: has joined #RubyOnRails
[16:28:43] boshhead: has joined #RubyOnRails
[16:28:43] chridal: has joined #RubyOnRails
[16:28:43] moei: has joined #RubyOnRails
[16:28:43] tenderlove: has joined #RubyOnRails
[16:28:43] webdestroya: has joined #RubyOnRails
[16:28:43] Papierkorb: has joined #RubyOnRails
[16:28:43] waseem_: has joined #RubyOnRails
[16:28:43] dlitz: has joined #RubyOnRails
[16:28:43] existensil: has joined #RubyOnRails
[16:28:43] oddalot: has joined #RubyOnRails
[16:28:43] Dfoolz: has joined #RubyOnRails
[16:28:43] unreal: has joined #RubyOnRails
[16:28:43] SanguineAnomaly: has joined #RubyOnRails
[16:28:43] kramsee: has joined #RubyOnRails
[16:28:43] PaulePanter: has joined #RubyOnRails
[16:28:43] shapeshifter: has joined #RubyOnRails
[16:28:43] alol: has joined #RubyOnRails
[16:28:43] Gabriel403: has joined #RubyOnRails
[16:28:43] weltzooo: has joined #RubyOnRails
[16:28:43] Lauer: has joined #RubyOnRails
[16:28:43] badeball: has joined #RubyOnRails
[16:28:43] mosez: has joined #RubyOnRails
[16:28:43] thorgi: has joined #RubyOnRails
[16:28:43] Mession: has joined #RubyOnRails
[16:28:43] suffice: has joined #RubyOnRails
[16:28:43] Silex: has joined #RubyOnRails
[16:28:43] [dmp]: has joined #RubyOnRails
[16:28:43] coffeejunk: has joined #RubyOnRails
[16:28:43] wenchenx_: has joined #RubyOnRails
[16:28:43] Kingdutch: has joined #RubyOnRails
[16:28:43] proboszcz: has joined #RubyOnRails
[16:28:44] vigasdeep: has joined #RubyOnRails
[16:28:44] w0bni: has joined #RubyOnRails
[16:28:44] Kuukunen: has joined #RubyOnRails
[16:28:44] kanzure: has joined #RubyOnRails
[16:28:44] xardion: has joined #RubyOnRails
[16:28:44] DrShoggoth: has joined #RubyOnRails
[16:28:44] cfloare: has joined #RubyOnRails
[16:28:44] AliasLStoRM: has joined #RubyOnRails
[16:28:44] hightower4: has joined #RubyOnRails
[16:28:44] Skelz0r: has joined #RubyOnRails
[16:28:44] six: has joined #RubyOnRails
[16:28:44] WhereIsMySpoon: has joined #RubyOnRails
[16:28:44] fluchtreflex: has joined #RubyOnRails
[16:28:44] gremly: has joined #RubyOnRails
[16:28:48] yoongkang: has joined #RubyOnRails
[16:29:31] tildes: has joined #RubyOnRails
[16:30:26] jbermudes: has joined #RubyOnRails
[16:31:08] jbermudes: has joined #RubyOnRails
[16:33:21] rodfersou: has joined #RubyOnRails
[16:34:06] tildes: has joined #RubyOnRails
[16:36:01] bbrowning: has joined #RubyOnRails
[16:36:14] pixilla: While executing ???bundle exec rake generate_secret_token??? I get the following error:
[16:36:26] pixilla: NameError: uninitialized constant ActionDispatch::XmlParamsParser
[16:36:43] pixilla: ruby 2.2.3p173, Rails 4.2.3, Bundler version 1.10.6
[16:36:59] tildes: has left #RubyOnRails: ()
[16:37:14] tildes: has joined #RubyOnRails
[16:37:17] pixilla: I have the actionpack-xml_parser-1.0.2 gem installed.
[16:37:18] shaman42: has joined #RubyOnRails
[16:37:27] lacrymology: in rspec, how can I say "expect(some_list).to all(elem.foo is truthy)?
[16:37:31] mary5030: has joined #RubyOnRails
[16:39:41] mary5030_: has joined #RubyOnRails
[16:39:49] pixilla: But bundler does not appear to see it:
[16:40:30] jiriki: has joined #RubyOnRails
[16:40:50] pixilla: bundle show actionpack-xml_parser
[16:40:51] pixilla: Could not find gem 'actionpack-xml_parser'.
[16:41:10] lacrymology: in rspec, how can I say "expect(some_list).to all(elem.foo is truthy)?
[16:42:15] pixilla: How can I discover why actionpack-xml_parser is not available?
[16:47:56] Silex: has joined #RubyOnRails
[16:47:56] dfoolz_: has joined #RubyOnRails
[16:47:56] googly: has joined #RubyOnRails
[16:47:56] jbermudes_: has joined #RubyOnRails
[16:47:56] Sidoniuns: has joined #RubyOnRails
[16:47:56] nonmadden: has joined #RubyOnRails
[16:47:56] User458764: has joined #RubyOnRails
[16:47:56] MaDErroR_: has joined #RubyOnRails
[16:47:56] masscrx: has joined #RubyOnRails
[16:47:56] mercerist: has joined #RubyOnRails
[16:47:57] _HombreTepic: has joined #RubyOnRails
[16:47:57] Rubie: has joined #RubyOnRails
[16:47:57] dshoreman: has joined #RubyOnRails
[16:47:57] tejasmanohar: has joined #RubyOnRails
[16:47:57] ELCALOR: has joined #RubyOnRails
[16:47:57] djinni`_: has joined #RubyOnRails
[16:47:57] doge__: has joined #RubyOnRails
[16:47:57] ruurd: has joined #RubyOnRails
[16:47:57] gremax: has joined #RubyOnRails
[16:47:57] cschneid: has joined #RubyOnRails
[16:47:57] vedu: has joined #RubyOnRails
[16:47:57] TheMonster: has joined #RubyOnRails
[16:47:57] Ikri: has joined #RubyOnRails
[16:47:57] Y_Ichiro: has joined #RubyOnRails
[16:47:57] kalzz: has joined #RubyOnRails
[16:47:57] jhass: has joined #RubyOnRails
[16:47:57] Didac: has joined #RubyOnRails
[16:47:57] leslie1: has joined #RubyOnRails
[16:47:57] camilasan: has joined #RubyOnRails
[16:47:57] phrozen77: has joined #RubyOnRails
[16:47:57] cjk101010: has joined #RubyOnRails
[16:47:57] zly: has joined #RubyOnRails
[16:47:57] Seich: has joined #RubyOnRails
[16:47:57] LateralOctober: has joined #RubyOnRails
[16:47:57] Guest4184__: has joined #RubyOnRails
[16:47:57] Ratler: has joined #RubyOnRails
[16:47:57] drPoggs: has joined #RubyOnRails
[16:47:58] sfr^: has joined #RubyOnRails
[16:47:58] BLuEGoD: has joined #RubyOnRails
[16:47:58] Lloyd: has joined #RubyOnRails
[16:47:58] jlyndon: has joined #RubyOnRails
[16:47:58] kumavis: has joined #RubyOnRails
[16:47:58] dotty: has joined #RubyOnRails
[16:47:58] bauruine: has joined #RubyOnRails
[16:47:58] nyandoge: has joined #RubyOnRails
[16:47:58] soahccc: has joined #RubyOnRails
[16:47:58] lele: has joined #RubyOnRails
[16:47:58] golgaroth: has joined #RubyOnRails
[16:47:58] many: has joined #RubyOnRails
[16:47:58] chancancode_: has joined #RubyOnRails
[16:47:58] lacrosse: has joined #RubyOnRails
[16:47:58] DarkBushido: has joined #RubyOnRails
[16:47:58] borkdude: has joined #RubyOnRails
[16:47:58] amitchellbullard: has joined #RubyOnRails
[16:47:58] ebryn: has joined #RubyOnRails
[16:47:58] hellschreiber_: has joined #RubyOnRails
[16:47:58] spastorino: has joined #RubyOnRails
[16:47:58] shwoodard___: has joined #RubyOnRails
[16:47:58] sikachu_: has joined #RubyOnRails
[16:47:58] cookiez: has joined #RubyOnRails
[16:47:58] daxroc: has joined #RubyOnRails
[16:47:58] SuppliedRelic: has joined #RubyOnRails
[16:47:58] MiracleBlue_: has joined #RubyOnRails
[16:47:59] vayan: has joined #RubyOnRails
[16:47:59] RubyNewbey__: has joined #RubyOnRails
[16:47:59] danneu: has joined #RubyOnRails
[16:47:59] null__: has joined #RubyOnRails
[16:47:59] pfg: has joined #RubyOnRails
[16:47:59] BBHoss: has joined #RubyOnRails
[16:47:59] Quintasan: has joined #RubyOnRails
[16:47:59] elektronaut: has joined #RubyOnRails
[16:47:59] Trynemjoel: has joined #RubyOnRails
[16:47:59] corioliss: has joined #RubyOnRails
[16:47:59] nickenchuggets: has joined #RubyOnRails
[16:47:59] c355E3B: has joined #RubyOnRails
[16:47:59] diegoviola: has joined #RubyOnRails
[16:47:59] mikajo: has joined #RubyOnRails
[16:47:59] Synthead: has joined #RubyOnRails
[16:47:59] brainslug: has joined #RubyOnRails
[16:47:59] joelsmith: has joined #RubyOnRails
[16:47:59] ahills: has joined #RubyOnRails
[16:47:59] Obi_obi: has joined #RubyOnRails
[16:47:59] zemmihates: has joined #RubyOnRails
[16:47:59] neilfse: has joined #RubyOnRails
[16:47:59] mjc_: has joined #RubyOnRails
[16:47:59] feignt: has joined #RubyOnRails
[16:47:59] Hates_: has joined #RubyOnRails
[16:47:59] atmosx: has joined #RubyOnRails
[16:47:59] Isthar: has joined #RubyOnRails
[16:47:59] Hosh: has joined #RubyOnRails
[16:47:59] czetter: has joined #RubyOnRails
[16:47:59] newton: has joined #RubyOnRails
[16:47:59] jxf: has joined #RubyOnRails
[16:47:59] lxkm: has joined #RubyOnRails
[16:47:59] joaomdmoura_: has joined #RubyOnRails
[16:48:00] Diabolik: has joined #RubyOnRails
[16:48:00] mlitwiniuk: has joined #RubyOnRails
[16:48:00] eisi: has joined #RubyOnRails
[16:48:00] tbuehlmann: has joined #RubyOnRails
[16:48:00] mrtomme: has joined #RubyOnRails
[16:48:00] hypnosb: has joined #RubyOnRails
[16:48:00] sheepman: has joined #RubyOnRails
[16:48:00] toydestroyer: has joined #RubyOnRails
[16:48:00] arathald: has joined #RubyOnRails
[16:48:00] kies^: has joined #RubyOnRails
[16:48:00] nightsh: has joined #RubyOnRails
[16:48:00] Siyo: has joined #RubyOnRails
[16:48:00] ivanyk: has joined #RubyOnRails
[16:48:00] sloggerkhan: has joined #RubyOnRails
[16:48:00] codelahoma: has joined #RubyOnRails
[16:48:00] FaresKAlaboud: has joined #RubyOnRails
[16:48:00] erichmenge: has joined #RubyOnRails
[16:48:00] MEATCHICKEN: has joined #RubyOnRails
[16:48:00] FastJack: has joined #RubyOnRails
[16:48:00] Junaos: has joined #RubyOnRails
[16:48:00] iamayam: has joined #RubyOnRails
[16:48:00] Jasaka: has joined #RubyOnRails
[16:48:00] yopp: has joined #RubyOnRails
[16:48:00] nubyonnails: has joined #RubyOnRails
[16:48:00] ponky: has joined #RubyOnRails
[16:48:00] _fortis: has joined #RubyOnRails
[16:48:00] nfsnobody: has joined #RubyOnRails
[16:48:00] Voxxit: has joined #RubyOnRails
[16:48:00] jayne: has joined #RubyOnRails
[16:48:01] cgfbee: has joined #RubyOnRails
[16:48:01] nibbo: has joined #RubyOnRails
[16:48:01] JonasOSDever: has joined #RubyOnRails
[16:48:01] teegee543: has joined #RubyOnRails
[16:48:01] Kilo`byte: has joined #RubyOnRails
[16:48:01] abracadaniel: has joined #RubyOnRails
[16:48:01] leex: has joined #RubyOnRails
[16:48:01] nickjj: has joined #RubyOnRails
[16:48:01] jcm__: has joined #RubyOnRails
[16:48:01] crankharder: has joined #RubyOnRails
[16:48:01] darrik: has joined #RubyOnRails
[16:48:01] arcanez: has joined #RubyOnRails
[16:48:01] hfp_work: has joined #RubyOnRails
[16:48:01] tubbo: has joined #RubyOnRails
[16:48:01] Prira: has joined #RubyOnRails
[16:48:01] ankhers: has joined #RubyOnRails
[16:48:01] skyjumper: has joined #RubyOnRails
[16:48:01] deavidsedice: has joined #RubyOnRails
[16:48:01] nygrenh_: has joined #RubyOnRails
[16:48:01] raenk: has joined #RubyOnRails
[16:48:01] machuga: has joined #RubyOnRails
[16:48:01] noah256_: has joined #RubyOnRails
[16:48:01] waltz_: has joined #RubyOnRails
[16:48:01] timnovins: has joined #RubyOnRails
[16:48:01] pavelz: has joined #RubyOnRails
[16:48:01] itkin-: has joined #RubyOnRails
[16:48:01] JoshL: has joined #RubyOnRails
[16:48:01] sekrit: has joined #RubyOnRails
[16:48:02] Sigma00: has joined #RubyOnRails
[16:48:02] slava_: has joined #RubyOnRails
[16:48:02] ereslibre_laptop: has joined #RubyOnRails
[16:48:02] dcope: has joined #RubyOnRails
[16:48:02] Rikle_S: has joined #RubyOnRails
[16:48:02] jto: has joined #RubyOnRails
[16:48:02] jbrinkmusic: has joined #RubyOnRails
[16:48:02] AnoHito: has joined #RubyOnRails
[16:48:02] davout: has joined #RubyOnRails
[16:48:02] GJdan: has joined #RubyOnRails
[16:48:02] skullcrasher: has joined #RubyOnRails
[16:48:02] w5isp: has joined #RubyOnRails
[16:48:02] swhitt: has joined #RubyOnRails
[16:48:02] csmb: has joined #RubyOnRails
[16:48:02] jpterry: has joined #RubyOnRails
[16:48:02] mloy: has joined #RubyOnRails
[16:48:02] marienz: has joined #RubyOnRails
[16:48:02] Majadon: has joined #RubyOnRails
[16:48:02] nomadicoder: has joined #RubyOnRails
[16:48:02] danlucraft: has joined #RubyOnRails
[16:48:02] KorriX_: has joined #RubyOnRails
[16:48:02] iamdevnul: has joined #RubyOnRails
[16:48:02] Phoop_: has joined #RubyOnRails
[16:48:02] lbotos: has joined #RubyOnRails
[16:48:02] Guest96625: has joined #RubyOnRails
[16:48:02] Davey: has joined #RubyOnRails
[16:48:03] draig: has joined #RubyOnRails
[16:48:03] trbox_: has joined #RubyOnRails
[16:48:03] ArTiSTiX_: has joined #RubyOnRails
[16:48:03] ewilliam_: has joined #RubyOnRails
[16:48:03] barttenbrinke: has joined #RubyOnRails
[16:48:03] DukeDave: has joined #RubyOnRails
[16:48:03] hoodow: has joined #RubyOnRails
[16:48:03] Pro|_: has joined #RubyOnRails
[16:48:03] sptq_: has joined #RubyOnRails
[16:48:03] IceBear: has joined #RubyOnRails
[16:48:03] samuelkadolph: has joined #RubyOnRails
[16:48:03] bl0m1: has joined #RubyOnRails
[16:48:03] mhenrixon: has joined #RubyOnRails
[16:48:03] FailBit: has joined #RubyOnRails
[16:48:03] martinbjeldbak: has joined #RubyOnRails
[16:48:03] maxmanders: has joined #RubyOnRails
[16:48:03] Symbiosisz: has joined #RubyOnRails
[16:48:03] differentreality: has joined #RubyOnRails
[16:48:03] matt_d: has joined #RubyOnRails
[16:48:03] CornishPasty: has joined #RubyOnRails
[16:48:03] nullwarp: has joined #RubyOnRails
[16:48:03] waldi_: has joined #RubyOnRails
[16:48:03] Shidash: has joined #RubyOnRails
[16:48:03] Killerkeksdose: has joined #RubyOnRails
[16:48:03] tw1sted: has joined #RubyOnRails
[16:48:03] knight_: has joined #RubyOnRails
[16:48:03] RTG`: has joined #RubyOnRails
[16:48:03] styx__: has joined #RubyOnRails
[16:48:04] funnel: has joined #RubyOnRails
[16:48:04] tomaw: has joined #RubyOnRails
[16:48:04] spectra: has joined #RubyOnRails
[16:48:04] thomasfedb: has joined #RubyOnRails
[16:48:04] targaf: has joined #RubyOnRails
[16:48:04] tekk: has joined #RubyOnRails
[16:48:04] sonOfRa: has joined #RubyOnRails
[16:48:04] bakingbread: has joined #RubyOnRails
[16:48:04] benlakey: has joined #RubyOnRails
[16:48:04] gregf_: has joined #RubyOnRails
[16:48:04] execute: has joined #RubyOnRails
[16:48:04] jtdowney: has joined #RubyOnRails
[16:48:04] alevy: has joined #RubyOnRails
[16:48:04] urkle: has joined #RubyOnRails
[16:48:04] Scient: has joined #RubyOnRails
[16:48:04] ^Denis: has joined #RubyOnRails
[16:48:04] aep: has joined #RubyOnRails
[16:48:04] eggoez: has joined #RubyOnRails
[16:48:04] okdas: has joined #RubyOnRails
[16:48:04] Paradox: has joined #RubyOnRails
[16:48:04] apeiros: has joined #RubyOnRails
[16:48:04] gbailey: has joined #RubyOnRails
[16:48:04] Uptime: has joined #RubyOnRails
[16:48:04] aguynamedben: has joined #RubyOnRails
[16:48:04] bahar: has joined #RubyOnRails
[16:48:04] tpendragon: has joined #RubyOnRails
[16:48:04] rhizome: has joined #RubyOnRails
[16:48:04] shtirlic: has joined #RubyOnRails
[16:48:04] creature: has joined #RubyOnRails
[16:48:04] arthurnn: has joined #RubyOnRails
[16:48:04] Klumben: has joined #RubyOnRails
[16:48:05] jlpeters: has joined #RubyOnRails
[16:48:05] krainboltgreene: has joined #RubyOnRails
[16:48:05] Denarii: has joined #RubyOnRails
[16:48:05] th0m__: has joined #RubyOnRails
[16:48:05] jord: has joined #RubyOnRails
[16:48:05] pwnd_nsfw: has joined #RubyOnRails
[16:48:05] atrius: has joined #RubyOnRails
[16:48:05] cornerman: has joined #RubyOnRails
[16:48:05] shinenelson: has joined #RubyOnRails
[16:48:05] jahbrewski: has joined #RubyOnRails
[16:48:05] adamholt: has joined #RubyOnRails
[16:48:05] kadoppe: has joined #RubyOnRails
[16:48:05] Grag_Harker: has joined #RubyOnRails
[16:48:05] CustosLimen: has joined #RubyOnRails
[16:48:05] aaronr: has joined #RubyOnRails
[16:48:05] AlHafoudh: has joined #RubyOnRails
[16:48:05] Tempesta: has joined #RubyOnRails
[16:48:05] banister: has joined #RubyOnRails
[16:48:05] MasterNayru: has joined #RubyOnRails
[16:48:05] drupald: has joined #RubyOnRails
[16:48:05] darutoko: has joined #RubyOnRails
[16:48:05] sadaf2605: has joined #RubyOnRails
[16:48:05] alaing: has joined #RubyOnRails
[16:48:05] maloik: has joined #RubyOnRails
[16:48:05] Mia: has joined #RubyOnRails
[16:48:05] d0nn1e: has joined #RubyOnRails
[16:48:06] goodcodeguy: has joined #RubyOnRails
[16:48:06] erichu: has joined #RubyOnRails
[16:48:06] crdpink2: has joined #RubyOnRails
[16:48:06] uranther: has joined #RubyOnRails
[16:48:06] alxndr: has joined #RubyOnRails
[16:48:06] leeky: has joined #RubyOnRails
[16:48:06] kapowaz_: has joined #RubyOnRails
[16:48:06] upgrayeddd: has joined #RubyOnRails
[16:48:06] mozzarella: has joined #RubyOnRails
[16:48:06] avelldiroll: has joined #RubyOnRails
[16:48:06] TheMoonMaster: has joined #RubyOnRails
[16:48:06] levifig: has joined #RubyOnRails
[16:48:06] zrl: has joined #RubyOnRails
[16:48:06] lord4163: has joined #RubyOnRails
[16:48:06] mheld: has joined #RubyOnRails
[16:48:06] epochwolf: has joined #RubyOnRails
[16:48:06] Marquel: has joined #RubyOnRails
[16:48:06] w0rd-driven: has joined #RubyOnRails
[16:48:06] gaustin: has joined #RubyOnRails
[16:48:06] Sirecote: has joined #RubyOnRails
[16:48:06] kitallis: has joined #RubyOnRails
[16:48:06] llakey: has joined #RubyOnRails
[16:48:06] svkurowski: has joined #RubyOnRails
[16:48:06] russt: has joined #RubyOnRails
[16:48:06] eduardodeoh: has joined #RubyOnRails
[16:48:06] andrew-l: has joined #RubyOnRails
[16:48:06] alexblom: has joined #RubyOnRails
[16:48:06] matthewd: has joined #RubyOnRails
[16:48:06] kaspergrubbe: has joined #RubyOnRails
[16:48:06] clamstar: has joined #RubyOnRails
[16:48:06] davidcelis: has joined #RubyOnRails
[16:48:06] wldcordeiro: has joined #RubyOnRails
[16:48:06] michael_mbp: has joined #RubyOnRails
[16:48:07] cydrobolt: has joined #RubyOnRails
[16:48:07] Fridtjof: has joined #RubyOnRails
[16:48:07] speakingcode: has joined #RubyOnRails
[16:48:07] fryguy: has joined #RubyOnRails
[16:48:07] G: has joined #RubyOnRails
[16:48:07] pipework: has joined #RubyOnRails
[16:48:07] tris: has joined #RubyOnRails
[16:48:07] Liothen: has joined #RubyOnRails
[16:48:07] blowmage: has joined #RubyOnRails
[16:48:07] mcr-credil: has joined #RubyOnRails
[16:48:07] TDJACR: has joined #RubyOnRails
[16:48:07] Haydos: has joined #RubyOnRails
[16:48:07] ajb: has joined #RubyOnRails
[16:48:07] DanKnox[away]: has joined #RubyOnRails
[16:48:07] markelite: has joined #RubyOnRails
[16:48:07] skarn: has joined #RubyOnRails
[16:48:07] Avon: has joined #RubyOnRails
[16:48:07] loglaunch: has joined #RubyOnRails
[16:48:07] gr3yR0n1n: has joined #RubyOnRails
[16:48:07] lorn: has joined #RubyOnRails
[16:48:07] rromanch_: has joined #RubyOnRails
[16:48:07] gnugmanov: has joined #RubyOnRails
[16:48:07] EXCHGR: has joined #RubyOnRails
[16:48:07] cajone: has joined #RubyOnRails
[16:48:07] teamcoltra: has joined #RubyOnRails
[16:48:07] dmarr: has joined #RubyOnRails
[16:48:07] pontiki: has joined #RubyOnRails
[16:48:07] gambl0re: has joined #RubyOnRails
[16:48:07] Kedare: has joined #RubyOnRails
[16:48:07] nertzy: has joined #RubyOnRails
[16:48:08] stannard: has joined #RubyOnRails
[16:48:08] Gm4n: has joined #RubyOnRails
[16:48:08] zeknox: has joined #RubyOnRails
[16:48:08] humd1ng3r: has joined #RubyOnRails
[16:48:08] ebertx: has joined #RubyOnRails
[16:48:08] thekkid: has joined #RubyOnRails
[16:48:08] Dreeg: has joined #RubyOnRails
[16:48:08] jhill: has joined #RubyOnRails
[16:48:08] user083: has joined #RubyOnRails
[16:48:08] andatche: has joined #RubyOnRails
[16:48:08] rclanan: has joined #RubyOnRails
[16:48:08] PlasmaStar: has joined #RubyOnRails
[16:48:08] Emily: has joined #RubyOnRails
[16:48:08] FooBarWidget: has joined #RubyOnRails
[16:48:08] LBRapid: has joined #RubyOnRails
[16:48:08] simplyianm: has joined #RubyOnRails
[16:48:08] Pumukel: has joined #RubyOnRails
[16:48:08] CharliB: has joined #RubyOnRails
[16:48:08] defsdoor: has joined #RubyOnRails
[16:48:08] Sylario: has joined #RubyOnRails
[16:48:08] goldbug: has joined #RubyOnRails
[16:48:08] nyaa: has joined #RubyOnRails
[16:48:08] ldnunes: has joined #RubyOnRails
[16:48:08] brunto: has joined #RubyOnRails
[16:48:08] pulgalipe: has joined #RubyOnRails
[16:48:08] drbayer: has joined #RubyOnRails
[16:48:08] shanemcd: has joined #RubyOnRails
[16:48:08] renegadeandy: has joined #RubyOnRails
[16:48:08] ramortegui: has joined #RubyOnRails
[16:48:09] doublemalt_: has joined #RubyOnRails
[16:48:09] mostlybadfly: has joined #RubyOnRails
[16:48:09] snowy: has joined #RubyOnRails
[16:48:09] mag42c: has joined #RubyOnRails
[16:48:09] Pazician: has joined #RubyOnRails
[16:48:09] chouhoulis: has joined #RubyOnRails
[16:48:09] flashpoint9: has joined #RubyOnRails
[16:48:09] atomical: has joined #RubyOnRails
[16:48:09] ewnd9: has joined #RubyOnRails
[16:48:09] Frem: has joined #RubyOnRails
[16:48:09] iateadonut: has joined #RubyOnRails
[16:48:09] axl_: has joined #RubyOnRails
[16:48:09] `based_pdev`: has joined #RubyOnRails
[16:48:09] krz: has joined #RubyOnRails
[16:48:09] adavia: has joined #RubyOnRails
[16:48:09] B1n4r10: has joined #RubyOnRails
[16:48:09] The_Phoenix: has joined #RubyOnRails
[16:48:09] Ergo: has joined #RubyOnRails
[16:48:09] dustinm`: has joined #RubyOnRails
[16:48:09] machty: has joined #RubyOnRails
[16:48:09] sparr: has joined #RubyOnRails
[16:48:09] morsik: has joined #RubyOnRails
[16:48:09] moty66: has joined #RubyOnRails
[16:48:09] ltd: has joined #RubyOnRails
[16:48:09] Zackio: has joined #RubyOnRails
[16:48:09] elaptics: has joined #RubyOnRails
[16:48:09] thejoecarroll: has joined #RubyOnRails
[16:48:09] redondos: has joined #RubyOnRails
[16:48:10] constantinexvi: has joined #RubyOnRails
[16:48:10] xMopxShell: has joined #RubyOnRails
[16:48:10] gavit: has joined #RubyOnRails
[16:48:10] lsone: has joined #RubyOnRails
[16:48:10] digneety: has joined #RubyOnRails
[16:48:10] rtl: has joined #RubyOnRails
[16:48:10] mist: has joined #RubyOnRails
[16:48:10] penguinpowernz: has joined #RubyOnRails
[16:48:10] jkwood: has joined #RubyOnRails
[16:48:10] hyperdri-: has joined #RubyOnRails
[16:48:10] Fire-Dragon-DoL: has joined #RubyOnRails
[16:48:10] hendrici1s: has joined #RubyOnRails
[16:48:10] gthank: has joined #RubyOnRails
[16:48:39] mag42c: has left #RubyOnRails: ()
[16:48:39] moeabdol: has joined #RubyOnRails
[16:48:48] tejasmanohar: has joined #RubyOnRails
[16:48:49] ELCALOR: has joined #RubyOnRails
[16:48:50] josephleon: has joined #RubyOnRails
[16:48:50] googly: has joined #RubyOnRails
[16:50:51] tibra: has joined #RubyOnRails
[16:51:37] argoneus: has joined #RubyOnRails
[16:52:19] moeabdol: has joined #RubyOnRails
[16:53:13] renegadeandy: anyone still here?
[16:53:13] diegoviola: I need to store a datetime as numbers, not as datetime or timestamp, what data type can I use?
[16:53:53] K0nserv-: has joined #RubyOnRails
[16:53:55] Moeh: has joined #RubyOnRails
[16:54:01] mary5030: has joined #RubyOnRails
[16:54:09] wsewolod: has joined #RubyOnRails
[16:56:44] lacrymology: has joined #RubyOnRails
[16:58:47] jhass: diegoviola: why?
[16:58:55] MissionCritical: has joined #RubyOnRails
[16:58:59] tubbo: renegadeandy: you didn't see what i just sent you?
[16:59:04] jhass: nvm, you refused to answer the obvious question last time
[16:59:12] srinidhi: has joined #RubyOnRails
[16:59:37] jhass: tubbo: services are down, netsplits are happening, might even be
[16:59:42] eoy: has joined #RubyOnRails
[16:59:48] tubbo: yeah that's why i asked :D
[17:00:15] renegadeandy: tubbo: sorry i didnt and my client wont let me scroll back
[17:00:42] tubbo: renegadeandy: ah ok. i just asked if you had a staging server, because you should be testing these kinds of things before pushing them to production.
[17:00:45] Kingdutch: has joined #RubyOnRails
[17:00:48] badeball: has joined #RubyOnRails
[17:01:11] boombox_child: has joined #RubyOnRails
[17:01:32] renegadeandy: Ah yes, we do but i need to do some work on it etc. I know we need to do this etc. However, in the mean time, it kind of sounds like I won???t need any capistrano changes ot be made?
[17:01:38] Grundell: has joined #RubyOnRails
[17:01:49] tubbo: renegadeandy: nope.
[17:02:01] tubbo: capistrano should be unaffected.
[17:02:33] diegoviola: jhass: my coworker is saying we should use that for an ID of something else, but that feels wrong
[17:02:50] boombox_child: has left #RubyOnRails: ()
[17:03:05] maloik: has joined #RubyOnRails
[17:03:17] jhass: yeah, not gonna repeat the discussion from last time
[17:03:18] SalexW: has joined #RubyOnRails
[17:03:25] jhass: "discussion" anyway
[17:03:29] diegoviola: jhass: it's going to be used for tracking code
[17:03:33] annlewis: has joined #RubyOnRails
[17:03:37] jhass: too vague
[17:03:40] diegoviola: jhass: what are you talking about?
[17:04:09] jhass: you refused to properly explain what the data is used for, what its semantic meaning is last time
[17:04:52] moeabdol: has joined #RubyOnRails
[17:04:52] diegoviola: jhass: I said, it's tracking code numbers
[17:04:53] droptone: has joined #RubyOnRails
[17:05:07] jhass: I said that's too vague of a description
[17:05:14] dshoreman: has joined #RubyOnRails
[17:05:21] brendan-: has joined #RubyOnRails
[17:05:25] rikkipitt: has joined #RubyOnRails
[17:05:26] ddv: has joined #RubyOnRails
[17:05:30] kies: has joined #RubyOnRails
[17:05:31] diegoviola: jhass: do you want to see the CSV?
[17:05:43] hobodave: has joined #RubyOnRails
[17:05:53] moeabdol: has joined #RubyOnRails
[17:06:28] diegoviola: nevermind then
[17:06:42] Brando753: has joined #RubyOnRails
[17:06:59] nettoweb: has joined #RubyOnRails
[17:07:38] segy: has joined #RubyOnRails
[17:07:39] ethe: has joined #RubyOnRails
[17:07:57] markh: has joined #RubyOnRails
[17:08:01] bbrowning: has joined #RubyOnRails
[17:08:21] RegulationD: has joined #RubyOnRails
[17:08:35] AntiSpamMeta: has joined #RubyOnRails
[17:09:09] sandstrom: has joined #RubyOnRails
[17:09:34] diegoviola: find someone else to be a dick
[17:09:57] lacuna: has joined #RubyOnRails
[17:09:58] lacuna: has joined #RubyOnRails
[17:10:07] claytonzaugg: has joined #RubyOnRails
[17:10:34] diegoviola: not really interested in being part of that "discussion" as you said
[17:10:45] Cork: has joined #RubyOnRails
[17:11:55] adavia: no vale la pena
[17:13:49] diegoviola: adavia: I understand English, thank you
[17:14:17] argoneus: has joined #RubyOnRails
[17:14:58] argoneus: there's so many methods, find, find_by, find_by_something, where.... which one is preferable when I just want to do something like: return the first user whose id=x and name=y or return nil
[17:15:12] adavia: diegoviola: i was talking to you?
[17:15:16] argoneus: I even read that find_by is deprecated and I should use where
[17:15:43] PlasmaStar: has joined #RubyOnRails
[17:16:36] argoneus: find_by seems to be the one I want for this, though
[17:16:46] mary5030: has joined #RubyOnRails
[17:16:57] Balzrael: has joined #RubyOnRails
[17:16:57] bronson: has joined #RubyOnRails
[17:17:02] Detch: has joined #RubyOnRails
[17:17:50] aadam21: has joined #RubyOnRails
[17:17:53] towski_: has joined #RubyOnRails
[17:18:04] renegadeandy: argoneus: if you want to find by id, just use Model.find(10), if you want to find by a particular field Model.find_by(email:???hello@test.com???) if you want to return more than one record, use Model.where(enabled:true)
[17:18:28] argoneus: got it, thanks :)
[17:18:59] yardenbar: has joined #RubyOnRails
[17:21:58] safety_cut: has joined #RubyOnRails
[17:22:43] safety_cut: has joined #RubyOnRails
[17:24:21] solars: has joined #RubyOnRails
[17:27:23] Sigfrid: has joined #RubyOnRails
[17:29:06] symbol: has joined #RubyOnRails
[17:29:26] yoongkang: has joined #RubyOnRails
[17:29:44] goldbug: In an erb file, what's the value of using <content_tag> as opposed to, say, raw HTML?
[17:30:25] wldcordeiro: has joined #RubyOnRails
[17:31:58] symbol: has joined #RubyOnRails
[17:32:07] argoneus: renegadeandy: there doesn't seem to be an easy option to do multiole conditions
[17:32:23] argoneus: find_by(id: something, email: somethingelse) doesn't work :(
[17:36:01] renegadeandy: argoneus: it should work
[17:36:19] renegadeandy: argoneus: bare in mind if email is a string it would need to be find_by(id:10, email:???hello@test.com???)
[17:36:34] diegoviola: do I just use integer with limit: in my migration to store big numbers?
[17:36:54] benlieb: has joined #RubyOnRails
[17:37:26] symbol: has joined #RubyOnRails
[17:39:20] symbol: I'm having trouble implementing an a call to an external API in a sane way that is decoupled from the model logic. As of right now, I've got it all hacked together in a service. Can anyone suggest some reading on incoportating third party API's?
[17:40:10] twilling: has joined #RubyOnRails
[17:40:13] paulodiniz: has joined #RubyOnRails
[17:40:41] snowy: has joined #RubyOnRails
[17:41:47] justinweiss: has joined #RubyOnRails
[17:42:03] simplyianm: has joined #RubyOnRails
[17:42:57] Locke23rus: has joined #RubyOnRails
[17:43:08] simplyianm: has joined #RubyOnRails
[17:46:16] arup_r: has joined #RubyOnRails
[17:47:08] arup_r: Hey I am trying to calculate the checksum of an image .. but getting strange error https://gist.github.com/aruprakshit/888ac2057214666d1a2b .. Any hints how to solve this ?
[17:47:37] arup_r: error: ArgumentError: string contains null byte
[17:47:43] jbermudes_: has joined #RubyOnRails
[17:48:09] arup_r: I can see the image is present, but when trying to calculate the signature getting error
[17:49:12] melonstorm: has joined #RubyOnRails
[17:49:13] melonstorm: has joined #RubyOnRails
[17:50:12] diegoviola: is there a way to specify I want bignum as my field? I'm using Postgres
[17:50:50] big|bad|wolf: has joined #RubyOnRails
[17:51:17] renegadeandy: Hello everyone. I have just changed my ActionMailer base smtp server, and its giving me an SSL error can anybody help : https://gist.github.com/anonymous/0c41290726797bd1e59b
[17:52:17] drbayer: has joined #RubyOnRails
[17:53:30] mrtomme: has joined #RubyOnRails
[17:54:35] tfitts: has joined #RubyOnRails
[17:55:02] User458764: has joined #RubyOnRails
[17:56:11] sonofdirt: has joined #RubyOnRails
[17:57:41] dopie: has joined #RubyOnRails
[17:57:50] syzygy_: has joined #RubyOnRails
[17:58:11] colleenmcguckin: has joined #RubyOnRails
[17:58:41] colleenmcguckin: has joined #RubyOnRails
[17:59:28] tfitts: has joined #RubyOnRails
[18:03:06] rakm: has joined #RubyOnRails
[18:03:21] renegadeandy: Can anybody help, its like I need to clear out the SSL cert cache in my production server or something
[18:03:59] drbayer: has joined #RubyOnRails
[18:04:08] tildes: has joined #RubyOnRails
[18:04:10] annlewis: has joined #RubyOnRails
[18:04:30] platzhirsch: has left #RubyOnRails: ()
[18:05:38] tildes: argoneus: did you ask about reverting migrations a while ago? could this be helpful to you? http://edgeguides.rubyonrails.org/active_record_migrations.html#rolling-back
[18:06:23] Cervajz: has joined #RubyOnRails
[18:06:46] banister: has joined #RubyOnRails
[18:07:06] argoneus: yayyyy it works
[18:07:07] twilling: Every time I run our test suite there???s a good 8-10 second delay right at the beginning before i see anything in my terminal or in my test logs. is there a good way to debug where this slowdown is coming from?
[18:08:05] [Butch]: has joined #RubyOnRails
[18:08:10] elaptics: twilling: that's just rails spinning up
[18:08:25] elaptics: twilling: there's several options
[18:09:44] multiscan: has joined #RubyOnRails
[18:09:51] twilling: elaptics: would you still expect it to take that long with Spring?
[18:10:27] elaptics: twilling: I don't really use spring but as I understand it then no, should start running the tests almost instantly
[18:10:32] s2013: has joined #RubyOnRails
[18:11:00] twilling: elaptics: i wish :( starting up a rails console or firing off a test both take 6+ seconds
[18:11:06] elaptics: I think you might need to do something to integrate your testing framework with spring but I could be talking rubbish
[18:11:20] elaptics: twilling: what version of rails and what's your test framework?
[18:11:33] twilling: Rails 4.2.5, minitest
[18:11:49] elaptics: twilling: what OS?
[18:12:19] twilling: OS X 10.11.1
[18:12:42] elaptics: twilling: so you should be able to use spring and that should help with that startup penalty
[18:13:13] renegadeandy: Any ActionMailer / SSL gurus please check this out : Hello everyone. I have just changed my ActionMailer base smtp server, and its giving me an SSL error can anybody help : https://gist.github.com/anonymous/0c41290726797bd1e59b
[18:14:36] elaptics: renegadeandy: seems self explanatory the certificate doesn't match the hostname :)
[18:14:37] arBmind: has joined #RubyOnRails
[18:14:50] renegadeandy: elaptics: so how do i clear out the certificates?
[18:14:57] sbarg: has joined #RubyOnRails
[18:15:03] renegadeandy: i thikn the local cert on my production server is out of date
[18:15:11] mary5030: has joined #RubyOnRails
[18:15:31] elaptics: renegadeandy: what's your setup?
[18:15:50] elaptics: renegadeandy: are you running your own mail server setup?
[18:16:02] renegadeandy: elaptics: I have my site delivered using https, but my email is a hosted setup on a different server, which has an ssl option, and im using that
[18:16:13] renegadeandy: elaptics: its a hosted solution
[18:16:33] djbkd: has joined #RubyOnRails
[18:16:49] elaptics: renegadeandy: just a normal hosted mail account thing? Or someone dedicated to sending emails like Sendgrid?
[18:17:02] elaptics: You'd be best off using the latter
[18:17:09] renegadeandy: elaptics: a normal hosted mail account thing
[18:17:46] sbarg: has left #RubyOnRails: ()
[18:17:47] bronson: has joined #RubyOnRails
[18:17:56] elaptics: renegadeandy: you need to make sure you have the right names then. If you're trying to just use your domain name mapped to their mail servers that's not going to work, you need to use their proper server names that they would have certificates for
[18:18:18] diegoviola: is there a way to specify bignum in a activerecord migration?
[18:18:29] renegadeandy: elaptics: ahhh ok i think i got you
[18:19:17] lacuna: has joined #RubyOnRails
[18:19:18] lacuna: has joined #RubyOnRails
[18:19:18] elaptics: renegadeandy: however, I'd still use a proper provider - hosted mail providers aren't geared to sending mass emails and you might hit rate limits, get blacklisted, etc
[18:19:46] renegadeandy: elaptics: I hear ya, im trying to alter the server name variable
[18:21:03] jobewan: has joined #RubyOnRails
[18:22:12] pragmatism: has joined #RubyOnRails
[18:24:43] drbayer: has joined #RubyOnRails
[18:27:55] mclee: has joined #RubyOnRails
[18:30:23] yoongkang: has joined #RubyOnRails
[18:31:01] annlewis: has joined #RubyOnRails
[18:32:06] `based_pdev`: has joined #RubyOnRails
[18:32:25] diegoviola: why there is no way to specify bignum as the date type in a migration?
[18:32:41] baweaver: has joined #RubyOnRails
[18:33:14] fryguy: most RDBMS don't support that type
[18:33:56] diegoviola: PostgreSQL does
[18:34:06] elaptics: diegoviola: you can specify any type the DB itself supports but that's not db agnostic
[18:34:19] jondot: has joined #RubyOnRails
[18:35:32] lacrymology: has joined #RubyOnRails
[18:35:41] elaptics: diegoviola: as per docs on #column: example td.column(:huge_integer, :decimal, precision: 30)
[18:36:10] elaptics: diegoviola: afaik ruby will automatically use a bignum when the number size falls outside of the range of Fixnum
[18:36:59] elaptics: diegoviola: if you want an integer I think you can use the limit to specify the size of int - I have some vague recollection that you have to do something "special" for it to be right with mysql though
[18:38:02] diegoviola: ok so if I use t.bignum it will work on postgres but it will fail on sqlite
[18:38:02] asteros: has joined #RubyOnRails
[18:38:28] User458764: has joined #RubyOnRails
[18:38:36] tubbo: diegoviola: however, you know that postgres stores all of its date/time types as integers inherently, right? so not sure why you're storing your date as an integer here.
[18:39:30] diegoviola: tubbo: yes I realize that
[18:39:39] tubbo: diegoviola: you trying to solve a problem here?
[18:39:46] tubbo: or just being choosy over the type
[18:40:03] diegoviola: tubbo: my coworker just says I should store a timestamp as a number, which is odd
[18:40:07] snowy: has joined #RubyOnRails
[18:40:31] diegoviola: tubbo: he's saying it will be the order key or something like that
[18:40:39] diegoviola: it's vague, I know
[18:40:49] tubbo: diegoviola: you can do date.to_i in ruby to convert it to a number when necessary
[18:41:07] tubbo: diegoviola: but it's easier to compare dates when they have the Date, DateTime or Time types.
[18:41:23] tubbo: and to get those types out of the DB automagically, you should be using postgres' own date types
[18:41:44] bronson: has joined #RubyOnRails
[18:41:44] diegoviola: I'm currently developing on sqlite
[18:42:14] elaptics: then you can't be DB specific unless you're going to run that in production
[18:42:25] tubbo: ah yeah, i used to do that too. but i stopped after becoming more familar with postgres' vast collection of types. so now i just have pg running locally, and i'm always using pg as a sql database.
[18:42:41] simplyianm: has joined #RubyOnRails
[18:42:59] diegoviola: should I just use timestamp on my migration?
[18:43:09] yardenbar: has joined #RubyOnRails
[18:43:10] diegoviola: and then .to_i, etc?
[18:43:29] diegoviola: really don't want to mess much with types
[18:43:53] simplyianm: has joined #RubyOnRails
[18:43:57] elaptics: if you're storing a date I would definitely store it as an actual date/time object in the DB, if you need it as a unix timestamp for something then you can just to_i when you need to
[18:44:17] elaptics: you'll have much more flexibility that way than doing it the other way round
[18:44:49] diegoviola: elaptics: that's really good advice, thanks
[18:45:12] BlackCoyote: has joined #RubyOnRails
[18:45:28] drbayer: has joined #RubyOnRails
[18:46:39] stannard_: has joined #RubyOnRails
[18:46:58] mag42c: has joined #RubyOnRails
[18:48:48] tfitts: has anyone tried capturing from a phone camera using html5 inputs? I can see in the request that the image isn't actually being posted. I'm wondering if I'm doing something wrong in the form or how to do it?
[18:49:09] hahuang65: has joined #RubyOnRails
[18:50:03] royvandermeij: has joined #RubyOnRails
[18:51:15] desmondhume: has joined #RubyOnRails
[18:51:41] tubbo: tfitts: check the logs for unpermitted params...other than that it's probably not a rails issue. rails just takes in whatever the CLIENT (in this case, a device browser or possibly a webview) is passing to it.
[18:52:02] tubbo: there shouldn't be anything special you need on rails' side to get this to work. afaik, the getusermedia API is very similar to traditional file uploading
[18:52:18] s2013: has joined #RubyOnRails
[18:52:22] cornerma1: has joined #RubyOnRails
[18:52:43] s2013: how do you guys handle "other" field generally.. if someone chooses other and a text box shows up and they can fill that in.. i thought about removing the name attribute for the select box and then giving that name attribute to the text box.. or the other way was using virtual attribute.. thoughts?
[18:52:58] krainboltgreene: has joined #RubyOnRails
[18:55:08] s2013: has joined #RubyOnRails
[18:55:12] trbox_: has joined #RubyOnRails
[18:55:17] chridal: has joined #RubyOnRails
[18:55:36] diegoviola: is there a better way to do this time average thing I'm doing in the Login model? https://gist.github.com/diegoviola/0be6851c0a2a74b0a155
[18:55:52] diegoviola: I also hate having all these variables with model calls on the #index method
[18:55:54] solars: what are people using nowadays for authentication, if I want google, facebook auth for a new app?
[18:55:57] diegoviola: but not sure what else to do
[18:56:11] diegoviola: it's sort of inevitable, right?
[18:56:31] hardtail: has joined #RubyOnRails
[18:56:46] Axilla: has joined #RubyOnRails
[18:58:01] machty: has joined #RubyOnRails
[19:01:27] lacrosse: has joined #RubyOnRails
[19:01:38] s2013: has joined #RubyOnRails
[19:01:41] baweaver: has joined #RubyOnRails
[19:03:47] benlakey: has joined #RubyOnRails
[19:03:50] flashpoint9: has joined #RubyOnRails
[19:04:09] SalexW: has joined #RubyOnRails
[19:05:15] treehug88: has joined #RubyOnRails
[19:05:34] sonofdirt: has joined #RubyOnRails
[19:05:43] hahuang61: has joined #RubyOnRails
[19:05:52] blackmesa: has joined #RubyOnRails
[19:06:03] drbayer: has joined #RubyOnRails
[19:06:31] manfrin: has joined #RubyOnRails
[19:07:06] MaDErroR123: has joined #RubyOnRails
[19:08:14] momomomomo: has joined #RubyOnRails
[19:09:49] snowy: has joined #RubyOnRails
[19:10:45] jetpackjoe: has joined #RubyOnRails
[19:11:44] tildes: I'm trying out shoulda, and I have 'it { should validate_presence_of(:name) }' in my spec. when I run it, I get a dot on the rspec output, but it doesn't show the assertion text (which I would like to have), or increase assertions count (which I would also like to have). is this how it is supposed to work?
[19:12:27] njero: has joined #RubyOnRails
[19:13:18] mloy: has joined #RubyOnRails
[19:13:58] shinenelson: has joined #RubyOnRails
[19:14:36] baweaver: has joined #RubyOnRails
[19:14:46] SuppliedRelic: has joined #RubyOnRails
[19:15:04] juddey: has joined #RubyOnRails
[19:15:05] based_pdev_: has joined #RubyOnRails
[19:15:32] drbayer: has joined #RubyOnRails
[19:15:41] Rubie: has joined #RubyOnRails
[19:18:21] lxkm: has joined #RubyOnRails
[19:18:59] momomomomo: has joined #RubyOnRails
[19:19:15] stesind: has joined #RubyOnRails
[19:20:13] shibabu: has joined #RubyOnRails
[19:23:00] tildes: ok ok this is the way to format output if I want the test run to inform me what is needed rspec --format documentation
[19:23:29] tildes: still wondering how come 'shoulda' statements do not count as assertions, although they count as examples
[19:23:57] tubbo: tildes: well, shoulda statements build examples for you
[19:24:05] tubbo: but they use expectations inside
[19:24:10] tubbo: like any other rspec test
[19:24:36] beneggett: has joined #RubyOnRails
[19:25:22] tildes: tubbo: I have added 'it { should validate_presence_of(:name) }' for my model_spec, and it runs allright, it's just confusing to see it incrementing examples count but not assertions
[19:25:31] rikkipitt: has joined #RubyOnRails
[19:25:33] tildes: I mean, is it not an assertion to say should validate.... ?
[19:26:12] tubbo: tildes: i'm not sure where you're getting this "assertion" count from
[19:26:27] tubbo: my output just says N examples, N failures, N passed, N pendin
[19:27:13] Grundell: has joined #RubyOnRails
[19:27:57] tildes: tubbo: hmm... when I run my specs with rspec, there is indeed one ouput that says N examples, N failures, and below... another starting, # Running: and ending 0 runs, 0 assertions, 0 failures, 0 errors, 0 skips
[19:28:09] tildes: am I somehow running both rspec and minitest simultaneously
[19:28:12] tubbo: tildes: yes.
[19:28:14] tildes: so the command I use is 'rspec'
[19:28:18] B1n4r10: has joined #RubyOnRails
[19:28:24] tubbo: dunno how you did that
[19:28:39] tildes: tubbo: neither do I :D
[19:28:46] Coldblackice: has joined #RubyOnRails
[19:28:53] tildes: so how to make it stop :D
[19:28:58] tubbo: tildes: that usually happens if i made a rake task called :test and loaded rails' minitest/railtie. if you fail to load that file, those rake tasks won't exist.
[19:29:59] iamdevnul: has joined #RubyOnRails
[19:30:35] tildes: well I do have rake test tasks, I would guess they are 'out of box'. I used to have tests folder, because rails generated that automatically. I removed that manually, because I thought I would use rspec instead for this project, and have the specs in spec folder
[19:30:54] roxtrongo: has joined #RubyOnRails
[19:31:03] yoongkang: has joined #RubyOnRails
[19:31:07] tubbo: tildes: https://github.com/rails/rails/blob/0c232779ece1ff6bf9bce9d55c54ea19867a2170/railties/lib/rails/all.rb is what is executed when you require 'rails/all' in your config/application.rb. instead of requiring rails/all, you could copy/paste the contents of that file and then be able to "disable" certain frameworks from being loaded, such as rails/test_help.
[19:31:31] tubbo: tildes: i actually do that on every app so that i can have a `rake test` task, but use rspec.
[19:31:41] tubbo: because rake spec is stupid
[19:32:12] Lloyd: has joined #RubyOnRails
[19:33:18] tildes: tubbo: Indeed I have require 'rails/all' in there, that would be out of box too I presume
[19:33:40] tubbo: tildes: that is how config/application.rb is generated, yes.
[19:34:13] teclator: has joined #RubyOnRails
[19:34:18] tildes: so I could leave action_mailer and rails/test_unit at least safely out, unless I specifically want to use them
[19:34:48] tubbo: tildes: exactly.
[19:34:59] ynonp: has joined #RubyOnRails
[19:35:17] Lauer: has left #RubyOnRails: ()
[19:35:38] kegan_: has joined #RubyOnRails
[19:35:43] tildes: tubbo: what is active_job good for?
[19:36:04] tildes: (ok this is easy to google also...)
[19:36:08] Pazician: has joined #RubyOnRails
[19:36:35] tildes: ah-ha http://edgeguides.rubyonrails.org/active_job_basics.html
[19:36:57] kegan_: bootstrap-variables.scss editing has no effect on layout; it looks as if the gem's own files are being used instead of what's in assets/stylesheets
[19:37:16] kegan_: not cached, how do i troubleshoot the hierarchy
[19:38:10] annlewis: has joined #RubyOnRails
[19:39:15] joaomdmoura_: has joined #RubyOnRails
[19:39:31] momomomomo: has joined #RubyOnRails
[19:39:48] johns276: has joined #RubyOnRails
[19:40:04] Contigi: has joined #RubyOnRails
[19:40:22] tildes: I removed require 'rails/all', left require 'rails' with select railties, excluding test_unit, and still I get the 0 runs, 0 assertions, 0 failures, 0 errors, 0 skips row
[19:40:33] kegan_: ok, so taking out the bootstrap-sass gem, and the import on bootstrap and sprockets
[19:40:51] jalcine: has joined #RubyOnRails
[19:41:09] kegan_: works... why do i have to use some default installation of bootstrap
[19:41:12] kegan_: where is it, what is happening
[19:42:03] tubbo: tildes: i think something else is wrong there
[19:43:06] tildes: tubbo: old stuff still cached, or what could be it?
[19:43:24] tubbo: tildes: if i knew, i'd tell you
[19:43:24] eoy: has joined #RubyOnRails
[19:43:27] shaman42: has joined #RubyOnRails
[19:43:35] jmrepetti: has joined #RubyOnRails
[19:43:51] tildes: tubbo: thanks, I appreciate that. maybe I'll write a couple of more tests now that I'm at it, boot, and see then what happens
[19:44:01] bahar: has joined #RubyOnRails
[19:45:06] nettoweb: has joined #RubyOnRails
[19:45:12] MasterNayru: has joined #RubyOnRails
[19:46:03] eoy: has joined #RubyOnRails
[19:46:09] jiriki: has joined #RubyOnRails
[19:46:27] cac: has joined #RubyOnRails
[19:46:58] B1n4r10: has joined #RubyOnRails
[19:48:11] lacrymology: has joined #RubyOnRails
[19:48:48] edwinvdgraaf: has joined #RubyOnRails
[19:49:02] bergs: has joined #RubyOnRails
[19:49:46] bergs: why do we have to identify on freenode to chat here?
[19:49:50] bergs: it's really kind of a pain
[19:49:58] bergs: also wtf sourcetree crashing 30 times a day
[19:49:59] bratsche: has joined #RubyOnRails
[19:51:10] s2013: has joined #RubyOnRails
[19:52:08] bbrowning_: has joined #RubyOnRails
[19:52:17] tubbo: bergs: because of assholes coming in and flooding the channel with racist shit if we don't.
[19:52:36] unreal_: has joined #RubyOnRails
[19:52:40] diegoviola: https://gist.github.com/diegoviola/02b4f9cedede47a746b1
[19:52:43] diegoviola: is there a better way to do this
[19:53:01] diegoviola: not sure I like that ;
[19:53:03] tubbo: diegoviola: yup
[19:53:38] diegoviola: I can't just say average(:time).round(2) because average(:time) can be nil
[19:54:07] elaptics: diegoviola: average(:time).try(:round,2)
[19:54:41] elaptics: diegoviola: what's it for, specifically?
[19:55:20] Radar: GOOD MORNING
[19:55:23] RegulationD: has joined #RubyOnRails
[19:55:32] elaptics: Radar: HELLO!
[19:57:28] diego1: has joined #RubyOnRails
[19:57:40] diego1: has joined #RubyOnRails
[19:57:58] diego1: elaptics: .try(:round, 2) works
[19:58:02] cac: has joined #RubyOnRails
[19:58:20] lacrymology: has joined #RubyOnRails
[19:58:40] ur5us: has joined #RubyOnRails
[19:58:41] diegoviola: elaptics: just getting the average time for a report
[19:58:42] brunto: has joined #RubyOnRails
[19:59:23] FailBit: https://upload.wikimedia.org/wikipedia/en/4/4c/LLVM_Logo.svg this is badass
[19:59:38] elaptics: diegoviola: average time of what? (btw I'd at least be calling the method .average_time instead of .seconds)
[20:00:19] diegoviola: elaptics: but it is seconds
[20:00:34] diegoviola: elaptics: I store seconds in float and save them on :time
[20:01:09] diegoviola: elaptics: I'm using the benchmark module to measure time of some code that runs every X minutes
[20:01:13] justinweiss: has joined #RubyOnRails
[20:01:31] diegoviola: elaptics: and I'm just getting the average time back
[20:01:38] elaptics: diegoviola: ok, maybe I'm being pedantic but from the code there all I can see is that you have a class Login that you can call Login.seconds - which doesn't really mean anything
[20:01:41] diegoviola: Lag: 1.000 fuuuuuu
[20:02:11] elaptics: is it the average time it takes to login?
[20:02:11] diegoviola: elaptics: yeah average_time sounds better, I'll rename it
[20:02:15] diegoviola: elaptics: yes
[20:02:24] elaptics: I would call it exactly that then
[20:02:31] elaptics: average_login_time
[20:02:33] diegoviola: average_time?
[20:02:34] tildes: tubbo: I think I had copied require 'rails/test_help' into my spec_helper, thinking it might be something important. now that I realized that and removed it, rspec doesn't try to run minitest anymore. issue solved. thanks again
[20:02:45] Frem: has joined #RubyOnRails
[20:02:52] upgrayeddd: has joined #RubyOnRails
[20:02:58] CornishPasty: has joined #RubyOnRails
[20:03:12] alxndr: has joined #RubyOnRails
[20:03:19] hellschreiber_: has joined #RubyOnRails
[20:03:30] diegoviola: elaptics: it's fine to be pedantic I guess, I can also be: http://sprunge.us/UcQG?diff
[20:03:33] DukeDave: has joined #RubyOnRails
[20:03:34] danlucraft: has joined #RubyOnRails
[20:03:35] jhill: has joined #RubyOnRails
[20:03:51] diegoviola: I patched the Linux kernel README
[20:03:54] diegoviola: with some typos
[20:04:21] diegoviola: still waiting to be accepted, will ping them soon, it's been almost a month
[20:04:35] elaptics: diegoviola: yep. The most important thing about code is that it should communicate what is happening to other developers
[20:04:42] Hosh: has joined #RubyOnRails
[20:04:47] podman: has joined #RubyOnRails
[20:04:59] ebryn: has joined #RubyOnRails
[20:05:01] mheld: has joined #RubyOnRails
[20:05:02] sikachu_: has joined #RubyOnRails
[20:05:04] neilfse: has joined #RubyOnRails
[20:05:36] BBHoss: has joined #RubyOnRails
[20:05:59] sankaber: has joined #RubyOnRails
[20:06:14] newton: has joined #RubyOnRails
[20:06:20] sikachu_: has left #RubyOnRails: ()
[20:06:25] diegoviola: elaptics: I'm also measuring how much time it takes to download a file, a spreadsheet document
[20:06:32] diegoviola: average_spreadsheet_time sounds odd
[20:06:36] diegoviola: what can I use for that?
[20:06:42] twilling: has joined #RubyOnRails
[20:06:57] elaptics: is the file specifically a file or is it any file?
[20:07:04] owenjones: has joined #RubyOnRails
[20:07:08] elaptics: specifically a spreadsheet I mean
[20:07:16] diegoviola: it is a spreadsheet
[20:07:24] diegoviola: it's more like a report
[20:07:29] elaptics: average_report_download_time
[20:07:40] diegoviola: cool, thanks
[20:07:41] elaptics: if it's fairly clear what that report would be
[20:08:02] mostlybadfly: has joined #RubyOnRails
[20:08:11] elaptics: I should set up a MNaaS (method naming as a service) :)
[20:09:08] diegoviola: @average_report_download_time is too long
[20:09:22] elaptics: too long for what?
[20:09:24] ELCALOR: has joined #RubyOnRails
[20:09:37] diegoviola: elaptics: I'm just used to use shorter variables
[20:09:45] jlyndon: has joined #RubyOnRails
[20:10:17] otherj: has joined #RubyOnRails
[20:10:18] elaptics: I would rather have descriptive variable names - it's not like it much extra work or time to have a longer name - your editor/IDE should do autocompletions in some form so it's not like you even have to type the whole thing :)
[20:10:22] uranther: has joined #RubyOnRails
[20:10:33] elaptics: And if your editor doesn't do it then dump it and get one that does
[20:11:00] diegoviola: you're right
[20:11:03] corioliss: has joined #RubyOnRails
[20:11:37] chancancode_: has joined #RubyOnRails
[20:11:37] Obi_obi: has joined #RubyOnRails
[20:11:46] shwoodard___: has joined #RubyOnRails
[20:11:53] tubbo: i also prefer short variable names, but i also prefer descriptive variable names. what to do? :)
[20:12:18] Guest4184__: has joined #RubyOnRails
[20:12:18] jhass: tubbo: assign priorities?
[20:12:19] tubbo: one thing that helps is by making more classes and objects, rather than more functions, if you know what i'm saying
[20:12:20] diegoviola: elaptics: I have a Login model and also a Spreadsheet model
[20:12:26] diegoviola: should I rename Spreadsheet to Report?
[20:12:35] tubbo: i would, because there's a Spreadsheet gem :D
[20:12:43] kumavis: has joined #RubyOnRails
[20:12:59] elaptics: what sort of report is it?
[20:13:00] vayan: has joined #RubyOnRails
[20:13:20] diegoviola: elaptics: just a spreadsheet that has information about tracking mails
[20:13:29] diegoviola: elaptics: tracking, dates, and so on
[20:13:38] diegoviola: if it was sent with sedex
[20:14:05] elaptics: I don't know what sedex is but I'd call it something like MailTrackingReport
[20:14:16] shanemcd: has joined #RubyOnRails
[20:14:24] elaptics: something more descriptive than Spreadsheet or Report
[20:14:35] amitchellbullard: has joined #RubyOnRails
[20:14:40] elaptics: cos what happens when you need to add another report? Report2
[20:16:32] nomadicoder: has joined #RubyOnRails
[20:17:11] diegoviola: elaptics: I think they are calling it Correspondences
[20:17:12] multiscan: has joined #RubyOnRails
[20:17:14] diegoviola: or something
[20:17:28] jlpeters: has joined #RubyOnRails
[20:17:40] elaptics: if the business has a name for it then absolutely you should use the same name
[20:17:48] zrl: has joined #RubyOnRails
[20:18:22] spastorino: has joined #RubyOnRails
[20:18:43] MiracleBlue_: has joined #RubyOnRails
[20:18:56] renegadeandy: has joined #RubyOnRails
[20:19:05] sandstrom: has joined #RubyOnRails
[20:19:12] dotty: has joined #RubyOnRails
[20:19:30] diegoviola: elaptics: I would like to have only one model for the report or perhaps associate the model with another one that tracks the time
[20:19:33] twilling: has joined #RubyOnRails
[20:19:35] diegoviola: elaptics: the thing is...
[20:19:36] twilling: ActiveModel lets me append a question mark to the end of an attribute name and return a boolean. Does anyone know where within ActiveModel that code lives?
[20:19:42] yoongkang: has joined #RubyOnRails
[20:19:53] speakingcode: has joined #RubyOnRails
[20:19:58] ewilliam_: has joined #RubyOnRails
[20:20:38] golgaroth: has joined #RubyOnRails
[20:20:51] nyandoge: has joined #RubyOnRails
[20:20:53] baweaver: has joined #RubyOnRails
[20:21:30] jord: has joined #RubyOnRails
[20:21:37] diegoviola: elaptics: I currently parse a CSV and store all the data in a correspondence model, that currently works... but I have also one capybara test where I currently measure the time and store it in the Spreadsheet#time that is also related about the same report I'm parsing
[20:21:54] diegoviola: I think it's a waste to only have one model that has only #time in it
[20:22:25] diegoviola: but I don't know how to improve this in a way that makes sense
[20:23:20] pfg: has joined #RubyOnRails
[20:24:12] SeanLazer: has joined #RubyOnRails
[20:24:33] dici: has joined #RubyOnRails
[20:24:44] ddv: diegoviola, if you need to keep track of state it belongs in class
[20:24:47] SeanLazer: How can I perform database operations on my test database now that db:test:prepare is deprecated?
[20:25:07] diegoviola: ddv: what do you mean?
[20:25:10] SeanLazer: I basically just want to run db:schema:load on my test DB but without wiping out my dev DB
[20:25:24] trbox__: has joined #RubyOnRails
[20:25:42] norc: has joined #RubyOnRails
[20:26:06] AntiSpamMeta: has joined #RubyOnRails
[20:26:31] shanemcd: has joined #RubyOnRails
[20:26:43] drbayer: has joined #RubyOnRails
[20:27:17] mjc_: has joined #RubyOnRails
[20:27:30] markh: has joined #RubyOnRails
[20:27:39] baweaver: has joined #RubyOnRails
[20:28:10] desmondhume: has joined #RubyOnRails
[20:28:47] weaksauce: has joined #RubyOnRails
[20:29:30] norc: Hi. We have a database that is exposed as a REST API. I am currently in the process of designing a web application around it, but I am really stuck at how to solve authorization and authentication issues.
[20:30:11] norc: In the very basic sense the API needs to control access to resources behind it (so that it cannot be easily abused as an attack vector to obtain data=
[20:30:26] norc: It really seems that solutions like OpenID connect blow this completely out of proportion
[20:31:09] norc: At the same time we really do not want to deal with authentication and authorization ourselves, since we do not have experience and we do not want to risk doing it wrong.
[20:31:30] ddv: oauth, pleny of libs available
[20:31:50] norc: ddv: That is the thing. OAuth is neither authentication nor authorization. It is just delegation, nothing more.
[20:32:29] czetter: has joined #RubyOnRails
[20:32:30] barttenbrinke: has joined #RubyOnRails
[20:32:52] norc: In the end you end up doing the entire process of authorization and authentication yourself, using oauth just as a medium to delegate this
[20:32:56] ddv: plenty of libs that provide an implementation of the oauth specification
[20:33:16] Frem: has joined #RubyOnRails
[20:33:26] pulgalipe: has joined #RubyOnRails
[20:34:04] nickenchuggets: has joined #RubyOnRails
[20:34:04] nickenchuggets: has joined #RubyOnRails
[20:34:09] tubbo: norc: have you considered using http authorization tokens?
[20:34:28] tubbo: norc: it's a little less secure than OAuth, but also less complicated.
[20:34:34] SeanLazer: it's pretty neat how running rake db:drop RAILS_ENV=test drops your development database
[20:34:54] beneggett: has joined #RubyOnRails
[20:34:55] Intii: has joined #RubyOnRails
[20:34:56] tubbo: RAILS_ENV=test rake db:drop doesn't iirc
[20:35:19] lemur: has joined #RubyOnRails
[20:36:01] shanemcd: has joined #RubyOnRails
[20:36:01] Intii: Hi everyone, my app keeps complaining about not finding a partial, but the partial actually exists and is in the correct location. It is also named correctly with an underscore in front
[20:36:26] SeanLazer: tubbo: i'll try that next time
[20:36:33] cac: has joined #RubyOnRails
[20:37:00] chubijs: has joined #RubyOnRails
[20:37:37] alaing: has joined #RubyOnRails
[20:37:44] safety_cut: has joined #RubyOnRails
[20:37:47] norc: ddv: The more I look at it it seems that I really want OpenID connect rather than pure OAuth though.
[20:37:57] norc: The pitfalls that open up when you abuse OAuth 2.0 for authentication seem endless.
[20:38:06] alaing: has joined #RubyOnRails
[20:38:14] B1n4r10: has joined #RubyOnRails
[20:38:33] kadoppe: has joined #RubyOnRails
[20:38:58] annlewis: has joined #RubyOnRails
[20:39:07] ahills: has joined #RubyOnRails
[20:39:18] alaing: a i have a variable number of users which i would like to loop through and put two of them on line
[20:39:18] Oog: has joined #RubyOnRails
[20:39:47] ddv: well there are people that are way more experienced than you and me and have actually made an implementation of the spec, so if you think you are way smarter than these people or you like to reinvent stuff bake your own thing
[20:39:55] alaing: whats the best way to work out how many rows i need to create and which side each user should be created
[20:40:26] norc: ddv: That is my point entirely. Running pure OAuth forces you to deal with all the authentication. OpenID Connect does that already by design.
[20:41:10] norc: alaing: The best way is to not.
[20:41:17] ddv: norc, do you need to give other application access to your api on behalve of some user under your control?
[20:41:25] ddv: applications*
[20:41:50] cryptocronus: has joined #RubyOnRails
[20:41:52] daxroc: has joined #RubyOnRails
[20:41:55] norc: alaing: You can just pass an array to ActiveRecord::Persistence::ClassMethods#create
[20:41:57] ddv: behalf*
[20:42:11] norc: ddv: Nope. It pretty much is just the API and the application.
[20:42:17] cryptocronus: When using ActionController::Base.new.render_to_string is there a way to pass a html string for the layout option instead of a file?
[20:42:24] norc: And the API is not even public, but for sake of security assume it to be.
[20:42:37] B1n4r10: has joined #RubyOnRails
[20:42:39] alaing: norc: but this is for a view
[20:42:44] norc: alaing: So?
[20:42:56] alaing: like for admin screen
[20:43:01] ddv: norc, alright then basic auth with a digest on ssl connection should be enough
[20:43:14] alaing: i want to show them two users per row on the page
[20:43:22] norc: alaing: !xy
[20:43:25] rubyonrailed: has joined #RubyOnRails
[20:43:26] shanemcd: has joined #RubyOnRails
[20:44:04] claytonzaugg: has joined #RubyOnRails
[20:44:13] kitsuneyo: has joined #RubyOnRails
[20:45:01] diegoviola: so I have my correspondence model with data I import from a CSV, but I also have a Report with a 'time' field where I measure how much time it takes to download the report
[20:45:07] norc: alaing: It seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[20:45:12] diegoviola: it just feels weird to have 'time' as the only field there
[20:45:17] djbkd: has joined #RubyOnRails
[20:45:20] sankaber: has joined #RubyOnRails
[20:45:23] diegoviola: is there a better way I can do this?
[20:46:11] norc: alaing: Best step would be to show what you have (gist is great) and what your goal is.
[20:47:28] lbotos: has joined #RubyOnRails
[20:47:31] RubyNewbey__: has joined #RubyOnRails
[20:47:40] norc: diegoviola: Why not store it in your correspondence model as an extra attribute?
[20:47:59] jiriki: has joined #RubyOnRails
[20:48:13] norc: diegoviola: Because if report has no foreign key this sounds like a 1:1 relationship
[20:48:37] roxtrongo: has joined #RubyOnRails
[20:49:05] feignt: has joined #RubyOnRails
[20:49:47] tejasmanohar: has joined #RubyOnRails
[20:51:18] B1n4r10: has joined #RubyOnRails
[20:52:32] shaman42: has joined #RubyOnRails
[20:52:39] zemmihates: has joined #RubyOnRails
[20:52:53] jxf: has joined #RubyOnRails
[20:54:12] diegoviola: norc: report has no foreign key
[20:55:24] norc: diegoviola: Do you have the need to add report specific business logic at all?
[20:55:25] diegoviola: I can add it to the correspondence model as an extra attribute but time really have nothing to do with the existing data in there
[20:56:23] cac: has joined #RubyOnRails
[20:56:47] norc: diegoviola: let the report carry a foreign key to the correspondence model too then
[20:57:59] safety_cut: has joined #RubyOnRails
[20:58:09] diegoviola: norc: no, report is just my model where I store the measured time from a test
[20:59:09] diegoviola: norc: I can associate both but they are not really related
[20:59:22] asteros: has joined #RubyOnRails
[20:59:31] diegoviola: I won't have a need to access Report#time from correspondence or vice-versa
[21:00:00] diegoviola: my problem is I don't like having a report model just for the time field
[21:00:21] shanemcd: has joined #RubyOnRails
[21:00:37] Cervajz: has joined #RubyOnRails
[21:00:46] FLeiXiuS: has joined #RubyOnRails
[21:01:02] _djbkd: has joined #RubyOnRails
[21:01:37] diegoviola: it feels like a waste
[21:02:09] diegoviola: I'd appreciate if someone has a better idea
[21:02:25] baweaver: has joined #RubyOnRails
[21:02:26] Cervajz_: has joined #RubyOnRails
[21:02:41] diegoviola: perhaps I can call the model ReportDownloadTest but it still feels stupid
[21:03:38] cac: has joined #RubyOnRails
[21:03:57] lacrymology: has joined #RubyOnRails
[21:04:57] Cervajz__: has joined #RubyOnRails
[21:05:05] SalexW: has joined #RubyOnRails
[21:07:52] ynonp: has joined #RubyOnRails
[21:08:04] drbayer: has joined #RubyOnRails
[21:08:09] kitsuneyo: what replaced assert_select?
[21:08:16] diego1: has joined #RubyOnRails
[21:08:28] diego1: has joined #RubyOnRails
[21:09:45] blackmesa: has joined #RubyOnRails
[21:10:01] diegoviola: maybe I should have a single model where I keep track of both average_login_time and average_report_download_time?
[21:10:46] diegoviola: and identify them by type or something?
[21:12:23] aadam21_: has joined #RubyOnRails
[21:12:48] kitsuneyo: easiest way to raise a 404 error in rails controller?
[21:13:01] hahuang61: has joined #RubyOnRails
[21:15:31] tubbo: kitsuneyo: render status: 404
[21:16:05] kitsuneyo: thanks tubbo
[21:17:18] Cervajz: has joined #RubyOnRails
[21:17:58] tvon: has joined #RubyOnRails
[21:18:16] drbayer: has joined #RubyOnRails
[21:18:30] moeabdol: has joined #RubyOnRails
[21:18:41] michaeldeol: has joined #RubyOnRails
[21:19:52] momomomomo: has joined #RubyOnRails
[21:20:18] herenow: has joined #RubyOnRails
[21:22:22] cac: has joined #RubyOnRails
[21:22:29] pipework: tubbo: render nothing
[21:22:31] pipework: tubbo: render nothing: true
[21:23:34] rakm: has joined #RubyOnRails
[21:23:40] tubbo: pipework: nothing = { nothing: true }; render nothing :D
[21:24:00] shibabu: has joined #RubyOnRails
[21:25:05] mustmodify: has joined #RubyOnRails
[21:25:27] diegoviola: so I have a Report class with 'time' in it for my charts, and another Message class that I keep track of mails/messages, does that sounds ok?
[21:25:44] diegoviola: or should I call it ChartReport to avoid confusion?
[21:25:51] mustmodify: need a sanity check here. Error: Missing partial pre_q_reports/pre_q_report with {:locale=>[:en], :formats=>[:pdf], :handlers=>[:erb, :builder, :coffee, :haml, :rabl]} and I have a file at app/views/pre_q_reports/_pre_q_report.haml
[21:26:22] diegoviola: naming things is probably the hardest part in programming
[21:26:33] mustmodify: diegoviola: that and cache invalidation
[21:26:44] mustmodify: diegoviola: what does this model track?
[21:26:48] mustmodify: Every time someone views a report?
[21:26:55] mustmodify: or every time you generate a report?
[21:26:57] diegoviola: mustmodify: seconds in float
[21:26:59] aadam21: has joined #RubyOnRails
[21:27:08] diegoviola: mustmodify: I display that in a chart
[21:27:26] twilling: has joined #RubyOnRails
[21:27:29] diegoviola: mustmodify: no, I measure the time it takes to download a report with the benchmark module
[21:28:07] diegoviola: time = Benchmark.measure do ... some curl request ... end; then I save time.real in Report#time
[21:28:23] mustmodify: so you're storing benchmarks?
[21:28:30] diegoviola: that's what I show in the chart
[21:28:36] mustmodify: diegoviola: ok
[21:28:39] mustmodify: so you have a chart
[21:28:49] mustmodify: You were asking what to name your model.
[21:28:56] mustmodify: What is being modeled?
[21:29:40] diegoviola: mustmodify: yes
[21:30:01] mustmodify: I assume that yes is to "in a float" which makes me unhappy but whatever.
[21:30:06] diegoviola: what do you mean what is being modeled?
[21:30:23] mustmodify: ok let's start at the top.
[21:30:35] diegoviola: mustmodify: ok
[21:30:35] mustmodify: Is there something that you want to name?
[21:31:05] mustmodify: rather, is there a thing for which you are seeking out a name?
[21:31:22] diegoviola: mustmodify: yes, I'm just not sure about Report#time currently
[21:31:29] mustmodify: If so, is that thing going to be represented by a class in your code?
[21:31:35] mustmodify: I meant to delete that.
[21:31:41] diegoviola: mustmodify: it seems silly to have a Report model just for #time
[21:31:51] mustmodify: ok so the thing for which you are seeking a name is a message, not a class.
[21:31:56] djbkd: has joined #RubyOnRails
[21:32:01] Intii: has joined #RubyOnRails
[21:32:14] mustmodify: and this time represents a benchmark?
[21:32:31] diegoviola: it's from Benchmark module
[21:32:37] mustmodify: so it's an interval, really, not a time.
[21:32:39] diegoviola: time = Benchmark.measure {}
[21:32:48] diegoviola: it's time.real
[21:32:51] mustmodify: like, a time is "2:00"
[21:33:00] mustmodify: and what is being benchmarked?
[21:33:19] mustmodify: anything specific? or like ... "could be anything."
[21:33:31] diegoviola: mustmodify: curl requests
[21:33:33] pragmatism: has joined #RubyOnRails
[21:33:46] diegoviola: mustmodify: for login and some document processing/downloads
[21:34:15] diegoviola: mustmodify: so do I call it ReportDownloadTest#interval or something?
[21:34:22] mustmodify: ok so ... you're benchmarking how long it takes to login and how long it takes to download things.
[21:34:28] diegoviola: I'm really bad at naming
[21:34:35] diegoviola: mustmodify: yes, exactly
[21:34:50] marr: has joined #RubyOnRails
[21:35:11] mustmodify: What other attributes were you going to put in this table?
[21:35:20] diegoviola: no other attributes for now
[21:35:27] twilling: has joined #RubyOnRails
[21:35:34] asteros: has joined #RubyOnRails
[21:35:34] mustmodify: well then I propose that what you have is an Observation
[21:35:37] diegoviola: by attributes, do you mean fields?
[21:36:02] mustmodify: attributes of an instance map to fields in a table.
[21:36:53] diegoviola: mustmodify: do I track both login and download in the same Observation class?
[21:37:00] moei: has joined #RubyOnRails
[21:37:25] moei: has joined #RubyOnRails
[21:37:28] mustmodify: And observations typically have a test_code, value, units, possibly a reference range, and 'exception flags
[21:37:37] diegoviola: like Observation#login_interval and Observation#download_interval
[21:37:38] mustmodify: at least, in medicine they do
[21:37:41] sbarg1: has joined #RubyOnRails
[21:38:05] i: has joined #RubyOnRails
[21:38:12] symbol: has joined #RubyOnRails
[21:38:13] mustmodify: Observation.new(code: 'login_interval', value: '500', units: 'ms')
[21:38:33] mustmodify: then you can create whatever other observations you want, codes you want, whatever, and do all kinds of selections.
[21:38:46] mustmodify: Now having said that I think you should just use NewRelic or ... any other monitoring service.
[21:38:50] erichu: has joined #RubyOnRails
[21:38:55] diegoviola: mustmodify: ok, then when I want to show it in the graph I just filter by login_interval?
[21:39:05] mustmodify: many of them are free and they have much better stuff than you can do on your own.
[21:39:14] mustmodify: diegoviola: that's the theory, yes.
[21:39:34] mustmodify: typically you'll always have the same units, though I don't, which is unfortunte.
[21:39:42] annlewis: has joined #RubyOnRails
[21:39:55] diegoviola: is there no other name other than Observation though, I'm not sure I like that name
[21:40:00] diegoviola: at least it doesn't sound very natural to me, sorry
[21:40:13] mustmodify: you're observing something.
[21:40:16] edwinvdgraaf: has joined #RubyOnRails
[21:40:17] mustmodify: so it seems right.
[21:40:24] mustmodify: I mean, making a single observation about something.
[21:40:25] diegoviola: mustmodify: yes, but I'm also tracking seconds
[21:40:30] diegoviola: from the benchmark
[21:40:38] mustmodify: that's your observation.
[21:40:44] mustmodify: But you could take other observations
[21:40:46] mustmodify: like load time
[21:40:58] mustmodify: but if you don't like the name, of course, use something else.
[21:41:10] yfeldblum: has joined #RubyOnRails
[21:41:11] diegoviola: it's a good name, don't get me wrong
[21:41:18] mustmodify: But in answer to your question, about what you should name it, that's what I would use.
[21:41:22] mustmodify: (and do use)
[21:41:56] mustmodify: and observed_by
[21:41:59] mustmodify: are critical
[21:42:07] mustmodify: server name and time in UTC
[21:42:09] Intii: What does the asterisk do before a model class? Like *Report.form_steps?
[21:42:20] diegoviola: I wonder if it could go wrong in the future if I put both chart data in 1 class
[21:42:33] diegoviola: let's say I have to do something that is chart specific
[21:42:39] mustmodify: diegoviola: as long as you have a code specifying which test is which, it shouldn't.
[21:42:56] mustmodify: that's the whole point of having it be generic.
[21:43:02] mustmodify: You can make any kind of observation.
[21:43:09] mustmodify: but if you don't like the name
[21:43:10] mustmodify: http://www.thesaurus.com/browse/observation?r=76&src=ref&ch=the
[21:43:26] Cervajz: has joined #RubyOnRails
[21:43:51] diegoviola: mustmodify: by which test is which, you mean using like login_interval?
[21:43:58] diegoviola: mustmodify: I mean, code
[21:44:03] diegoviola: code: foo, code: bar
[21:44:18] Cervajz_: has joined #RubyOnRails
[21:44:40] mustmodify: right, that's the purpose of the 'code' attribute. To specify which test was used to create the observation.
[21:44:52] diegoviola: mustmodify: I think I like Measurement also
[21:45:04] mustmodify: I store results for over 350 (medical) tests in the 'observations' table.
[21:45:09] mustmodify: it is a measurement.
[21:45:15] lacuna: has joined #RubyOnRails
[21:45:16] lacuna: has joined #RubyOnRails
[21:45:26] mustmodify: I mean, that doesn't work for me because some things aren't measurements, like...
[21:45:31] mustmodify: date of birth.
[21:45:50] tubbo: Statistic :D
[21:45:51] diegoviola: mustmodify: and when you have to do something that is specific to one observation? how do you handle that?
[21:45:53] mustmodify: That doesn't seem like an observation but when it's possible that the patient might be wrong, it becomes one. :)
[21:46:14] diegoviola: tubbo: that's also fine
[21:50:47] alaing: norc: https://gist.github.com/aliuk2012/e03d7f80105d76cf46bf
[21:51:16] alaing: trying to create a div with two inner divs
[21:51:40] alaing: with the second div being potentially an empty one
[21:51:45] lacuna: has joined #RubyOnRails
[21:51:46] lacuna: has joined #RubyOnRails
[21:52:08] norc: asteros: use %div/
[21:52:15] alaing: its not working because the .column-half is being create outside the .gridrow
[21:52:39] norc: It is possible that .class/ might work too
[21:52:48] Radar: https://gist.github.com/aliuk2012/e03d7f80105d76cf46bf#file-gistfile1-txt-L5-L8
[21:52:51] norc: But I dont know that from the top off my head, so give it a try.
[21:52:51] Radar: Indentation is wrong here.
[21:52:59] tubbo: those ruby lines are wrongly indented
[21:53:02] tubbo: yeah Radar got it :D
[21:53:06] Radar: if you're expecting .column-half to be inside .grid-row, you'll need to indent line 8 two spaces further.
[21:53:37] shanemcd: has joined #RubyOnRails
[21:54:08] Cervajz: has joined #RubyOnRails
[21:54:55] alaing: Radar: but wouldn't that then cause it to only render when the index is odd
[21:55:13] Radar: alaing: Yup.
[21:55:19] Radar: Maybe haml isn't suitable in this instance? :D
[21:56:15] diegoviola: mustmodify: last question, how do you determine units? if it's ms, or seconds, etc?
[21:58:11] mustmodify: Well presumably you'll know when you're creating the observation/measurement/whatever.
[21:58:21] threeminutemonta: has joined #RubyOnRails
[21:58:24] mustmodify: because you shouldn't guess later.
[21:58:44] Sceko: has joined #RubyOnRails
[21:58:45] Sceko: has joined #RubyOnRails
[21:58:45] mustmodify: Unless it's always, always the same. But then if it ever stops being the same, you'll have to retroactively add units.
[21:59:06] mustmodify: so I'd probably do it in the beginning, but I don't know that I think it's an absolute necessity.
[21:59:33] diegoviola: mustmodify: you're right, thanks
[22:02:56] allcentury: has joined #RubyOnRails
[22:05:04] MaDErroR123: has joined #RubyOnRails
[22:07:28] diegoviola: mustmodify: you mentioned you were annoyed I stored interval in float, can you explain on that a bit please?
[22:07:31] rikkipitt: has joined #RubyOnRails
[22:08:00] mustmodify: floats are bad.
[22:08:36] diegoviola: I wouldn't know why
[22:08:59] mustmodify: I'm looking for an example.
[22:09:17] mustmodify: but it has to do with the way floats are stored... leads to ambiguities.
[22:09:22] axl_: has joined #RubyOnRails
[22:10:19] s2013: has joined #RubyOnRails
[22:11:50] mustmodify: diegoviola: https://gist.github.com/mustmodify/01fcf670ae21ba43569d
[22:11:53] mustmodify: use decimals
[22:11:55] infoget: has joined #RubyOnRails
[22:12:05] mustmodify: for observations it probably shouldn't matter
[22:12:16] mustmodify: but using decimals isn't likely to hurt you.
[22:14:13] infoget: Hi guys, I'm looking for 3rd party services (translators), which can translate my ror application to other languages, I've found localehero, do u know other?
[22:14:27] shanemcd: has joined #RubyOnRails
[22:16:00] norc: infoget: https://cloud.google.com/translate/docs
[22:18:01] lacuna: has joined #RubyOnRails
[22:18:02] lacuna: has joined #RubyOnRails
[22:20:22] cac: has joined #RubyOnRails
[22:20:29] diego1: has joined #RubyOnRails
[22:20:40] diego1: has joined #RubyOnRails
[22:21:48] Papierkorb: (Please don't use auto translation for your webpage ??? Thankfully, a German)
[22:22:06] Sawbones: has joined #RubyOnRails
[22:22:17] Radar: infoget: https://localeapp.com
[22:23:40] Radar: https://www.localeapp.com/ ?
[22:23:52] Radar: DNS is hard
[22:23:54] Papierkorb: you need the www? Is this 2002?
[22:24:01] Radar: supposedly
[22:24:05] infoget: yeah second works :)
[22:24:22] Radar: localeapp.com redirects to www.localeapp.com for me now
[22:25:46] infoget: for localeapp I have to manually find translators?
[22:26:03] Radar: You can buy translations.
[22:26:26] Papierkorb: ACTION wonders if Mechanical Turk could even work for stuff like that
[22:26:28] Papierkorb: Probably not.
[22:28:15] diegoviola: what's a project with the crappiest codebase ever?
[22:28:20] diegoviola: I just want to learn what not to do
[22:28:45] tubbo: haha, this rails 2.3 app that i worked on last year
[22:28:59] tubbo: class_eval <<RUBY (an entire 3 classes, fully defined, interpolating a variable) RUBY
[22:29:07] tubbo: basically 3 classes defined within a String
[22:29:11] tubbo: class_eval'd
[22:29:13] Papierkorb: Your first project? ... afterall, the first thousand applications you build as beginner suck. No offense.
[22:30:12] manfrin_: has joined #RubyOnRails
[22:30:21] Papierkorb: tubbo: how fast did you hit Ctrl+W after seeing it? Was it faster than light, and if yes, did you thereby disprove the relativity theory?
[22:30:42] Radar: diegoviola: Hire yourself out as someone who reviews code. You will quickly find it.
[22:31:05] mustmodify: diegoviola: that's a noble thought, but not a productive one.
[22:31:10] Radar: I remember finding a constant defined on line ~400 of a class once. Then it was redefined a little further down.
[22:31:32] Radar: Then there was the view which had 36 identical lines, except a number incremented by one
[22:31:40] Radar: These are just little stylistic things
[22:32:03] Radar: I've seen mixes of tab indentation, SQL calls (yes, SQL, not AR) in views and helpers... ugh.
[22:32:05] tubbo: Papierkorb: i didn't, i actually walked over to the guy who made it, put my laptop down on his desk, and went "what the fuck is your problem".
[22:32:07] Radar: ACTION goes to have another shower
[22:32:08] erichu: has joined #RubyOnRails
[22:32:10] tubbo: "are you retarded?!"
[22:32:19] tubbo: sometimes my internet self comes out in real life too
[22:32:30] mustmodify: Radar: What's wrong with SQL in views?
[22:32:40] Papierkorb: mustmodify: *SCNR
[22:33:36] quazimodo: has joined #RubyOnRails
[22:35:28] Grundell: has joined #RubyOnRails
[22:35:52] igor: has joined #RubyOnRails
[22:36:01] baweaver: has joined #RubyOnRails
[22:37:47] diegoviola: mustmodify: so much for good practices, I remember people who were writing their entire app in index.php back in the days
[22:37:51] Denarii: tubbo: You're lucky that you can go yell at the person responsible. Earlier I found methods being defined in a loop with class eval in our code, with the code that would be output by the eval displayed in comments, but it was written by some guy five years ago who's no longer with the company and it hasn't been touched since.
[22:38:18] mustmodify: Denarii: But I bet it was well tested.
[22:39:01] paradisaeidae: has joined #RubyOnRails
[22:39:28] mustmodify: diegoviola: I worked (briefly) with a team writing an API in Rails to replace their aging PHP API. But they hadn't used Rails before so basically they were writing with the PHP mindset. It was kind of a tragedy.
[22:40:13] Papierkorb: Half-OT, but do y'all aim at specific minimum coverage percentags, and if yes, how much?
[22:40:39] annlewis: has joined #RubyOnRails
[22:41:49] Denarii: The most horrifying Rails codebase I've seen was at a meetup. There was a student or intern there asking for help, and the codebase they'd been given to work on was clearly created by a developmentally disabled Java developer with a drug problem.
[22:43:07] adavia: Rails 5 would work with ruby 2.2.1 or must be 2.2.2?
[22:43:31] Papierkorb: adavia: why do you care?
[22:44:16] IrishGringo: has joined #RubyOnRails
[22:44:21] adavia: Papierkorb: well i was reading about the future release, but im not clear with that
[22:46:10] s2013: has joined #RubyOnRails
[22:46:27] greengriminal: has joined #RubyOnRails
[22:48:26] markh: has joined #RubyOnRails
[22:49:32] drbayer_: has joined #RubyOnRails
[22:52:48] shibabu: has joined #RubyOnRails
[22:53:43] stannard: has joined #RubyOnRails
[22:54:47] yfeldblum: has joined #RubyOnRails
[22:55:28] rubyonrailed: has joined #RubyOnRails
[22:58:13] twilling: has joined #RubyOnRails
[22:58:27] pyemkey: has joined #RubyOnRails
[22:59:57] edwinvdgraaf: has joined #RubyOnRails
[22:59:58] SalexW: has joined #RubyOnRails
[23:01:25] rickmasta: has joined #RubyOnRails
[23:01:34] edwinvdgraaf: has joined #RubyOnRails
[23:03:27] johnflux: has joined #RubyOnRails
[23:03:27] johnflux: has joined #RubyOnRails
[23:03:50] allcentury: has joined #RubyOnRails
[23:03:55] theery: has joined #RubyOnRails
[23:04:42] symbol: has joined #RubyOnRails
[23:06:38] drbayer: has joined #RubyOnRails
[23:07:22] diegoviola: what you guys do when a client of yours ask you to sign a NDA? do you agree to that and sign it or you say no?
[23:07:53] troyready: has joined #RubyOnRails
[23:08:36] diegoviola: I personally think NDAs are ridiculous
[23:08:59] diegoviola: everyone have ideas, it's executing them that matters
[23:09:11] ellisTAA: has joined #RubyOnRails
[23:09:46] ellisTAA: whenever i set session[:user_id] it is always one less than what i expect it to be ??? does session automagically subtract one from what i try to set it as?
[23:10:43] duncannz: has joined #RubyOnRails
[23:10:58] edwinvdg_: has joined #RubyOnRails
[23:12:13] hackjoy: has joined #RubyOnRails
[23:12:22] FCser: has joined #RubyOnRails
[23:14:40] baweaver: has joined #RubyOnRails
[23:16:46] Radar: diegoviola: I refuse to sign NDAs.
[23:16:59] ivanskie: has joined #RubyOnRails
[23:17:01] Radar: If you can't trust me to not share your idea then we can't build a good relationship.
[23:17:06] Radar: It immediately shows that you distrust me.
[23:17:11] Radar: I consider them highly insulting.
[23:17:35] markh: has joined #RubyOnRails
[23:17:51] ellisTAA: Radar: it is hard to find trust worth ppl
[23:17:52] IrishGringo: has joined #RubyOnRails
[23:18:07] Radar: ellistaa: It helps to have a reputation that proceeds you :P
[23:18:29] diegoviola: Radar: that's the smart thing to do
[23:19:33] infoget: has joined #RubyOnRails
[23:21:06] ellisTAA: i have this ajax call that is supposed to set session for my decoupled app, then it is supposed to load a page that grabs the session. but it looks like the page loads before the new session gets set bc its grabbing old sessions. is that bc js executes the next thing before the previous thing is done? https://gist.github.com/ellismarte/6bcbca8dfc044f714ff0#file-signin-js-L16-L17
[23:21:19] voker57: has joined #RubyOnRails
[23:21:19] voker57: has joined #RubyOnRails
[23:22:28] kaspergrubbe: has joined #RubyOnRails
[23:22:33] leslie: has joined #RubyOnRails
[23:22:34] leslie: has joined #RubyOnRails
[23:22:46] diegoviola: Radar: NDAs are offensive and it's even more ridiculous that most companies are already taking advantage of FOSS
[23:22:51] leeky: has joined #RubyOnRails
[23:23:00] diegoviola: Radar: and yet they expect us to sign that bullshit
[23:24:08] drPoggs: has joined #RubyOnRails
[23:24:13] renews: has joined #RubyOnRails
[23:24:24] Papierkorb: Well, what are you supposed to do as a new-to-the-industry guy?
[23:25:14] cac: has joined #RubyOnRails
[23:25:29] Radar: Learn your lessons the hard way.
[23:25:30] pipework: Papierkorb: Take it until you don't need it anymore.
[23:25:39] Radar: Listen to the advice of those who have done it before, and then ignore it.
[23:26:28] Papierkorb: But isn't manking special that we are learning from past mistakes, including those elders tell us to avoid? Shits backwards.
[23:26:31] cfloare: has joined #RubyOnRails
[23:27:47] threeminutemonta: has joined #RubyOnRails
[23:28:52] Radar: I'd hope so :P
[23:30:30] jeremymarc: has joined #RubyOnRails
[23:30:36] syzygy_: has joined #RubyOnRails
[23:32:34] JusticeFries: has joined #RubyOnRails
[23:32:48] pipework: Papierkorb: Take my advice, and shove it.
[23:33:20] JusticeFries: has left #RubyOnRails: ()
[23:33:49] diegoviola: I have a Measurement model with 'units' as a field
[23:33:56] diegoviola: should that be unit?
[23:34:02] diegoviola: it's a field
[23:34:40] roxtrongo: has joined #RubyOnRails
[23:34:44] diegoviola: code, value, units
[23:35:06] mustmodify: kind of irrelevant.
[23:35:24] mustmodify: I guess you could ask "What is the code? What is the value? What is the unit?"
[23:35:44] mustmodify: makes slightly more sense than following with "What are the units?"
[23:35:50] mustmodify: but not by much.
[23:35:51] diegoviola: unit is time units
[23:37:49] Papierkorb: can it have multiple units at once?
[23:38:06] Papierkorb: I'd guess no, so it'd be singular to me
[23:38:25] diegoviola: Papierkorb: no, it's either milliseconds or seconds
[23:38:44] diegoviola: right, thanks
[23:39:13] jeremymarc: has left #RubyOnRails: ()
[23:39:21] mustmodify: has left #RubyOnRails: ()
[23:39:28] drim: has joined #RubyOnRails
[23:39:33] mustmodify: has joined #RubyOnRails
[23:39:44] mustmodify: diegoviola: if you want a debate about it, head over to #english. :)
[23:39:46] drim: Iam trying to group a model by a field but getting "must appear in the GROUP BY clause or be used in an aggregate function"
[23:40:12] cryptocronus: has joined #RubyOnRails
[23:41:14] annlewis: has joined #RubyOnRails
[23:41:33] safety_cut: has joined #RubyOnRails
[23:41:41] Radar: drim: !ncnh
[23:41:41] helpa: drim: If you don't provide any code, it becomes really difficult for us to help you. Providing code to reproduce the problem increases your chances of getting great, accurate help immensely.
[23:42:38] drim: yes I know
[23:42:54] drim: my code is really simple: Device.group(:name)
[23:43:06] Radar: no errors
[23:43:21] drim: I have few devices, same with same name. I want to get only uniq name devices
[23:43:51] drim: PG::GroupingError: ERROR: column "devices.id" must appear in the GROUP BY clause or be used in an aggregate function
[23:44:14] helpa: Do your research before hand. Your question may be answerable with a quick Google search or by simply experimenting. If you're using a method in Rails, look it up in the API Docs or in the Official Guides.
[23:44:26] drim: I did some researches
[23:44:28] helpa: http://guides.rubyonrails.org/active_record_querying.html - ActiveRecord Querying Guide by Ryan Bigg
[23:44:37] drim: but I am still stuck
[23:44:40] Radar: http://guides.rubyonrails.org/active_record_querying.html#group
[23:45:07] drim: tried also
[23:45:49] drim: Device.select('name, provider_id').group(:name)
[23:45:54] drim: column "devices.provider_id" must appear in the GROUP BY clause or be used in an aggregate function
[23:47:08] safety_cut: has joined #RubyOnRails
[23:52:27] paradisaeidae: has joined #RubyOnRails
[23:54:20] atmosx_: has joined #RubyOnRails
[23:55:33] ethe: whats the difference between = and <<?
[23:55:42] Diabolik: has joined #RubyOnRails
[23:55:51] ethe: Actually, I'll just ask in #ruby.
[23:55:58] alindeman: has joined #RubyOnRails
[23:55:59] contradictioned: has joined #RubyOnRails
[23:56:14] cryptsting: has joined #RubyOnRails
[23:57:00] vedu: has joined #RubyOnRails
[23:57:31] diego2: has joined #RubyOnRails
[23:57:45] diego2: has joined #RubyOnRails
[23:58:38] diegoviola: mustmodify: I've just refactored my code with your idea and I'm much happy now, this is what it ended up like: https://gist.github.com/83521478d85e2f58de40
[23:58:40] diegoviola: mustmodify: thanks