« Back to channel list

#RubyOnRails - 13 March 2016

« Back 1 day Forward 1 day »
[00:05:36] ziyadb: has joined #RubyOnRails
[00:08:19] Trynemjoel: has joined #RubyOnRails
[00:09:23] cryo28: has joined #RubyOnRails
[00:10:51] Cache_Money: has joined #RubyOnRails
[00:14:00] sandstrom: has joined #RubyOnRails
[00:16:37] cryo28: has joined #RubyOnRails
[00:18:42] Pazician: has joined #RubyOnRails
[00:20:01] krz: has joined #RubyOnRails
[00:28:17] cabinB: has joined #RubyOnRails
[00:29:37] chagel: has joined #RubyOnRails
[00:30:41] sandstrom: has joined #RubyOnRails
[00:31:51] Trynemjoel: has joined #RubyOnRails
[00:31:56] guideX: has left #RubyOnRails: ()
[00:35:43] rafaelfranca: has joined #RubyOnRails
[00:38:18] djbkd: has joined #RubyOnRails
[00:38:45] dalbuschat: has joined #RubyOnRails
[00:40:25] merqlove: has joined #RubyOnRails
[00:41:30] droptone: Question: I'm showing that I"m getting a 404 "route not found" on this:
[00:41:39] droptone: ActionController::RoutingError (No route matches [POST] "/update_fan_avatar"):
[00:41:43] droptone: In my routes.rb, I have:
[00:41:49] droptone: post 'update_fan_avatar' => 'fan_profiles#update_fan_avatar'
[00:42:01] droptone: And if I rake routes grep -i update_fan_avatar it shows
[00:42:22] droptone: oh, never mind.
[00:42:57] delgiudices: has joined #RubyOnRails
[00:43:35] djbkd: has joined #RubyOnRails
[00:46:09] diegoviola: has joined #RubyOnRails
[00:46:57] sandroandrade: has joined #RubyOnRails
[00:47:23] sandstrom: has joined #RubyOnRails
[00:47:34] Rubie: has joined #RubyOnRails
[00:49:03] musicnode: has joined #RubyOnRails
[00:49:32] musicnode: has left #RubyOnRails: ()
[00:51:30] uglybandersnatch: has joined #RubyOnRails
[00:55:55] bronson: has joined #RubyOnRails
[00:59:49] Devalo: has joined #RubyOnRails
[01:00:34] edwinvdgraaf: has joined #RubyOnRails
[01:00:48] Rubie: has joined #RubyOnRails
[01:02:03] pawnbox: has joined #RubyOnRails
[01:04:06] sandstrom: has joined #RubyOnRails
[01:04:33] jointPDF: has left #RubyOnRails: ()
[01:15:58] delgiudices: has joined #RubyOnRails
[01:16:18] delgiudices: What open source project i, as a beginner can contribute in order to learn rails?
[01:16:30] delgiudices: Actually in order to practice it
[01:16:33] SteenJobs: has joined #RubyOnRails
[01:18:27] ur5us: has joined #RubyOnRails
[01:18:55] ericx2x__: has joined #RubyOnRails
[01:20:26] sandstrom: has joined #RubyOnRails
[01:22:40] Kulo: has joined #RubyOnRails
[01:22:46] _3by8: has joined #RubyOnRails
[01:23:33] djbkd: has joined #RubyOnRails
[01:23:51] frishi: has joined #RubyOnRails
[01:24:08] djbkd: has joined #RubyOnRails
[01:24:35] SteenJobs: has joined #RubyOnRails
[01:24:45] _3by8: Hello everyone.
[01:25:54] bronson: has joined #RubyOnRails
[01:26:47] one_zero: has joined #RubyOnRails
[01:27:40] arBmind: has joined #RubyOnRails
[01:32:25] pawnbox: has joined #RubyOnRails
[01:32:31] davee_: has joined #RubyOnRails
[01:32:46] _3by8: I've already asked this question in AngularJS but I'm not really satisfied with the answer. Is there a better reason to use AngularJS over a Rails-generated view other than efficiency and not having to render the same elements over again?
[01:37:03] triangles: has joined #RubyOnRails
[01:37:04] sandstrom: has joined #RubyOnRails
[01:37:10] rafaelfranca: has joined #RubyOnRails
[01:40:01] bronson: not sure what the question is getting at... angular and rails views are very different.
[01:40:35] _3by8: bronson: I realize that but I'm asking why use Angular at all? What are its major benefits other than reducing the overhead involved when fetching a view?
[01:40:36] bronson: use angular (or React or Vue) when you have a very interactive app
[01:40:46] bronson: use Rails views when you just need the user to grind through a few forms
[01:40:55] triangles: has joined #RubyOnRails
[01:40:56] bronson: (though turbolinks can blur the line quite a bit)
[01:41:18] _3by8: Is Turbolinks worth learning about if I plan on using Angular all the time?
[01:41:24] bronson: I can't really speak to Angular... we started a site on it and dropped it like a hot rock once we saw React.
[01:41:52] bronson: But there's definitely a reason to make a single-page app vs. a traditional website.
[01:42:03] bronson: just comes down to the sort of interactivity you're looking for.
[01:42:26] triangles2: has joined #RubyOnRails
[01:42:36] bronson: if you're going to make an Angular app, ignore turbolinks, rails views, rails helpers, templates, etc etc.
[01:42:51] bronson: We're using Rails as a backend for a React app and it's pretty awesome.
[01:43:09] bronson: Much nicer to work on than the Node backend it replaced.
[01:45:06] bronson: _3by8, this is a decent description of rails-api: https://blog.codeship.com/building-a-json-api-with-rails-5/
[01:45:29] bronson: use rails-api if you're making a single-page app.
[01:46:50] _3by8: bronson: thank you.
[01:47:10] _3by8: bronson: I was reading about this a little bit last night. Can you explain Rack in 5 words or less?
[01:47:14] weaksauce: bronson do you use jsx?
[01:47:32] bronson: weaksauce: yep. hated it when we first saw it, really like it now.
[01:47:40] bronson: takes some getting used ot.
[01:48:18] weaksauce: better than vanilla js?
[01:48:18] bronson: _3by8: rack is the low-level networking bits. rails is the high-level data-processing bits.
[01:48:52] bronson: weaksauce: when using react, yep. beats the heck out of having a zillion tiny template files.
[01:49:20] bronson: outside of react, though... can't really think of a reason to use it.
[01:50:14] weaksauce: i see. thanks
[01:51:48] bronson: _3by8: the great thing about rack is how pluggable it is. if you want to see some stats, insert https://github.com/MiniProfiler/rack-mini-profiler
[01:52:11] bronson: if you want to throttle clients, insert https://github.com/kickstarter/rack-attack
[01:52:16] _3by8: bronson: I don't know what you mean by "pluggable" :P
[01:53:46] sandstrom: has joined #RubyOnRails
[01:53:54] ericx2x__: has joined #RubyOnRails
[01:54:32] chipotle: has joined #RubyOnRails
[01:55:49] htmldrum: has joined #RubyOnRails
[01:56:11] johnflux: has joined #RubyOnRails
[01:56:11] johnflux: has joined #RubyOnRails
[01:57:43] cavel: has joined #RubyOnRails
[01:57:56] Cohedrin: has joined #RubyOnRails
[01:57:59] delgiudices: has joined #RubyOnRails
[02:00:47] sleungcy: has joined #RubyOnRails
[02:03:14] edwinvdgraaf: has joined #RubyOnRails
[02:05:05] Rubie: has joined #RubyOnRails
[02:06:27] ericx2x___: has joined #RubyOnRails
[02:07:18] triangles: has joined #RubyOnRails
[02:08:53] cavel: has left #RubyOnRails: ()
[02:10:09] uberjar: has joined #RubyOnRails
[02:19:30] i8igmac: has joined #RubyOnRails
[02:20:22] pwnd_nsfw: has joined #RubyOnRails
[02:20:51] arup_r: has joined #RubyOnRails
[02:21:29] i8igmac: can i do a if button is clicked then <=% puts 'hi world' =>
[02:22:02] pawnbox: has joined #RubyOnRails
[02:23:43] i8igmac: server side ruby code...
[02:24:01] arup_r: yes using JS..
[02:24:16] fryguy: i8igmac: sure, you can return JS to execute to the page
[02:24:23] arup_r: but not the way you are thinking it
[02:25:05] i8igmac: maybe a point in the right direction. its obvious im new... i love ruby, and want to build web front end
[02:25:25] i8igmac: <=% 100.times do |x| puts x; sleep 1; end =>
[02:25:36] i8igmac: i hope to also print data to the screen as it happens
[02:26:16] fryguy: you can enable streaming, presuming you have a web and an app server that supports it
[02:26:30] fryguy: http://api.rubyonrails.org/classes/ActionController/Streaming.html
[02:26:52] fryguy: ttp://www.sitepoint.com/streaming-with-rails-4/
[02:29:20] arup_r: fryguy: TIL streaming. thanks
[02:30:52] jenrzzz: has joined #RubyOnRails
[02:30:56] i8igmac: just a quick look at the streaming-with-rails-4
[02:31:01] i8igmac: response.stream.write "This is a test Messagen"
[02:33:28] bricker: has joined #RubyOnRails
[02:37:28] sandstrom: has joined #RubyOnRails
[02:38:32] rafaelfranca: has joined #RubyOnRails
[02:38:43] norc_: has joined #RubyOnRails
[02:39:44] stardiviner: has joined #RubyOnRails
[02:40:17] ericx2x__: has joined #RubyOnRails
[02:40:21] akshat_: has joined #RubyOnRails
[02:42:23] pawnbox: has joined #RubyOnRails
[02:46:33] cpruitt: has joined #RubyOnRails
[02:49:22] i8igmac: that may have been a typo, need to add \n for one line to print to the client at a time
[02:49:37] i8igmac: response.stream.write "This is a test Messagen\n"
[02:49:59] i8igmac: otherwise you will see the full message after ten seconds
[02:51:10] DmitryBochkarev: has joined #RubyOnRails
[02:51:56] SteenJobs: has joined #RubyOnRails
[02:53:14] gremly: has joined #RubyOnRails
[02:54:06] sandstrom: has joined #RubyOnRails
[02:54:18] chipotle: has joined #RubyOnRails
[03:01:23] Devalo: has joined #RubyOnRails
[03:02:12] sleungcy: has joined #RubyOnRails
[03:03:27] flashpoint9: has joined #RubyOnRails
[03:05:38] blackmesa: has joined #RubyOnRails
[03:05:52] quazimodo: has joined #RubyOnRails
[03:10:00] akshat: has joined #RubyOnRails
[03:10:56] sandstrom: has joined #RubyOnRails
[03:13:14] systemsgotyou: has joined #RubyOnRails
[03:13:35] systemsgotyou: whats to most common ruby on rails stack?
[03:23:01] pawnbox: has joined #RubyOnRails
[03:27:40] sandstrom: has joined #RubyOnRails
[03:30:59] fernandomm: has joined #RubyOnRails
[03:31:03] lessless: has joined #RubyOnRails
[03:32:29] User458764: has joined #RubyOnRails
[03:32:55] ensyde_: has joined #RubyOnRails
[03:38:00] moeabdol: has joined #RubyOnRails
[03:39:53] rafaelfranca: has joined #RubyOnRails
[03:40:13] fedexo: has joined #RubyOnRails
[03:43:23] arup_r: has joined #RubyOnRails
[03:44:18] sandstrom: has joined #RubyOnRails
[03:49:00] aclearman037: has joined #RubyOnRails
[03:49:39] smoitra: has joined #RubyOnRails
[03:50:21] edwinvdgraaf: has joined #RubyOnRails
[03:51:56] njero: has joined #RubyOnRails
[03:52:14] bronson: has joined #RubyOnRails
[03:55:22] baweaver: has joined #RubyOnRails
[03:56:20] htmldrum: has joined #RubyOnRails
[03:59:39] CanTonic: has joined #RubyOnRails
[04:01:00] sandstrom: has joined #RubyOnRails
[04:02:03] sevenseacat: has joined #RubyOnRails
[04:02:40] pawnbox: has joined #RubyOnRails
[04:03:56] sleungcy: has joined #RubyOnRails
[04:07:56] blackmesa: has joined #RubyOnRails
[04:13:53] braincrash: has joined #RubyOnRails
[04:16:46] duncannz: has joined #RubyOnRails
[04:16:53] barajasfab: has joined #RubyOnRails
[04:18:03] sandstrom: has joined #RubyOnRails
[04:21:51] Pazician: has joined #RubyOnRails
[04:23:46] chagel: has joined #RubyOnRails
[04:23:48] tycoon177: has joined #RubyOnRails
[04:33:05] pawnbox: has joined #RubyOnRails
[04:33:36] treaki_: has joined #RubyOnRails
[04:34:44] sandstrom: has joined #RubyOnRails
[04:39:38] quazimodo: systemsgotyou: whatcha mean?
[04:41:16] rafaelfranca: has joined #RubyOnRails
[04:49:29] RegulationD: has joined #RubyOnRails
[04:51:31] sandstrom: has joined #RubyOnRails
[04:53:24] uglybandersnatch: has joined #RubyOnRails
[04:53:46] Rubie: has joined #RubyOnRails
[04:55:33] armyriad: has joined #RubyOnRails
[04:57:58] DoctorMonocular: has joined #RubyOnRails
[05:00:47] tycoon177: has joined #RubyOnRails
[05:02:48] Devalo: has joined #RubyOnRails
[05:02:56] axilaris: has joined #RubyOnRails
[05:03:00] pawnbox: has joined #RubyOnRails
[05:04:42] sleungcy: has joined #RubyOnRails
[05:07:10] axilaris: hi, i got a question, i have user model that has 2 columns associated to Country. nationality and address_country https://gist.github.com/survivaltravel/68e251486598481126f0
[05:07:28] axilaris: how can i have these 2 columns associated to country in the User model ?
[05:07:59] sandstrom: has joined #RubyOnRails
[05:08:17] axilaris: can i put belongs_to for 2 columns to the same Country id ?
[05:08:20] axilaris: and how to do that
[05:10:53] blackmesa: has joined #RubyOnRails
[05:11:13] arup_r: has joined #RubyOnRails
[05:13:42] bronson: has joined #RubyOnRails
[05:21:34] edwinvdgraaf: has joined #RubyOnRails
[05:24:04] Abhijit: has joined #RubyOnRails
[05:24:34] Abhijit: this bundle as non root is causing so much isues. how can i run bundle as non root without changing permission of /var/www/myproj?
[05:24:37] sandstrom: has joined #RubyOnRails
[05:24:48] Abhijit: and when i changed that permising using chown myuser:root it caused ssh error
[05:26:27] moeabdol: has joined #RubyOnRails
[05:28:47] systemsgotyou: like python using gunicorn
[05:28:52] systemsgotyou: what does ruby use
[05:29:00] systemsgotyou: what is a ROR stack like
[05:29:46] barajasfab: has joined #RubyOnRails
[05:30:14] Abhijit: we also have gunicorn ?
[05:30:18] Abhijit: and passenger?
[05:30:22] BinaryMaster: has joined #RubyOnRails
[05:30:35] Abhijit: ok we have unicorn not gunicorn
[05:33:04] pawnbox: has joined #RubyOnRails
[05:33:28] everchange: has joined #RubyOnRails
[05:41:19] sandstrom: has joined #RubyOnRails
[05:47:17] baweaver: has joined #RubyOnRails
[05:51:58] intrigueD: has joined #RubyOnRails
[05:53:29] chagel: has joined #RubyOnRails
[05:53:57] jenrzzz: has joined #RubyOnRails
[05:57:15] htmldrum: has joined #RubyOnRails
[05:58:01] sandstrom: has joined #RubyOnRails
[05:58:23] arup_r: has joined #RubyOnRails
[06:00:10] krz: has joined #RubyOnRails
[06:03:06] intrigueD: has joined #RubyOnRails
[06:05:23] sleungcy: has joined #RubyOnRails
[06:08:30] flashpoint9: has joined #RubyOnRails
[06:08:53] Miron: has joined #RubyOnRails
[06:11:45] User458764: has joined #RubyOnRails
[06:12:01] arup_r: has joined #RubyOnRails
[06:12:59] bePolite: has joined #RubyOnRails
[06:13:14] pawnbox: has joined #RubyOnRails
[06:13:56] blackmesa: has joined #RubyOnRails
[06:14:56] sandstrom: has joined #RubyOnRails
[06:19:52] Macaveli: has joined #RubyOnRails
[06:24:08] arup_r: Hello Macaveli, morning
[06:24:49] SteenJobs: has joined #RubyOnRails
[06:26:54] merida: has joined #RubyOnRails
[06:27:02] armyriad: has joined #RubyOnRails
[06:28:41] stardiviner: has joined #RubyOnRails
[06:31:41] sandstrom: has joined #RubyOnRails
[06:32:22] robbyoconnor: has joined #RubyOnRails
[06:33:00] davee_: has joined #RubyOnRails
[06:35:15] sleungcy: has joined #RubyOnRails
[06:40:31] sp1rs: has joined #RubyOnRails
[06:43:03] pawnbox: has joined #RubyOnRails
[06:48:19] sandstrom: has joined #RubyOnRails
[06:54:23] sp1rs: has joined #RubyOnRails
[06:54:57] akshat: has joined #RubyOnRails
[06:57:53] agoldboi: has joined #RubyOnRails
[07:00:06] stien: has joined #RubyOnRails
[07:01:15] tvw: has joined #RubyOnRails
[07:04:25] Devalo: has joined #RubyOnRails
[07:05:01] sandstrom: has joined #RubyOnRails
[07:09:57] DoctorMonocular: has joined #RubyOnRails
[07:10:00] liquid-silence: has joined #RubyOnRails
[07:10:00] liquid-silence: has joined #RubyOnRails
[07:11:10] axilaris: anyone here has a seed.rb for country and currency ?
[07:14:27] shinnya: has joined #RubyOnRails
[07:16:24] pawnbox: has joined #RubyOnRails
[07:16:58] blackmesa: has joined #RubyOnRails
[07:18:38] clorisu: has joined #RubyOnRails
[07:19:17] defsdoor: has joined #RubyOnRails
[07:21:15] sandstrom: has joined #RubyOnRails
[07:27:38] rafaelfranca: has joined #RubyOnRails
[07:27:40] pwnd_nsfw: axilaris, https://github.com/hexorx/countries
[07:27:41] pwnd_nsfw: there is this
[07:27:50] axilaris: tqvm pwnd_nsfw
[07:29:34] Devalo: has joined #RubyOnRails
[07:32:29] akshat: has joined #RubyOnRails
[07:32:50] scope: has joined #RubyOnRails
[07:37:56] sandstrom: has joined #RubyOnRails
[07:37:58] yxejamir: has joined #RubyOnRails
[07:37:59] yxejamir: has joined #RubyOnRails
[07:38:06] kirillzh: has joined #RubyOnRails
[07:39:20] User458764: has joined #RubyOnRails
[07:45:08] darutoko: has joined #RubyOnRails
[07:45:26] j3r0: has joined #RubyOnRails
[07:50:14] yardenbar: has joined #RubyOnRails
[07:51:40] lxsameer: has joined #RubyOnRails
[07:54:38] sandstrom: has joined #RubyOnRails
[07:55:46] morfin: has joined #RubyOnRails
[07:56:51] morfin: me again - anybody had issues with RoR on FreeBSD - it says can't compile sqlite3 extension because sqlite3.h is missing but i have it i n /usr/local/include where all ports on FreeBSD installed
[07:57:34] morfin: that's very strange - i think it try to search in /usr/include
[07:58:09] moeabdol: has joined #RubyOnRails
[07:58:09] htmldrum: has joined #RubyOnRails
[08:03:41] adac: has joined #RubyOnRails
[08:03:50] armyriad: has joined #RubyOnRails
[08:05:04] rogue_koder: has joined #RubyOnRails
[08:06:04] yxejamir: has joined #RubyOnRails
[08:07:36] morfin: nevermind, i think should ask on FreeBSD channel or ruby channel
[08:08:12] agoldboi: has left #RubyOnRails: ()
[08:10:09] quazimodo: systemsgotyou: it's very complicated, lots of different things
[08:10:16] quazimodo: systemsgotyou: depennds who what where
[08:10:54] quazimodo: most typical is nginx reverse proxy delegating out to passenger/puma/unicorn with postgres & some api access
[08:10:59] sandstrom: has joined #RubyOnRails
[08:11:15] quazimodo: sometimse there's a set of sidekiq worker processes somewhere
[08:11:21] quazimodo: importantly
[08:11:34] quazimodo: can we have a drag & drop file upload area that doesn't actually upload?
[08:12:52] Cervajz_: has joined #RubyOnRails
[08:14:42] sleungcy: has joined #RubyOnRails
[08:15:00] dionysus69: has joined #RubyOnRails
[08:18:07] iuuso_: has joined #RubyOnRails
[08:19:15] DmitryBochkarev: has joined #RubyOnRails
[08:19:58] blackmesa: has joined #RubyOnRails
[08:27:40] sandstrom: has joined #RubyOnRails
[08:28:39] robbyoconnor: has joined #RubyOnRails
[08:29:18] rafaelfranca: has joined #RubyOnRails
[08:29:24] nettoweb: has joined #RubyOnRails
[08:29:31] ur5us: has joined #RubyOnRails
[08:32:00] apotry: has joined #RubyOnRails
[08:36:11] mcr-credil: has joined #RubyOnRails
[08:36:20] bricker1: has joined #RubyOnRails
[08:36:25] darutoko-: has joined #RubyOnRails
[08:36:38] proboszc1: has joined #RubyOnRails
[08:36:59] maxx88_: has joined #RubyOnRails
[08:37:07] ayoros: has joined #RubyOnRails
[08:37:33] kedare1: has joined #RubyOnRails
[08:37:54] exchgr`: has joined #RubyOnRails
[08:38:25] Fire-Dragon-DoL-: has joined #RubyOnRails
[08:38:36] jlyndon_: has joined #RubyOnRails
[08:38:54] waldi_: has joined #RubyOnRails
[08:38:55] toydestroyer: has joined #RubyOnRails
[08:38:55] toydestroyer: has joined #RubyOnRails
[08:39:04] robbyoconnor: has joined #RubyOnRails
[08:40:31] artmann: has joined #RubyOnRails
[08:40:33] krz: has joined #RubyOnRails
[08:40:54] crameth: has joined #RubyOnRails
[08:41:31] red_horned_rihno: has joined #RubyOnRails
[08:44:19] sandstrom: has joined #RubyOnRails
[08:46:31] cac: has joined #RubyOnRails
[08:47:30] davee_: has joined #RubyOnRails
[08:50:59] RegulationD: has joined #RubyOnRails
[08:53:03] DmitryBochkarev: has joined #RubyOnRails
[08:55:13] uglybandersnatch: has joined #RubyOnRails
[08:56:41] DmitryBochkarev: has joined #RubyOnRails
[08:56:54] bachmann: has joined #RubyOnRails
[08:57:10] lessless: has joined #RubyOnRails
[08:57:50] edwinvdgraaf: has joined #RubyOnRails
[09:01:01] sandstrom: has joined #RubyOnRails
[09:01:33] AzaToth: has joined #RubyOnRails
[09:14:19] ziyadb: has joined #RubyOnRails
[09:15:40] sleungcy: has joined #RubyOnRails
[09:17:23] DoubleMalt: has joined #RubyOnRails
[09:17:59] sandstrom: has joined #RubyOnRails
[09:23:00] blackmesa: has joined #RubyOnRails
[09:24:42] intrigueD: has joined #RubyOnRails
[09:30:13] jenrzzz: has joined #RubyOnRails
[09:33:16] roshanavand: has joined #RubyOnRails
[09:33:34] blackhuey: has joined #RubyOnRails
[09:34:37] sandstrom: has joined #RubyOnRails
[09:40:30] krz: has joined #RubyOnRails
[09:44:54] squiercaster: has joined #RubyOnRails
[09:45:34] smoitra: has joined #RubyOnRails
[09:45:57] scope: has joined #RubyOnRails
[09:49:39] akshat: has joined #RubyOnRails
[09:50:06] liquid-silence: has joined #RubyOnRails
[09:50:06] liquid-silence: has joined #RubyOnRails
[09:50:28] n008f4g_: has joined #RubyOnRails
[09:51:20] sandstrom: has joined #RubyOnRails
[09:53:02] pawnbox: has joined #RubyOnRails
[09:54:12] chagel: has joined #RubyOnRails
[09:54:18] uglybandersnatch: has joined #RubyOnRails
[09:54:39] msyvich: has joined #RubyOnRails
[09:55:03] akshat_: has joined #RubyOnRails
[09:59:05] htmldrum: has joined #RubyOnRails
[10:01:52] User458764: has joined #RubyOnRails
[10:02:38] scope: has joined #RubyOnRails
[10:03:05] mdw: has joined #RubyOnRails
[10:05:04] Abhijit: how can i troubleshoot my icheck appearing on dev but not visible in production?
[10:05:09] Abhijit: icheck radio buttons
[10:06:51] Mia: has joined #RubyOnRails
[10:07:26] DmitryBochkarev: has joined #RubyOnRails
[10:07:59] sandstrom: has joined #RubyOnRails
[10:08:10] edwinvdgraaf: has joined #RubyOnRails
[10:12:19] Cork: has joined #RubyOnRails
[10:13:06] m15k: has joined #RubyOnRails
[10:14:57] m15k: potentially noobish question: Any ideas why I get a NoMethodError: https://gist.github.com/asbachb/4f0f021351d8f91d3d26 - When I "rackup" in the working directory everything is working fine...
[10:17:33] sleungcy: has joined #RubyOnRails
[10:18:45] robbyoconnor: has joined #RubyOnRails
[10:18:57] Abhijit: Started GET "/assets/flat/blue.png" works in my dev. but in production it gives error ActionController::RoutingError (No route matches [GET] "/assets/flat/blue.png"):
[10:19:02] Abhijit: why does that happen?
[10:21:05] Abhijit: whats hrm?
[10:21:18] quazimodo: you can't just fetch by it's normal name
[10:21:21] quazimodo: rails makes it into
[10:21:29] quazimodo: /assets/flat/blue-nh09g9o87e97i97eui97eu9i87e9ui87.png
[10:21:56] Abhijit: but rails should do that automatically no?
[10:22:03] quazimodo: you need to user "asset-url(flat/blue.png)" in scss or image_tag("flat/blue.png") in html
[10:22:14] Abhijit: does this config.serve_static_assets = false matter? its fales as of now
[10:22:20] quazimodo: that's different
[10:22:29] quazimodo: that's whether the rails server itself serves assets or not
[10:22:32] quazimodo: in prod, you don't want it to
[10:22:43] Abhijit: i cant use asset-url etc becaues this file is automatically to be fetched by icheck library and apply it. not by me
[10:23:09] quazimodo: it wastes cpu cycles on a rails app server that is slow as hell to serve assets when nginx or apache which is fast as hell can do if for you (which is a very typical production setup)
[10:23:38] quazimodo: then good luck lol
[10:23:53] Abhijit: quazimodo, how do i now make sure rails precompiles this image
[10:23:53] quazimodo: either you need to get your deploy script to create blue.png
[10:24:11] quazimodo: you can somehow modify the file you get
[10:24:23] quazimodo: put blue.png in public
[10:24:27] quazimodo: and make it reference that
[10:24:37] sandstrom: has joined #RubyOnRails
[10:25:12] quazimodo: i'd probably create a deployment step that makes sure to copy the digested asset to a non digested form
[10:25:39] Abhijit: looks complex
[10:26:03] quazimodo: you need to parse manifest.json or manifest.yaml (cant remember which)
[10:26:11] quazimodo: and find the correct file
[10:26:14] quazimodo: then do the things
[10:31:54] mdw: has joined #RubyOnRails
[10:36:00] Pazician: has joined #RubyOnRails
[10:36:31] dgncn: has joined #RubyOnRails
[10:38:58] quazimodo: yeah it can be annoying
[10:39:06] quazimodo: 'the rails way' sometimes is a pita
[10:39:13] quazimodo: othertimes great though: )
[10:41:08] Cervajz: has joined #RubyOnRails
[10:41:12] chagel: has joined #RubyOnRails
[10:41:26] achamian: has joined #RubyOnRails
[10:43:00] sandstrom: has joined #RubyOnRails
[10:44:33] liquid-silence: has joined #RubyOnRails
[10:44:33] liquid-silence: has joined #RubyOnRails
[10:45:56] Pazician: has joined #RubyOnRails
[10:47:46] msyvich: has joined #RubyOnRails
[10:47:54] n008f4g_: has joined #RubyOnRails
[10:51:38] maesitos_: has joined #RubyOnRails
[10:53:08] roshanavand: has joined #RubyOnRails
[10:53:55] Tempesta: has joined #RubyOnRails
[10:56:35] htmldrum: has joined #RubyOnRails
[10:57:19] liquid-silence: anyone here have experience with JWT, I am generating a token, trying to mimic a java lib
[10:57:23] liquid-silence: but its not generating a token
[10:58:38] sher: has joined #RubyOnRails
[10:58:40] Tempesta: has joined #RubyOnRails
[11:08:15] nerium: has joined #RubyOnRails
[11:08:36] Devalo: Hey. I'm struggling with some huge loading-times. What I'm building is a quick image library with the help from carrierwave. I'm saving my photos in a string array(Postgres). On the indexpage I'm specifically linking to the gallery's picture[0].url, and I'm iterating over the arrays content. Everything works as a charm on local, however in production it takes several seconds until the page is loaded. It doesnt suffer from bad lo
[11:08:36] Devalo: adingtimes if the array containing picture urls is empty. I've tried to save the image urls as both json (as suggested in carrierwaves guidelines) and as a pure array, however the outcome is exactly the same. As far as I'm concerned there are nothing in the logs (except high loadtimes). I would really appreciate hints, tips, guidelines or a solution. Gist: https://gist.github.com/Devalo/8c17d7dc92800d3ba828
[11:09:45] liquid-silence: Devalo image sizes?
[11:09:55] liquid-silence: can you view the network tab when the page loads
[11:10:00] liquid-silence: and see whats is the bottle neck
[11:11:01] Devalo: I started out with HUGE images, forgot to make em smaller. I am resizing em to [1500, nil], however Ive photoshopped them down to 300-500kb. Ive also tried a 50kb file - outcome is the same
[11:11:16] liquid-silence: how many images?
[11:11:31] liquid-silence: you should probably use xhr to load them
[11:11:47] liquid-silence: so the page renders first and the item get fetch after the fact
[11:12:05] Pazician: has joined #RubyOnRails
[11:12:46] liquid-silence: Devalo how many items are loaded on the page?
[11:12:53] Devalo: 1, 2, 5, doesnt seem to make a difference. Website url is http://www.connexmalermester.no/prosjekter
[11:13:46] liquid-silence: takes around 3 seconds to load here
[11:13:49] roshanavand: has joined #RubyOnRails
[11:13:54] liquid-silence: and I am in africa with shitty interwebz
[11:14:16] liquid-silence: image however are around 500k
[11:14:34] liquid-silence: and the background image is almost 550k
[11:14:48] liquid-silence: so thats already 1.5mb I need to download to render the page
[11:14:55] Devalo: Backround image isnt the problem. Other pages are loading fine
[11:15:18] liquid-silence: what is the SQL query that executes when loading the page
[11:15:24] liquid-silence: you should check that as well
[11:15:36] liquid-silence: maybe that is the bottle neck, but from my side
[11:15:50] baweaver: has joined #RubyOnRails
[11:15:51] liquid-silence: the images are way larger than they should be
[11:16:06] liquid-silence: background should be > 100k
[11:16:15] liquid-silence: those small images should be > 50k
[11:16:24] liquid-silence: < 50k and background < 100k
[11:16:47] Devalo: So you think that's the issue.? The code looks good? All the logs are in the gist
[11:17:26] liquid-silence: 2016-03-13T11:05:41.801877+00:00 app[web.1]: Project Load (1.0ms) SELECT "projects".* FROM "projects" WHERE "projects"."slug" = $1 ORDER BY "projects"."created_at" DESC LIMIT 1 [["slug", "fdas"]]
[11:17:45] liquid-silence: well can be quicker, do you have index on slug?
[11:18:10] liquid-silence: what is the server specs? database server specs?
[11:18:48] msyvich: has joined #RubyOnRails
[11:19:02] liquid-silence: that query should be < 1ms
[11:19:30] Devalo: Server is heroku hobby, with free db.
[11:20:24] Devalo: Hmm. It seems like I dont have any slug index. However I've tried the same without the friendly_id gem - same outcome
[11:20:51] liquid-silence: lets first get the index in
[11:21:03] liquid-silence: so we can speed up the query, baby steps :)
[11:21:13] liquid-silence: we can eliminate all the components one by one
[11:21:41] Devalo: K, give me a moment, ill index the shit out of it :p
[11:22:16] liquid-silence: Devalo if I dont respond quickly, I am just trying to solve my own crap here
[11:22:22] User458764: has joined #RubyOnRails
[11:22:42] Devalo: Haha thats ok. I have a deadline tonight, so I'll be working on this shit all day.
[11:23:14] liquid-silence: I had one for Friday, still trying to solve this JWT shit
[11:23:53] srinidhi: has joined #RubyOnRails
[11:24:52] moeabdol: has joined #RubyOnRails
[11:30:25] delgiudices: has joined #RubyOnRails
[11:34:53] liquid-silence: Devalo indexing making a difference?
[11:39:56] pawnbox_: has joined #RubyOnRails
[11:43:50] rafaelfranca: has joined #RubyOnRails
[11:44:40] htmldrum: has joined #RubyOnRails
[11:45:21] n008f4g_: has joined #RubyOnRails
[11:48:42] mary5030: has joined #RubyOnRails
[11:55:07] akshat: has joined #RubyOnRails
[11:55:17] red_horned_rihno: has joined #RubyOnRails
[11:56:47] chagel: has joined #RubyOnRails
[11:58:01] user121212: has joined #RubyOnRails
[11:58:36] pawnbox: has joined #RubyOnRails
[12:01:19] user121212: Hey, I'm looking to build a personalised recommendation app, Is there any gem that help to build the prototype quickly with self learning system?
[12:01:44] Devalo: has joined #RubyOnRails
[12:02:17] Palsson: has joined #RubyOnRails
[12:05:38] sonOfRa: has joined #RubyOnRails
[12:06:00] Cervajz: has joined #RubyOnRails
[12:07:16] clorisu: has joined #RubyOnRails
[12:08:09] Cervajz_: has joined #RubyOnRails
[12:08:50] smoitra: has joined #RubyOnRails
[12:09:19] maesitos: has joined #RubyOnRails
[12:09:39] moeabdol1: has joined #RubyOnRails
[12:15:56] sonOfRa: has joined #RubyOnRails
[12:16:08] y2mq37: has joined #RubyOnRails
[12:19:28] mdw: has joined #RubyOnRails
[12:28:08] tom_lowndes: has joined #RubyOnRails
[12:30:29] Cervajz: has joined #RubyOnRails
[12:30:30] tom_lowndes: has joined #RubyOnRails
[12:30:45] tom_lowndes: has left #RubyOnRails: ()
[12:32:16] Cervajz_: has joined #RubyOnRails
[12:34:01] jenrzzz: has joined #RubyOnRails
[12:34:23] vedu: Hello. How can I use the test/helpers feature? I want to put in common setup here but my tests are not picking it up
[12:35:56] maesitos: can anybody help me with capistrano? I think I'm having problems with manifest.yml I don't know if I should remove manifest.yml
[12:38:24] tom_lowndes: has joined #RubyOnRails
[12:39:36] tomlowndes: has joined #RubyOnRails
[12:39:53] tomlowndes: has left #RubyOnRails: ()
[12:45:10] rafaelfranca: has joined #RubyOnRails
[12:50:29] axilaris: has joined #RubyOnRails
[12:51:40] IrishGringo: has joined #RubyOnRails
[12:52:05] adac: has joined #RubyOnRails
[12:52:12] axilaris: hi... im trying to do something like this Property.first.units.visitors
[12:52:19] axilaris: Unit has_many visitors
[12:52:28] Aherin: has joined #RubyOnRails
[12:52:29] RegulationD: has joined #RubyOnRails
[12:52:35] axilaris: but that failed Property.first.units.visitors
[12:52:58] axilaris: how can i do all the many units with all its visitors
[12:53:52] DoubleMalt: has joined #RubyOnRails
[12:54:49] axilaris: how can i do like Unit.all.visitors
[12:54:54] roshanavand: has joined #RubyOnRails
[12:55:02] liquid-silence: Property.first.units.map(&:visitors)?
[12:56:01] FooMunki: has joined #RubyOnRails
[12:56:39] axilaris: liquid-silence: thanks i think so...let me check the result
[13:01:26] bronson: has joined #RubyOnRails
[13:02:48] gaf_: has joined #RubyOnRails
[13:04:15] srinidhi: has joined #RubyOnRails
[13:05:58] nerium: has joined #RubyOnRails
[13:08:33] User458764: has joined #RubyOnRails
[13:08:58] axilaris: thanks liquid-silence. it works
[13:09:24] SeanLazer: has joined #RubyOnRails
[13:10:19] krz: has joined #RubyOnRails
[13:10:44] axilaris: one more thing if you dont mind
[13:11:01] axilaris: Property.first.units.map(&:visitors).where(:isApproved => false)
[13:11:20] liquid-silence: haha thats not going to work
[13:11:24] axilaris: how can extend the query to check if visitor column is approved
[13:11:27] liquid-silence: add a scope to the visitors model
[13:11:29] axilaris: yeah it doesnt work
[13:11:56] liquid-silence: then do Propery.first.units.map(&:active_visitors)
[13:12:09] liquid-silence: maybe add the scope to the units model
[13:12:12] Pazician: has joined #RubyOnRails
[13:12:26] axilaris: let me try thanks
[13:15:36] liquid-silence: something like scope :active_visitors, -> (unit) do self.visitiors.where(:isApproved => false }
[13:15:41] liquid-silence: something like that
[13:16:53] baweaver: has joined #RubyOnRails
[13:17:21] agit0: has joined #RubyOnRails
[13:17:24] ericx2x__: has joined #RubyOnRails
[13:17:51] axilaris: ok..i did this scope :not_approved, -> { where(:isApproved => false) }
[13:18:08] axilaris: but it didnt work Propery.first.units.map(&:active_visitors).not_approved
[13:19:35] axilaris: liquid-silence: i do this is unit model not visitor
[13:20:00] sleungcy: has joined #RubyOnRails
[13:20:15] roshanavand: has joined #RubyOnRails
[13:21:36] ql6wlld: has joined #RubyOnRails
[13:21:46] Rinalds: has joined #RubyOnRails
[13:22:08] crameth_: has joined #RubyOnRails
[13:23:34] axilaris: how do i call it ?
[13:23:35] axilaris: https://gist.github.com/anonymous/fe5086f64f721a1ee880
[13:23:47] axilaris: is this how i write the scope in Unit ?
[13:24:53] liquid-silence: you could also do
[13:25:13] axilaris: im just reading off scope http://api.rubyonrails.org/classes/ActiveRecord/Scoping/Named/ClassMethods.html
[13:25:22] axilaris: wondering if i should do in Visitor model
[13:25:57] liquid-silence: sorry just trying to solve something here
[13:28:08] axilaris: np... i created scope in Visitor like this https://gist.github.com/anonymous/19f39243392c060f8879
[13:28:13] axilaris: wonder how to call it
[13:28:18] reaVer: has joined #RubyOnRails
[13:29:31] Ropeney: has joined #RubyOnRails
[13:30:11] Devalo: has joined #RubyOnRails
[13:30:19] liquid-silence: has_many :approved_visitors, -> ( where(isApproved => true) in your units model
[13:30:31] liquid-silence: syntax might be broken
[13:30:51] lxsameer: has joined #RubyOnRails
[13:33:30] axilaris: ok dont understand that... should Visitor be specified somewhere ?
[13:34:37] axilaris: like this ? has_many :approved_visitors, -> ( self.visitors.where(:isApproved => true)
[13:35:24] jenrzzz: has joined #RubyOnRails
[13:37:34] sandstrom: has joined #RubyOnRails
[13:38:08] qejk: has joined #RubyOnRails
[13:38:22] snowy: has joined #RubyOnRails
[13:41:06] liquid-silence: @axilaris sorry I cannot spend much time on this
[13:41:10] arup_r: has joined #RubyOnRails
[13:41:22] axilaris: ok... i have no idea how to solve this... just trying hard
[13:42:34] axilaris: hmm maybe i should restart the console
[13:45:03] axilaris: syntax error, unexpected tSTRING_DEND, expecting ')'
[13:46:50] rafaelfranca: has joined #RubyOnRails
[13:48:21] DmitryBochkarev: has joined #RubyOnRails
[13:49:12] roshanavand: has joined #RubyOnRails
[13:50:25] axilaris: scope :active_visitors, -> (unit) do {self.visitors.where(:isApproved => false )}
[13:50:37] axilaris: it says -- syntax error, unexpected '}', expecting =>
[13:50:49] blackmesa: has joined #RubyOnRails
[13:52:25] maesitos: has joined #RubyOnRails
[13:53:57] arup_r: axilaris: remove `do`
[13:54:08] arup_r: you already have block there
[13:54:10] axilaris: ok thanks arup
[13:54:17] sandstrom: has joined #RubyOnRails
[13:57:30] axilaris: arup_r: how can i call this scope by the way ? https://gist.github.com/anonymous/81265ef7b83ebf3ae788
[13:59:31] arup_r: ok, first why you are passing `unit` as argument, do you need it? if not, then `scope :active_visitors, -> { visitors.where(isApproved: false ) }` will work
[13:59:51] arup_r: now call Unit. active_visitors
[14:00:02] arup_r: now call Unit.active_visitors
[14:01:23] chipotle: has joined #RubyOnRails
[14:02:27] axilaris: NameError: undefined local variable or method `visitors' for #<Class:0x007f93934e86e8>
[14:02:42] axilaris: maybe need self.visitors.where(isApproved: false )
[14:02:46] axilaris: let me try that
[14:02:50] IrishGringo: has joined #RubyOnRails
[14:03:31] axilaris: irb(main):023:0> Unit.active_visitors
[14:03:31] arup_r: ok.. got it. wait
[14:03:31] axilaris: NoMethodError: undefined method `visitors' for Unit (call 'Unit.connection' to establish a connection):Class
[14:03:51] arup_r: I got now why you passed the unit as a argument
[14:04:27] liquid-silence: scope active_visitors should be in the unit model
[14:04:40] liquid-silence: so you can do self.visions.where(...)
[14:05:09] axilaris: https://gist.github.com/anonymous/42c047066492cdf5b244
[14:05:14] axilaris: its in the Unit model
[14:05:27] axilaris: not sure if its correct or how i should call it
[14:06:26] arup_r: In which model you have `isApproved` field ?
[14:06:43] axilaris: isApproved is a column in Visitor model
[14:08:15] arup_r: don't use scope, do has_many :active_visitors, -> { visitors.where(:isApproved => false ) }, class_name: "Visitor"
[14:08:31] liquid-silence: yeah I suggested that earlier
[14:09:36] liquid-silence: man why can't I just have active record issues
[14:09:41] liquid-silence: and not JWT issues
[14:10:18] arup_r: axilaris: one tip, we name like `is_approved` .. :) that is what Ruby community follows..
[14:10:37] arup_r: that will not stop you, but saying
[14:10:43] axilaris: ok thanks for the tip
[14:10:44] arup_r: yeah snake case :)
[14:10:54] sandstrom: has joined #RubyOnRails
[14:10:58] liquid-silence: @arup_r have you worked with jet-ruby before?
[14:11:11] liquid-silence: stupid autocorrect
[14:11:14] arup_r: first time heard of it.. liquid-silence
[14:11:19] GreatDanton: has joined #RubyOnRails
[14:11:36] arup_r: axilaris: where are you?
[14:12:03] axilaris: arup_r: i still cant get it to execute Unit.all.map(&:active_visitors)
[14:12:23] axilaris: u mean code or location ?
[14:13:03] axilaris: undefined local variable or method `visitors' for #<Visitor::ActiveRecord_Relation:0x007f9396ce05a0>
[14:13:20] axilaris: has_many :active_visitors, -> { visitors.where(:isApproved => false ) }, class_name: "Visitor"
[14:13:29] axilaris: maybe i should use self.visitors.where
[14:13:31] arup_r: there you go
[14:13:38] arup_r: has_many :active_visitors, -> { where(:isApproved => false ) }, class_name: "Visitor"
[14:13:42] mdw: has joined #RubyOnRails
[14:13:58] vedu: Hello. I want to make an admin dashboard (think activeAdmin, RailsAdmin) front-end for my rails api. I will host it on another server probably a node.js server. anyone done something similar before?
[14:14:01] snowy: has joined #RubyOnRails
[14:14:08] arup_r: I gave you buggy code.. now it is ok..
[14:14:29] arup_r: vedu: don't use either
[14:14:30] axilaris: something finally came up
[14:14:46] axilaris: let me try the full query
[14:15:24] arup_r: axilaris: but that .map making noise.. What is your requirement in brief
[14:16:24] axilaris: yup i think this is it...
[14:16:25] arup_r: vedu: either of these gems will make your mad, when you will have some customizations.. I have WORST experience.. roll your own dude.
[14:16:43] axilaris: well... i'ved got these units tied to property
[14:16:59] vedu: arup_r: yeah that's what asked. I want to roll my own as a separate front-end server
[14:17:01] axilaris: each unit has_many visitors
[14:17:22] arup_r: axilaris: I know .map will work. but you can bring the same result using SQL only. I think
[14:17:28] axilaris: one way maybe to simplify it is to have property_id in the visitors
[14:17:48] arup_r: vedu: then fine..
[14:18:01] arup_r: vedu: use React :)
[14:18:18] arup_r: for rails view..
[14:18:36] arup_r: where you need real time page update..
[14:18:53] arup_r: but, I am beginner .. so don;t ask me how.. learning it.
[14:19:16] vedu: yeah, react or ember or angular
[14:19:44] arup_r: vedu: but why you think for node.js .. you have 1 strong backend Rails, so why another .. just asking
[14:20:11] arup_r: you need frontend framewrok.. like Ember/React. React is much better for rails..
[14:20:30] chagel: has joined #RubyOnRails
[14:20:34] tomorrow: has joined #RubyOnRails
[14:20:37] vedu: I have an api only rails app and want to keep it that way
[14:20:37] sleungcy: has joined #RubyOnRails
[14:21:11] arup_r: ok, then Ember.. is good.. but ofcourse it is your choice.. no idea why another backend you need
[14:21:27] arup_r: use those API, in Ember, and earn $$$$$ :p
[14:27:13] User458764: has joined #RubyOnRails
[14:27:19] liquid-silence: you can use actioncable or sync
[14:27:25] liquid-silence: to do realtime page updates
[14:35:48] jenrzzz: has joined #RubyOnRails
[14:37:43] Pazician: has joined #RubyOnRails
[14:38:38] Surt_Q: has joined #RubyOnRails
[14:40:10] bricker: has joined #RubyOnRails
[14:46:41] liquid-silence: @arup_r your love sync
[14:47:38] arup_r: as much as you do :)
[14:48:35] rafaelfranca: has joined #RubyOnRails
[14:51:23] adavia: has joined #RubyOnRails
[14:51:24] krz: has joined #RubyOnRails
[14:53:45] RegulationD: has joined #RubyOnRails
[14:55:33] htmldrum: has joined #RubyOnRails
[14:58:26] uglybandersnatch: has joined #RubyOnRails
[14:59:33] msyvich: has joined #RubyOnRails
[15:00:27] roshanavand: has joined #RubyOnRails
[15:07:08] reaVer: has joined #RubyOnRails
[15:08:28] Timberwo|f: has joined #RubyOnRails
[15:13:26] netzfisch: has joined #RubyOnRails
[15:15:22] snowy: has joined #RubyOnRails
[15:17:45] pawnbox: has joined #RubyOnRails
[15:21:20] sleungcy: has joined #RubyOnRails
[15:22:16] arup_r: has joined #RubyOnRails
[15:24:07] krz: has joined #RubyOnRails
[15:26:31] tomatoes: has joined #RubyOnRails
[15:27:25] rooose: has joined #RubyOnRails
[15:27:30] rogue_koder: has joined #RubyOnRails
[15:31:36] liquid-silence: has joined #RubyOnRails
[15:31:36] liquid-silence: has joined #RubyOnRails
[15:33:41] Rubie: has joined #RubyOnRails
[15:33:43] bricker: has joined #RubyOnRails
[15:34:53] hahuang65: has joined #RubyOnRails
[15:40:15] krz: has joined #RubyOnRails
[15:41:28] adac: has joined #RubyOnRails
[15:42:41] Pazician: has joined #RubyOnRails
[15:46:12] pawnbox: has joined #RubyOnRails
[15:47:36] chipotle: has joined #RubyOnRails
[15:49:58] rafaelfranca: has joined #RubyOnRails
[15:53:40] DiCablo: has joined #RubyOnRails
[15:53:47] rafaelfranca: has joined #RubyOnRails
[15:57:02] nettoweb: has joined #RubyOnRails
[16:00:04] pawnbox: has joined #RubyOnRails
[16:00:31] blackmesa: has joined #RubyOnRails
[16:04:15] liquid-silence: has joined #RubyOnRails
[16:04:15] liquid-silence: has joined #RubyOnRails
[16:04:23] arup_r: has joined #RubyOnRails
[16:05:16] gbgdev: has joined #RubyOnRails
[16:11:42] rogue_koder: has joined #RubyOnRails
[16:14:25] sp1rs: has joined #RubyOnRails
[16:15:02] liquid-silence: has joined #RubyOnRails
[16:15:02] liquid-silence: has joined #RubyOnRails
[16:18:28] drptbl: has joined #RubyOnRails
[16:20:40] drptbl: has joined #RubyOnRails
[16:22:14] sleungcy: has joined #RubyOnRails
[16:23:55] moeabdol: has joined #RubyOnRails
[16:24:41] User458764: has joined #RubyOnRails
[16:35:41] fedexo: has joined #RubyOnRails
[16:36:10] thecyclone: has joined #RubyOnRails
[16:36:15] aclearman037: has joined #RubyOnRails
[16:37:28] Rubie: has joined #RubyOnRails
[16:37:49] Rodya_: has joined #RubyOnRails
[16:37:50] jenrzzz: has joined #RubyOnRails
[16:39:16] AntiSpamMeta: has joined #RubyOnRails
[16:43:15] Zhade7: has joined #RubyOnRails
[16:43:54] skarn: has left #RubyOnRails: ("Leaving")
[16:49:06] drptbl: has joined #RubyOnRails
[16:49:13] sp1rs: has joined #RubyOnRails
[16:51:12] d0nn1e: has joined #RubyOnRails
[17:01:44] adac: has joined #RubyOnRails
[17:02:37] Pazician: has joined #RubyOnRails
[17:02:47] nettoweb: has joined #RubyOnRails
[17:03:50] bronson: has joined #RubyOnRails
[17:04:32] scope: has joined #RubyOnRails
[17:06:31] arup_r: has joined #RubyOnRails
[17:07:05] msyvich: has joined #RubyOnRails
[17:10:34] bronson: has joined #RubyOnRails
[17:12:40] srinidhi: has joined #RubyOnRails
[17:13:17] yardenbar: has joined #RubyOnRails
[17:14:26] arup_r: has joined #RubyOnRails
[17:14:29] chipotle: has joined #RubyOnRails
[17:17:26] red_horned_rihno: has joined #RubyOnRails
[17:17:54] Rodya_: has joined #RubyOnRails
[17:19:04] cabinB_: has joined #RubyOnRails
[17:19:30] baweaver: has joined #RubyOnRails
[17:20:43] crst: has joined #RubyOnRails
[17:22:08] crst: Hi can I control the installation of one specific gem with .gemrc? So that I must not always type `gem install libv8 -- --with-system-v8`
[17:22:58] sleungcy: has joined #RubyOnRails
[17:27:47] cabinB_: I have a resource ("car"), the edit form needs to generate a group of dynamic fields for each event.
[17:27:47] cabinB_: For example, to log an oil change, user clicks "add", and a *grouping* of fields will be dynamically generated: start date, end date, description, category, etc.
[17:27:54] cabinB_: So for each car there may be many events to track servicing, washes, tire rotations, test drives, etc. You get the idea. Each added event dynamically generates a grouping of fields.
[17:27:54] cabinB_: Should I use nested forms for this challenge? I've never used before, but if this is the most sensible way, I'll jump on it.
[17:30:23] arup_r: cabinB_: what is the association between the Car model and other one?
[17:31:09] intrigueD: has joined #RubyOnRails
[17:31:26] cabinB_: car has_many events, events belongs_to car
[17:31:48] cabinB_: (haven't actually created events model yet, but that's what it'll be)
[17:32:46] arup_r: ok, nested form makes sense.. cabinB_
[17:33:05] cabinB_: arup_r you're always here helping out. thanks a ton.
[17:33:07] arup_r: cabinB_: use nicname to get prompt answer ( pro-tip )
[17:33:11] intrigueD: hi arup_r! :D
[17:33:18] arup_r: yeah.. like that ^^
[17:33:27] arup_r: intrigueD: o/
[17:33:32] tildes: has joined #RubyOnRails
[17:33:36] cabinB_: (I wanted to confirm nested forms could handle groupings of dynamic fields. so the answer seems to be "yes")
[17:34:06] arup_r: cabinB_: yes, fields_for will help you on it
[17:34:09] arup_r: go for it
[17:34:15] cabinB_: arup_r is this right? not sure how to use nickname
[17:34:45] arup_r: your event model has dymanic fields ?
[17:35:17] arup_r: well, then again question to you..
[17:35:26] arup_r: those dynamic fields will be saved to where?
[17:35:33] arup_r: in which model?
[17:36:32] cabinB_: good question. they would have to be stored into events model, since there can be > 1 event per car
[17:37:30] arup_r: cool.. then fields are not dynamic... they are static.. the number events to each car is dynamic
[17:37:39] arup_r: number of**
[17:37:56] arup_r: Are we on same page cabinB_ ?
[17:38:15] cabinB_: arup_r yes you're right, that describes it better. on the web form there are dynamic fields, but each event is stored as record.
[17:38:36] cabinB_: arup_r they just "look" dynamic in a browser. does that make sense?
[17:39:28] arup_r: yes. as long as same set of fields weill be present all the time..
[17:39:41] barajasfab: has joined #RubyOnRails
[17:39:50] arup_r: Event model attrtibutes attr1, attr2
[17:40:07] arup_r: now, in the car page you have car fields and a button like "Add event"
[17:40:33] arup_r: now if I click on the button, a fields group will be displayed and it will show attr1 and attr2
[17:40:46] cabinB_: arup_r that's exactly it.
[17:40:54] arup_r: again I clicked on the button.. I will see the same set of fields
[17:41:05] arup_r: well.. still nested form makes sense
[17:41:20] arup_r: I got you.. go for it
[17:41:35] cabinB_: arup_r well that's great. I'll be spending time today learning nested form. thanks again to you!
[17:41:35] arup_r: you need to use accept_nested_attributes_for though
[17:41:47] arup_r: check the documentation, it is pretty simple
[17:42:14] arup_r: cabinB_: Rails guide has an exclusive example step by step ... read that
[17:42:20] arup_r: I learned it from there
[17:42:27] arup_r: cabinB_: good luck! :)
[17:42:38] cabinB_: thanks arup_r :-)
[17:50:44] DiCablo: has joined #RubyOnRails
[17:52:40] chouhoulis: has joined #RubyOnRails
[17:54:17] mwlang: has joined #RubyOnRails
[17:54:53] joesavage: has joined #RubyOnRails
[17:59:46] joesavage: If I have a number N associated with each instance of Model A, and I want to store N pieces of data about each instance of Model A for each instance of Model B, what's the Rails-y way to go about doing that?
[18:01:15] arup_r: joesavage: A has_many B
[18:03:16] joesavage: A has_many B would give me an association between any particular A and a bunch of Bs, but then should I go about storing those N pieces of data for each instance of B that A is associated with?
[18:03:23] joesavage: how should**
[18:04:19] crst: has joined #RubyOnRails
[18:04:22] arBmind1: has joined #RubyOnRails
[18:04:48] arup_r: you will create a B model and its correspoding table using migration.. and save data in B
[18:05:12] arup_r: joesavage: http://guides.rubyonrails.org/association_basics.html#the-has-many-association
[18:05:17] User458764: has joined #RubyOnRails
[18:06:48] joesavage: I could do that I guess, but it doesn't really reflect what I'm looking for here.
[18:07:34] joesavage: Model A fundamentally shouldn't have many Bs. There is a set number of Bs, the content of which is unrelated to As. There is a set number of As, the content of which is unrelated to Bs /apart from/ there should be a tiny bit of data that each A has relating to each B.
[18:08:56] arup_r: joesavage: can you tell us what those A and B represents in real world, that might help to think more relalistic
[18:09:16] AntiSpamMeta: has joined #RubyOnRails
[18:09:23] joesavage: Sure, I agree - talking in these abstractions is unproductive haha
[18:09:45] aclearman037: has joined #RubyOnRails
[18:10:54] qejk: has joined #RubyOnRails
[18:11:16] joesavage: So - more or less - Model A is 'User', and Model B is 'Post'. Post has a 'number of questions' field, and I want to keep track of how many questions each user has completed on each post.
[18:13:06] Devalo: has joined #RubyOnRails
[18:13:29] kirillzh: has joined #RubyOnRails
[18:15:45] aclearma_: has joined #RubyOnRails
[18:16:29] arup_r: joesavage: ok.. why not make a Question model?
[18:16:40] arup_r: Post has many Questions
[18:16:54] cpruitt: has joined #RubyOnRails
[18:17:10] arup_r: And a relationship between user and post. and then you are done
[18:17:43] arup_r: let me know if you have any confusions..
[18:17:44] joesavage: I could do that - I don't have it set up that way at the moment, but it wouldn't be a huge problem. How could I go from those relationships to storing which questions each user has completed though?
[18:19:19] Spami: has joined #RubyOnRails
[18:19:21] joesavage: Question has_many Users maybe? Seems a little weird but I think that could work
[18:19:22] mdw: has joined #RubyOnRails
[18:19:29] arup_r: so, with each post, you will list questions also.. and only answered questions will have post id
[18:19:55] arup_r: basically question and post will have many to many, not has_many
[18:20:04] arup_r: and with nested form you can do it
[18:20:45] arup_r: User has_many Posts, Post and questions having N:N
[18:20:48] Megamos: has joined #RubyOnRails
[18:21:20] joesavage: Perhaps I've communicated my problem poorly - I want Posts to be related to Questions no matter what's going on with users. User's don't own Posts, they answer questions in (a centralised store of) Posts.
[18:21:24] arup_r: User and Question can't be associated directly,.. because without Post, question doesn't exist as per your usecase as I understood
[18:21:49] joesavage: You're right in saying that questions don't exist without posts
[18:22:18] joesavage: But User has_many Posts doesn't feel right to me
[18:22:59] arup_r: see, you can access the questions a user attempted always like user has_many questions, through: :posts
[18:23:14] arup_r: so, that looks more like Rails way to me..
[18:23:43] joesavage: I haven't used 'through' before, that's sounding more appealing though.
[18:23:43] arup_r: but you know better your usecase than me.. but that's what I would do as per my understanding,, :D
[18:23:45] thebastl: has joined #RubyOnRails
[18:23:57] arup_r: joesavage: that's ok.. don;t need it..
[18:24:12] arup_r: you first set up the associations between post and questions
[18:24:22] arup_r: and user and post
[18:25:03] arup_r: evenif you don't want, you must have a relation between user and post as a good design. nothing wrong to store the user_id in post.
[18:25:36] arup_r: Any chance, the same posts questions can be answered by others users too?
[18:25:57] arup_r: same posts and same questions to those posts.. I meant
[18:26:09] joesavage: Yeah, questions can be answered by many users
[18:26:19] arup_r: if so, then relationship has to be changed again..
[18:26:42] arup_r: is your post like a Survey?
[18:26:57] joesavage: It has similar characteristics to a survey I suppose, yeah
[18:27:02] droptone: Question: I'm attempting to allow an update user password / email from a form, site uses Devise for auth and is on Rails 4.2.x.
[18:27:10] arup_r: hmm.. you could then say me that first,,, hehe
[18:27:27] arup_r: droptone: that's a statement.. :)
[18:27:31] droptone: The forms are JS-based and cant' interact directly with Devise, so I'm attempting to pass the params to a controller
[18:27:51] droptone: But I can't figure out the controller logic, nor find an example online of doing such.
[18:28:03] joesavage: arup_r: Haha, apologies - it's always difficult when you spend so much time with the system that it seems 'obvious' that things relate in the ways that they do.
[18:28:15] droptone: Does anyone have an example of someone accepting current password, new password, new password conf, etc. from a form, then passing them to a controller for processing by Devise?
[18:28:15] arup_r: understood
[18:28:50] hello9: has joined #RubyOnRails
[18:29:31] arup_r: joesavage: User and Survey is N:N, Survey and Question is N:N
[18:29:56] arup_r: or may be Survey and Question is 1:N
[18:30:03] arup_r: that's upto your usecase..
[18:30:07] droptone: For example, when I pass "current_password" and simply do a check to see if current_password from form matches current_password on file, then update password, and even that isn't working, as devise normally uses these integrated methods for such.
[18:30:19] hello9: hey all, is there a way to render a rails partial from coffeescript? this is what i try in a js.erb file, and it works. https://gist.github.com/anonymous/d8956fb037b3144dc751
[18:30:26] joesavage: arup_r: Ok, I think that'll work. Thanks!
[18:30:31] hello9: but not coffee
[18:30:34] arup_r: if your each survey has always uniq questions, then 1:N is needed.. otherwise N:N
[18:31:23] JonasOSDever_: has left #RubyOnRails: ()
[18:32:14] JonasOSDever: has joined #RubyOnRails
[18:32:26] B4daBing73: has joined #RubyOnRails
[18:32:51] arup_r: hello9: show the coffee code too
[18:34:11] hello9: its the same
[18:34:19] DoctorMonocular: has joined #RubyOnRails
[18:34:41] hello9: i also tried with escape_javascript but didn't help
[18:35:21] arup_r: hello9: did you see any error? or just not working?
[18:35:29] cryo28: has joined #RubyOnRails
[18:35:34] arup_r: what is the coffeescript file name?
[18:35:35] chipotle: has joined #RubyOnRails
[18:35:37] Devalo: has joined #RubyOnRails
[18:35:52] hello9: ive tried, posts.js.coffee, posts.js.coffee.erb, posts.coffee.erb
[18:36:01] hello9: when i use erb it throws an error
[18:36:07] hello9: otherwise it renders the ruby code as a string
[18:36:10] hello9: instead of the partial
[18:36:23] arup_r: this is correct posts.coffee.erb
[18:36:30] arup_r: all other is wrong, btw
[18:37:26] arup_r: you need to write $('#postsTable').html("<%= j render('posts_table') %>")
[18:37:45] shanemcd: has joined #RubyOnRails
[18:37:53] arup_r: j is an alias of escape_javascript
[18:37:58] arup_r: That is must
[18:38:20] hello9: undefined method `render' for #<#<Class:0xaa952770>:0xacb86878>
[18:38:27] arup_r: but it shouldn't work when you have posts.js.erb, because you didn't escape it there
[18:38:52] shanemcd: has left #RubyOnRails: ()
[18:39:24] acandael: has joined #RubyOnRails
[18:39:36] jenrzzz: has joined #RubyOnRails
[18:39:40] hello9: i hate coffee
[18:39:44] arup_r: what is your file extension now? Add the full error stack please
[18:39:45] hello9: script that is
[18:39:51] hello9: coffee.erb
[18:40:29] RegulationD: has joined #RubyOnRails
[18:40:48] hello9: arup_r, https://gist.github.com/anonymous/06c2c46140109fc1b08d
[18:41:30] hello9: might have found the problem
[18:41:36] arup_r: you have in app/assets file? app/assets/javascripts/posts.coffee.erb:6:in `_evaluate_template'
[18:41:53] arup_r: i thought it is under app/views
[18:42:06] arup_r: and there your .js.erb code was working?
[18:42:13] hello9: js.erb was in views ;/
[18:42:21] hello9: it needs to go in views?
[18:42:30] hello9: im using it to handle a click event
[18:42:40] hello9: so i guess i will just go back to what i was doing before
[18:42:48] hello9: using a pointless server call to render the partial
[18:42:51] dionysus69: has joined #RubyOnRails
[18:42:56] baweaver: has joined #RubyOnRails
[18:42:57] hello9: it just seemed so wasteful
[18:43:37] hello9: a controller action with no lines, just renders a template
[18:43:41] hello9: rails ... smh
[18:43:51] hello9: well thanks a bunch ;)
[18:44:04] workmad3: has joined #RubyOnRails
[18:46:41] Puffball: has joined #RubyOnRails
[18:50:40] rubyonrails962: has joined #RubyOnRails
[18:53:25] achamian: has joined #RubyOnRails
[18:56:40] Spami: has joined #RubyOnRails
[18:57:06] Bushizu: has joined #RubyOnRails
[19:00:14] uglybandersnatch: has joined #RubyOnRails
[19:02:32] blackmesa: has joined #RubyOnRails
[19:03:12] maxx88: has joined #RubyOnRails
[19:04:28] mdw7: has joined #RubyOnRails
[19:05:24] mdw7_: has joined #RubyOnRails
[19:05:53] rubyonrails064: has joined #RubyOnRails
[19:06:00] Rodya_: has joined #RubyOnRails
[19:06:07] ner0x: has joined #RubyOnRails
[19:07:52] n008f4g_: has joined #RubyOnRails
[19:08:14] Pazician: has joined #RubyOnRails
[19:10:12] PacoJM: has joined #RubyOnRails
[19:10:23] cac: has joined #RubyOnRails
[19:10:24] dgncn: has joined #RubyOnRails
[19:12:31] sp1rs: has joined #RubyOnRails
[19:13:26] chipotle: has joined #RubyOnRails
[19:14:39] jenrzzz: has joined #RubyOnRails
[19:16:53] Rubie: has joined #RubyOnRails
[19:23:27] droptone: Does anyone have any idea why I'm getting an "uninitialized constant" error on this route despite it being configured like my other working routes?
[19:23:30] droptone: https://gist.github.com/anonymous/4be692e6a001d1f46309
[19:23:50] droptone: I see absolutely nothing wrong, I've cycled httpd multiple times, and yet I continue to get this.
[19:23:59] droptone: When I access the URL via my JS form
[19:24:29] sleungcy: has joined #RubyOnRails
[19:26:58] adac: has joined #RubyOnRails
[19:27:56] lxsameer: has joined #RubyOnRails
[19:28:05] droptone: Never mind.
[19:36:44] dionysus69: has joined #RubyOnRails
[19:42:44] pwnd_nsfw: droptone, lol
[19:45:12] YouManCJ: has joined #RubyOnRails
[19:47:26] YouManCJ: has left #RubyOnRails: ()
[19:47:43] YourManCJ: has joined #RubyOnRails
[19:49:33] Rodya_: has joined #RubyOnRails
[19:49:55] droptone: Yes, my dumb ass misspelled "controller" in the controller filename.
[19:50:01] droptone: Hence Rails' inability to locate the controller.
[19:53:11] YourManCJ: hey, anyone have experience using fullcalender with google calenders?
[19:54:13] achamian: has joined #RubyOnRails
[19:54:19] Rubie: has joined #RubyOnRails
[19:54:25] djbkd: has joined #RubyOnRails
[19:55:26] ziyadb: has joined #RubyOnRails
[19:58:55] arup_r: YourManCJ: just ask :)
[20:00:22] YourManCJ: sorry, think I figured it out but tips are good. I am making a app that has a calender with events. trying to decided between using google calender or writing rails stuff to pull from database and convert to json to pass to fullcalender
[20:01:03] pokEarl: has joined #RubyOnRails
[20:02:19] YourManCJ: any ideas? not really sure where to start
[20:03:19] arup_r: later one I used and using in another project... didn't face any major trouble
[20:04:44] YourManCJ: alright, think that is what I am going with. how did you do it?
[20:05:03] arup_r: rendering JSON.. Ajax etc
[20:05:26] arup_r: You need to read their API very carefully :)
[20:06:11] YourManCJ: yeah, I have been working through it. Seems straight forward
[20:09:30] pawnbox: has joined #RubyOnRails
[20:12:00] rails_noob: has joined #RubyOnRails
[20:13:52] Pazician: has joined #RubyOnRails
[20:13:55] srinidhi1: has joined #RubyOnRails
[20:14:55] pawnbox: has joined #RubyOnRails
[20:14:57] TvL2386: has joined #RubyOnRails
[20:15:59] blackmesa: has joined #RubyOnRails
[20:17:13] Sylario: has joined #RubyOnRails
[20:19:36] eyeamaye: has joined #RubyOnRails
[20:22:10] mdw: has joined #RubyOnRails
[20:22:58] YourManCJ: hey how can I link to a view in javascript?
[20:25:19] sleungcy: has joined #RubyOnRails
[20:34:24] snowy: has joined #RubyOnRails
[20:40:28] davee_: has joined #RubyOnRails
[20:41:18] RegulationD: has joined #RubyOnRails
[20:42:56] rooose: has joined #RubyOnRails
[20:44:13] superlou: has joined #RubyOnRails
[20:48:06] eyeamaye: I'm trying to create a multiple select form that lets users create HMT relationships from a list of options, populated by a model. The select form renders perfectly and it pre-selects them based on the existing records in the join table, however I can't get the form to create new HMT relationships, or delete existing ones. here's a paste of my models, controller, and view. http://pastie.org/10758520
[20:48:49] Rubie: has joined #RubyOnRails
[20:51:03] Rodya_: has joined #RubyOnRails
[20:55:28] htmldrum: has joined #RubyOnRails
[20:57:21] chipotle_: has joined #RubyOnRails
[20:59:18] YourManCJ: has joined #RubyOnRails
[20:59:58] YourManCJ: where in the file structure should I store my json file getting passed to a calender? the json needs to have some erb in it
[21:00:22] adac: has joined #RubyOnRails
[21:03:49] ivanskie: has joined #RubyOnRails
[21:08:17] Sylario: I am trying to understand how the values are selected in this collection select : https://github.com/ivaldi/brimir/blob/master/app/views/replies/_form.html.erb#L24
[21:14:17] Rubie: has joined #RubyOnRails
[21:18:38] rubie_: has joined #RubyOnRails
[21:22:28] moeabdol1: has joined #RubyOnRails
[21:25:54] pawnbox: has joined #RubyOnRails
[21:25:59] sleungcy: has joined #RubyOnRails
[21:27:29] delgiudices: has joined #RubyOnRails
[21:29:33] ikarius: has joined #RubyOnRails
[21:30:48] krz: has joined #RubyOnRails
[21:32:21] cac: has joined #RubyOnRails
[21:37:58] intrigueD: has joined #RubyOnRails
[21:39:18] stannard: has joined #RubyOnRails
[21:46:22] ivanskie: has joined #RubyOnRails
[21:46:45] n008f4g_: has joined #RubyOnRails
[21:46:51] srinidhi: has joined #RubyOnRails
[21:47:05] cac: has joined #RubyOnRails
[21:50:35] achamian: has joined #RubyOnRails
[21:51:20] Rodya_: has joined #RubyOnRails
[21:51:54] Cohedrin: has joined #RubyOnRails
[21:56:26] ensyde_: has joined #RubyOnRails
[21:59:56] nibbo: has joined #RubyOnRails
[22:00:38] johnflux: has joined #RubyOnRails
[22:03:12] mostlybadfly: has joined #RubyOnRails
[22:09:24] Spami: has joined #RubyOnRails
[22:12:11] blackmesa: has joined #RubyOnRails
[22:13:21] uglybandersnatch: has joined #RubyOnRails
[22:19:26] Tempesta_: has joined #RubyOnRails
[22:19:35] smathy: has joined #RubyOnRails
[22:20:25] bronson: has joined #RubyOnRails
[22:20:28] smathy: sylario, the option that has a value equal to `f.object.to_email_address_id` will be selected.
[22:20:38] sandroandrade_: has joined #RubyOnRails
[22:21:22] Puffball: has joined #RubyOnRails
[22:24:02] nettoweb: has joined #RubyOnRails
[22:24:12] chrisml: has joined #RubyOnRails
[22:24:18] htmldrum: has joined #RubyOnRails
[22:25:40] pawnbox: has joined #RubyOnRails
[22:25:55] _djbkd: has joined #RubyOnRails
[22:26:55] sleungcy: has joined #RubyOnRails
[22:33:12] superlou: has joined #RubyOnRails
[22:33:22] snowy: has joined #RubyOnRails
[22:33:27] marr: has joined #RubyOnRails
[22:33:41] tvw: has joined #RubyOnRails
[22:33:45] crystal77: has joined #RubyOnRails
[22:33:53] clorisu: has joined #RubyOnRails
[22:42:06] RegulationD: has joined #RubyOnRails
[22:42:24] jenrzzz: has joined #RubyOnRails
[22:44:03] Macaveli: has joined #RubyOnRails
[22:48:28] robbyoconnor: has joined #RubyOnRails
[22:48:38] robbyoconnor: has joined #RubyOnRails
[22:50:32] jglover: has joined #RubyOnRails
[22:51:10] delgiudices: has joined #RubyOnRails
[22:51:13] jglover: has joined #RubyOnRails
[22:51:21] jglover: has left #RubyOnRails: ()
[22:51:28] jglover: has joined #RubyOnRails
[22:51:35] jglover: has left #RubyOnRails: ()
[22:51:53] jglover: has joined #RubyOnRails
[22:52:19] jglover: has left #RubyOnRails: ()
[22:52:25] jglover: has joined #RubyOnRails
[22:53:08] foli_: has joined #RubyOnRails
[22:54:32] quazimodo: has joined #RubyOnRails
[22:55:43] pawnbox: has joined #RubyOnRails
[22:56:23] Spami: has joined #RubyOnRails
[22:57:17] Devalo: has joined #RubyOnRails
[23:00:54] B4daBing73: has joined #RubyOnRails
[23:01:37] echojaybird: has joined #RubyOnRails
[23:01:46] chrisml: i seem to have rails installed on my system, but i can't remember how i installed it. gem nor ruby is in the output of brew list
[23:02:30] chrisml: how would i remove it? (os x)
[23:03:24] Spami: has joined #RubyOnRails
[23:05:58] mdw: has joined #RubyOnRails
[23:07:22] havenwood: chrisml: `gem uninstall rails`, `sudo gem uninstall rails` or a package manager uninstall command are likely candidates
[23:07:34] havenwood: chrisml: what do you get for?: gem which rails
[23:07:36] Palsson: has joined #RubyOnRails
[23:07:41] havenwood: chrisml: and?: command -v rails
[23:07:59] smathy: chrisml, OSX ships with Ruby, which ships with rubygems, neither of which will be in your brew list.
[23:08:10] chrisml: smathy gotcha
[23:08:16] Rodya_: has joined #RubyOnRails
[23:08:28] chrisml: is it still recommended to use brew to install rubygems & ruby?
[23:08:33] YourManCJ: has joined #RubyOnRails
[23:08:37] chrisml: or should i just use system versions
[23:08:49] YourManCJ: what is the best way to add and remove sample data in a testing enviorment?
[23:09:02] npresco: has joined #RubyOnRails
[23:09:53] havenwood: chrisml: Ruby ships with RubyGems these days, so install the former and you have the latter.
[23:10:07] foli_: i have this issue with rails http://paste.ubuntu.com/15379633/ after i already installed rails
[23:10:23] chrisml: havenwood guess i should need to install rbenv
[23:10:26] foli_: need help
[23:10:46] havenwood: chrisml: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[23:10:56] foli_: the error that stats rails cannot be found
[23:11:12] YourManCJ: foli_: did you add rails to your path?
[23:11:19] havenwood: chrisml: use chruby/ruby-install instead of rbenv/ruby-build
[23:11:31] chrisml: havenwood haven't heard of that. better?
[23:11:44] havenwood: chrisml: The Homebrew Ruby is nice if you don't need to switch Rubies.
[23:11:50] smathy: foli_, looks like you've got a ruby version manager and you've installed rails in other versions but not in the current one.
[23:12:15] foli_: @YourManCJ . like this source ~/.rvm/scripts/rvm
[23:12:32] bricker: has joined #RubyOnRails
[23:12:54] foli_: smathy: where to add the path?
[23:13:18] smathy: foli_, it's not a PATH issue otherwise your shell would just tell you "command not found"
[23:13:46] chouhoulis: has joined #RubyOnRails
[23:13:56] foli_: smathy: i have rvm
[23:14:32] foli_: smathy: and ruby 2.2.3 and 2.1.5 installed
[23:14:41] havenwood: chrisml: It's my preference and what I generally see recommended here.
[23:14:49] chrisml: havenwood great. thanks
[23:15:38] smathy: foli_, sorry, I know nothing about rvm.
[23:15:47] havenwood: chrisml: If you say have brew Ruby installed alongside chruby you can `chruby system` to go to brew and then `brew unlink ruby` to fall back to system.
[23:16:51] Synthead: has joined #RubyOnRails
[23:17:09] chrisml: havenwood i see
[23:17:17] npresco: hello all, I need some help with my rails models
[23:17:44] foli_: YourManCJ: can you help solve this issue?
[23:18:14] npresco: I have three models. Smil, Playlist, Video. A smil has many playlists, a playlist has_many videos.
[23:18:18] YourManCJ: foli_: what is it again?
[23:18:56] foli_: YourManCJ: http://paste.ubuntu.com/15379633/
[23:19:20] havenwood: foli_: What do you get for?: rvm current
[23:19:26] npresco: When I add a playlist to the smil object though, I would like to do so more than once but with a different datetime associated. So say I make a playlist1, I can have it in my smil playlists more than one but with different datetimes?
[23:20:07] moeabdol2: has joined #RubyOnRails
[23:20:27] foli_: YourManCJ: ruby-2.2.3
[23:20:51] YourManCJ: and you installed rails already?
[23:21:01] foli_: YourManCJ: yes
[23:21:20] havenwood: foli_: What do you get for?: gem which rails
[23:21:22] Jet4Fire: has joined #RubyOnRails
[23:22:04] foli_: YourManCJ: ERROR: Can't find ruby library file or shared library rails
[23:22:06] enitiz: has joined #RubyOnRails
[23:22:13] havenwood: foli_: gem install rails
[23:22:54] foli_: YourManCJ: i have a rails application runing on apache2 server?
[23:23:14] YourManCJ: why... is there a reason to not just use webbrick?
[23:24:12] havenwood: foli_: Ah, so it's not running on this Ruby or at least not this gemset?
[23:24:21] havenwood: foli_: What Ruby does your passenger point to?
[23:24:48] havenwood: foli_: What gemsets do you have? Which one has rails?
[23:25:14] foli_: havenwood: how can i fing that?
[23:26:02] foli_: havewood: how can i know that?
[23:26:21] foli_: havewood: which command to use?
[23:27:33] sleungcy: has joined #RubyOnRails
[23:27:50] Tempesta: has joined #RubyOnRails
[23:27:54] chouhoulis: has joined #RubyOnRails
[23:28:11] foli_: havenwood: how can i know this, which command should i type?
[23:29:39] havenwood: foli_: I'd suggest asking those questions in #rvm and #passenger, respectively.
[23:30:37] havenwood: foli_: I'd probably start with Passenger because that's what's going to be showing what Ruby you're really using. Maybe just check your Apache config.
[23:31:31] ivanskie: has joined #RubyOnRails
[23:33:53] Rubie: has joined #RubyOnRails
[23:34:31] kdough: has joined #RubyOnRails
[23:35:40] YourManCJ: what is the best method for securing a CRUD in rails?
[23:36:36] YourManCJ: I have an app running and everything is working, but I generated with a scaffold, I would rather not leave things open in production
[23:37:55] akshat: has joined #RubyOnRails
[23:39:38] kdough: has joined #RubyOnRails
[23:42:51] Rodya_: has joined #RubyOnRails
[23:45:06] chrisml: havenwood after using ruby-install to install ruby, should that have installed the latest rubygems?
[23:45:20] chrisml: gem -v is 2.5.1
[23:45:51] havenwood: chrisml: That's the latest RubyGems that shipped with the Ruby you installed. You can update to the very latest with: gem update --system
[23:46:10] akshat_: has joined #RubyOnRails
[23:46:20] chrisml: havenwood thanks
[23:46:24] havenwood: chrisml: You can (and should) update RubyGems independently from Ruby.
[23:46:28] havenwood: chrisml: no prob!
[23:46:28] davee_: has joined #RubyOnRails
[23:46:58] clorisu: has joined #RubyOnRails
[23:47:01] claytonzaugg: has joined #RubyOnRails
[23:54:04] enitiz: has joined #RubyOnRails
[23:59:03] foli_: i have this issue when i start my rails app http://paste.ubuntu.com/15380437/