« Back to channel list

#RubyOnRails - 02 April 2017

« Back 1 day Forward 1 day »
[00:00:03] Rodya_: has joined #RubyOnRails
[00:01:12] uksio: has joined #RubyOnRails
[00:11:37] quazimodo: has joined #RubyOnRails
[00:12:41] fulcan: has joined #RubyOnRails
[00:29:25] Wobni: has joined #RubyOnRails
[00:30:19] truenito: has joined #RubyOnRails
[00:34:11] Jameser: has joined #RubyOnRails
[00:36:36] fulcan: I am unable to start a rails projects https://bpaste.net/show/05446a28b013 I'm pretty sure my version is incorrect. will changing my ruby symlink to 2.3 fix it?
[00:37:30] superlou: has joined #RubyOnRails
[00:40:15] fryguy: why are you using rvm
[00:46:45] tetraktys: has joined #RubyOnRails
[00:50:41] jarray52: has joined #RubyOnRails
[00:51:52] samgranieri: has joined #RubyOnRails
[00:52:34] jarray52: Unicorn is logging to log/production.log. However, I can't find the location in the config/unicorn.rb file that specifies the production environment should log to log/production.log. Where is this specified?
[00:58:38] Coldblackice: has joined #RubyOnRails
[01:05:39] fulcan: fryguy: same error without the rvm install
[01:20:46] DoctorMonocular: has joined #RubyOnRails
[01:31:10] havenwood: fulcan: Try `bin/rails new palace -d mysql` or `bundle exec rails new palace -d mysql`.
[01:31:30] havenwood: oh, I guess bin/rails makes no sense
[01:31:44] havenwood: yeah, my suggestions are nonsensical
[01:32:40] havenwood: fulcan: It seems you have Ruby installed via RVM, ruby-install and system package.
[01:33:07] havenwood: fulcan: Consider tearing it all down and picking one fresh way.
[01:33:07] fulcan: havenwood: i remove the rvm copy. same issue
[01:33:24] havenwood: fulcan: See `which -a ruby` and `which -a gem`.
[01:33:41] havenwood: fulcan: Ubuntu?
[01:33:50] fulcan: bundle exec rails new palace -d mysql -> /usr/local/lib/ruby/site_ruby/2.3/rubygems.rb:270:in `find_spec_for_exe': can't find gem bundler (>= 0.a) (Gem::GemNotFoundException)
[01:33:58] havenwood: fulcan: gem install bundle
[01:34:00] havenwood: fulcan: gem install bundler
[01:35:12] fulcan: https://bpaste.net/show/c7b4b8ed452f
[01:35:55] havenwood: fulcan: I use chruby on FreeBSD and it works well. I have a branch of ruby-install with FreeBSD support but I can't remember the reason we didn't merge it. Maybe it just needed testing.
[01:36:24] havenwood: fulcan: gem install rails
[01:36:31] havenwood: fulcan: gem which rails
[01:38:24] havenwood: fulcan: Make sure you have Rails and Bundler installed with the version of Ruby/RubyGems that you're using. It looks like you were using a Rails executable in your PATH that was installed with a different version of Ruby.
[01:39:03] fulcan: havenwood: rails is going in now. it looks like it was missing (got uninstalled)
[01:39:50] havenwood: fulcan: Yeah, it's not uncommon for someone to install a new Ruby but then use `rails` or `bundle` command and hit another Ruby's `rails` or `bundle` executable because the one ahead in the PATH doesn't have the gem installed.
[01:40:14] havenwood: It causes some confusion.
[01:40:33] zpe: has joined #RubyOnRails
[01:40:39] fulcan: havenwood: i'm a n00b with rails. expect st00pid err0rs. :)
[01:41:06] havenwood: fulcan: No worries, happy coding!
[01:41:37] havenwood: https://github.com/postmodern/ruby-install/tree/pkg
[01:41:49] fulcan: havenwood: that worked!
[01:41:56] havenwood: fulcan: nice
[01:42:45] jdm: has joined #RubyOnRails
[02:05:57] libastral: has joined #RubyOnRails
[02:08:53] KnownSyntax: has joined #RubyOnRails
[02:12:32] Jameser: has joined #RubyOnRails
[02:16:07] chouhoulis: has joined #RubyOnRails
[02:16:41] Wobni_: has joined #RubyOnRails
[02:19:43] Wobni__: has joined #RubyOnRails
[02:22:50] Wobni___: has joined #RubyOnRails
[02:23:36] pickle_: has joined #RubyOnRails
[02:23:53] Wobni____: has joined #RubyOnRails
[02:24:33] Jameser: has joined #RubyOnRails
[02:24:59] Wobni___1: has joined #RubyOnRails
[02:25:37] Technodrome: has joined #RubyOnRails
[02:26:43] byteflame: has joined #RubyOnRails
[02:32:15] Wobni___2: has joined #RubyOnRails
[02:32:15] Wobni___3: has joined #RubyOnRails
[02:32:17] Wobni___4: has joined #RubyOnRails
[02:32:17] Wobni___5: has joined #RubyOnRails
[02:32:22] fulcan: I keep getting 'forbidden 403' trying to access my site https://bpaste.net/show/68c8b3adcea2
[02:32:50] fryguy: fulcan: what appserver are you using
[02:33:21] fulcan: fryguy: I'm a n00b, not sure
[02:33:39] fryguy: is it passenger?
[02:34:47] fulcan: fryguy: I started the project via rails
[02:34:53] Wobni___6: has joined #RubyOnRails
[02:35:08] agent_white: has joined #RubyOnRails
[02:35:27] fryguy: ACTION sighs
[02:35:44] Jameser: has joined #RubyOnRails
[02:35:45] fryguy: what are the permissions of /home/palace
[02:36:02] fulcan: fryguy: 744 for dir, 644 for files
[02:36:12] fryguy: and also you'll want the documentroot to be /home/palace/palace/public (and the corresponding directory entry)
[02:36:15] fryguy: fulcan: show me
[02:38:24] fulcan: fryguy: changing it to public worked
[02:38:51] xall: has joined #RubyOnRails
[02:39:14] Wobni___7: has joined #RubyOnRails
[02:39:27] zel: has joined #RubyOnRails
[02:44:24] ElSif: has joined #RubyOnRails
[02:46:09] aajjbb: has joined #RubyOnRails
[02:48:01] sevenseacat: has joined #RubyOnRails
[02:48:20] duderonomy: has joined #RubyOnRails
[02:52:30] w0bni: has joined #RubyOnRails
[02:52:31] Wobni__: has joined #RubyOnRails
[02:52:32] Wobni_: has joined #RubyOnRails
[02:52:32] Wobni: has joined #RubyOnRails
[02:52:32] Wobni___: has joined #RubyOnRails
[02:52:35] Wobni____: has joined #RubyOnRails
[02:52:36] Wobni___1: has joined #RubyOnRails
[02:52:37] Wobni___2: has joined #RubyOnRails
[02:52:38] Wobni___3: has joined #RubyOnRails
[02:52:39] Wobni___4: has joined #RubyOnRails
[02:52:40] Wobni___5: has joined #RubyOnRails
[02:52:40] Wobni___6: has joined #RubyOnRails
[02:52:42] Wobni___7: has joined #RubyOnRails
[02:52:44] Wobni___8: has joined #RubyOnRails
[02:53:32] Wobni___9: has joined #RubyOnRails
[02:53:33] Wobni__10: has joined #RubyOnRails
[02:53:34] Wobni__11: has joined #RubyOnRails
[02:53:35] Wobni__12: has joined #RubyOnRails
[02:57:08] spicerack: has joined #RubyOnRails
[03:02:24] GodFather: has joined #RubyOnRails
[03:02:35] Wobni__13: has joined #RubyOnRails
[03:02:36] Wobni__14: has joined #RubyOnRails
[03:02:37] Wobni__15: has joined #RubyOnRails
[03:02:39] Wobni__16: has joined #RubyOnRails
[03:02:54] Technodrome: has joined #RubyOnRails
[03:03:00] frojnd: has joined #RubyOnRails
[03:10:10] HoierM: has joined #RubyOnRails
[03:16:26] armyriad: has joined #RubyOnRails
[03:17:37] Wobni__: has joined #RubyOnRails
[03:19:04] Wobni__17: has joined #RubyOnRails
[03:19:52] Technodrome: has joined #RubyOnRails
[03:20:25] spicerack: has joined #RubyOnRails
[03:22:08] byteflame: has joined #RubyOnRails
[03:22:16] GodFather: has joined #RubyOnRails
[03:23:22] Wobni__: has joined #RubyOnRails
[03:23:41] Wobni__18: has joined #RubyOnRails
[03:23:42] Wobni__19: has joined #RubyOnRails
[03:25:50] adavia: has joined #RubyOnRails
[03:26:23] pickle_: has joined #RubyOnRails
[03:30:58] Wobni__20: has joined #RubyOnRails
[03:31:32] madgoat: has joined #RubyOnRails
[03:31:57] madgoat: has left #RubyOnRails: ()
[03:35:02] Wobni__21: has joined #RubyOnRails
[03:35:03] Wobni__22: has joined #RubyOnRails
[03:38:32] GodFather: has joined #RubyOnRails
[03:38:35] Wobni__23: has joined #RubyOnRails
[03:41:26] pickle_: has left #RubyOnRails: ()
[03:44:26] segy: has joined #RubyOnRails
[03:48:15] GodFather: has joined #RubyOnRails
[03:49:08] arBmind: has joined #RubyOnRails
[03:51:23] chouhoulis: has joined #RubyOnRails
[03:55:20] Wobni__24: has joined #RubyOnRails
[03:55:45] rakm: has joined #RubyOnRails
[04:02:46] antgel: has joined #RubyOnRails
[04:08:03] fulcan: error: Gem Load Error is: Could not find a JavaScript runtime https://bpaste.net/show/abe1db76285c
[04:08:53] sevenseacat: see the list of available runtimes, install one :)
[04:11:09] fulcan: sevenseacat: nodejs is installed
[04:11:57] fulcan: also gem install execjs
[04:13:29] sevenseacat: is node available as either `node` or `nodejs`?
[04:13:46] sevenseacat: execjs is a dependency of rails, and is also the gem raising the error, so it's already installed
[04:16:08] fulcan: sevenseacat: node is
[04:16:42] fryguy: fulcan: what is the output of "which node" from a shell?
[04:17:18] fulcan: fryguy: /usr/local/bin/node
[04:19:27] xall_: has joined #RubyOnRails
[04:19:56] fryguy: are you running your rails app from the same user that you ran that which command? does the user you are running the app as have /usr/local/bin in their $PATH?
[04:23:01] byteflame: has joined #RubyOnRails
[04:25:44] alfie: has joined #RubyOnRails
[04:26:27] Gabriel403: has joined #RubyOnRails
[04:26:37] tjvc: has joined #RubyOnRails
[04:26:37] tjvc: has joined #RubyOnRails
[04:28:12] Axy: has joined #RubyOnRails
[04:28:52] Takumo: has joined #RubyOnRails
[04:28:52] Takumo: has joined #RubyOnRails
[04:29:20] bronson: has joined #RubyOnRails
[04:31:39] uxp: has joined #RubyOnRails
[04:32:32] Psy-Q: has joined #RubyOnRails
[04:34:00] gvpmahesh: has joined #RubyOnRails
[04:36:09] artmann_: has joined #RubyOnRails
[04:36:16] gvpmahesh: can anyone help me with this http://stackoverflow.com/questions/43156098/authentication-without-email-and-password
[04:36:33] LiquidInsect: has joined #RubyOnRails
[04:37:04] fluxsource: has joined #RubyOnRails
[04:37:24] Prira: has joined #RubyOnRails
[04:37:25] kies: has joined #RubyOnRails
[04:40:52] fulcan: fryguy: hmmm, I don't think I am. webserver user is www and rails user is user1
[04:41:16] zpe: has joined #RubyOnRails
[04:42:27] Jameser: has joined #RubyOnRails
[04:43:44] zacts: has joined #RubyOnRails
[04:47:09] Technodrome: has joined #RubyOnRails
[04:52:43] rakm: has joined #RubyOnRails
[04:57:30] rakm: has joined #RubyOnRails
[05:01:45] Velizar: gvpmahesh 1. it should be independently generated because otherwise an attacker learn know some of that information it's based on and use it to infer the auth token; you could authenticate with the (id, token) pair for easier DB query, but it's simpler if you don't assume that the id is secret. 2. I think it doesn't need to be changed. 3. Like one of the answers said - don't forget to hash the token on the server DB
[05:03:04] Velizar: but other than that, if the connection is encrypted, you should be fine
[05:04:15] frojnd: has joined #RubyOnRails
[05:04:21] gvpmahesh: Velizar: Thanks for the reply. So for the first point, the auth token can be a simple secure random hex?
[05:05:03] gvpmahesh: how do I mention a user here? using @?
[05:14:14] sevenseacat: just by name is fine
[05:16:13] Samiz: has joined #RubyOnRails
[05:21:18] mfisch: has joined #RubyOnRails
[05:21:20] mfisch: has joined #RubyOnRails
[05:23:49] byteflame: has joined #RubyOnRails
[05:45:25] mfisch: has joined #RubyOnRails
[05:45:27] mfisch: has joined #RubyOnRails
[05:47:05] frojnd: has joined #RubyOnRails
[05:50:24] spicerack: has joined #RubyOnRails
[05:59:18] Destru: has joined #RubyOnRails
[06:12:53] banisterfiend: has joined #RubyOnRails
[06:24:36] byteflame: has joined #RubyOnRails
[06:38:52] hndk: has joined #RubyOnRails
[06:49:59] fschuindt: has joined #RubyOnRails
[06:50:37] fschuindt: After a @foo.update do I need to peform a @foo.reload in order to serve the updated @foo after it?
[06:51:11] Merm: has joined #RubyOnRails
[06:51:51] shinnya: has joined #RubyOnRails
[06:52:40] Merm: Good morning everyone, I'm overriding a Doorkeeper Controller, I wanted an extra if statement around the part when the user logs in with the OAuth2 flow. Now the if statement works fine (https://gist.github.com/anonymous/1b76c2c24296c15d057340b3a0af0e83) I've added line 3 - 7
[06:53:15] Merm: But I can still see the AccessToken in my server log and browser URL, so as a user I can use Postman or something even tho my if statement returned true.
[06:54:13] Merm: Any help would greatly be appreciated
[07:01:30] tetraktys: has joined #RubyOnRails
[07:01:43] Merm: Any help on my problem?
[07:04:51] frojnd: has joined #RubyOnRails
[07:11:16] pulkit4tech: has joined #RubyOnRails
[07:16:31] banisterfiend: has joined #RubyOnRails
[07:18:35] libastral: has joined #RubyOnRails
[07:19:08] pickle_: has joined #RubyOnRails
[07:19:37] frumosa: has joined #RubyOnRails
[07:19:48] frumosa: Hi matthewd
[07:24:47] pmunt: has joined #RubyOnRails
[07:25:21] byteflame: has joined #RubyOnRails
[07:25:36] Toledo: has joined #RubyOnRails
[07:27:16] frumosa: what can someone do if they know secret_token of my rail app?
[07:28:03] matthewd: They can set any value they like in their session
[07:28:27] matthewd: Assuming you're using that to keep track of logins, they can make themselves authenticated as any user they choose
[07:28:51] matthewd: In short: it's bad. You don't want that.
[07:29:36] Merm: @matthewd: got any tips for my problem?
[07:29:48] frumosa: Like how can they craft a session based on secret token?
[07:30:16] frumosa: Is this : https://www.rapid7.com/db/modules/exploit/multi/http/rails_secret_deserialization the same case for anyone who knows secret_key?
[07:31:42] matthewd: Merm: Try Stack Overflow. You're asking a specific problem about a 3rd party library that, relatively, not many people use. Repeatedly jumping on anyone who's talking and personally asking them to help is not a plan to make friends.
[07:32:25] Merm: @matthewd: oke, thanks I will do that
[07:32:38] antgel: has joined #RubyOnRails
[07:33:21] matthewd: frumosa: That page has a link to a page literally titled "How to hack a Rails app using its secret_token"
[07:33:57] frumosa: It's a really old article though, does that same thing work for like the latest rail version too
[07:34:03] matthewd: frumosa: The "how" doesn't seem terribly important, though: the answer is just to make sure people don't get your secret token.
[07:34:49] frumosa: thanks matthewd, So if anyone who has secret token can even hack rails even if i use latest version in short right?
[07:38:26] planigan: has joined #RubyOnRails
[07:40:25] Pumukel: has joined #RubyOnRails
[07:41:21] matthewd: frumosa: As I said, the answer is just to make sure people don't get your secret token.
[07:41:37] matthewd: frumosa: If that information is insufficient, I think you're in the wrong place.
[07:42:06] frumosa: Agreed Matthewd
[07:42:12] frumosa: Thanks for your patience
[07:42:20] zpe: has joined #RubyOnRails
[07:47:03] frojnd: has joined #RubyOnRails
[07:47:44] frumosa: has left #RubyOnRails: ()
[07:48:45] doublemalt__: has joined #RubyOnRails
[07:56:03] dionysus69: has joined #RubyOnRails
[08:00:56] Saukk: has joined #RubyOnRails
[08:02:59] Jameser: has joined #RubyOnRails
[08:10:48] Andr3as: matthewd: are you still awake?
[08:14:57] Qchmqs: has joined #RubyOnRails
[08:15:44] r3vDev: has joined #RubyOnRails
[08:24:46] spicerack: has joined #RubyOnRails
[08:26:07] byteflame: has joined #RubyOnRails
[08:26:38] chouhoulis: has joined #RubyOnRails
[08:36:25] marr: has joined #RubyOnRails
[08:41:08] tildes: has joined #RubyOnRails
[08:49:02] srinidhi: has joined #RubyOnRails
[08:54:34] jsrn_: has joined #RubyOnRails
[08:58:11] Jameser: has joined #RubyOnRails
[09:05:49] snickers: has joined #RubyOnRails
[09:06:21] DoctorMonocular: has joined #RubyOnRails
[09:15:23] wethu: has joined #RubyOnRails
[09:17:17] handicraftsman: has joined #RubyOnRails
[09:17:18] handicraftsman: has joined #RubyOnRails
[09:17:23] fernandomm: has joined #RubyOnRails
[09:26:51] byteflame: has joined #RubyOnRails
[09:40:59] srinidhi: has joined #RubyOnRails
[09:44:34] keerthana: has joined #RubyOnRails
[09:58:30] r3vDev: has joined #RubyOnRails
[10:03:01] r3vDev: has joined #RubyOnRails
[10:04:58] lxsameer: has joined #RubyOnRails
[10:12:15] r3vDev: has joined #RubyOnRails
[10:16:19] zpe: has joined #RubyOnRails
[10:17:09] srinidhi: has joined #RubyOnRails
[10:19:21] doublemalt_: has joined #RubyOnRails
[10:27:54] byteflame: has joined #RubyOnRails
[10:34:26] conta: has joined #RubyOnRails
[10:34:49] jgt: has joined #RubyOnRails
[10:36:25] hipertracker: has joined #RubyOnRails
[10:38:28] Jameser: has joined #RubyOnRails
[10:38:33] tildes: has joined #RubyOnRails
[10:43:20] jusa: has joined #RubyOnRails
[10:44:29] mathzol: has joined #RubyOnRails
[10:44:47] mathzol: has joined #RubyOnRails
[10:45:55] mathzol: i've got a model class called File, how can I refer it in action? ::File not works :(
[10:47:53] matthewd: mathzol: Don't do that. ;)
[10:48:29] mathzol: :D ohh, okay master
[10:48:34] pulkit4tech: has joined #RubyOnRails
[10:50:13] matthewd: Models are classes, so they do exist in the same namespace as Ruby's built-in classes. That pretty much means you have to treat the built-ins (and stdlib, and any gems you intend to use) as reserved.
[10:50:51] jhass: yeah one of the mistakes of rails, not namspacing everything into some application specific module
[10:57:38] fmartingr: has joined #RubyOnRails
[11:28:41] byteflame: has joined #RubyOnRails
[11:32:56] r3vDev: has joined #RubyOnRails
[11:33:29] antgel: has joined #RubyOnRails
[11:39:10] meoblast001: has joined #RubyOnRails
[11:45:22] hipertracker: has joined #RubyOnRails
[11:57:15] Pumukel: has joined #RubyOnRails
[12:03:41] srinidhi: has joined #RubyOnRails
[12:13:03] jusa: has joined #RubyOnRails
[12:15:18] pLaTo0n: has joined #RubyOnRails
[12:15:22] King_Rex: has joined #RubyOnRails
[12:19:09] pickle_: has joined #RubyOnRails
[12:19:42] xpl0iter: has joined #RubyOnRails
[12:22:08] xpl0iter: Hi I am trying to figure out why my rails app doesn't show anything. It just keeps on loading. Can someone please help me? This is the logs from puma: http://kopy.io/aaaC2#d5fPF46x71ZUr6
[12:25:37] meoblast001: has joined #RubyOnRails
[12:27:22] matthewd: xpl0iter: Rails 4.2 isn't supported on Ruby 2.4
[12:27:52] xpl0iter: matthewd: oh, so I have to update ruby I guess?
[12:28:14] Megamos: has joined #RubyOnRails
[12:28:35] xpl0iter: wait, I have to downgrade. or upgrade rails. thanks
[12:29:23] byteflame: has joined #RubyOnRails
[12:30:57] fcser__: has joined #RubyOnRails
[12:33:18] FCser: has joined #RubyOnRails
[12:37:47] zpe: has joined #RubyOnRails
[12:45:00] Rodya_: has joined #RubyOnRails
[12:49:22] pankaj: has joined #RubyOnRails
[12:55:00] meoblast001: has joined #RubyOnRails
[12:55:57] Megamos: has joined #RubyOnRails
[13:02:09] samgranieri: has joined #RubyOnRails
[13:07:17] xall_: has joined #RubyOnRails
[13:13:22] hndk: has joined #RubyOnRails
[13:18:31] Pumukel: has joined #RubyOnRails
[13:18:53] HoierM: has joined #RubyOnRails
[13:19:53] GodFather: has joined #RubyOnRails
[13:26:50] conta: has joined #RubyOnRails
[13:30:12] byteflame: has joined #RubyOnRails
[13:32:56] pankaj: has joined #RubyOnRails
[13:34:07] xall_: has joined #RubyOnRails
[13:39:31] romeoh: has joined #RubyOnRails
[13:45:09] fcser_: has joined #RubyOnRails
[13:47:18] fcser___: has joined #RubyOnRails
[13:50:18] fcser__: has joined #RubyOnRails
[13:53:16] gbaptista_: has joined #RubyOnRails
[13:57:49] fulcan: error: Gem Load Error is: Could not find a JavaScript runtime https://bpaste.net/show/fd0033f1dd01
[14:10:42] handicraftsman: has joined #RubyOnRails
[14:10:57] handicraftsman: has joined #RubyOnRails
[14:12:25] |PiP|: has joined #RubyOnRails
[14:15:07] fox_mulder_cp: fulcan: so install nodejs
[14:15:58] fulcan: fox_mulder_cp: it is install . note the bpaste
[14:16:13] harfangk: has joined #RubyOnRails
[14:17:59] r3vDev: has joined #RubyOnRails
[14:30:59] byteflame: has joined #RubyOnRails
[14:32:16] Rodya_: has joined #RubyOnRails
[14:37:56] aajjbb: has joined #RubyOnRails
[14:39:20] qchmqs_: has joined #RubyOnRails
[14:44:20] Qchmqs: has joined #RubyOnRails
[14:45:20] Technodrome: has joined #RubyOnRails
[14:48:39] conta: has joined #RubyOnRails
[14:51:38] Himanshu: has joined #RubyOnRails
[14:51:47] srinidhi: has joined #RubyOnRails
[14:51:52] GodFather: has joined #RubyOnRails
[14:52:10] DLSteve_: has joined #RubyOnRails
[14:52:38] Guest44246: Hi , how can i contribute to rails ?
[14:53:18] matthewd: Guest44246: http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html
[14:53:26] fryguy: http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html
[14:53:29] fryguy: grr got beat
[14:54:03] Guest44246: Thanks fryguy
[14:54:59] samgranieri: has joined #RubyOnRails
[14:58:17] fulcan: fuck ruby. can't turn it on? time for the delete button
[14:59:00] Guest44246: Can you also tell me the best book for getting to know Ruby completely? I have been following this book , metaprogramming ruby by perrota , it would bea big help
[14:59:01] fulcan: has left #RubyOnRails: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[14:59:04] sevenseacat: fulcan: are you running your rails app from the same user that you ran that which command? does the user you are running the app as have /usr/local/bin in their $PATH?
[14:59:16] sevenseacat: you were asked this 11 hours ago
[14:59:32] sevenseacat: the answer is your problem.
[15:01:48] Guest44246: Am i on the correct Book ?
[15:04:11] fryguy: Guest44246: depends on what 'know ruby completely means" you might want ruby under a microscope as well
[15:05:54] Guest44246: Everything about ruby, a book that covers ruby code in details
[15:06:58] sevenseacat: good luck with that
[15:08:39] adavia: has joined #RubyOnRails
[15:09:18] GodFather: has joined #RubyOnRails
[15:18:26] pLaToOn: has joined #RubyOnRails
[15:23:44] fcser_: has joined #RubyOnRails
[15:25:17] zpe: has joined #RubyOnRails
[15:30:40] w0bni: has joined #RubyOnRails
[15:31:45] byteflame: has joined #RubyOnRails
[15:31:54] aajjbb: has joined #RubyOnRails
[15:33:25] Rodya_: has joined #RubyOnRails
[15:39:52] tildes: has joined #RubyOnRails
[15:42:55] shinnya: has joined #RubyOnRails
[15:43:57] mathzol: has joined #RubyOnRails
[15:46:25] thortron: has joined #RubyOnRails
[15:49:14] Saukk: has joined #RubyOnRails
[15:59:15] dionysus69: oh hey sevenseacat :) glad to see you again xD
[15:59:56] handicraftsman: Time to ban Wobni*!*@* (loljk)
[16:04:04] DoubleMalt: has joined #RubyOnRails
[16:07:50] d3d1rty: has joined #RubyOnRails
[16:27:09] spicerack: has joined #RubyOnRails
[16:27:16] netzfisch: has joined #RubyOnRails
[16:31:05] bronson_: has joined #RubyOnRails
[16:31:50] LateralOctober: has joined #RubyOnRails
[16:32:48] byteflame: has joined #RubyOnRails
[16:33:38] LateralOctober: has joined #RubyOnRails
[16:34:20] Rodya_: has joined #RubyOnRails
[16:35:07] DoubleMalt: has joined #RubyOnRails
[16:35:28] gniquil: has joined #RubyOnRails
[16:49:34] Mia: has joined #RubyOnRails
[16:49:34] Mia: has joined #RubyOnRails
[16:50:34] mazeinmaze_: has joined #RubyOnRails
[16:50:59] xall_: has joined #RubyOnRails
[16:53:44] conta: has joined #RubyOnRails
[16:54:31] ayonkhan: has joined #RubyOnRails
[16:55:58] defsdoor: has joined #RubyOnRails
[17:00:04] irishfromua: has joined #RubyOnRails
[17:05:24] conta: has joined #RubyOnRails
[17:07:22] ayonkhan: has joined #RubyOnRails
[17:12:25] Fernando-Basso: has joined #RubyOnRails
[17:17:08] aajjbb: has joined #RubyOnRails
[17:20:39] cagmz: has joined #RubyOnRails
[17:25:31] spicerack: has joined #RubyOnRails
[17:28:49] hahuang61: has joined #RubyOnRails
[17:33:30] byteflame: has joined #RubyOnRails
[17:34:39] samgranieri: has joined #RubyOnRails
[17:36:16] Rodya_: has joined #RubyOnRails
[17:47:27] mustmodify: has joined #RubyOnRails
[17:47:48] mustmodify: Hey. I'm trying to help a new dev use Rails. He wants to learn and I need to get him past this hump...
[17:48:31] mustmodify: for `./bin/rails -s` he's getting "cannot load such file -- bundler"
[17:48:37] mustmodify: but `bundle` works as expected
[17:48:53] mustmodify: https://gist.github.com/mustmodify/01089f6b9b925b5554bd2393330a2840
[17:49:21] fox_mulder_cp: and environment for rbenv or
[17:49:33] mustmodify: Oh good thought.
[17:49:53] GodFather: has joined #RubyOnRails
[17:50:18] mustmodify: Funny I don't remember putting ruby in my path... how did that happen?
[17:50:28] mustmodify: I guess chruby did it.
[17:51:04] matthewd: Ensure `ruby -v`, `gem env`, `bundle env` agree
[17:52:10] hipertracker_: has joined #RubyOnRails
[17:52:28] xall_: has joined #RubyOnRails
[17:54:29] boxmein: has joined #RubyOnRails
[17:55:33] zpe: has joined #RubyOnRails
[17:56:42] hoodow: has joined #RubyOnRails
[18:01:41] Jasaka: has joined #RubyOnRails
[18:01:46] GodFather: has joined #RubyOnRails
[18:03:58] Technodrome: has joined #RubyOnRails
[18:09:56] mustmodify: chruby would automatically manage the path, right?
[18:10:22] mustmodify: He added `/usr/local/Cellar/ruby@2.3/2.3.4/bin` to the path and he's getting the same error.
[18:11:26] xall_: has joined #RubyOnRails
[18:24:06] mustmodify: matthewd: nice catch. Rubygems is on ruby 2.4. Everything else is 2.3.4.
[18:24:26] mustmodify: Would rbenv / chruby / etc resolve this or should he fix his system ruby first?
[18:24:58] matthewd: I thought you were already using chruby
[18:25:09] naprimer_2: has joined #RubyOnRails
[18:25:46] havenwood: mustmodify: Install the Bundler gem with your current Ruby: gem install bundler
[18:26:09] adavia: Any idea how can i deal with this situation? http://stackoverflow.com/questions/43170880/display-filtered-related-data-for-a-survey-in-rails
[18:26:15] havenwood: mustmodify: then confirm: gem which bundler
[18:26:30] matthewd: havenwood: If `gem` isn't using the same ruby as `ruby`, that's not going to help
[18:27:33] ayonkhan_: has joined #RubyOnRails
[18:27:37] havenwood: matthewd: True, I was suspicious Bundler just wasn't installed on the latest Ruby. Maybe I'm wrong!
[18:27:53] havenwood: mustmodify: Gist the details matthewd asked about?
[18:27:55] mustmodify: I agree, that would fix bundler, not gem
[18:28:21] mustmodify: https://gist.github.com/mustmodify/7047ad78f093be2f99a569a07cb14a62
[18:29:15] mustmodify: and gem is what's out of sync.
[18:29:29] mustmodify: he is NOT using a ruby manager. He installed this via brew.
[18:29:41] mustmodify: if chruby/rbenv would help, I'm happy to recommend that.
[18:30:09] netzfisch: has joined #RubyOnRails
[18:30:19] hipertracker_: has joined #RubyOnRails
[18:30:25] matthewd: and `ruby -v`?
[18:30:43] havenwood: Yeah, I still think you just didn't install Bundler on Ruby 2.3.4...
[18:30:59] havenwood: Bundler from Ruby 2.4.1 but Ruby and Gem from 2.3.4.
[18:31:01] mustmodify: havenwood: it's not bundler. It's gem.
[18:31:18] havenwood: mustmodify: Just to clarify, you're trying to use Ruby 2.3.4?
[18:31:35] mustmodify: bundler is from 2.4
[18:31:46] havenwood: Yeah, because you have the Gem installed on that Ruby.
[18:31:50] havenwood: But you don't on this Ruby.
[18:31:54] havenwood: Install Bundler!
[18:32:10] mustmodify: Got it! Thanks for being persistent even though I was arguing! :P
[18:33:04] matthewd: I'd personally be pretty concerned that having two rubies' bin dirs on the path at the same time is setting you up for ongoing pain/confusion
[18:34:16] byteflame: has joined #RubyOnRails
[18:36:19] mustmodify: yeah, he installed via brew and apparently it did him a disservice.
[18:36:20] mustmodify: has left #RubyOnRails: ()
[18:36:58] Rodya_: has joined #RubyOnRails
[18:37:12] fschuindt: has joined #RubyOnRails
[18:38:02] bronson: has joined #RubyOnRails
[18:38:15] frojnd: has joined #RubyOnRails
[18:47:18] adavia: Any idea how can i deal with this situation? http://stackoverflow.com/questions/43170880/display-filtered-related-data-for-a-survey-in-rails
[18:58:38] mooser: has joined #RubyOnRails
[19:01:02] patarr: has joined #RubyOnRails
[19:02:00] centrx: has joined #RubyOnRails
[19:06:21] armando: has joined #RubyOnRails
[19:08:09] GodFather: has joined #RubyOnRails
[19:10:39] Slinky_Pete: has joined #RubyOnRails
[19:12:35] Slinky_Pete: having an issue with paperclip and saving to the db. https://gist.github.com/cgibsonmm/05f88ac82e335776713b5f0cac126a24
[19:13:33] GodFather: has joined #RubyOnRails
[19:14:25] Slinky_Pete: found my error! hahA
[19:14:52] deur-_: has joined #RubyOnRails
[19:17:31] z2ATD2X6: has joined #RubyOnRails
[19:19:16] GodFather: has joined #RubyOnRails
[19:27:34] hndk: has joined #RubyOnRails
[19:30:44] hahuang61: has joined #RubyOnRails
[19:33:45] ayonkhan: has joined #RubyOnRails
[19:35:05] byteflame: has joined #RubyOnRails
[19:35:49] frojnd: has joined #RubyOnRails
[19:37:45] Rodya_: has joined #RubyOnRails
[19:44:14] Technodrome: has joined #RubyOnRails
[19:47:00] mooser: has joined #RubyOnRails
[19:48:26] GodFather: has joined #RubyOnRails
[19:49:01] patarr: has joined #RubyOnRails
[19:55:40] ayonkhan: has joined #RubyOnRails
[19:56:47] zpe: has joined #RubyOnRails
[19:59:19] ryan1: has joined #RubyOnRails
[20:08:38] DoctorMonocular: has joined #RubyOnRails
[20:09:12] patarr: has joined #RubyOnRails
[20:12:21] amperry: has joined #RubyOnRails
[20:14:24] amperry: hi folks, does anyone work with 'autonumeric' and can tell me how to use the 'maximumValue' parameter? I thought something like: <td><%= f.text_field :rent, data: { autonumeric: {aSign: '$', maximumValue: 9999.99}} %></td> would keep from entering > $10,000, but it doesn't in my app.
[20:20:09] amperry: although maybe I need to enclose the 9999.99 in single quotes.
[20:22:31] Simplicity: has left #RubyOnRails: ("Leaving")
[20:26:01] ryan1: I'm trying to set up a production rails 5 app using nginx + puma. The app is running but it is not correctly loading assets. I am looking for clarification about some lines in the production.rb configuration file. Above the line "config.public_file_server.enabled = false" it says "Disable serving static files from the '/public' folder by default since Apache or NGINX already handles this." I do not
[20:26:03] ryan1: understand what this entails. Does this mean that I do not have to precompile assets? It also seems like the online documentation is for Rails 4 not 5, so I am having trouble finding information about this. I can create a gist of my actualy implementation if that would be useful, but I think my questions are more conceptual.
[20:26:37] rogue_koder: has joined #RubyOnRails
[20:32:56] tildes: has joined #RubyOnRails
[20:35:49] byteflame: has joined #RubyOnRails
[20:37:52] netzfisch: has joined #RubyOnRails
[20:38:25] Rodya_: has joined #RubyOnRails
[20:40:20] patarr: has joined #RubyOnRails
[20:42:33] sunya7a: Is there a way to distinguish between when a has_many is being deleted because we update the dependent model and when we delete it as a result of destroying the model on which it is dependent on and we set dependent: :destroy?
[20:42:52] amperry: to answer my own question, 'maximumValue' was the wrong term, it's 'vMax', so I don't know what docs I was looking at when I saw that.
[20:43:17] sunya7a: So for xample...I have Project has many Tasks
[20:46:06] sunya7a: sorry...let's say I have Project has many Tags through project_tags...I want to make a distinction and run different code on project_tags when I remove a tag from a project, versus when I deleted a project and project_tags are removed as a result of Project has_many project_tags, dependent: :destroy
[20:54:48] marcdel: has joined #RubyOnRails
[20:55:43] marcdel: has joined #RubyOnRails
[20:56:21] z2ATD2X6: has joined #RubyOnRails
[21:06:25] Jameser: has joined #RubyOnRails
[21:07:25] fschuindt: has joined #RubyOnRails
[21:11:15] armyriad: has joined #RubyOnRails
[21:20:15] netzfisch: has joined #RubyOnRails
[21:21:17] adavia: has joined #RubyOnRails
[21:30:13] jgt: has joined #RubyOnRails
[21:31:52] hahuang61: has joined #RubyOnRails
[21:34:32] armyriad: has joined #RubyOnRails
[21:34:42] narval: Any idea how can i deal with this situation? http://stackoverflow.com/questions/43170880/display-filtered-related-data-for-a-survey-in-rails
[21:36:36] byteflame: has joined #RubyOnRails
[21:39:15] Rodya_: has joined #RubyOnRails
[21:39:31] mooser: has joined #RubyOnRails
[21:53:50] zpe: has joined #RubyOnRails
[21:58:11] patarr: How do I find docs for find_by_somefield? It seems like the method doesn't exist, but it still works. Same with orer_by_columnname. There is no such method anywhere, yet it works. Wth is going on?
[22:07:33] superlou: has joined #RubyOnRails
[22:15:59] lord4163: has joined #RubyOnRails
[22:16:44] banisterfiend: has joined #RubyOnRails
[22:18:18] marr: has joined #RubyOnRails
[22:18:44] FCser: has joined #RubyOnRails
[22:19:14] webdestroya: has joined #RubyOnRails
[22:20:17] Slinky_Pete: has joined #RubyOnRails
[22:20:23] Guest96: has joined #RubyOnRails
[22:21:39] patarr: has joined #RubyOnRails
[22:29:55] keerthana: has joined #RubyOnRails
[22:30:01] creature: has joined #RubyOnRails
[22:30:01] creature: has joined #RubyOnRails
[22:32:33] hahuang61: has joined #RubyOnRails
[22:32:51] jgt: has joined #RubyOnRails
[22:35:00] djbkd: has joined #RubyOnRails
[22:37:39] byteflame: has joined #RubyOnRails
[22:39:58] Rodya_: has joined #RubyOnRails
[22:46:32] mooser: has joined #RubyOnRails
[22:51:44] tetraktys: has joined #RubyOnRails
[22:53:01] wethu: has joined #RubyOnRails
[23:04:43] Jameser: has joined #RubyOnRails
[23:06:05] Slinky_Pete: has joined #RubyOnRails
[23:08:10] narval: has joined #RubyOnRails
[23:11:08] fschuindt: has joined #RubyOnRails
[23:14:52] ElFerna: has joined #RubyOnRails
[23:24:01] Technodrome: has joined #RubyOnRails
[23:28:11] marcdel: has joined #RubyOnRails
[23:32:43] mices: has joined #RubyOnRails
[23:33:22] hahuang61: has joined #RubyOnRails
[23:33:56] rogue_koder: has joined #RubyOnRails
[23:38:23] byteflame: has joined #RubyOnRails
[23:38:33] fschuindt: has joined #RubyOnRails
[23:42:08] mices: my form has form_for(@address) but the controller says undefined local variable or method `address_params' for #<AddressesController:0xe1177b4> Did you mean? address_path
[23:42:32] mices: @address = current_user.addresses.new(address_params)
[23:43:01] TheMoonMaster: mices: is address_params actually defined?
[23:43:17] mices: i'm using nested resources users,addresses
[23:43:27] mices: where can it be defined?
[23:43:37] TheMoonMaster: in the controller
[23:43:43] mices: it should be the @address object automatically
[23:44:01] mices: i never had to define it before
[23:44:16] mices: unless something got deleted from the controller
[23:44:23] mices: my keyboard's broken
[23:45:10] zpe: has joined #RubyOnRails
[23:45:32] TheMoonMaster: No, pretty sure you have to define it unless something is doing that for you
[23:48:38] wethu: has joined #RubyOnRails
[23:50:38] patarr: has joined #RubyOnRails
[23:54:37] creature: mices: Normally you have to define that yourself; the Rails Guides has an example here of the idiomatic way: http://guides.rubyonrails.org/action_controller_overview.html#strong-parameters
[23:54:49] marcdel: has joined #RubyOnRails
[23:56:24] mices: rail g scaffold creates it as the whitelist at the bottom of the controller automatically
[23:57:16] frojnd: has joined #RubyOnRails
[23:59:30] creature: Can you gist your AddressesController?