« Back to channel list

#RubyOnRails - 28 February 2016

« Back 1 day Forward 1 day »
[00:01:16] Spami: has joined #RubyOnRails
[00:01:43] Devalo: has joined #RubyOnRails
[00:01:54] tubbo: has joined #RubyOnRails
[00:01:54] shaman42: has joined #RubyOnRails
[00:01:54] noah256: has joined #RubyOnRails
[00:01:54] Dreeg: has joined #RubyOnRails
[00:01:58] bobb3666: has left #RubyOnRails: ()
[00:03:44] Seich: has joined #RubyOnRails
[00:04:36] Nuck: has joined #RubyOnRails
[00:04:48] Brando753: has joined #RubyOnRails
[00:06:09] nickjj_: has joined #RubyOnRails
[00:06:20] Guest22248: has joined #RubyOnRails
[00:08:42] uri___: has joined #RubyOnRails
[00:09:26] wethu: has joined #RubyOnRails
[00:10:09] amitchellbullard: has joined #RubyOnRails
[00:10:10] ur5us: has joined #RubyOnRails
[00:11:11] machty: has joined #RubyOnRails
[00:12:58] sinkensabe: has joined #RubyOnRails
[00:13:44] sandstrom: has joined #RubyOnRails
[00:15:03] Rubie: has joined #RubyOnRails
[00:16:32] xhoy: has joined #RubyOnRails
[00:16:48] Spami: has joined #RubyOnRails
[00:17:52] AntiSpamMeta: has joined #RubyOnRails
[00:18:01] Rodya_: has joined #RubyOnRails
[00:18:33] Daquan: has joined #RubyOnRails
[00:19:16] arthurix: has joined #RubyOnRails
[00:20:14] rickmasta: has joined #RubyOnRails
[00:20:52] armyriad: has joined #RubyOnRails
[00:21:28] chouhoulis: has joined #RubyOnRails
[00:22:15] delgiudices: How do you normall send messages to the user like “This transaction was succesfully completed"
[00:22:41] siaW: has joined #RubyOnRails
[00:23:17] n008f4g_: has joined #RubyOnRails
[00:23:39] kr1shnak: delgiudices: You use the flash. See "The Flash" section at http://guides.rubyonrails.org/action_controller_overview.html
[00:23:57] bobb3666: has joined #RubyOnRails
[00:24:21] delgiudices: kr1shnak: thanks :)
[00:25:30] jenrzzz: has joined #RubyOnRails
[00:28:12] diegoviola: has joined #RubyOnRails
[00:28:12] Ducky-: has joined #RubyOnRails
[00:28:12] drale2k: has joined #RubyOnRails
[00:29:07] Guest34101: has joined #RubyOnRails
[00:33:38] benlieb: has joined #RubyOnRails
[00:34:07] shtirlic: has joined #RubyOnRails
[00:36:00] diego1: has joined #RubyOnRails
[00:37:58] siaW: i need serious help. i can’t change the column name of a table i created no matter what i do. i am doing this https://gyazo.com/d873f75a3398590f70f3f5351e7ee0ff
[00:38:14] siaW: there’s a typo in the column name that i made earlier and can’t seem to find a way to fix it
[00:38:56] trifling-jest: Hi guys can i ask a question
[00:39:44] kr1shnak: ask away trifling-jest
[00:39:52] kr1shnak: no need to ask to ask ;-)
[00:39:55] trifling-jest: how do you connect a table in rails? not the database, but an existing table. you want to use the same table name
[00:40:01] matthewd: siaw: Ignoring the fact your 'down' clearly doesn't attempt to reverse the 'up'... you haven't described a problem. And please don't use screenshots to post code.
[00:40:02] trifling-jest: hehe thx kr1shnak
[00:40:53] pawnbox: has joined #RubyOnRails
[00:40:57] Haydos: has joined #RubyOnRails
[00:41:09] siaW: matthewd: but i also tried this https://gist.github.com/siaw23/3121ffed7ff200ac69e1
[00:41:17] siaW: using just the change method
[00:41:34] siaW: the column name is not changing and i’m not sure how to fix this
[00:41:45] kirillzh: has joined #RubyOnRails
[00:41:53] matthewd: siaw: What happens when you run the migration?
[00:42:18] siaW: nothing happens
[00:42:19] kr1shnak: trifling-jest: this might be of help - http://stackoverflow.com/questions/4613574/how-do-i-explicitly-specify-a-models-table-name-mapping-in-rails
[00:42:20] siaW: nothing shows
[00:42:37] sergey_makagon: has joined #RubyOnRails
[00:42:51] matthewd: siaw: Then it sounds like the migration has already been run
[00:43:13] siaW: matthewd: well if it has, then the column name should change right?
[00:43:33] siaW: but in the console, when i do Account.column_names it shows the old column name with the typo
[00:43:35] DoctorMonocular: has joined #RubyOnRails
[00:43:42] kr1shnak: have you reloaded the console?
[00:43:47] matthewd: That rather depends whether you changed the migration file after you ran it
[00:44:42] siaW: @kr1shnak yes i just did, same old column name with typo
[00:45:07] kr1shnak: take a look at your schema file
[00:45:37] bobb3666: has left #RubyOnRails: ()
[00:45:45] siaW: schema file still has the same old column name typo
[00:46:14] delgiudices: Does anybody know of a simple session based cart gem?
[00:47:12] trifling-jest: @kr1shnak thanks i will try that out!
[00:51:44] bronson: has joined #RubyOnRails
[00:52:37] snowy: has joined #RubyOnRails
[00:53:18] delgiudices: Does rails have a user/auth implementation by default?
[00:53:27] delgiudices: Or do i have to do it myself/use a popular gem
[00:54:13] Papierkorb: delgiudices: the latter
[00:54:30] delgiudices: So should i use a popular gem ? in that case which gem?
[00:54:43] Papierkorb: delgiudices: The most popular one is 'devise'
[00:54:59] delgiudices: Papierkorb: thanks :)
[00:55:24] blackhuey: has joined #RubyOnRails
[00:55:37] wethu: has joined #RubyOnRails
[00:57:46] Mia: has joined #RubyOnRails
[00:59:01] intrigueD: has joined #RubyOnRails
[01:00:08] trinaldi: has joined #RubyOnRails
[01:01:31] xybre: has joined #RubyOnRails
[01:02:15] syf-revk: has joined #RubyOnRails
[01:09:03] strongcode: has joined #RubyOnRails
[01:09:06] sinkensabe: has joined #RubyOnRails
[01:09:26] jbrinkmusic: has joined #RubyOnRails
[01:10:34] diego1: has joined #RubyOnRails
[01:10:51] pawnbox: has joined #RubyOnRails
[01:12:26] mostlybadfly: has joined #RubyOnRails
[01:16:14] Synthead: has joined #RubyOnRails
[01:16:16] joelsmith: has joined #RubyOnRails
[01:16:20] Rubie: has joined #RubyOnRails
[01:16:50] brainslug: has joined #RubyOnRails
[01:18:16] triangles2: has joined #RubyOnRails
[01:18:22] siaW: has left #RubyOnRails: ()
[01:18:51] rickmasta: has joined #RubyOnRails
[01:19:55] unreal: has joined #RubyOnRails
[01:20:02] wethu: has joined #RubyOnRails
[01:21:07] one_zero: has joined #RubyOnRails
[01:22:19] sudoubuntu: has joined #RubyOnRails
[01:22:25] chouhoulis: has joined #RubyOnRails
[01:23:45] kdough: has joined #RubyOnRails
[01:24:18] Rodya_: has joined #RubyOnRails
[01:24:35] kdough: has joined #RubyOnRails
[01:28:22] TheMoonMaster: has joined #RubyOnRails
[01:30:01] rattatmatt: has joined #RubyOnRails
[01:30:06] michael_mbp: has joined #RubyOnRails
[01:31:37] trifling-jest: Hi guys, how do you transfer ownership of a table in postgresql?
[01:31:45] trifling-jest: withouth making the other user a superuser
[01:33:25] delgiudices: By default the layout is views/layout/application.html.erb
[01:33:31] delgiudices: How do i render a different layout depending on the controller
[01:33:39] mices: has joined #RubyOnRails
[01:33:44] mices: i didn't know databases had owners
[01:33:52] mices: it's grant privileges
[01:34:49] mices: delugidices: by putting the views in a folder with the same name as the controller?
[01:34:58] trifling-jest: i was connecting an existing table in rails when it said that the user is not the one who created the table
[01:35:10] trifling-jest: so i just made the user (in rails) a superuser to circumvent that error
[01:35:26] mices: trifling-jest: sorry i'm not familiar with it then
[01:35:27] trifling-jest: a superuser in postgres*
[01:35:36] trifling-jest: alright no prob mices. thank you
[01:36:11] mices: delgiudices: maybe chown to the user you want to "own" the database
[01:36:48] delgiudices: mices: actually i saw the layout helper
[01:37:53] mices: layout is for wrapping the whole app, all controllers
[01:38:15] adre: has joined #RubyOnRails
[01:38:33] decaff: has joined #RubyOnRails
[01:38:36] flashpoint9: has joined #RubyOnRails
[01:38:41] mices: layout wraps around all your other views to provide a consistent look
[01:38:44] trifling-jest: another question, if you create a new table in postrgresql, does it not automatically create a column for primary keys? do you have to manually create one?
[01:38:59] mices: each page will have the same header and sidebar etc...
[01:41:07] pawnbox: has joined #RubyOnRails
[01:42:03] mices: rails doesn't care what database you're using, and it'll create a primary automatically on the id field
[01:42:31] qejk: has joined #RubyOnRails
[01:46:51] delgiudices: f.email_field/f.password_field are okay
[01:47:00] delgiudices: But what if i use bootstrap, how can i add the classes to those fields?
[01:47:41] trifling-jest: hi mices, i was pertaining to postgresql
[01:49:58] blackhuey1: has joined #RubyOnRails
[01:52:48] codesoda: has joined #RubyOnRails
[01:52:49] ja: has joined #RubyOnRails
[01:54:36] arBmind: has joined #RubyOnRails
[01:57:14] nogic: has joined #RubyOnRails
[01:58:10] enitiz: has joined #RubyOnRails
[01:58:33] KnownSyntax: has joined #RubyOnRails
[01:58:37] KnownSyntax: has joined #RubyOnRails
[01:59:57] shanemcd: has joined #RubyOnRails
[02:00:17] shanemcd: has joined #RubyOnRails
[02:01:16] one_zero: has joined #RubyOnRails
[02:01:57] alexhartley: has joined #RubyOnRails
[02:03:37] HalcyonicStorm: has joined #RubyOnRails
[02:04:18] sinkensabe: has joined #RubyOnRails
[02:06:16] RockLee: has joined #RubyOnRails
[02:07:34] RockLee: Can anyone help me out with this mysql2 error I'm having with rails 4? I can't get it to work and I've looked at ~20 different sites for a remedy.
[02:07:57] RockLee: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
[02:08:17] RockLee: everything is there as it should be
[02:08:47] braincrash: has joined #RubyOnRails
[02:11:25] matthewd: RockLee: Update your rails to the latest 4.2.x
[02:11:47] RockLee: I'm on 4.2.4
[02:12:11] openstruct: has joined #RubyOnRails
[02:13:29] puerile: has joined #RubyOnRails
[02:16:17] blackhuey: has joined #RubyOnRails
[02:16:39] shanemcd_: has joined #RubyOnRails
[02:17:46] sudoubuntu: has joined #RubyOnRails
[02:17:59] baweaver: has joined #RubyOnRails
[02:18:25] Axy: has joined #RubyOnRails
[02:18:37] Axy: has joined #RubyOnRails
[02:19:24] kr1shnak: RockLee: how many versions of ruby have you got installed on your machine?
[02:19:58] kr1shnak: any possible chance of gemset conflict/confusion?
[02:20:09] RockLee: just ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
[02:20:36] matthewd: I'm not sure how I can be more clear about the solution
[02:21:00] RockLee: @matthew I'm looking into it now.
[02:21:06] cajone: has joined #RubyOnRails
[02:21:41] Mia: has joined #RubyOnRails
[02:23:00] chouhoulis: has joined #RubyOnRails
[02:23:30] jeanlinux: has joined #RubyOnRails
[02:23:33] drale2k: has joined #RubyOnRails
[02:24:02] DoctorMonocular: has joined #RubyOnRails
[02:27:47] shanemcd: has joined #RubyOnRails
[02:30:40] pawnbox: has joined #RubyOnRails
[02:31:06] puerile: has left #RubyOnRails: ()
[02:31:33] trifling-jest: has joined #RubyOnRails
[02:31:35] trifling-jest: has left #RubyOnRails: ()
[02:37:14] sudoubuntu: has joined #RubyOnRails
[02:38:51] Daquan: has joined #RubyOnRails
[02:39:12] unreal_: has joined #RubyOnRails
[02:41:06] DoctorMonocular: has joined #RubyOnRails
[02:43:56] triangles3: has joined #RubyOnRails
[02:44:53] DoctorMo_: has joined #RubyOnRails
[02:45:57] RockLee: YEEEEESSSSS!! I finally got it working after upgrading to 4.5.2.1 .Thanks @matthewd
[02:46:08] RockLee: I mean 4.2.5.1
[02:46:28] armyriad: has joined #RubyOnRails
[02:47:02] Secretmapper: has joined #RubyOnRails
[02:47:47] triangles2: has joined #RubyOnRails
[02:48:35] Axy: has joined #RubyOnRails
[02:48:38] Axy: has joined #RubyOnRails
[02:49:04] _Tariq: has joined #RubyOnRails
[02:49:37] nogic: has joined #RubyOnRails
[02:51:30] HalcyonicStorm: has left #RubyOnRails: ()
[02:53:41] bb: has joined #RubyOnRails
[02:54:58] shwoodard____: has joined #RubyOnRails
[02:55:09] snowy: has joined #RubyOnRails
[02:55:28] TheMoonMaster: has joined #RubyOnRails
[02:56:53] ur5us: has joined #RubyOnRails
[02:57:29] Dreamer3_: has joined #RubyOnRails
[02:57:46] rizenine: has joined #RubyOnRails
[02:58:12] sinkensabe: has joined #RubyOnRails
[02:58:36] djbkd: has joined #RubyOnRails
[02:59:04] Graphettion: has joined #RubyOnRails
[02:59:41] DoctorMonocular: has joined #RubyOnRails
[03:00:02] wethu: has joined #RubyOnRails
[03:01:05] shtirlic_: has joined #RubyOnRails
[03:03:05] Rodya_: has joined #RubyOnRails
[03:05:06] jbrinkmusic: has joined #RubyOnRails
[03:06:00] chancancode___: has joined #RubyOnRails
[03:06:25] AntiSpamMeta: has joined #RubyOnRails
[03:08:28] nlko: has joined #RubyOnRails
[03:10:27] nlko: has left #RubyOnRails: ()
[03:10:41] amitchellbullard: has joined #RubyOnRails
[03:10:53] FastJack: has joined #RubyOnRails
[03:12:32] wij32: has joined #RubyOnRails
[03:12:44] Haydos: has joined #RubyOnRails
[03:12:55] wij32: Hi, I have a scaffold object, lets call it "Assessment", when I create a new assessment I want to run some web service / API request in the background to another server
[03:13:04] wij32: where best to actually do that background task?
[03:13:09] wij32: controller right?
[03:14:13] decaff: has joined #RubyOnRails
[03:14:41] prgmmr: has joined #RubyOnRails
[03:15:29] superlou: has joined #RubyOnRails
[03:16:01] sfr^: has joined #RubyOnRails
[03:16:49] sfr^: has joined #RubyOnRails
[03:18:02] amitchellbullard: has joined #RubyOnRails
[03:18:25] arathald: has joined #RubyOnRails
[03:18:28] wij32: I was going to create a new class to handle the API, and call and execute that class from the after_create in the model?
[03:18:32] wij32: sounds dirty
[03:19:00] FastJack: has joined #RubyOnRails
[03:19:11] hive-mind: has joined #RubyOnRails
[03:22:22] Dreamer3_: has joined #RubyOnRails
[03:23:44] chouhoulis: has joined #RubyOnRails
[03:23:48] Haydos: has joined #RubyOnRails
[03:23:52] alevy: has joined #RubyOnRails
[03:24:07] chancancode___: has joined #RubyOnRails
[03:24:31] FastJack: has joined #RubyOnRails
[03:26:15] watersoul: has joined #RubyOnRails
[03:26:52] mostlybadfly: has joined #RubyOnRails
[03:28:21] nogic: has joined #RubyOnRails
[03:30:03] nogic: has joined #RubyOnRails
[03:31:11] nogic: has joined #RubyOnRails
[03:32:06] rickmasta: has joined #RubyOnRails
[03:32:27] nogic: has joined #RubyOnRails
[03:33:15] Surt_Q: has joined #RubyOnRails
[03:33:22] TDJACR: has joined #RubyOnRails
[03:33:45] nogic: has joined #RubyOnRails
[03:35:51] Vlatiska: has joined #RubyOnRails
[03:36:32] Vlatiska: Hello, i have a problem to concatenate something with link_to
[03:37:07] machty: has joined #RubyOnRails
[03:37:16] Vlatiska: i want to use i18n t '.Login' with that code <li><%= link_to '<i class="fa fa-sign-in"></i> Login'.html_safe, new_user_session_path %></li>
[03:37:39] Vlatiska: But i dont figure out how to do, i have try many thing without any success
[03:38:33] blackmesa: has joined #RubyOnRails
[03:39:56] veloutin: has joined #RubyOnRails
[03:41:27] cajone: has joined #RubyOnRails
[03:42:25] uglybandersnatch: has joined #RubyOnRails
[03:46:43] Paradox: has joined #RubyOnRails
[03:47:12] mostlybadfly: has joined #RubyOnRails
[03:48:42] Daquan: has joined #RubyOnRails
[03:48:44] Ropeney: has joined #RubyOnRails
[03:50:14] _Tariq_: has joined #RubyOnRails
[03:51:53] sinkensabe: has joined #RubyOnRails
[03:53:07] chagel: has joined #RubyOnRails
[03:54:23] delgiudices: So i want to create a session based cart
[03:54:37] delgiudices: Where should i create the class that defines the cart
[03:55:48] chagel: has joined #RubyOnRails
[03:56:23] trosborn: has joined #RubyOnRails
[03:59:03] shanemcd: has joined #RubyOnRails
[04:00:19] helpa: has joined #RubyOnRails
[04:00:38] pawnbox: has joined #RubyOnRails
[04:00:42] arathald: has joined #RubyOnRails
[04:02:21] machty: has joined #RubyOnRails
[04:02:44] benlieb: has joined #RubyOnRails
[04:06:02] enitiz: has joined #RubyOnRails
[04:06:15] sfr^: has joined #RubyOnRails
[04:07:18] Devalo: has joined #RubyOnRails
[04:09:18] Graphettion: has joined #RubyOnRails
[04:09:21] noodle: has joined #RubyOnRails
[04:12:48] Pazician: has joined #RubyOnRails
[04:13:12] corioliss: has joined #RubyOnRails
[04:13:56] c355E3B: has joined #RubyOnRails
[04:14:01] baweaver: has joined #RubyOnRails
[04:14:09] Graphettion: has joined #RubyOnRails
[04:14:22] imanc: has joined #RubyOnRails
[04:14:39] lele: has joined #RubyOnRails
[04:14:49] KorriX: has joined #RubyOnRails
[04:15:13] dustinm`: has joined #RubyOnRails
[04:15:24] Andr3as: has joined #RubyOnRails
[04:15:50] thomasfedb: has joined #RubyOnRails
[04:16:06] differentreality: has joined #RubyOnRails
[04:16:06] Obi_obi: has joined #RubyOnRails
[04:16:31] DukeDave: has joined #RubyOnRails
[04:16:34] swgillespie: has joined #RubyOnRails
[04:16:37] Arcaire: has joined #RubyOnRails
[04:16:50] daxroc: has joined #RubyOnRails
[04:17:03] joaomdmoura__: has joined #RubyOnRails
[04:17:29] smoitra: has joined #RubyOnRails
[04:17:30] Guest12896_: has joined #RubyOnRails
[04:17:32] Hosh: has joined #RubyOnRails
[04:17:39] thomasfedb: has joined #RubyOnRails
[04:18:50] kirillzh: has joined #RubyOnRails
[04:18:52] corioliss: has joined #RubyOnRails
[04:18:54] dustinm`: has joined #RubyOnRails
[04:19:05] shwoodard____: has joined #RubyOnRails
[04:19:24] amitchellbullard: has joined #RubyOnRails
[04:19:24] Lloyd: has joined #RubyOnRails
[04:19:35] golgaroth: has joined #RubyOnRails
[04:19:38] braincrash: has joined #RubyOnRails
[04:20:33] sfr^: has joined #RubyOnRails
[04:20:33] atian: has joined #RubyOnRails
[04:20:44] alxndr: has joined #RubyOnRails
[04:22:24] KorriX: has joined #RubyOnRails
[04:22:41] ddv: has joined #RubyOnRails
[04:22:43] uglybandersnatch: has joined #RubyOnRails
[04:22:44] arathald: has joined #RubyOnRails
[04:23:53] jord: has joined #RubyOnRails
[04:24:15] corioliss: has joined #RubyOnRails
[04:24:22] Hates__: has joined #RubyOnRails
[04:24:29] chouhoulis: has joined #RubyOnRails
[04:24:45] FastJack: has joined #RubyOnRails
[04:24:54] Arcaire: has joined #RubyOnRails
[04:24:59] golgaroth: has joined #RubyOnRails
[04:26:08] jeanlinux: has joined #RubyOnRails
[04:26:09] c355E3B: has joined #RubyOnRails
[04:27:01] TDJACR: has joined #RubyOnRails
[04:27:26] Obi_obi: has joined #RubyOnRails
[04:28:28] delgiudices: undefined local variable or method ‘session’ in ApplicationController
[04:28:30] delgiudices: Why’s that?
[04:28:56] Arcaire: has joined #RubyOnRails
[04:28:56] spastorino: has joined #RubyOnRails
[04:29:19] prgmmr: has joined #RubyOnRails
[04:29:37] DukeDave: has joined #RubyOnRails
[04:30:05] Ropeney: delgiudices, show some code for context, we may be able to help :)
[04:30:22] safety_cut: has joined #RubyOnRails
[04:30:30] algernop_k: has joined #RubyOnRails
[04:30:38] DanKnox: has joined #RubyOnRails
[04:32:16] joaomdmoura__: has joined #RubyOnRails
[04:32:16] machty: has joined #RubyOnRails
[04:32:22] mostlybadfly: has joined #RubyOnRails
[04:32:50] DoctorMo_: has joined #RubyOnRails
[04:33:52] LateralOctober: has joined #RubyOnRails
[04:33:53] Arcaire_: has joined #RubyOnRails
[04:33:55] Ratler: has joined #RubyOnRails
[04:33:56] daxroc: has joined #RubyOnRails
[04:33:57] Liothen: has joined #RubyOnRails
[04:33:57] Liothen: has joined #RubyOnRails
[04:33:59] DoctorMonocular: has joined #RubyOnRails
[04:35:41] safety_c_: has joined #RubyOnRails
[04:35:45] amitchellbullard: has joined #RubyOnRails
[04:36:26] swgillespie: has joined #RubyOnRails
[04:36:33] deeprave: has joined #RubyOnRails
[04:37:01] rdavila: has joined #RubyOnRails
[04:37:13] DukeDave: has joined #RubyOnRails
[04:38:20] noodle: has joined #RubyOnRails
[04:38:39] rubyonrailed: has joined #RubyOnRails
[04:39:54] blackmesa: has joined #RubyOnRails
[04:40:22] mostlybadfly: has joined #RubyOnRails
[04:40:42] sfr^: has joined #RubyOnRails
[04:41:11] lbotos_: has joined #RubyOnRails
[04:41:52] Obi_obi: has joined #RubyOnRails
[04:41:56] Seich: has joined #RubyOnRails
[04:42:29] SanguineAnomaly: has joined #RubyOnRails
[04:42:47] DarkBushido: has joined #RubyOnRails
[04:43:18] Liothen: has joined #RubyOnRails
[04:43:46] joaomdmoura__: has joined #RubyOnRails
[04:44:32] machty: has joined #RubyOnRails
[04:46:20] Obi_obi_: has joined #RubyOnRails
[04:46:31] Hates__: has joined #RubyOnRails
[04:46:52] deeprave: has joined #RubyOnRails
[04:48:16] Hosh: has joined #RubyOnRails
[04:48:47] imanc: has joined #RubyOnRails
[04:50:03] arathald: has joined #RubyOnRails
[04:50:30] Ratler: has joined #RubyOnRails
[04:50:55] joaomdmoura__: has joined #RubyOnRails
[04:50:58] moei: has joined #RubyOnRails
[04:51:28] daxroc: has joined #RubyOnRails
[04:53:51] lele: has joined #RubyOnRails
[04:54:38] sfr^: has joined #RubyOnRails
[04:54:38] sfr^: has joined #RubyOnRails
[04:57:27] PrideCoding: has joined #RubyOnRails
[04:58:16] quazimodo: has joined #RubyOnRails
[04:58:32] TDJACR: has joined #RubyOnRails
[04:58:48] joaomdmoura__: has joined #RubyOnRails
[04:59:42] FastJack: has joined #RubyOnRails
[04:59:55] DukeDave: has joined #RubyOnRails
[05:00:00] Hates__: has joined #RubyOnRails
[05:01:35] golgaroth: has joined #RubyOnRails
[05:01:47] quazimodo: has joined #RubyOnRails
[05:02:04] prgmmr: has joined #RubyOnRails
[05:02:20] alxndr: has joined #RubyOnRails
[05:02:33] deeprave: has joined #RubyOnRails
[05:02:43] Mia: has joined #RubyOnRails
[05:02:48] machty: has joined #RubyOnRails
[05:03:05] amitchellbullard: has joined #RubyOnRails
[05:03:50] ziyadb: has joined #RubyOnRails
[05:03:55] mostlybadfly: has joined #RubyOnRails
[05:05:19] sp1rs: has joined #RubyOnRails
[05:06:06] dnewkerk: has joined #RubyOnRails
[05:06:35] PrideCoding: has joined #RubyOnRails
[05:09:49] DmitryBochkarev: has joined #RubyOnRails
[05:09:50] joaomdmoura__: has joined #RubyOnRails
[05:10:11] DanKnox: has joined #RubyOnRails
[05:10:26] algernop_k: has joined #RubyOnRails
[05:10:29] pawnbox: has joined #RubyOnRails
[05:11:46] Axy: has joined #RubyOnRails
[05:11:46] Axy: has joined #RubyOnRails
[05:12:13] sash__: has joined #RubyOnRails
[05:12:23] djbkd: has joined #RubyOnRails
[05:12:28] Obi_obi: has joined #RubyOnRails
[05:13:13] Hosh: has joined #RubyOnRails
[05:13:27] rhominy: has joined #RubyOnRails
[05:15:35] golgaroth: has joined #RubyOnRails
[05:18:43] alxndr: has joined #RubyOnRails
[05:19:26] arup_r: has joined #RubyOnRails
[05:21:04] _Tariq: has joined #RubyOnRails
[05:22:36] machty: has joined #RubyOnRails
[05:23:21] Mia: has joined #RubyOnRails
[05:23:21] Mia: has joined #RubyOnRails
[05:24:15] algernop_k: has joined #RubyOnRails
[05:25:06] Hosh: has joined #RubyOnRails
[05:25:14] chouhoulis: has joined #RubyOnRails
[05:25:27] deeprave: has joined #RubyOnRails
[05:25:48] atian: has joined #RubyOnRails
[05:26:06] shtirlic: has joined #RubyOnRails
[05:26:50] Ratler: has joined #RubyOnRails
[05:26:56] Axy: has joined #RubyOnRails
[05:27:26] jeanlinux: has joined #RubyOnRails
[05:30:11] Pridecod_: has joined #RubyOnRails
[05:31:04] suffice: has joined #RubyOnRails
[05:31:10] Obi_obi_: has joined #RubyOnRails
[05:31:54] pawnbox: has joined #RubyOnRails
[05:32:34] TDJACR: has joined #RubyOnRails
[05:37:22] prgmmr: has joined #RubyOnRails
[05:38:27] dukedave_: has joined #RubyOnRails
[05:39:09] Mia: has joined #RubyOnRails
[05:39:09] Mia: has joined #RubyOnRails
[05:39:57] adre: has joined #RubyOnRails
[05:40:01] sinkensabe: has joined #RubyOnRails
[05:41:18] blackmesa: has joined #RubyOnRails
[05:43:14] sfr^: has joined #RubyOnRails
[05:44:14] sashman: has joined #RubyOnRails
[05:46:00] daxroc: has joined #RubyOnRails
[05:47:04] alexhartley: has joined #RubyOnRails
[05:48:38] PrideCoding: has joined #RubyOnRails
[05:49:04] snowy: has joined #RubyOnRails
[05:49:27] deeprave: has joined #RubyOnRails
[05:49:39] Guest34101: has joined #RubyOnRails
[05:53:43] sfr^: has joined #RubyOnRails
[05:54:16] Nuck: I can't seem to find an explanation from Googling, so maybe somebody here can tell me why we use .html.slim and whatnot instead of just .slim?
[05:56:03] delgiudices: nuck: conventions i guess
[05:56:04] Hosh: has joined #RubyOnRails
[05:56:16] ddv: has joined #RubyOnRails
[05:56:53] corioliss_: has joined #RubyOnRails
[05:57:00] Nuck: delgiudices: rails conventions usually have reasoning behind them. To say "they're a convention because they're a convention" is a bit of a cop-out
[05:57:34] matthewd: nuck: Consider .html.erb and .xml.erb
[05:57:39] machty_: has joined #RubyOnRails
[05:58:12] Nuck: matthewd: I'd rather not consider XML
[05:59:29] Nuck: So I'm assuming Rails uses the "HTML" extension to figure out the MIME of the result?
[06:00:11] shanemcd: has joined #RubyOnRails
[06:00:31] sevenseacat: has joined #RubyOnRails
[06:02:53] matthewd: nuck: More it uses the intended response type to figure out which template to use
[06:03:18] ddv: has joined #RubyOnRails
[06:04:30] baweaver: It's defining which compilers to use on them and in what order
[06:04:35] Nuck: That makes more sense
[06:04:42] baweaver: I think (correct me if not) that you can have several
[06:05:04] Nuck: baweaver: sure, I've done that in assets before
[06:05:23] Nuck: But the first one isn't a compiler
[06:05:30] matthewd: baweaver: You can't.. I know because I've wanted that before :(
[06:05:47] Nuck: matthewd: oh, does it not work in views?
[06:06:02] Nuck: I know it does on assets… sadly
[06:06:08] alxndr: has joined #RubyOnRails
[06:06:15] baweaver: Theoretically it'd be something like extensions.reduce(file) { |new_file, filter| filter.apply(new_file) }
[06:06:33] fryguy: has joined #RubyOnRails
[06:06:53] baweaver: depends on where it is and how baked in it is though as to how easy that'd be
[06:06:54] corioliss_: has joined #RubyOnRails
[06:06:55] PrideCoding: Anyone use the themify gem
[06:06:59] Nuck: I was really just trying to figure out the role of that first one
[06:06:59] sergey_makagon: has joined #RubyOnRails
[06:07:02] helpa: Nope. No one. Ever. In the history of the world.
[06:07:10] baweaver: ah, that was the snarky one
[06:07:29] baweaver: ACTION should memorize the non-snarky ones
[06:07:38] Nuck: They're no fun
[06:08:03] helpa: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
[06:08:11] baweaver: there it is
[06:08:41] michael_mbp: has joined #RubyOnRails
[06:09:07] Nuck: What happens if I forget to do .html.slim? Does the world end?
[06:09:30] ChanServ: +o baweaver
[06:09:38] Nuck: Do I derail my app? /rimshot
[06:09:41] PrideCoding: Plural , with a S
[06:10:13] KorriX: has joined #RubyOnRails
[06:11:52] Nuck: Seriously though, definitely wondering what effect not using .html.slim has if I'm not using XML or anything
[06:12:22] Nuck: I have some views I didn't put the .html onto, being a sinner
[06:12:37] Nuck: But nothing went visibly wrong?
[06:12:50] baweaver: Maybe it was already precompiled
[06:12:55] baweaver: and left an artifact
[06:13:04] Nuck: Nah, I've done this like 20 times here
[06:13:18] Nuck: I kept forgetting… over and over
[06:13:32] Nuck: It's definitely that Rails still works fine
[06:13:34] baweaver: It may be able to reasonably infer them
[06:14:13] baweaver: it'll just do bad things on something like yml.erb if you're expecting yml back
[06:14:29] baweaver: maybe it assumes the base output and the first extension is the hint
[06:14:31] Nuck: Yeah that makes sense of course
[06:14:38] Nuck: Some time I should try spelunking into ActionView and see if I can figure out what it's doing
[06:14:57] Nuck: For now I'm gonna just mass-rename for Safety™
[06:15:02] PlasmaStar: has joined #RubyOnRails
[06:15:21] Nuck: I'd rather not get called by this client in a month complaining of 500's
[06:15:30] baweaver: Pridecoding: Anyways, that seems like the entire point of Sass / SCSS in the first place unless I'm missing something on that gem
[06:16:07] baweaver: also hasn't been updated in a fair while
[06:16:48] Nuck: SCSS also comes with other goodies
[06:17:02] Nuck: Your theme can include sizes and fonts
[06:17:32] baweaver: https://github.com/alex88/themify - unless this isn't it
[06:18:08] arup_r: Is it Sunday everywhere ?
[06:18:38] Nuck: baweaver: actually this isn't terrible, it does offer something over SCSS
[06:18:40] baweaver: World clock?
[06:18:41] PlasmaStar: has joined #RubyOnRails
[06:18:45] Nuck: arup_r: no
[06:18:50] golgaroth: has joined #RubyOnRails
[06:19:25] baweaver: not really enough for me to justify pulling it in though honestly.
[06:19:43] baweaver: the big killer is that no one seems to be working on it at all.
[06:20:06] Nuck: baweaver: I don't know of any way to do this "expansion" kind of thing in SCSS. Hand a set of variables in various themes and it expands them out to provide theme selectors
[06:20:17] Nuck: But yeah I wouldn't pull it in either
[06:20:38] Nuck: I just use the `themes/` dir in muh SMACSS
[06:20:58] baweaver: I just use Emmet / ZenCoding honestly
[06:21:10] baweaver: very rarely do I need to generate more than once for templating
[06:21:10] atian: has joined #RubyOnRails
[06:21:39] baweaver: http://emmet.io/
[06:21:47] Nuck: This could be useful if you had to generate like 5 themes for a site
[06:21:58] Nuck: Which are all just color swapped
[06:22:19] baweaver: Still not seeing the need
[06:22:47] Nuck: I'd rather have a monokai.scss that sets variables and pulls in the generic theme.scss though
[06:23:04] Nuck: Solved the problem without another dep
[06:23:25] nickjj_: has joined #RubyOnRails
[06:23:48] PlasmaStar: has joined #RubyOnRails
[06:25:36] Hates__: has joined #RubyOnRails
[06:25:54] machty_: has joined #RubyOnRails
[06:26:02] chouhoulis: has joined #RubyOnRails
[06:29:34] sunya7a_: has joined #RubyOnRails
[06:30:55] DoctorMonocular: has joined #RubyOnRails
[06:32:40] ChanServ: -o baweaver
[06:34:06] rubyonrailed: has joined #RubyOnRails
[06:34:26] Hosh: has joined #RubyOnRails
[06:34:46] sinkensabe: has joined #RubyOnRails
[06:34:58] Obi_obi: has joined #RubyOnRails
[06:35:54] gbailey: has joined #RubyOnRails
[06:36:01] pyemkey: has joined #RubyOnRails
[06:36:40] jonee: has joined #RubyOnRails
[06:37:11] TDJACR: has joined #RubyOnRails
[06:37:48] DoctorMo_: has joined #RubyOnRails
[06:39:25] ur5us: has joined #RubyOnRails
[06:43:46] Cervajz: has joined #RubyOnRails
[06:43:49] blackmesa: has joined #RubyOnRails
[06:44:24] Rodya_: has joined #RubyOnRails
[06:44:42] lxsameer: has joined #RubyOnRails
[06:45:19] machty_: has joined #RubyOnRails
[06:45:21] Cervajz_: has joined #RubyOnRails
[06:45:54] golgaroth: has joined #RubyOnRails
[06:46:57] algernop_k: has joined #RubyOnRails
[06:48:56] intrigueD: has joined #RubyOnRails
[06:53:09] nickjj__: has joined #RubyOnRails
[06:54:36] pawnbox: has joined #RubyOnRails
[06:56:13] corioliss_: has joined #RubyOnRails
[06:57:09] PlasmaStar: has joined #RubyOnRails
[06:59:57] Cervajz: has joined #RubyOnRails
[07:00:33] joaomdmoura__: has joined #RubyOnRails
[07:01:25] DoctorMonocular: has joined #RubyOnRails
[07:01:57] alethea: has joined #RubyOnRails
[07:02:17] deeprave: has joined #RubyOnRails
[07:03:55] sfr^: has joined #RubyOnRails
[07:03:55] sfr^: has joined #RubyOnRails
[07:04:06] reber: has joined #RubyOnRails
[07:07:54] Rodya_: has joined #RubyOnRails
[07:09:05] PlasmaStar: has joined #RubyOnRails
[07:09:52] dukedave_: has joined #RubyOnRails
[07:10:33] okdas: has joined #RubyOnRails
[07:10:33] okdas: has joined #RubyOnRails
[07:13:09] algernop_k: has joined #RubyOnRails
[07:14:32] DoctorMo_: has joined #RubyOnRails
[07:16:26] MrDoctor: has joined #RubyOnRails
[07:19:07] mostlybadfly: has joined #RubyOnRails
[07:20:34] dualbus: has joined #RubyOnRails
[07:22:48] PlasmaStar: has joined #RubyOnRails
[07:23:21] norc: has joined #RubyOnRails
[07:24:31] darutoko: has joined #RubyOnRails
[07:25:03] alxndr: has joined #RubyOnRails
[07:25:04] KorriX: has joined #RubyOnRails
[07:26:24] Obi_obi: has joined #RubyOnRails
[07:26:42] chouhoulis: has joined #RubyOnRails
[07:27:21] Seich: has joined #RubyOnRails
[07:28:20] Haydos: has joined #RubyOnRails
[07:28:29] sinkensabe: has joined #RubyOnRails
[07:28:38] DoctorMonocular: has joined #RubyOnRails
[07:29:11] Tempesta: has joined #RubyOnRails
[07:29:41] jeanlinux: has joined #RubyOnRails
[07:30:12] jonee: has joined #RubyOnRails
[07:34:51] lele: has joined #RubyOnRails
[07:38:13] arup_r: I have some questions. I have to use https://github.com/rails-api/rails-api .. but I want to build the API following JSON api not Rest api. What tricks I need to apply then with this gem configuration wise..?
[07:39:27] agoldboi: has joined #RubyOnRails
[07:39:50] xhoy_: has joined #RubyOnRails
[07:40:28] uglybandersnatch: has joined #RubyOnRails
[07:40:45] baweaver: what do you think the differences are?
[07:41:44] ddv: has joined #RubyOnRails
[07:41:57] daxroc: has joined #RubyOnRails
[07:42:12] baweaver: REST is a concept of state transfer. Things in the same category: SOAP, Thrift, etc
[07:42:28] baweaver: JSON is a data format. Things in the same category: XML, YML, etc
[07:43:06] baweaver: Rails is, by definition, a RESTful framework. Change that at your own peril, as the entire structure relies on it.
[07:43:27] baweaver: Now Rails can easily return JSON instead of HTML for templates, and I think that's what you're after
[07:44:59] Synthead: has joined #RubyOnRails
[07:45:05] arup_r: baweaver: I was reading at Google, when you asked me the question.. :) thanks
[07:45:22] blackmesa: has joined #RubyOnRails
[07:45:41] baweaver: Chances are you're going to want some combination of JBuilder, API-Pie, or other tools
[07:45:56] arup_r: but the gem I linked, by default is REST, I need to bend it to JSON api.. so I will read the doc to know where is the configuration ..
[07:46:07] baweaver: arup_r: read above
[07:46:11] baweaver: that doesn't make sense
[07:46:18] joelsmith: has joined #RubyOnRails
[07:46:58] brainslug: has joined #RubyOnRails
[07:47:02] lightheaded: has joined #RubyOnRails
[07:47:17] baweaver: They're not exclusive terms, nor are they even in the same category
[07:47:25] arup_r: yeah.. true.. I used Jbuilder earlier to send JSON data.. but that was build on Rails 4 vanila gem.. not the one I linked. But I am trying to understand what you said.
[07:47:28] baweaver: making it a very perplexing question
[07:47:31] MrDoctor: has joined #RubyOnRails
[07:47:52] baweaver: REST is things like GET /users/1 to get a user
[07:47:57] baweaver: JSON is a data format
[07:48:03] acosonic_: has joined #RubyOnRails
[07:48:10] Paradox: has joined #RubyOnRails
[07:48:11] baweaver: REST can respond to requests in a JSON format
[07:48:37] lbotos_: has joined #RubyOnRails
[07:49:07] njero: has joined #RubyOnRails
[07:50:02] baweaver: So the question is, are you just trying to make an API that responds with JSON all the time?
[07:50:19] baweaver: actually, I'm not sure there's even really a question there, just confusion on terms
[07:50:27] arup_r: baweaver: yes, I will consume the rails API data in ember.
[07:50:48] baweaver: Then you're spinning your wheels on that question. You already have everything you need
[07:51:05] baweaver: Rails is a RESTful framework, you cannot change that
[07:51:08] uglybandersnatch: has joined #RubyOnRails
[07:51:35] baweaver: what you need concern yourself with though is that it can be configured to return JSON to everything, which Ember or another frontend framework can consume
[07:52:12] baweaver: JBuilder just happens to be one of the most popular view layers for Rails APIs
[07:52:21] baweaver: (though really I don't know of another)
[07:53:48] arup_r: yes, jbuilder is good.. baweaver, I got one tutorial http://ember.vicramon.com/chapters .. let me see how he did it there.. I know rails , I know ember .. but need to know how to connect them.. :)
[07:54:11] baweaver: Rails JSON -> Ember Client
[07:54:11] sergey_makagon: has joined #RubyOnRails
[07:54:36] baweaver: Actually, forget Rails even exists in that paradigm
[07:54:47] baweaver: you only need to worry about this: JSON -> Ember
[07:55:10] baweaver: It could be Rails, could be Java, who knows. Truth is, it won't matter as long as you get back your data.
[07:55:59] arup_r: I got your point
[07:56:45] baweaver: https://github.com/emberjs/data
[07:56:52] baweaver: looks like ember-data is your client to use
[07:57:35] baweaver: do some reading on that, probably ask about the ember channels if you need help on that one.
[07:57:44] baweaver: ACTION knows next to nothing of ember
[07:58:24] chancancode___: has joined #RubyOnRails
[07:58:44] arup_r: yeah, baweaver, I will ask ember things.. I was needed some light, which I got now to get start.
[07:58:49] arup_r: thanks baweaver :)
[07:59:05] arup_r: ember things in ember channel**
[08:01:12] Coldblackice: has joined #RubyOnRails
[08:02:33] PlasmaStar: has joined #RubyOnRails
[08:03:58] machty_: has joined #RubyOnRails
[08:04:08] corioliss_: has joined #RubyOnRails
[08:04:29] Google: has joined #RubyOnRails
[08:06:24] njero: has joined #RubyOnRails
[08:10:02] DanKnox: has joined #RubyOnRails
[08:10:51] golgaroth: has joined #RubyOnRails
[08:10:55] Hosh: has joined #RubyOnRails
[08:13:14] draig: has joined #RubyOnRails
[08:13:52] Pazician: has joined #RubyOnRails
[08:14:10] PlasmaStar: has joined #RubyOnRails
[08:14:27] lbotos_: has joined #RubyOnRails
[08:14:37] dukedave_: has joined #RubyOnRails
[08:16:27] amitchellbullard: has joined #RubyOnRails
[08:17:59] bronson: has joined #RubyOnRails
[08:20:03] drale2k: has joined #RubyOnRails
[08:21:18] Oog: has joined #RubyOnRails
[08:21:38] syf-revk: has joined #RubyOnRails
[08:23:41] djellemah: has joined #RubyOnRails
[08:24:41] SuppliedRelic: has joined #RubyOnRails
[08:27:05] shanemcd: has joined #RubyOnRails
[08:27:31] chouhoulis: has joined #RubyOnRails
[08:27:58] IanV0rn2341: has joined #RubyOnRails
[08:29:47] mostlybadfly: has joined #RubyOnRails
[08:31:16] Devalo: has joined #RubyOnRails
[08:32:31] SuppliedRelic: has joined #RubyOnRails
[08:32:52] DoctorMonocular: has joined #RubyOnRails
[08:34:09] IanV0rn2341: has joined #RubyOnRails
[08:34:24] alevy: has joined #RubyOnRails
[08:36:00] rubyonrailed: has joined #RubyOnRails
[08:37:52] pyemkey: has joined #RubyOnRails
[08:38:28] norc_: has joined #RubyOnRails
[08:39:43] atian: has joined #RubyOnRails
[08:44:17] chagel: has joined #RubyOnRails
[08:45:56] IanV0rn2341: has joined #RubyOnRails
[08:46:04] jeanlinux: has joined #RubyOnRails
[08:46:31] Hates__: has joined #RubyOnRails
[08:46:33] blackmesa: has joined #RubyOnRails
[08:46:53] SuppliedRelic_: has joined #RubyOnRails
[08:49:07] sfr^: has joined #RubyOnRails
[08:56:14] jonee: has joined #RubyOnRails
[08:56:40] Hosh: has joined #RubyOnRails
[08:56:47] sinkensa_: has joined #RubyOnRails
[08:57:16] banister: has joined #RubyOnRails
[08:57:35] Arcaire_: has joined #RubyOnRails
[09:02:36] moeabdol3: has joined #RubyOnRails
[09:04:55] lightheaded: has joined #RubyOnRails
[09:06:08] machty_: has joined #RubyOnRails
[09:06:26] pyemkey: has joined #RubyOnRails
[09:07:36] Daquan: has joined #RubyOnRails
[09:07:51] sashman: has joined #RubyOnRails
[09:07:56] Hosh: has joined #RubyOnRails
[09:08:08] lele: has joined #RubyOnRails
[09:08:09] golgaroth: has joined #RubyOnRails
[09:08:55] sandstrom: has joined #RubyOnRails
[09:09:08] ewnd9: has joined #RubyOnRails
[09:09:10] MrDoctor: has joined #RubyOnRails
[09:09:12] robbyoconnor: has joined #RubyOnRails
[09:11:06] PlasmaStar: has joined #RubyOnRails
[09:13:15] djbkd: has joined #RubyOnRails
[09:13:17] marcdel: has joined #RubyOnRails
[09:14:05] differentreality: has joined #RubyOnRails
[09:14:12] arthurnn: has joined #RubyOnRails
[09:15:08] golgaroth: has joined #RubyOnRails
[09:15:12] norc-2: has joined #RubyOnRails
[09:15:23] sashman_: has joined #RubyOnRails
[09:17:23] daquan_: has joined #RubyOnRails
[09:18:16] Z00t: has joined #RubyOnRails
[09:19:23] jeanre: has joined #RubyOnRails
[09:19:24] jeanre: has joined #RubyOnRails
[09:19:59] machty_: has joined #RubyOnRails
[09:20:55] Spami: has joined #RubyOnRails
[09:21:41] Ratler: has joined #RubyOnRails
[09:24:02] marcdel: has joined #RubyOnRails
[09:24:56] marcdel: has joined #RubyOnRails
[09:25:27] Cervajz: has joined #RubyOnRails
[09:27:19] j3r0: has joined #RubyOnRails
[09:27:45] Cervajz_: has joined #RubyOnRails
[09:28:11] chouhoulis: has joined #RubyOnRails
[09:29:01] claytonzaugg: has joined #RubyOnRails
[09:32:19] dcope: has joined #RubyOnRails
[09:32:20] dcope: has joined #RubyOnRails
[09:32:34] syf-revk: has joined #RubyOnRails
[09:32:34] claytonzaugg_: has joined #RubyOnRails
[09:34:30] TDJACR: has joined #RubyOnRails
[09:34:40] sergey_makagon: has joined #RubyOnRails
[09:39:50] dcope-: has joined #RubyOnRails
[09:40:42] dopamean_: has joined #RubyOnRails
[09:41:21] adre: has joined #RubyOnRails
[09:42:22] cajone: has joined #RubyOnRails
[09:42:40] mostlybadfly: has joined #RubyOnRails
[09:43:12] PlasmaStar: has joined #RubyOnRails
[09:43:15] machty_: has joined #RubyOnRails
[09:43:17] pragmatism: has joined #RubyOnRails
[09:45:57] golgaroth: has joined #RubyOnRails
[09:46:09] chagel: has joined #RubyOnRails
[09:46:45] n008f4g_: has joined #RubyOnRails
[09:47:08] marcdel: has joined #RubyOnRails
[09:47:14] blackmesa: has joined #RubyOnRails
[09:48:14] pragmatism: has joined #RubyOnRails
[09:48:48] Surt_Q: has joined #RubyOnRails
[09:48:54] alexhartley: has joined #RubyOnRails
[09:48:58] snowy: has joined #RubyOnRails
[09:49:48] SuppliedRelic: has joined #RubyOnRails
[09:52:58] lbotos_: has joined #RubyOnRails
[09:53:22] jeanlinux: has joined #RubyOnRails
[09:54:14] alevy: has joined #RubyOnRails
[09:54:34] spastorino: has joined #RubyOnRails
[09:55:40] KorriX: has joined #RubyOnRails
[09:56:20] SuppliedRelic: has joined #RubyOnRails
[09:57:08] machty_: has joined #RubyOnRails
[09:58:03] jonee: has joined #RubyOnRails
[09:58:35] jeanre: has joined #RubyOnRails
[09:58:35] jeanre: has joined #RubyOnRails
[09:59:28] Jeremy1023: has joined #RubyOnRails
[10:00:24] Arcaire_: has joined #RubyOnRails
[10:01:33] bb: has joined #RubyOnRails
[10:01:36] DanKnox: has joined #RubyOnRails
[10:02:01] FooMunki: has joined #RubyOnRails
[10:02:29] FooMunki: has joined #RubyOnRails
[10:03:49] marr: has joined #RubyOnRails
[10:05:39] Fridtjof: has joined #RubyOnRails
[10:07:17] marr: has joined #RubyOnRails
[10:07:31] alethea: has joined #RubyOnRails
[10:07:32] FooMunki: has joined #RubyOnRails
[10:07:37] KorriX: has joined #RubyOnRails
[10:08:22] fryguy: has joined #RubyOnRails
[10:08:45] deeprave: has joined #RubyOnRails
[10:09:10] SuppliedRelic: has joined #RubyOnRails
[10:12:04] quazimodo: has joined #RubyOnRails
[10:15:55] Arcaire_: has joined #RubyOnRails
[10:17:03] sinkensabe: has joined #RubyOnRails
[10:17:57] machty_: has joined #RubyOnRails
[10:18:25] uglybandersnatch: has joined #RubyOnRails
[10:19:09] mostlybadfly: has joined #RubyOnRails
[10:19:55] bronson: has joined #RubyOnRails
[10:23:20] DmitryBochkarev: has joined #RubyOnRails
[10:24:01] Jasaka: has joined #RubyOnRails
[10:24:03] atian: has joined #RubyOnRails
[10:26:26] AzaToth: has joined #RubyOnRails
[10:26:37] sashman: has joined #RubyOnRails
[10:28:56] chouhoulis: has joined #RubyOnRails
[10:31:32] PlasmaStar: has joined #RubyOnRails
[10:34:20] Seich: has joined #RubyOnRails
[10:35:06] PrideCoding: has joined #RubyOnRails
[10:35:47] acosonic_: so, how can I force app to recompile on each request, for development purposes…? webrick -e development does not do the trick
[10:36:03] quazimodo: has joined #RubyOnRails
[10:36:54] machty_: has joined #RubyOnRails
[10:37:46] y2mq37: has joined #RubyOnRails
[10:37:48] tbuehlmann: acosonic, by "recompile" you mean reload the code?
[10:37:57] lele: has joined #RubyOnRails
[10:40:24] dcope: has joined #RubyOnRails
[10:43:06] tjbiddle: has joined #RubyOnRails
[10:43:18] ankhers: has joined #RubyOnRails
[10:43:48] acosonic_: I mean I change something and then I get Unable to autoload constant but not every time… Sometimes it displays change, sometimes not
[10:45:46] tbuehlmann: rails will already reload most of your code
[10:45:57] tbuehlmann: do you have an example of what code change is not recognized or results in an error?
[10:46:08] acosonic_: yes, but when I change something in translation, it crashes…
[10:46:18] acosonic_: then I reload webrick and it works...
[10:47:01] y2mq37: has joined #RubyOnRails
[10:47:48] ddv: has joined #RubyOnRails
[10:48:04] malcolmva: has joined #RubyOnRails
[10:50:35] joelsmith: has joined #RubyOnRails
[10:50:45] Aherin: has joined #RubyOnRails
[10:50:52] wethu: has joined #RubyOnRails
[10:51:13] corioliss_: has joined #RubyOnRails
[10:51:15] tbuehlmann: acosonic, show the code, please
[10:52:00] Synthead: has joined #RubyOnRails
[10:52:29] Pupeno: has joined #RubyOnRails
[10:52:42] Arcaire_: has joined #RubyOnRails
[10:52:42] chancancode___: has joined #RubyOnRails
[10:52:48] brainslug: has joined #RubyOnRails
[10:53:14] acosonic_: tbuehlmann: https://nimbus.everhelper.me/client/notes/share/407160/set3ql5b5v4xqh8cuwys
[10:54:47] mices: how do i display descriptions with bluimp image gallery?
[10:56:49] tbuehlmann: acosonic, gist the contents of app/controllers/invoices_controller.rb, please
[10:57:08] snowy: has joined #RubyOnRails
[10:58:16] acosonic_: tbuehlmann: https://github.com/acosonic/direct_invoice
[10:59:04] czetter: has joined #RubyOnRails
[11:00:17] tbuehlmann: acosonic, I don't know about redmine plugins, that's probably the problem
[11:00:26] upgrayeddd: has joined #RubyOnRails
[11:00:39] sevenseacat: acosonic: you need to tell people you're working on crappy redmine plugins
[11:00:51] sevenseacat: this is like the third time you've suckered someone into a redmine issue
[11:01:31] fox_mulder_cp: has joined #RubyOnRails
[11:02:45] acosonic_: sevenseacat: well it’s a ROR application, isn’t it? With over 600 plugins… I’m just trying to overcome some basic problems like server crashing
[11:03:42] sevenseacat: acosonic_: this is me telling you you need to tell people what you're doing. you can choose to listen, or not.
[11:04:15] sinkensabe: has joined #RubyOnRails
[11:04:32] fryguy: has joined #RubyOnRails
[11:08:17] Pazician: has joined #RubyOnRails
[11:08:39] chancancode___: has joined #RubyOnRails
[11:09:03] greenride: has joined #RubyOnRails
[11:10:56] mhoungbo: has joined #RubyOnRails
[11:12:31] laith: has joined #RubyOnRails
[11:14:36] dalbuschat: has joined #RubyOnRails
[11:16:48] atian: has joined #RubyOnRails
[11:16:51] ql6wlld: has joined #RubyOnRails
[11:17:21] djsmentya: has joined #RubyOnRails
[11:20:42] bronson: has joined #RubyOnRails
[11:20:47] Spami: has joined #RubyOnRails
[11:21:32] sinkensabe: has joined #RubyOnRails
[11:21:57] uglybandersnatch: has joined #RubyOnRails
[11:23:35] chagel: has joined #RubyOnRails
[11:29:42] chouhoulis: has joined #RubyOnRails
[11:30:08] deeprave: has joined #RubyOnRails
[11:31:14] machty_: has joined #RubyOnRails
[11:32:14] allcentury: has joined #RubyOnRails
[11:34:00] sher: has joined #RubyOnRails
[11:36:37] greenride: has left #RubyOnRails: ()
[11:38:38] shtirlic: has joined #RubyOnRails
[11:43:39] sinkensabe: has joined #RubyOnRails
[11:46:29] golgaroth: has joined #RubyOnRails
[11:48:29] camilasan: has joined #RubyOnRails
[11:51:09] DoctorMonocular: has joined #RubyOnRails
[11:52:00] blackmesa: has joined #RubyOnRails
[11:52:22] trifling-jest: has joined #RubyOnRails
[11:53:44] Pupeno: has joined #RubyOnRails
[11:54:29] LateralOctober: has joined #RubyOnRails
[11:54:35] Seich: has joined #RubyOnRails
[11:55:39] meoblast001: has joined #RubyOnRails
[11:55:54] netzfisch: has joined #RubyOnRails
[11:56:36] bb: has joined #RubyOnRails
[11:58:20] alxndr: has joined #RubyOnRails
[11:58:39] dionysus69: has joined #RubyOnRails
[12:00:19] Ratler: has joined #RubyOnRails
[12:02:06] fox_mulder_cp: ACTION shutdown wordpress and switch to jekyll on my own site. ~31mb of php vs ~1.1mb of clean html
[12:03:01] sevenseacat: jekyll is nice
[12:03:25] sfr^: has joined #RubyOnRails
[12:03:38] fox_mulder_cp: sevenseacat: i do it myself. i want migrate from wp at least last 3 years
[12:04:22] sinkensabe: has joined #RubyOnRails
[12:05:50] FooMunki: has joined #RubyOnRails
[12:06:10] j3r0: has joined #RubyOnRails
[12:07:31] tknz: has joined #RubyOnRails
[12:08:26] deeprave: has joined #RubyOnRails
[12:08:27] alxndr: has joined #RubyOnRails
[12:09:23] mhoungbo: has joined #RubyOnRails
[12:09:25] Ratler: has joined #RubyOnRails
[12:09:37] moeabdol: has joined #RubyOnRails
[12:11:33] siaW: has joined #RubyOnRails
[12:12:05] siaW: can someone please check if my ‘new’ and ‘create’ methods are fine https://gist.github.com/siaw23/9a95e65968d043e4a14f
[12:13:02] sevenseacat: siaw: are you having an issue with them?
[12:13:59] smoitra_: has joined #RubyOnRails
[12:14:18] siaW: first time i’m writing an app without any reference to any document/google and was wondering if that ‘params’ would work if it was in the ‘new’ method
[12:15:36] sevenseacat: it will - all actions have access to any params passed in
[12:16:59] defsdoor: has joined #RubyOnRails
[12:17:06] siaW: so i could decide to put the params in the ‘new’ method. is that the best practice?
[12:17:54] sevenseacat: best practice for what?
[12:18:02] siaW: for where to put params
[12:18:07] siaW: ‘new’ or ‘create'
[12:18:20] sevenseacat: you access them where you need them
[12:18:43] siaW: cool. thanks :)
[12:19:09] trinaldi: has joined #RubyOnRails
[12:19:28] sinkensabe: has joined #RubyOnRails
[12:21:43] TDJACR: has joined #RubyOnRails
[12:21:47] bronson: has joined #RubyOnRails
[12:22:01] sandstrom: has joined #RubyOnRails
[12:23:07] mices: i'm trying to add descriptions to images in bluimp-image-gallery, it seems there's no way without writing javascript, i feel that's not right, i'm using the gem, i shouldn't have to write javascript for something that really should be a built in function and why isn't it? does this make sense to anyone?
[12:24:29] sher: has joined #RubyOnRails
[12:26:18] jeanre: has joined #RubyOnRails
[12:26:18] jeanre: has joined #RubyOnRails
[12:26:24] sinkensabe: has joined #RubyOnRails
[12:27:43] Pupeno: has joined #RubyOnRails
[12:29:12] Spami: has joined #RubyOnRails
[12:29:38] intrigueD: has joined #RubyOnRails
[12:29:43] jeanre: has joined #RubyOnRails
[12:29:43] jeanre: has joined #RubyOnRails
[12:30:31] chouhoulis: has joined #RubyOnRails
[12:31:57] delgiudices: has joined #RubyOnRails
[12:35:00] DoctorMo_: has joined #RubyOnRails
[12:38:08] DoctorMonocular: has joined #RubyOnRails
[12:40:02] defsdoor: has joined #RubyOnRails
[12:40:17] rubyonrailed: has joined #RubyOnRails
[12:40:28] sfr^: has joined #RubyOnRails
[12:40:54] malcolmva: has joined #RubyOnRails
[12:41:25] chagel: has joined #RubyOnRails
[12:42:33] sinkensabe: has joined #RubyOnRails
[12:43:17] DmitryBochkarev: has joined #RubyOnRails
[12:45:34] mikeiniowa: has joined #RubyOnRails
[12:46:18] netzfisch: has joined #RubyOnRails
[12:49:07] golgaroth: has joined #RubyOnRails
[12:49:14] atian: has joined #RubyOnRails
[12:49:16] duderonomy: has joined #RubyOnRails
[12:50:14] siaW: in my new.html.erb i have this https://gist.github.com/siaw23/36a73744745e2539b6b9 but the browser only shows the button, no form? why?
[12:50:49] bb: has joined #RubyOnRails
[12:51:22] c355E3B: has joined #RubyOnRails
[12:51:23] DoctorMonocular: has joined #RubyOnRails
[12:52:24] wkoszek_: has joined #RubyOnRails
[12:52:32] sfr^: has joined #RubyOnRails
[12:52:34] tfitts: has joined #RubyOnRails
[12:52:42] sinkensabe: has joined #RubyOnRails
[12:53:17] sinkensabe: has joined #RubyOnRails
[12:53:37] Shoutsid: has joined #RubyOnRails
[12:53:42] quazimodo: has joined #RubyOnRails
[12:54:25] netzfisch: has joined #RubyOnRails
[12:55:20] capin: has joined #RubyOnRails
[12:55:23] Janno: has joined #RubyOnRails
[12:55:23] jarib: has joined #RubyOnRails
[12:55:23] jarib: has joined #RubyOnRails
[12:55:23] DoctorMonocular: has joined #RubyOnRails
[12:55:39] iuuso: has joined #RubyOnRails
[12:55:45] shapeshifter: has joined #RubyOnRails
[12:55:52] worknick: has joined #RubyOnRails
[12:55:53] kichawa: has joined #RubyOnRails
[12:55:53] kichawa: has joined #RubyOnRails
[12:55:53] fumk: has joined #RubyOnRails
[12:56:19] crankharder: has joined #RubyOnRails
[12:56:39] pfg: has joined #RubyOnRails
[12:56:43] worknick: i have user has_many commentns and comment belongs to user. what shall i be looking for when my comment.user printns <hexcodeforuser> but comment.user.id says undefined method if for nil nill class.
[12:56:58] worknick: thats my models https://gist.github.com/wrknck/d704dee93ecf1a161905
[12:57:13] fumduq: has joined #RubyOnRails
[12:57:24] jonee: has joined #RubyOnRails
[12:57:35] krzkrzkrz: has joined #RubyOnRails
[12:57:54] Denarii: has joined #RubyOnRails
[12:57:57] Lloyd: has joined #RubyOnRails
[12:58:15] snowy: has joined #RubyOnRails
[12:58:33] dukedave_: has joined #RubyOnRails
[12:58:49] andrew-l: has joined #RubyOnRails
[12:58:55] Papierkorb: has joined #RubyOnRails
[12:58:56] MuffinPimp: has joined #RubyOnRails
[12:58:57] netzfisch: has joined #RubyOnRails
[12:58:59] Scient: has joined #RubyOnRails
[12:59:02] loglaunch: has joined #RubyOnRails
[12:59:04] abracadaniel: has joined #RubyOnRails
[12:59:06] beingjohnm: has joined #RubyOnRails
[12:59:08] dshoreman: has joined #RubyOnRails
[12:59:10] herenow: has joined #RubyOnRails
[12:59:15] swav: has joined #RubyOnRails
[12:59:16] swgillespie: has joined #RubyOnRails
[12:59:19] humd1ng3r: has joined #RubyOnRails
[12:59:23] hyperdrive: has joined #RubyOnRails
[12:59:53] Guest12896_: has joined #RubyOnRails
[12:59:53] daxroc: has joined #RubyOnRails
[13:00:09] acosonic_: has joined #RubyOnRails
[13:00:25] Sirecote: has joined #RubyOnRails
[13:00:29] spastorino: has joined #RubyOnRails
[13:00:34] CornishPasty: has joined #RubyOnRails
[13:01:13] svkurowski: has joined #RubyOnRails
[13:01:14] xMopxShell: has joined #RubyOnRails
[13:01:21] null__: has joined #RubyOnRails
[13:01:21] null__: has joined #RubyOnRails
[13:01:36] sevenseacat: worknick: can you gist the error and related info?
[13:01:37] upgrayeddd: has joined #RubyOnRails
[13:02:18] Fire-Dragon-DoL: has joined #RubyOnRails
[13:02:46] null__: has joined #RubyOnRails
[13:02:46] null__: has joined #RubyOnRails
[13:02:58] BaNzounet: has joined #RubyOnRails
[13:03:12] SuppliedRelic: has joined #RubyOnRails
[13:03:23] c355E3B: has joined #RubyOnRails
[13:03:32] gr3yR0n1n: has joined #RubyOnRails
[13:03:40] worknick: sevenseacat: https://gist.github.com/wrknck/d704dee93ecf1a161905 is my models. adding error to that. just a sec
[13:03:49] humd1ng3r: has joined #RubyOnRails
[13:03:53] sevenseacat: yes, i saw the models, you posted them already.
[13:04:08] lbotos_: has joined #RubyOnRails
[13:04:38] atian: has joined #RubyOnRails
[13:04:42] AntiSpamMeta: has joined #RubyOnRails
[13:05:01] sher: has joined #RubyOnRails
[13:05:15] DarkBushido: has joined #RubyOnRails
[13:05:57] worknick: sevenseacat: error added https://gist.github.com/wrknck/d704dee93ecf1a161905 i added note to point to actual line
[13:06:32] worknick: sevenseacat: recently i even added validates_presence_of :user to comments model
[13:06:41] sevenseacat: worknick: so where does it say that pc.user is not nil?
[13:06:50] worknick: sevenseacat: the main thing is, all this was working before. suddenly something broke.
[13:07:01] ddv: has joined #RubyOnRails
[13:07:04] worknick: sevenseacat: in another error if i remove the id part and reload.
[13:07:08] machty_: has joined #RubyOnRails
[13:07:18] Silex: has joined #RubyOnRails
[13:07:23] sevenseacat: that doesnt tell me where it's not nil
[13:07:27] sevenseacat: because it clearly is, given the error
[13:07:44] apeiros: has joined #RubyOnRails
[13:07:49] CustosLimen: has joined #RubyOnRails
[13:07:49] kies: has joined #RubyOnRails
[13:07:56] avelldiroll: has joined #RubyOnRails
[13:08:02] c355E3B_: has joined #RubyOnRails
[13:08:31] sfr^: has joined #RubyOnRails
[13:08:45] czetter: has joined #RubyOnRails
[13:08:58] Megamos: has joined #RubyOnRails
[13:09:05] crankharder: has joined #RubyOnRails
[13:09:40] worknick: sevenseacat: now its not acceping comment because i added the validation. so basically user_id is not provided. troubleshooing it.
[13:09:49] gregf__: has joined #RubyOnRails
[13:10:34] worknick: sevenseacat: how can i print the troubleshooting msgs directrly from my controller to some file?
[13:10:55] Daquan: has joined #RubyOnRails
[13:10:56] sevenseacat: use Rails' logging functionality to get them in development.log.
[13:11:32] Daquan: has joined #RubyOnRails
[13:11:47] golgaroth: has joined #RubyOnRails
[13:12:40] shanemcd: has joined #RubyOnRails
[13:13:29] worknick: sevenseacat: any freenode issue today?
[13:14:40] daxroc: has joined #RubyOnRails
[13:15:13] spastorino: has joined #RubyOnRails
[13:15:57] Spami: has joined #RubyOnRails
[13:16:12] fryguy: has joined #RubyOnRails
[13:16:16] alxndr: has joined #RubyOnRails
[13:16:20] c355E3B: has joined #RubyOnRails
[13:16:26] differentreality: has joined #RubyOnRails
[13:16:28] sled: has joined #RubyOnRails
[13:16:32] Lloyd: has joined #RubyOnRails
[13:16:35] sfr^: has joined #RubyOnRails
[13:16:36] sfr^: has joined #RubyOnRails
[13:16:36] ddv: has joined #RubyOnRails
[13:16:38] dukedave_: has joined #RubyOnRails
[13:16:41] atian: has joined #RubyOnRails
[13:16:48] Seich: has joined #RubyOnRails
[13:16:53] camilasan: has joined #RubyOnRails
[13:17:14] Arcaire_: has joined #RubyOnRails
[13:17:24] DanKnox: has joined #RubyOnRails
[13:17:27] alethea: has joined #RubyOnRails
[13:17:32] Guest12896_: has joined #RubyOnRails
[13:17:38] j3r0: has joined #RubyOnRails
[13:17:42] SuppliedRelic: has joined #RubyOnRails
[13:17:47] imanc: has joined #RubyOnRails
[13:18:08] CornishPasty: has joined #RubyOnRails
[13:18:17] DarkBushido: has joined #RubyOnRails
[13:18:18] ctrlrsf: has joined #RubyOnRails
[13:18:47] Obi_obi: has joined #RubyOnRails
[13:18:48] KorriX: has joined #RubyOnRails
[13:19:15] mostlybadfly: has joined #RubyOnRails
[13:19:17] pfg: has joined #RubyOnRails
[13:20:04] malcolmva: has joined #RubyOnRails
[13:20:23] corioliss_: has joined #RubyOnRails
[13:20:25] czetter: has joined #RubyOnRails
[13:20:46] amitchellbullard: has joined #RubyOnRails
[13:20:55] lord4163: has joined #RubyOnRails
[13:21:00] deeprave: has joined #RubyOnRails
[13:21:18] chancancode___: has joined #RubyOnRails
[13:21:36] machty_: has joined #RubyOnRails
[13:21:45] AntiSpamMeta: has joined #RubyOnRails
[13:21:58] jord: has joined #RubyOnRails
[13:22:12] stannard: has joined #RubyOnRails
[13:22:17] Hosh: has joined #RubyOnRails
[13:22:35] Hates__: has joined #RubyOnRails
[13:22:46] bronson: has joined #RubyOnRails
[13:23:15] shanemcd: has joined #RubyOnRails
[13:23:39] blackmesa: has joined #RubyOnRails
[13:23:45] Guest34101: has joined #RubyOnRails
[13:24:03] darrik: has joined #RubyOnRails
[13:24:10] djsmentya: has joined #RubyOnRails
[13:24:19] delgiudices: has joined #RubyOnRails
[13:24:48] PrideCoding: has joined #RubyOnRails
[13:25:24] upgrayeddd: has joined #RubyOnRails
[13:25:26] wkoszek: has joined #RubyOnRails
[13:27:23] HalcyonicStorm: has joined #RubyOnRails
[13:28:20] TDJACR: has joined #RubyOnRails
[13:29:03] ziyadb: has joined #RubyOnRails
[13:29:35] chagel: has joined #RubyOnRails
[13:30:05] hightower: has joined #RubyOnRails
[13:30:15] CornishPasty: has joined #RubyOnRails
[13:31:11] chouhoulis: has joined #RubyOnRails
[13:32:44] tpendragon: has joined #RubyOnRails
[13:34:24] _Tariq: has joined #RubyOnRails
[13:35:32] siaW: isn’t ‘has_many :accounts’ and ‘belongs_to :user’ enough to set foreign keys on the tables? because i can’t do something like “user.accounts” in the console. it tells me “ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: column accounts.user_id does not exist” is there anything extra i should be doing?
[13:36:29] darrik: has joined #RubyOnRails
[13:36:43] sevenseacat: siaw: you will need to create migrations to add the columns to your database
[13:37:05] tfittsy: has joined #RubyOnRails
[13:37:17] sevenseacat: siaw: those has_many/belongs_to declarations just tell rails what those fields in the database mean
[13:37:41] siaW: and then i don’t have to do anything to set foreign keys right?
[13:38:10] sevenseacat: well that depends what you write in the migration
[13:38:25] sevenseacat: if you create foreign keys in the migration, then you don't need to do anything else
[13:38:27] hyperdrive: has joined #RubyOnRails
[13:40:56] MrDoctor: has joined #RubyOnRails
[13:41:31] xhoy_: has left #RubyOnRails: ()
[13:41:31] xhoy_: has joined #RubyOnRails
[13:41:49] xhoy_: has left #RubyOnRails: ()
[13:41:49] xhoy_: has joined #RubyOnRails
[13:41:59] xhoy_: siaw: http://guides.rubyonrails.org/active_record_migrations.html << some basic examples
[13:42:19] siaW: xhoy_: i’m reading that actually, thanks :)
[13:42:25] sandstrom: has joined #RubyOnRails
[13:43:04] adre: has joined #RubyOnRails
[13:43:05] xhoy_: ok, the guide is really nice to getting the basics :>
[13:43:44] machty_: has joined #RubyOnRails
[13:44:58] ElFerna_: has joined #RubyOnRails
[13:47:41] sevenseacat: all of the rails guides are great, i still use them all the time :)
[13:48:16] Arcaire_: has joined #RubyOnRails
[13:50:42] alexhartley: has joined #RubyOnRails
[13:50:53] siaW: now a quick one
[13:50:57] siaW: i just run a migration
[13:51:03] siaW: that generated something like this
[13:51:04] siaW: add_reference(:users, :account, {:index=>true, :foreign_key=>true})
[13:51:07] siaW: my question is
[13:51:35] siaW: shouldn’t i be seeing and “account_id” field column in the console for any given User?
[13:52:30] xhoy: but maby you need to reload your console
[13:52:37] siaW: well i’m not seeing it after doing reload!
[13:52:43] PlasmaStar: has joined #RubyOnRails
[13:53:00] xhoy: "User" doesnt give you an account_id???
[13:53:01] sevenseacat: did you run the migration?
[13:53:03] michael_mbp: has joined #RubyOnRails
[13:53:10] xhoy: have you run the migration
[13:53:10] xhoy: rake db:migrate
[13:53:22] siaW: i’m past that
[13:53:36] xhoy: look at your schema.rb
[13:53:59] siaW: the schema shows account_id
[13:54:12] sevenseacat: in the users table?
[13:54:31] sevenseacat: if so, then restart your console
[13:54:55] siaW: i see it now
[13:57:57] deeprave: has joined #RubyOnRails
[13:58:00] Synthead: has joined #RubyOnRails
[13:59:10] brainslug: has joined #RubyOnRails
[13:59:53] livcd: has joined #RubyOnRails
[14:00:16] Guest12896_: has joined #RubyOnRails
[14:01:22] joelsmith: has joined #RubyOnRails
[14:03:38] amitchellbullard: has joined #RubyOnRails
[14:03:43] acosonic: sevenseacat: I accomplished what I wanted but with Apache… Ditched the webrick...
[14:04:44] joaomdmoura__: has joined #RubyOnRails
[14:04:54] superlou: has joined #RubyOnRails
[14:05:03] mhoungbo: has joined #RubyOnRails
[14:05:16] cydrobolt: has joined #RubyOnRails
[14:05:16] cydrobolt: has joined #RubyOnRails
[14:08:19] rdavila: has joined #RubyOnRails
[14:08:47] siaW: looking at my gist here: https://gist.github.com/siaw23/2ad037f9ba98a7fb7556 and account has one user and a user has many accounts. should my user tables ALSO have and account_id field?
[14:11:35] djsmentya: has joined #RubyOnRails
[14:11:39] czetter: has joined #RubyOnRails
[14:11:43] shanemcd: has joined #RubyOnRails
[14:12:44] rtl: has joined #RubyOnRails
[14:13:39] MrDoctor: has joined #RubyOnRails
[14:14:00] cookiez: has joined #RubyOnRails
[14:14:58] tbuehlmann: siaw, looks good. what are you trying right now and how does it fail?
[14:16:19] Guest34101: has joined #RubyOnRails
[14:17:41] siaW: tbuehlmann: works fine. but i’m using devise. and i’m wondering how to create an account so that rails know which user created which account
[14:18:34] jeanlinux: has joined #RubyOnRails
[14:18:46] tbuehlmann: ah, so just assign it in the controller?
[14:19:27] siaW: hmmm, and then i can do this in index? https://gist.github.com/siaw23/2ad037f9ba98a7fb7556#file-index-html-erb
[14:19:27] emachnic: has joined #RubyOnRails
[14:19:43] jto: has joined #RubyOnRails
[14:20:52] siaW: because in my console i have variable ‘u’ which has an account_id of 1
[14:20:54] siaW: but when i do
[14:21:10] siaW: us.accounts i get greeted with => #<ActiveRecord::Associations::CollectionProxy []>
[14:21:12] siaW: empty array
[14:21:30] siaW: when in fact i’m expectin the account with id of 1
[14:21:52] siaW: and when i do u.accounts.count
[14:22:03] SuppliedRelic: has joined #RubyOnRails
[14:22:14] siaW: but u actually has an account_id assigned
[14:22:33] tbuehlmann: if accounts#index shall only display a user's accounts and not all, yeah, @user.accounts will do
[14:23:10] siaW: but why am i get “0” in my console when i do u.accounts
[14:23:19] siaW: where u is assigned to some user
[14:23:22] tbuehlmann: I really can't follow your console
[14:23:33] siaW: ok i’ll show you
[14:23:34] solars: has joined #RubyOnRails
[14:23:34] malcolmva: has joined #RubyOnRails
[14:23:38] bronson: has joined #RubyOnRails
[14:24:30] siaW: you see u has an account_id, at the end https://gyazo.com/d517efecba3f32b9a8fd915048504ca2
[14:25:15] siaW: and a is an account. it has a user_id of 1
[14:25:16] siaW: https://gyazo.com/3bbfe66a579497f1ceb6d9bc785c397b
[14:25:34] siaW: so when i do
[14:25:37] siaW: u.accounts
[14:25:53] tbuehlmann: I thought your association was `User.has_many :accounts`. why does a user has an account_id then?
[14:26:17] siaW: yeah association is user has many accounts
[14:26:33] tbuehlmann: then there's something wrong
[14:26:43] tbuehlmann: the users table shouldn't have an account_id column
[14:27:08] siaW: it doesn’t
[14:27:22] siaW: this is my schema
[14:27:24] siaW: https://gist.github.com/siaw23/2ad037f9ba98a7fb7556#file-schema-rb
[14:27:32] tbuehlmann: you just showed me it does
[14:29:05] siaW: but my schema is correct looking at the associations?
[14:30:11] sfr^: has joined #RubyOnRails
[14:30:20] tbuehlmann: schema and model associations are okay, I think
[14:30:32] sevenseacat: how did one simple association get so complicated
[14:30:45] siaW: i don’t know :(
[14:30:50] siaW: that’s what i’m trying to figure out
[14:31:11] tbuehlmann: just drop the database, recreate and migrate it
[14:31:14] tbuehlmann: let's see what happens
[14:31:23] siaW: ok i’m doing that
[14:31:32] xhoy: siaw: promiss me you try atleast one week :>
[14:31:46] sevenseacat: user has many accounts -> accounts table should have a user_id field. thats really all there is to it.
[14:31:52] siaW: i try what one week?
[14:31:59] xhoy: siaw: RoR has a verry steep learning curv , the easy things are "hard"but the hard things are just as hard :>
[14:31:59] chouhoulis: has joined #RubyOnRails
[14:32:10] xhoy: siaw: RoR :>
[14:32:23] xhoy: siaw: onces you learn to accept "the magic" you never go back :>
[14:32:32] siaW: xhoy: lol :D
[14:32:58] xhoy: siaw: and once you no your way, everything is easy :>
[14:33:21] siaW: sevenseacat: got it. i’ll drop db and recreate again
[14:33:24] xhoy: the hard part is learning what goes where
[14:33:42] xhoy: siaw: rake db:drop
[14:33:48] rdavila: has joined #RubyOnRails
[14:34:02] xhoy: siaw: rake db:create
[14:34:35] xhoy: siaw: or are you using rails 5?
[14:34:36] acosonic: what does unloadable in controller mean?
[14:34:36] tbuehlmann: and maybe delete the migration file inbetween
[14:34:57] tbuehlmann: acosonic, never read that in a rails context, I'd think this is something from redmine
[14:35:12] acosonic: tbuehlmann: thnx
[14:35:50] siaW: xhoy: no rails 4
[14:36:22] laith: has joined #RubyOnRails
[14:36:29] DoubleMalt: has joined #RubyOnRails
[14:37:36] xhoy: siaw: oke, they changes the "rake" to "rails" in RoR5 (to make it less confusing)
[14:38:09] siaW: xhoy: i know that, that doesn’t even bother me
[14:38:39] siaW: tbuehlmann: now everythign is fine
[14:38:50] siaW: i dropped and recrated the db
[14:38:56] siaW: my User has NO account_id
[14:39:14] siaW: but my Account has user_id column
[14:39:32] xhoy: siaw: have you don the codeacademy course on ruby/rails?
[14:39:43] xhoy: siaw: rake db:migrate
[14:40:06] siaW: xhoy: yes
[14:40:19] siaW: xhoy: that course is a joke actually
[14:40:27] xhoy: o ok, never don it :P
[14:40:37] xhoy: let my interns follow it :>
[14:40:37] siaW: xhoy: one on codeschool is better
[14:41:10] xhoy: oke but no user_id?
[14:41:33] ja: has joined #RubyOnRails
[14:41:39] siaW: now how do i see a user’s account?
[14:41:53] xhoy: upload your project to github?
[14:42:02] tbuehlmann: you get a user's accounts by calling `user.accounts`
[14:42:05] xhoy: dunno whats going on to be honist
[14:42:33] siaW: tbuehlmann: yeah. but when i do that i get an empty array :(
[14:42:57] sevenseacat: then your user has no accounts
[14:42:59] stannard: has joined #RubyOnRails
[14:43:01] tbuehlmann: have your created accounts at all?
[14:43:07] shanemcd_: has joined #RubyOnRails
[14:43:18] tbuehlmann: remember, you dropped your database
[14:43:56] siaW: yes i have created 2 accounts
[14:44:00] siaW: my repo: https://github.com/siaw23/twitter
[14:44:12] sevenseacat: did you associate users to those accounts?
[14:45:21] siaW: sevenseacat: if this is what you mean
[14:45:21] siaW: https://gyazo.com/3bbfe66a579497f1ceb6d9bc785c397b
[14:45:23] siaW: then yes
[14:45:29] siaW: you can see the user_id is 1
[14:45:56] sevenseacat: has that been saved to the db?
[14:47:13] siaW: i just did a.save
[14:47:22] tbuehlmann: there's something wonky
[14:47:25] sevenseacat: okay. now which user are you calling accounts ?
[14:47:37] siaW: user with id of 1
[14:47:57] sevenseacat: also, did calling a.save actually save the record?
[14:48:27] siaW: in the console
[14:48:35] siaW: a.save returned true
[14:48:48] sevenseacat: okay, so show me this user and their no accounts
[14:49:22] sevenseacat: in gist not screenshot form, if possible
[14:49:24] emachnic: has joined #RubyOnRails
[14:49:27] smoitra__: has joined #RubyOnRails
[14:49:28] akshat: has joined #RubyOnRails
[14:49:29] Axy: has joined #RubyOnRails
[14:49:53] tbuehlmann: siaw, so I just cloned your repo, installed stuff and got it working
[14:50:36] siaW: sevenseacat: i can’t show you the user and number of accounts cause when i do u.accounts i get an empty array
[14:50:44] siaW: tbuehlmann: how?
[14:51:01] sevenseacat: gist what you're seeing. I'm not a mindreader.
[14:51:10] jeanlinux: has joined #RubyOnRails
[14:51:55] siaW: sevenseacat: https://gist.github.com/siaw23/547632d01884991bf71a
[14:52:19] sevenseacat: you loaded that list of accounts before or after you saved the user ID to the account?
[14:52:21] tbuehlmann: https://gist.github.com/tbuehlmann/58da11afe628221540b5
[14:52:25] sevenseacat: there's no SQL query there
[14:52:32] sevenseacat: so the association was already loaded
[14:52:59] siaW: sevenseacat: after
[14:53:05] tbuehlmann: siaw, just to be sure, try `u.accounts(true)`
[14:53:08] sevenseacat: so why isnt it in that gist
[14:53:23] dionysus69: has joined #RubyOnRails
[14:53:41] czetter: has joined #RubyOnRails
[14:53:41] deeprave: has joined #RubyOnRails
[14:53:43] iamdevnul: has joined #RubyOnRails
[14:54:03] cfloare: has joined #RubyOnRails
[14:54:43] iuuso: has joined #RubyOnRails
[14:54:44] siaW: tbuehlmann: https://gist.github.com/siaw23/547632d01884991bf71a
[14:55:09] tbuehlmann: add the result of Account.all to the gist, please
[14:56:08] siaW: tbuehlmann: https://gist.github.com/siaw23/547632d01884991bf71a
[14:56:27] tbuehlmann: there you got it
[14:56:41] tbuehlmann: one account is created for another user (not u), and the second account doesn't event have an associated user
[14:56:54] lele: has joined #RubyOnRails
[14:57:16] proboszcz: has joined #RubyOnRails
[14:57:42] mhenrixon: has joined #RubyOnRails
[14:57:42] aep: has joined #RubyOnRails
[14:57:44] universa1: has joined #RubyOnRails
[14:58:49] svkurowski: has joined #RubyOnRails
[14:59:25] dukedave_: has joined #RubyOnRails
[14:59:59] mostlybadfly: has joined #RubyOnRails
[15:00:26] lord4163: has joined #RubyOnRails
[15:01:14] mc_fail: has joined #RubyOnRails
[15:01:47] Marquel: has joined #RubyOnRails
[15:02:19] n008f4g_: has joined #RubyOnRails
[15:03:42] Marquel: has joined #RubyOnRails
[15:04:20] siaW: it’s working now :)
[15:04:53] siaW: what i wasn’t doing was that i wasn’t calling .save on the objects after creating them
[15:05:02] siaW: does .create save the objects
[15:05:44] Bugson: has joined #RubyOnRails
[15:05:59] tbuehlmann: I highly suggest reading http://guides.rubyonrails.org/getting_started.html
[15:06:06] ewnd9: has joined #RubyOnRails
[15:06:06] tbuehlmann: saving a record is part of it
[15:06:39] sevenseacat: ACTION bites tongue after being told that a.save returned true
[15:07:44] netzfisch: has joined #RubyOnRails
[15:08:04] siaW: it did :9
[15:08:16] siaW: unless i called it on something else
[15:11:22] Arcaire_: has joined #RubyOnRails
[15:16:19] Ergo: has joined #RubyOnRails
[15:18:53] daquan_: has joined #RubyOnRails
[15:19:15] arup_r: has joined #RubyOnRails
[15:24:37] shanemcd_: has joined #RubyOnRails
[15:25:00] codepete: has joined #RubyOnRails
[15:26:36] augcesar[2]: has joined #RubyOnRails
[15:26:49] xhoy: siaw: and how are you doing :>
[15:27:01] nfk: has joined #RubyOnRails
[15:27:11] Hosh: has joined #RubyOnRails
[15:27:22] siaW: don’t even ask hahaha
[15:27:26] siaW: i’m struggling
[15:27:32] rdavila: has joined #RubyOnRails
[15:28:52] MrDoctor: has joined #RubyOnRails
[15:28:59] siaW: but thanks for asking ;)
[15:31:05] siaW: ok so now i’m on to the next stay
[15:31:08] siaW: i’m using devise
[15:31:11] siaW: and when i log in
[15:31:14] siaW: i create some accounts
[15:31:26] siaW: so i created a @user variable
[15:31:28] siaW: https://gist.github.com/siaw23/3f64807e873b7560c931#file-accounts_controller-rb-L6
[15:31:40] siaW: the way i want it to work is
[15:31:57] siaW: the index page should show only accounts that was created by a logged in user
[15:32:03] siaW: currently after creating accounts
[15:32:13] siaW: this bit here: https://gist.github.com/siaw23/3f64807e873b7560c931#file-index-html-erb-L7
[15:32:19] siaW: shows nothing
[15:32:39] siaW: but “user.accounts” works in my console
[15:32:49] siaW: how do i make it show the user’s accounts?
[15:32:54] chouhoulis: has joined #RubyOnRails
[15:33:38] fox_mulder_cp: or u mean User.facebook|twitter|github accs?
[15:33:56] DoctorMonocular: has joined #RubyOnRails
[15:34:10] uglybandersnatch: has joined #RubyOnRails
[15:35:42] Pazician: has joined #RubyOnRails
[15:38:42] shanemcd_: has joined #RubyOnRails
[15:41:01] intrigueD: has joined #RubyOnRails
[15:41:45] sher: has joined #RubyOnRails
[15:42:31] rubyonrailed: has joined #RubyOnRails
[15:42:39] stannard: has joined #RubyOnRails
[15:43:29] _Tariq: has joined #RubyOnRails
[15:45:19] jeanlinux: has joined #RubyOnRails
[15:48:23] cydrobolt: has joined #RubyOnRails
[15:48:37] cydrobolt: has joined #RubyOnRails
[15:48:45] lightheaded: has joined #RubyOnRails
[15:51:09] Ducky-: has joined #RubyOnRails
[15:53:19] josephkokenge: has joined #RubyOnRails
[15:55:37] joshkovach: has joined #RubyOnRails
[15:55:41] blackmesa: has joined #RubyOnRails
[15:56:01] anirban: has joined #RubyOnRails
[15:56:42] laith: has joined #RubyOnRails
[15:57:37] shanemcd_: has joined #RubyOnRails
[16:00:52] Oliphaunte: has joined #RubyOnRails
[16:04:03] joelsmith: has joined #RubyOnRails
[16:04:17] Synthead: has joined #RubyOnRails
[16:04:58] _Tariq: has joined #RubyOnRails
[16:05:05] Oliphaunte: has joined #RubyOnRails
[16:05:18] brainslug: has joined #RubyOnRails
[16:05:31] granden: has joined #RubyOnRails
[16:05:48] lightheaded: has joined #RubyOnRails
[16:05:53] Megamos: has joined #RubyOnRails
[16:06:00] lightheaded: has joined #RubyOnRails
[16:06:16] rdavila: has joined #RubyOnRails
[16:06:34] Oliphaunte: has joined #RubyOnRails
[16:06:50] diegoviola: has joined #RubyOnRails
[16:21:11] meinside: has joined #RubyOnRails
[16:21:56] shanemcd_: has joined #RubyOnRails
[16:23:31] jeanlinux: has joined #RubyOnRails
[16:26:37] kknight: has joined #RubyOnRails
[16:30:57] jonee: has joined #RubyOnRails
[16:32:25] enitiz: has joined #RubyOnRails
[16:33:28] chouhoulis: has joined #RubyOnRails
[16:33:37] eljimmy: has joined #RubyOnRails
[16:35:39] bb2: has joined #RubyOnRails
[16:38:32] DoctorMonocular: has joined #RubyOnRails
[16:43:13] rubyonrailed: has joined #RubyOnRails
[16:45:58] adavia: has joined #RubyOnRails
[16:49:08] GreatDanton: has joined #RubyOnRails
[16:53:35] _Tariq: has joined #RubyOnRails
[16:53:38] sashman: has joined #RubyOnRails
[16:56:12] Pazician: has joined #RubyOnRails
[16:57:37] hinbody: has joined #RubyOnRails
[16:59:30] snowy: has joined #RubyOnRails
[17:01:04] DmitryBochkarev: has joined #RubyOnRails
[17:01:13] _Tariq: has joined #RubyOnRails
[17:03:26] moeabdol1: has joined #RubyOnRails
[17:03:48] deeprave: has joined #RubyOnRails
[17:06:13] fn2187__: has joined #RubyOnRails
[17:06:21] nogic: has joined #RubyOnRails
[17:07:21] nogic: has joined #RubyOnRails
[17:08:36] nogic: has joined #RubyOnRails
[17:13:09] j3r0: has joined #RubyOnRails
[17:14:46] arup_r: has joined #RubyOnRails
[17:15:57] djbkd: has joined #RubyOnRails
[17:16:55] NeoHamled: has joined #RubyOnRails
[17:17:09] _Tariq: has joined #RubyOnRails
[17:19:22] qejk: has joined #RubyOnRails
[17:22:07] lightheaded: has joined #RubyOnRails
[17:24:05] dionysus69: has joined #RubyOnRails
[17:25:49] mrgreenfur: has joined #RubyOnRails
[17:26:49] hoodow: has joined #RubyOnRails
[17:26:49] hoodow: has joined #RubyOnRails
[17:29:44] DoctorMo_: has joined #RubyOnRails
[17:32:43] bronson: has joined #RubyOnRails
[17:34:12] chouhoulis: has joined #RubyOnRails
[17:35:02] Robtop__: has joined #RubyOnRails
[17:35:48] alexhartley: has joined #RubyOnRails
[17:38:17] kies^: has joined #RubyOnRails
[17:39:52] Rodya_: has joined #RubyOnRails
[17:42:01] fox_mulder_cp: hi, how to quickly compile all my scss and js files into one main.css|main.js file for jekyll?
[17:42:15] renegadeandy: has joined #RubyOnRails
[17:42:29] renegadeandy: Hi, can a paperclip guru take a look at this : http://stackoverflow.com/questions/35685876/storing-an-image-based-upon-nothing-but-a-url-in-paperclip
[17:42:56] shanemcd_: has joined #RubyOnRails
[17:43:51] _3by8: has joined #RubyOnRails
[17:43:55] rubyonrailed: has joined #RubyOnRails
[17:45:03] _3by8: Is it enough to just create a class in the models folder and generate a table in the database for an ActiveRecord object to exist?
[17:45:43] ur5us: has joined #RubyOnRails
[17:45:47] renegadeandy: _3by8: I would use the command ‘rails generate model Person name:string age:int’ but yes
[17:45:57] renegadeandy: if you used the naming conventions correctly it should work
[17:46:04] _3by8: renegadeandy: thank you
[17:46:23] renegadeandy: after that command, make sure to run ‘rake db:migrate'
[17:47:21] greenhat: renegadeandy: If you require 'open-uri' then you can open a URL just like a file. So I bet you could do self.photo = open(url).
[17:47:55] sergey_makagon: has joined #RubyOnRails
[17:48:09] renegadeandy: greenhat: where do i put that require
[17:48:13] renegadeandy: above the class?
[17:48:21] alexhartley: has joined #RubyOnRails
[17:52:47] renegadeandy: greenhat: I can confirm that does not work
[17:52:58] renegadeandy: instead, when i do : <%= image_tag @event.event_images.third.photo.url %> it shows the default image
[17:54:24] srinidhi: has joined #RubyOnRails
[17:57:27] greenhat: renegadeandy: are you saving your object after setting photo?
[17:58:56] renegadeandy: greenhat: https://gist.github.com/anonymous/32d3546854af082829a4
[18:00:08] mhoungbo: has joined #RubyOnRails
[18:03:39] rubyonrailed: has joined #RubyOnRails
[18:04:23] greenhat: Just reading your SO question. I don't think you want to use paperclip in the case of the default image. It would download and store multiple copies of the default image.
[18:05:38] renegadeandy: i want to be able to wrap my code around this
[18:05:50] renegadeandy: maybe ill just store an image_id in the EventImage and leave :photo as blank
[18:05:53] renegadeandy: but thats not nice easier
[18:08:59] renegadeandy: if i added ‘stock_image_id’ as a field to the EventImage, I could just have a model method which gets the url based upon paperclip or stock image i suppose...
[18:09:25] greenhat: Yeah. Just what I was typing - I would just store the photo url in a separate `canned_url` attribute, and have a method like `def photo_url; canned_url || photo.url; end`
[18:09:57] renegadeandy: ill do that - thanks :)
[18:10:22] greenhat: That hides the implementation behind a method - rather than exposing the implementation via event.photo.url.
[18:10:38] greenhat: Law of demeter FTW.
[18:12:04] _Tariq: has joined #RubyOnRails
[18:13:27] flip_digits: has joined #RubyOnRails
[18:14:05] flip_digits: I have a question about consuming an api
[18:14:43] _3by8: flip_digits: you should just ask
[18:14:59] flip_digits: Should part of my application that calls out to a third party service be responsible for handing the errors?
[18:15:01] _3by8: flip_digits: and if you have any code examples, paste it in a Gist
[18:15:13] flip_digits: thnaks @_dby8
[18:15:13] HalcyonicStorm: has joined #RubyOnRails
[18:15:38] delgiudices: Can you call a method of application controller from a view?
[18:16:25] _3by8: delgiudices: have you tried?
[18:16:35] flip_digits: I have what is called npi_service that calls out to the api and client code that uses the results
[18:16:37] delgiudices: Yes actually the question was how _3by8
[18:17:02] arup_r: delgiudices: no
[18:17:25] arup_r: but we may give you some trick, if you tell us the goal.
[18:17:28] flip_digits: if a user submits a "malformed" request should my client code handle the error or should npi_service?
[18:17:59] flip_digits: I'm really confused on how to design my classes around consuming an api
[18:20:13] intrigueD: has joined #RubyOnRails
[18:20:14] intrigueD: has joined #RubyOnRails
[18:23:05] kdough: has joined #RubyOnRails
[18:23:29] flip_digits: are there any books on how to consume an api?
[18:26:58] _Tariq: has joined #RubyOnRails
[18:27:08] greenhat: flip_digits: I've never heard of a book specifically on consuming apis. General programming and architecture books help.
[18:27:25] stannard: has joined #RubyOnRails
[18:28:00] greenhat: flip_digits: Typically in a rails app you want to call 3rd party services in a background job - so you would use one of these https://www.ruby-toolbox.com/categories/Background_Jobs
[18:28:36] greenhat: You would handle the entire request/response in the background job including error handling.
[18:29:02] n008f4g_: has joined #RubyOnRails
[18:32:33] flip_digits: greenhat: your response is the crux of my question. I'm unsure how to separte the concerns
[18:33:40] flip_digits: It feels like the class that calls out to the third party service should stop errors from moving up the call chain
[18:34:06] sher: has joined #RubyOnRails
[18:34:52] flip_digits: it seems that If I get a bad response I should handle it at the point that it enters my application and not later by any other class. but I could be wrong
[18:34:57] chouhoulis: has joined #RubyOnRails
[18:35:23] chridal: I need to be able to fire off for instance 20k http requests and measure the requests per second etc. for some simple benchmarking
[18:35:31] chridal: A simple CLI tool would be the best
[18:35:33] chridal: any thoughts?
[18:36:03] chridal: It's an API for what it's worth
[18:38:38] _3by8: chridal: wrk might work
[18:40:51] greenhat: flip_digits: It depends entirely on the api and they error and the usecase.
[18:41:32] greenhat: flip_digits: Maybe you email the user about the error (credit card declined). Maybe you just retry every 10 minutes, etc.
[18:45:30] pawnbox: has joined #RubyOnRails
[18:49:44] argv: has joined #RubyOnRails
[18:50:19] Aherin: has joined #RubyOnRails
[18:51:47] mahna: has joined #RubyOnRails
[18:52:05] mhoungbo: has joined #RubyOnRails
[18:53:06] n008f4g_: has joined #RubyOnRails
[18:54:09] mahna: Anybody have experience getting Rails framework testing working with a MySQL conf file? Scenario: framework test config.yml user = 'rails,' no password specified.
[18:54:39] mooru: has joined #RubyOnRails
[18:54:46] Guest34101: has joined #RubyOnRails
[18:55:10] mahna: I've created /etc/my.cnf and ~/.my.cnf, but when running Rails framework tests I don't think it's finding either file. (I know it's somewhat MySQL related, but if I ask over there they'll probably say it's a Rails issue.)
[18:56:02] mahna: I can just add a password entry to config.yml, but as it's included in the repo I'm looking for a smoother way to handle this when making framework contributions.
[18:58:13] Pupeno: has joined #RubyOnRails
[18:58:13] Pupeno: has joined #RubyOnRails
[19:00:23] snowy: has joined #RubyOnRails
[19:04:51] mahna: join /osx
[19:06:46] Jasaka: has joined #RubyOnRails
[19:07:17] acosonic: has joined #RubyOnRails
[19:07:38] IanMalcolm: has joined #RubyOnRails
[19:07:40] sergey_makagon: has joined #RubyOnRails
[19:09:32] noob: has joined #RubyOnRails
[19:10:50] mhoungbo: has joined #RubyOnRails
[19:11:21] laith: has joined #RubyOnRails
[19:14:40] differentreality: has joined #RubyOnRails
[19:15:07] chridal: _3by8: thanks!
[19:15:16] _3by8: chridal: no problem
[19:15:19] pawnbox: has joined #RubyOnRails
[19:16:18] dionysus69: has joined #RubyOnRails
[19:18:16] blackmesa: has joined #RubyOnRails
[19:19:31] diegoviola: has joined #RubyOnRails
[19:20:48] bga57: has joined #RubyOnRails
[19:23:39] Pupeno: has joined #RubyOnRails
[19:25:01] nickjj: has joined #RubyOnRails
[19:25:27] apotry: has joined #RubyOnRails
[19:28:58] stannard: has joined #RubyOnRails
[19:29:48] blackmes1: has joined #RubyOnRails
[19:31:04] Qureshi: has joined #RubyOnRails
[19:31:44] iamdevnul: has joined #RubyOnRails
[19:31:52] lele: has joined #RubyOnRails
[19:32:12] Cohedrin: has joined #RubyOnRails
[19:33:18] differentreality: has joined #RubyOnRails
[19:33:58] bousquet: has joined #RubyOnRails
[19:34:23] enkristoffer: has joined #RubyOnRails
[19:34:38] bronson: has joined #RubyOnRails
[19:35:18] czetter: has joined #RubyOnRails
[19:35:37] pawnbox: has joined #RubyOnRails
[19:35:41] chouhoulis: has joined #RubyOnRails
[19:36:18] uglybandersnatch: has joined #RubyOnRails
[19:36:23] ace05: has joined #RubyOnRails
[19:37:46] renegadeandy: has joined #RubyOnRails
[19:37:54] dukedave_: has joined #RubyOnRails
[19:37:55] Arcaire_: has joined #RubyOnRails
[19:39:01] shanemcd_: has joined #RubyOnRails
[19:39:56] differentreality: has joined #RubyOnRails
[19:42:13] ace05: has left #RubyOnRails: ()
[19:43:05] rubyonrailed: has joined #RubyOnRails
[19:43:06] ss_much: has joined #RubyOnRails
[19:43:35] FCser: has joined #RubyOnRails
[19:44:57] Qureshi: Can anyone help me with this? http://stackoverflow.com/questions/35687050/rails-4-0-bundler-warning
[19:45:33] jfelchner: has joined #RubyOnRails
[19:46:02] kirillzh: has joined #RubyOnRails
[19:50:38] Qureshi: has joined #RubyOnRails
[19:51:13] baweaver: has joined #RubyOnRails
[19:54:23] knight_: has joined #RubyOnRails
[19:56:02] tparenti: has joined #RubyOnRails
[19:56:33] fedexo: has joined #RubyOnRails
[19:57:15] intrigueD: has joined #RubyOnRails
[19:58:13] benlieb: has joined #RubyOnRails
[20:01:09] _3by8: Qureshi: when you say you ran bundler, are you talking about taking the steps that the error message suggested?
[20:03:11] lele: has joined #RubyOnRails
[20:03:28] djbkd: has joined #RubyOnRails
[20:05:25] HalcyonicStorm: has left #RubyOnRails: ()
[20:06:01] ur5us: has joined #RubyOnRails
[20:08:49] kies: has joined #RubyOnRails
[20:08:52] moeabdol2: has joined #RubyOnRails
[20:10:00] DoctorMonocular: has joined #RubyOnRails
[20:10:05] Guest18607: has left #RubyOnRails: ()
[20:10:32] ruurd: has joined #RubyOnRails
[20:15:53] lightheaded: has joined #RubyOnRails
[20:21:04] nerium: has joined #RubyOnRails
[20:21:07] arup_r: has joined #RubyOnRails
[20:22:41] codepete: has joined #RubyOnRails
[20:23:47] flopsec: has joined #RubyOnRails
[20:25:27] codepete_: has joined #RubyOnRails
[20:26:06] Liothen: has joined #RubyOnRails
[20:27:07] benlieb: has joined #RubyOnRails
[20:30:24] shanemcd_: has joined #RubyOnRails
[20:35:20] kknight: has joined #RubyOnRails
[20:36:28] chouhoulis: has joined #RubyOnRails
[20:36:42] diegoviola: has joined #RubyOnRails
[20:43:32] arghdiconnekt: has joined #RubyOnRails
[20:43:46] arghdiconnekt: has left #RubyOnRails: ()
[20:43:55] toocwa: has joined #RubyOnRails
[20:44:00] Pupeno: has joined #RubyOnRails
[20:44:08] rubyonrailed: has joined #RubyOnRails
[20:45:03] pawnbox: has joined #RubyOnRails
[20:47:47] smoitra__: has left #RubyOnRails: ()
[20:52:17] Pupeno: has joined #RubyOnRails
[20:55:21] cac: has joined #RubyOnRails
[20:55:31] DoctorMonocular: has joined #RubyOnRails
[20:57:17] lolcodenewbie_: has joined #RubyOnRails
[20:59:33] heavyside: has joined #RubyOnRails
[21:01:07] snowy: has joined #RubyOnRails
[21:01:58] codepete: has joined #RubyOnRails
[21:08:11] darrik_: has joined #RubyOnRails
[21:08:25] xhoy_: has joined #RubyOnRails
[21:09:48] armyriad: has joined #RubyOnRails
[21:09:48] MuffinPimp: has joined #RubyOnRails
[21:09:49] Fire-Dragon-DoL: has joined #RubyOnRails
[21:09:49] MalcolmReynolds: has joined #RubyOnRails
[21:09:54] CustosLim3n: has joined #RubyOnRails
[21:10:02] djellemah: has joined #RubyOnRails
[21:10:42] leeky: has joined #RubyOnRails
[21:10:50] apeiros: has joined #RubyOnRails
[21:11:25] ElFerna_: has joined #RubyOnRails
[21:11:44] swgillespie: has joined #RubyOnRails
[21:12:33] spastorino: has joined #RubyOnRails
[21:12:46] dualbus: has joined #RubyOnRails
[21:14:47] SanguineAnomaly: has joined #RubyOnRails
[21:15:53] pawnbox: has joined #RubyOnRails
[21:18:48] _3by8: What happens when you use ActiveRecord to create a second record for a has_one relation?
[21:18:51] codepete: has joined #RubyOnRails
[21:18:55] _3by8: Did I even say that properly?
[21:19:09] alchemist95: has joined #RubyOnRails
[21:20:01] ponzii: has joined #RubyOnRails
[21:21:30] ponzii: What's the best way to communicate with a Clojure process/api from MRI Rails? REST or something better?
[21:21:48] hackeron: has joined #RubyOnRails
[21:21:58] Gabriel403: has joined #RubyOnRails
[21:22:21] Radar: GOOD MORNING
[21:23:30] gaf_: has joined #RubyOnRails
[21:25:57] heavyside: Radar: shut up
[21:26:01] heavyside: why dont u write your book and die
[21:26:08] heavyside: i am tired of having you present
[21:26:14] heavyside: and talkning abt your gay book
[21:26:19] heavyside: just die now
[21:26:21] kgutteridge: has joined #RubyOnRails
[21:26:24] heavyside: its published FUCK!!
[21:26:35] _3by8: Radar: what's your stupid, gay book's name?
[21:27:09] fourq_: has left #RubyOnRails: ()
[21:28:38] _3by8: Oh, that's cool. Rails 4 in Action, I've heard that book's name uttered as a recommendation.
[21:29:05] _3by8: Yehuda Katz, too? What did he do, write a forward or something?
[21:29:29] trosborn: has joined #RubyOnRails
[21:30:49] confact: has joined #RubyOnRails
[21:32:06] heavyside: what thef cuk does sergey do for google
[21:32:10] heavyside: he's like the queen
[21:32:18] heavyside: like a monarch or something of google
[21:32:20] _3by8: Radar: having only read 2 introductory books on Rails, do you think I'd be able to pick up what you put down?
[21:32:22] heavyside: a figurehead.
[21:32:26] puff: has joined #RubyOnRails
[21:32:44] Radar: +b heavyside!*@*
[21:32:45] Radar: gtfo kthx
[21:32:46] Radar: Radar kicked heavyside: thanks
[21:32:50] scrooloose: has joined #RubyOnRails
[21:33:12] Radar: -b heavyside!*@*
[21:33:21] _3by8: Radar: okay, so, back to my question... do you think I'd be able to process it without having a really solid grasp of Ruby?
[21:33:22] Radar: +b *!*@15.Red-79-159-88.dynamicIP.rima-tde.net
[21:33:24] corioliss_: has joined #RubyOnRails
[21:34:07] Radar: _3by8: I don't appreciate that you used gay as an insult.
[21:34:12] Radar: Even if it was heavyside who used it first.
[21:34:54] _3by8: Radar: it was more of a satirical use but I understand that's difficult to understand in a chat room.
[21:35:03] corioliss_: has left #RubyOnRails: ()
[21:35:15] corioliss: has joined #RubyOnRails
[21:35:43] Radar: _3by8: Which book are you talking about?
[21:35:55] _3by8: Rails 4 in Action
[21:35:59] Radar: And which Rails books have you read so far?
[21:37:09] chouhoulis: has joined #RubyOnRails
[21:37:11] bronson: has joined #RubyOnRails
[21:37:31] _3by8: Michael Hartl's Ruby on Rails Tutorial and David Copeland's Rails, Angular, Postgres, and Bootstrap: Powerful, Effective, and Efficient Full-Stack Web Development
[21:37:32] hangelo: has joined #RubyOnRails
[21:37:51] Radar: So you'll probably know a lot of what Rails 4 in Action covers then, at least in the first 6 chapters. Past that you'll likely pick up things
[21:37:57] Radar: I haven't read the second one of those books
[21:38:02] banister: has joined #RubyOnRails
[21:38:08] Radar: I know Rails Tutorial doesn't cover _anything_ that Rails 4 in Action covers past chapter 7.
[21:38:30] fox_mulder_cp: Radar: u select write own boook, than read another?^)
[21:38:44] Radar: fox_mulder_cp: I read quite a lot of books :)
[21:39:02] Radar: But not as many as some other people. I think I'm on my 6th or 7th book for the year.
[21:39:15] fox_mulder_cp: Radar: cool :)
[21:40:16] _3by8: Radar: is this a project-based book?
[21:40:16] fox_mulder_cp: Radar: u mind, that i stay junior, after reading r4ia, official guide, and agile dev on r4...
[21:40:35] Radar: _3by8: Yeah, you start out building a project in Chapter 3 and then end up deploying it to Heroku in Chapter 15.
[21:41:08] fox_mulder_cp: and write my own blog engine and easy photo gallery
[21:41:33] Radar: fox_mulder_cp: I don't understand what you mean by "u mind, that I stay junior"?
[21:42:18] fox_mulder_cp: Radar: i think, that i stayed jun, and only practice make my experience
[21:42:34] Radar: fox_mulder_cp: yes that's right
[21:42:55] Radar: fox_mulder_cp: You can keep going through the books / guides and you'll get better at that. To grow your experience you'll need to try other things outside of those guides
[21:43:15] Radar: I think the books + guides empower you with a base of knowledge that you can use to try other things
[21:43:59] fox_mulder_cp: Radar: but i think, that my child can code. but coder != programmer
[21:44:53] rubyonrailed: has joined #RubyOnRails
[21:45:00] fox_mulder_cp: true programmer thinking about ways to implement, and stay as tech lead - make arch of product - modules, used techs..
[21:45:29] fox_mulder_cp: and as for me - i code ~15-30% time now
[21:45:52] NeoHamled: has joined #RubyOnRails
[21:46:13] fox_mulder_cp: i take a pencil and paper notepad and write write by my hand - ideas, classes, conntrollers, algorytms
[21:46:50] ur5us: has joined #RubyOnRails
[21:47:43] fox_mulder_cp: and now implement ~15% ideas in code. without styling via frameworks
[21:48:17] abolishme: has joined #RubyOnRails
[21:49:27] alexhartley: has joined #RubyOnRails
[21:52:30] baweaver: has joined #RubyOnRails
[21:53:16] nogic: has joined #RubyOnRails
[21:53:37] DoctorMonocular: has joined #RubyOnRails
[21:55:11] Arcaire_: has left #RubyOnRails: ()
[21:55:28] Arcaire: has joined #RubyOnRails
[21:55:29] agent008: has joined #RubyOnRails
[21:55:43] marcdel: has joined #RubyOnRails
[21:55:50] pawnbox: has joined #RubyOnRails
[22:04:48] johnflux_: has joined #RubyOnRails
[22:12:14] ElFerna_: has joined #RubyOnRails
[22:13:29] RahulT: has joined #RubyOnRails
[22:13:38] blackmes1: has joined #RubyOnRails
[22:15:17] slash_nick: With rails routing and constraints, is it possible to chain several constraints for a given action, kind of like WhitelistConstraint.new && RoleBasedConstraint.new??
[22:18:33] shanemcd_: has joined #RubyOnRails
[22:18:58] DoctorMonocular: has joined #RubyOnRails
[22:19:09] ql6wlld: has joined #RubyOnRails
[22:19:59] slash_nick: i guess there's plenty of ways to do it... just not through an API quite like i'm describing...
[22:24:12] chouhoulis: has joined #RubyOnRails
[22:24:14] ql6wlld: has joined #RubyOnRails
[22:26:37] wethu: has joined #RubyOnRails
[22:31:43] nogic: has joined #RubyOnRails
[22:32:06] sneakerhax: has joined #RubyOnRails
[22:32:43] nogic: has joined #RubyOnRails
[22:33:27] lubekpl: has joined #RubyOnRails
[22:33:48] Spami: has joined #RubyOnRails
[22:33:49] nogic: has joined #RubyOnRails
[22:33:53] lubekpl: has joined #RubyOnRails
[22:35:13] nogic: has joined #RubyOnRails
[22:36:18] nogic: has joined #RubyOnRails
[22:37:52] nogic: has joined #RubyOnRails
[22:39:17] nogic: has joined #RubyOnRails
[22:40:12] Radar: slash_nick: yes it is possible to chain constraints
[22:42:34] uglybandersnatch: has joined #RubyOnRails
[22:43:23] imanc: has left #RubyOnRails: ()
[22:43:44] tw1sted: has joined #RubyOnRails
[22:44:54] Guest34101: has joined #RubyOnRails
[22:46:46] lubekpl: hey guys, what's your approach to a full_name field if a user has a first_name and last_name attribute, but no full_name ?
[22:46:54] rubyonrailed: has joined #RubyOnRails
[22:47:30] fox_mulder_cp: lubekpl: if full_name.nil? concat first + second?
[22:48:05] fox_mulder_cp: if u start show nil value - u get exception
[22:48:26] fox_mulder_cp: in my views i check it
[22:48:27] lubekpl: fox_mulder_cp: yeah but how do you handle it in the views
[22:48:34] lubekpl: as in, the requirement is
[22:48:46] lubekpl: that only a full_name field would be accessible
[22:48:47] lubekpl: on the view
[22:49:20] lubekpl: I've created an attr_accessor
[22:49:31] lubekpl: and before validation I split the full name
[22:49:51] slash_nick: Radar: what do you do, pass an array as the value for constraints?... resources :foos, constraints: [ConstraintOne.new, ConstraintTwo.new]?
[22:49:55] lubekpl: but I'm really interested how other people do it
[22:49:58] Radar: slash_nick: nest them
[22:50:08] Radar: slash_nick: constraint(Constraint1) do; constraint(Constraint2)
[22:50:22] fox_mulder_cp: lubekpl: i think that in MVC views can't be do anything with logic. i try to makee virtual attr, or nil? checking in view, but think that is not tue way
[22:50:33] slash_nick: Radar: gotcha
[22:51:01] lubekpl: fox_mulder_cp: no logic on the views for me ;)
[22:51:44] Oliphaunte: has joined #RubyOnRails
[22:52:36] delgiudices: has joined #RubyOnRails
[22:52:50] fox_mulder_cp: lubekpl: yep. it must be at model virtual attr, or refedine
[22:53:05] lubekpl: fox_mulder_cp: thx :)
[22:53:32] chouhoulis: has joined #RubyOnRails
[22:55:15] KnownSyntax: has joined #RubyOnRails
[22:55:17] KnownSyntax: has joined #RubyOnRails
[22:55:51] joanna_: has joined #RubyOnRails
[22:58:31] delgiudices: has joined #RubyOnRails
[22:59:32] snowy: has joined #RubyOnRails
[22:59:59] hello9: has joined #RubyOnRails
[23:01:23] Devalo: has joined #RubyOnRails
[23:01:36] baweaver: has joined #RubyOnRails
[23:02:13] podman: has joined #RubyOnRails
[23:04:12] chipotle: has joined #RubyOnRails
[23:04:39] quazimodo: has joined #RubyOnRails
[23:04:43] korzybski: has joined #RubyOnRails
[23:05:19] hello9: hey all, is there a "Rails way" when dealing with strong params that are (should/nt be?) namespace? I've included a simple example
[23:05:20] narendasan: has joined #RubyOnRails
[23:05:20] hello9: https://gist.github.com/anonymous/79f0523f56cf20f96e15
[23:05:54] korzybski: Hello. I’m using PostgreSQL and Rails 4. I see that ActiveRecord will translate PG’s JSONB-type into native Ruby-structure; however, if I use ActiveRecord::Base.connection.execute, I get a string-JSON back and not Ruby-structure — anyone know how to tell AR to translate JSON string to Ruby?
[23:05:58] n008f4g_: has joined #RubyOnRails
[23:06:22] intrigueD: has joined #RubyOnRails
[23:09:25] Brando753: has joined #RubyOnRails
[23:16:36] Palsson: has joined #RubyOnRails
[23:17:42] netzfisch: has joined #RubyOnRails
[23:20:19] DmitryBochkarev: has joined #RubyOnRails
[23:21:11] Brando753: has joined #RubyOnRails
[23:22:57] AntiSpamMeta: has joined #RubyOnRails
[23:25:49] Megamos: has joined #RubyOnRails
[23:25:53] pawnbox: has joined #RubyOnRails
[23:26:15] _Tariq: has joined #RubyOnRails
[23:26:40] wwwbukolaycom: has joined #RubyOnRails
[23:32:13] ElFerna_: has joined #RubyOnRails
[23:33:15] mices: i'm having trouble getting data-description to display a caption for my images in bluimp
[23:34:29] wethu: has joined #RubyOnRails
[23:36:22] delgiudices: has joined #RubyOnRails
[23:36:41] Brando753: has joined #RubyOnRails
[23:39:08] j3r0: has joined #RubyOnRails
[23:39:09] bronson: has joined #RubyOnRails
[23:40:14] crdpink2: has joined #RubyOnRails
[23:40:38] y2mq37: has joined #RubyOnRails
[23:43:37] flashpoint9: has joined #RubyOnRails
[23:47:14] delgiudices: has joined #RubyOnRails
[23:47:40] rubyonrailed: has joined #RubyOnRails
[23:48:26] trosborn: has joined #RubyOnRails
[23:51:54] shanemcd_: has joined #RubyOnRails
[23:52:02] Rodya_: has joined #RubyOnRails
[23:54:21] uglybandersnatch: has joined #RubyOnRails
[23:54:47] shanemcd_: has joined #RubyOnRails
[23:55:45] pawnbox: has joined #RubyOnRails
[23:57:59] puff: has joined #RubyOnRails
[23:59:42] DoctorMonocular: has joined #RubyOnRails