« Back to channel list

#RubyOnRails - 01 July 2016

« Back 1 day Forward 1 day »
[00:00:15] augustao: has joined #RubyOnRails
[00:00:24] Osmosis311: has joined #RubyOnRails
[00:03:35] crystal77: has joined #RubyOnRails
[00:06:56] ariaru: has joined #RubyOnRails
[00:07:03] AmiMoench: has joined #RubyOnRails
[00:07:29] jhack: has joined #RubyOnRails
[00:09:13] cnk: Darmani: if you call just image.url I think you get the original
[00:09:18] Technodrome: has joined #RubyOnRails
[00:09:32] cnk: if you want your resized one, you need to use one of the preset names
[00:10:04] neo_: has joined #RubyOnRails
[00:10:04] Darmani: cnk: I figured it out :)
[00:10:18] cnk: excellent!
[00:10:37] ElFerna: has joined #RubyOnRails
[00:11:06] lupine: yay, rails 5
[00:11:18] lupine: ACTION looks askance at the rails 2 applications his company runs
[00:12:20] cnk: ya well. I feel your pain
[00:12:39] cnk: on the bright side, I did manage to retire my rails 1 apps about the time rails 4 dropped
[00:12:42] lupine: I got a bunch of them onto rails3.2 recently-ish
[00:12:57] lupine: it's going to be up to someone else to carry the torch now, I'm off to pastures new ^^
[00:13:28] cnk: congrats
[00:16:16] neo_: so I am doing a simple tutorial where I have Users and a User has many Tweets
[00:16:37] neo_: on my index page I display all the users and how many tweets they have had
[00:17:22] neo_: in my rails server log I see that for every user I query for the count of the tweets where the user_id = ???, is there any way to reduce this insane loading ?
[00:17:58] GodFather: has joined #RubyOnRails
[00:19:30] cnk: yes if you wnat to display totals, you can denormalize and store the count in user
[00:19:52] cnk: I think naming an integer column tweet_count (or whatever your model name is) may do it automatically
[00:21:35] cnk: neo_: look at the counter_cache section of http://guides.rubyonrails.org/association_basics.html#belongs-to-association-reference
[00:22:13] skiz: has joined #RubyOnRails
[00:23:11] ur5us: has joined #RubyOnRails
[00:28:22] skywebro: has joined #RubyOnRails
[00:29:19] superlou: has joined #RubyOnRails
[00:30:21] GodFather: has joined #RubyOnRails
[00:30:35] pontiki: has joined #RubyOnRails
[00:31:56] dc4: has joined #RubyOnRails
[00:34:44] GodFather: has joined #RubyOnRails
[00:37:39] GodFather: has joined #RubyOnRails
[00:38:17] eserror: has joined #RubyOnRails
[00:39:36] capin: happy birthday rails 5 \o/
[00:39:43] jenrzzz: has joined #RubyOnRails
[00:48:04] GodFather: has joined #RubyOnRails
[00:48:22] eichenwald: has joined #RubyOnRails
[00:51:33] harfangk: has joined #RubyOnRails
[00:55:07] neo_: @cnk thanks
[00:55:18] neo_: how do you mention people in messages ?
[00:55:51] cnk: that flagged me
[00:56:10] capin: neo_: like this ;)
[00:56:13] cnk: but most irc clients you type a few letters and tab complete - ending with a :
[00:57:40] jhack: has joined #RubyOnRails
[01:00:35] SteenJobs: has joined #RubyOnRails
[01:00:38] blackmes1: has joined #RubyOnRails
[01:01:48] neo_: cnk: like this
[01:02:11] ekinmur: has joined #RubyOnRails
[01:10:34] pilne: has left #RubyOnRails: ("Leaving!")
[01:10:56] GodFather: has joined #RubyOnRails
[01:11:47] hahuang61: has joined #RubyOnRails
[01:15:03] whathapp_: has joined #RubyOnRails
[01:15:56] whathappens: has joined #RubyOnRails
[01:16:41] daniel: has joined #RubyOnRails
[01:20:32] neo_: has joined #RubyOnRails
[01:32:50] Aherin: has joined #RubyOnRails
[01:33:48] skiz: has joined #RubyOnRails
[01:35:16] FastJack: has joined #RubyOnRails
[01:36:59] amcoder: has joined #RubyOnRails
[01:36:59] asheinfeld: has joined #RubyOnRails
[01:36:59] proboszcz: has joined #RubyOnRails
[01:36:59] khelair: has joined #RubyOnRails
[01:37:00] hefest: has joined #RubyOnRails
[01:37:00] Jasaka: has joined #RubyOnRails
[01:37:00] sn1ff3r: has joined #RubyOnRails
[01:37:00] DanKnox_: has joined #RubyOnRails
[01:37:00] lord4163_: has joined #RubyOnRails
[01:37:00] callumacrae: has joined #RubyOnRails
[01:37:00] webhat: has joined #RubyOnRails
[01:37:00] tw1sted: has joined #RubyOnRails
[01:37:00] hypnosb: has joined #RubyOnRails
[01:37:00] eisi: has joined #RubyOnRails
[01:39:01] JesseH: has joined #RubyOnRails
[01:39:02] AntiSpamMeta: has joined #RubyOnRails
[01:40:16] callumacrae: has joined #RubyOnRails
[01:40:37] harfangk: has joined #RubyOnRails
[01:40:41] SteenJobs: has joined #RubyOnRails
[01:45:24] ur5us: has joined #RubyOnRails
[01:47:22] d0nn1e: has joined #RubyOnRails
[01:47:43] AndrewIsHere: has joined #RubyOnRails
[01:48:53] SteenJobs: has joined #RubyOnRails
[01:50:00] one_zero: has joined #RubyOnRails
[01:50:52] timferrell: has joined #RubyOnRails
[01:51:18] timferrell: hey all - anyone come across an issue where a relationship in rails is not included when serialized to json
[01:52:31] eichenwald: timferrel: more info is needed are you trying to serialize with active_model_serializers to json or what
[01:53:26] timferrell: take a look here: https://github.com/pickledyamsman/whats-for-dinner/blob/master/app/models/restaurant.rb
[01:53:39] timferrell: food_types is not being included when restaurants is being serialized
[01:54:46] timferrell: all other props on restaurant are being included, but not that one
[01:54:54] timferrell: not sure what's the difference here
[01:55:00] ekinmur: has joined #RubyOnRails
[01:57:31] weaksauce: has joined #RubyOnRails
[01:58:18] timferrell: pulling my hair out here
[01:58:50] cd-rum: has joined #RubyOnRails
[01:59:59] pontiki: timferrell: how are you calling it?
[02:00:52] timferrell: /events/1.json
[02:01:10] timferrell: it gets into the events controller, show method, it finds the other parts of the model
[02:01:14] timferrell: just not the food_Type
[02:01:23] blackmes1: has joined #RubyOnRails
[02:01:26] pontiki: show the controller code
[02:01:47] timferrell: https://github.com/pickledyamsman/whats-for-dinner/blob/master/app/controllers/events_controller.rb
[02:02:23] Robtop__: has joined #RubyOnRails
[02:03:11] timferrell: respond_with Event.find(params[:id])
[02:05:50] pontiki: i've not done anything nested 3 deep
[02:05:57] pontiki: so i don't know if that should work
[02:09:08] sevenseacat: has joined #RubyOnRails
[02:09:12] timferrell: any idea where docs would be on serialization depth?
[02:09:56] pontiki: other than the api? no
[02:12:51] roamingdog: has joined #RubyOnRails
[02:13:03] chouhoulis: has joined #RubyOnRails
[02:15:09] Axsuul: has joined #RubyOnRails
[02:15:28] sharkman: has joined #RubyOnRails
[02:15:43] Axsuul: What do you guys use to convert ES6 to ES5 in the asset pipeline.. sprockets-es6?
[02:16:18] whathappens: has joined #RubyOnRails
[02:16:32] sharkman: i have a question about hiring practices. when someone gets hired onto a new project, on a flexible basis, like just for a personal job, does the coder take the time to get up to speed on the project at no cost? a discount? or full rate for every hour?
[02:16:57] SteenJobs: has joined #RubyOnRails
[02:16:59] timferrell: you're making an investment.
[02:17:14] timferrell: oh - is it freelance, contract or employee?
[02:17:51] sharkman: i dont know what the difference is between the three
[02:17:55] sharkman: i mean they are all related right
[02:18:05] sharkman: like doesnt a freelancer sign a contract?
[02:18:06] roamingdog: sharkman: full rate, whichever
[02:18:34] timferrell: i suppose so
[02:18:48] User458764: has joined #RubyOnRails
[02:19:10] sharkman: im a novice or slightly better than novice rails coder, any tips on how i can hire someone who is capable
[02:19:22] sharkman: im not sure how to judge on who is good or not
[02:19:56] roamingdog: sharkman: samples of previous work?
[02:20:42] sharkman: yeah i guess, its just not obvious to me how good someones code is
[02:23:12] rubyonrailed: has joined #RubyOnRails
[02:25:12] roamingdog: sharkman: i guess there's something of a gamble involved, that's why there are trial periods
[02:25:36] sharkman: how can you do a trial though? all my code is integrated together so to code anything they would need to see all the code base
[02:25:43] sharkman: how do trial periods work?
[02:25:57] macsteps: has joined #RubyOnRails
[02:26:56] roamingdog: sharkman: you'd have a contract, even for the trial. if either party is unhappy after, they can leave etc. sounds like you'd have them sign an NDA also
[02:27:32] sharkman: anyone on here want work?
[02:27:42] sharkman: i have work ill hire someone to do
[02:29:49] sharkman: i have PMs coming in now! maybe this will be a lucky night!
[02:31:26] ChanServ: +o sevenseacat
[02:32:16] ChanServ: -o sevenseacat
[02:32:39] sevenseacat: happy Rails 5 day, everyone!
[02:38:30] chouhoulis: has joined #RubyOnRails
[02:39:50] banjara: has joined #RubyOnRails
[02:41:34] sypheren: has joined #RubyOnRails
[02:42:11] banjara1: has joined #RubyOnRails
[02:45:39] justrohu: has joined #RubyOnRails
[02:48:32] chouhoulis: has joined #RubyOnRails
[02:53:48] pwnd_nsfw`: has joined #RubyOnRails
[03:02:26] blackmes1: has joined #RubyOnRails
[03:05:28] harfangk: sevenseacat: are you planning to update your book for Rails 5 anytime soon? haha
[03:05:29] Rodya_: has joined #RubyOnRails
[03:07:42] Tempesta_: has joined #RubyOnRails
[03:07:54] cd-rum: has joined #RubyOnRails
[03:12:32] hahuang61: has joined #RubyOnRails
[03:14:45] Tempesta: has joined #RubyOnRails
[03:15:17] jahbrewski: has joined #RubyOnRails
[03:24:17] braincras: has joined #RubyOnRails
[03:24:24] rubyonrailed: has joined #RubyOnRails
[03:24:36] rubyonrails676: has joined #RubyOnRails
[03:29:43] siaw23: has joined #RubyOnRails
[03:33:57] tanaryder: has joined #RubyOnRails
[03:37:03] tanaryder: Hey all, learning rails here, can anyone recommend a book besides rails 4 in action (which was already recommended)
[03:37:08] tanaryder: Preferably for some more advanced topics?
[03:42:12] rakm: has joined #RubyOnRails
[03:44:58] nettoweb: has joined #RubyOnRails
[03:45:38] AndrewIsHere: has joined #RubyOnRails
[03:48:34] Devalo: has joined #RubyOnRails
[03:49:29] srinidhi: has joined #RubyOnRails
[03:50:34] havenwood: sevenseacat: Happy Rails 5 day!
[04:03:40] blackmes1: has joined #RubyOnRails
[04:09:00] Rodya_: has joined #RubyOnRails
[04:12:06] tego101: has joined #RubyOnRails
[04:12:12] arnonhongklay: has joined #RubyOnRails
[04:13:14] alfiemax: has joined #RubyOnRails
[04:13:28] naftilos76: has joined #RubyOnRails
[04:14:38] naftilos76: has joined #RubyOnRails
[04:17:39] JohanTux: has joined #RubyOnRails
[04:18:34] eserror: has joined #RubyOnRails
[04:19:08] duncannz: has joined #RubyOnRails
[04:19:47] duncannz: has joined #RubyOnRails
[04:21:04] rafaelfranca: has joined #RubyOnRails
[04:21:04] rafaelfranca: has joined #RubyOnRails
[04:24:52] srinidhi: has joined #RubyOnRails
[04:26:05] pawnbox: has joined #RubyOnRails
[04:28:45] roamingdog: has joined #RubyOnRails
[04:31:28] roamingdog: has joined #RubyOnRails
[04:32:39] brg: has joined #RubyOnRails
[04:37:09] Devalo: has joined #RubyOnRails
[04:38:43] phrozen77: has joined #RubyOnRails
[04:41:10] cd-rum: has joined #RubyOnRails
[04:42:50] hahuang61: has joined #RubyOnRails
[04:48:20] queequeg2: has joined #RubyOnRails
[04:51:35] rvanlieshout: has joined #RubyOnRails
[04:51:55] jahbrews1i: has joined #RubyOnRails
[04:52:29] Axsuul: has joined #RubyOnRails
[04:52:54] mrodrigues: has joined #RubyOnRails
[04:54:42] Axsuul: has joined #RubyOnRails
[04:57:40] draig: has joined #RubyOnRails
[05:02:57] harfangk: has joined #RubyOnRails
[05:03:05] cd-rum: has joined #RubyOnRails
[05:04:39] blackmes1: has joined #RubyOnRails
[05:06:12] dminuoso: has joined #RubyOnRails
[05:07:20] arnonhongklay: has joined #RubyOnRails
[05:07:46] rafaelfranca: has joined #RubyOnRails
[05:08:17] rubyonrailed: has joined #RubyOnRails
[05:09:31] JohanTux: has joined #RubyOnRails
[05:09:39] cd-rum_: has joined #RubyOnRails
[05:13:06] skiz: has joined #RubyOnRails
[05:15:10] Rodya_: has joined #RubyOnRails
[05:16:39] alfiemax: can anyone please take a look at this : https://gist.github.com/alfie-max/d4ff949790cc3559a43fb929d0e1311d
[05:17:28] alfiemax: i'm trying to make the query i used in the first line as a scope
[05:17:43] alfiemax: but when i use it as a scope i'm getting unexpected result
[05:17:47] rvanlieshout: a scope normally doesn't use a .first
[05:17:57] alfiemax: i'm sure it's something i'm missing
[05:18:03] rvanlieshout: proper usage would be Dish.type_of('Dessert').first then
[05:18:08] alfiemax: rvanlieshout, could that be it?
[05:18:12] quazimodo: has joined #RubyOnRails
[05:18:19] quazimod1: has joined #RubyOnRails
[05:18:42] alfiemax: oh yeah, that fixed it :)
[05:19:11] alfiemax: rvanlieshout, you said that a scope normally doesn't use a .first
[05:19:35] alfiemax: i totally agree, but would you be able to shed some light on what happened when i did like that?
[05:19:50] Rodya_: has joined #RubyOnRails
[05:20:56] rvanlieshout: it executed 2 queries?
[05:21:08] rvanlieshout: i wouldn't have expected that second select * from dishe in there
[05:22:05] rvanlieshout: should check the code to see why this happened
[05:25:40] matthewd: If a scope evaluates to nil, it's treated as .all
[05:25:57] matthewd: (it's the one difference between a scope and an ordinary method)
[05:26:15] alfiemax: matthewd, can you provide a reference to this
[05:26:39] matthewd: .. because a scope is always designed to return a relation, so you "clearly" can't actually mean nil
[05:26:44] alfiemax: preferable the rails codebase
[05:27:03] alfiemax: matthewd, why not an empty active record relation?
[05:27:13] alfiemax: just like the query returns
[05:27:27] matthewd: alfiemax: It's in literally the first paragraph of http://api.rubyonrails.org/classes/ActiveRecord/Scoping/Named/ClassMethods.html#method-i-scope
[05:28:28] matthewd: Design decision; all was deemed more likely to be useful, I guess
[05:33:07] jishankai: has joined #RubyOnRails
[05:41:22] DigitalDarwin: has joined #RubyOnRails
[05:41:22] hadronzoo: has joined #RubyOnRails
[05:47:51] jenrzzz: has joined #RubyOnRails
[05:47:51] jenrzzz: has joined #RubyOnRails
[05:50:29] liquid-silence: has joined #RubyOnRails
[05:51:47] dminuoso: has joined #RubyOnRails
[05:52:33] emiltin: has joined #RubyOnRails
[05:56:56] Hyuk: has joined #RubyOnRails
[05:58:39] dc4: has joined #RubyOnRails
[05:58:49] User458764: has joined #RubyOnRails
[05:59:26] User458764: has joined #RubyOnRails
[06:05:26] blackmes1: has joined #RubyOnRails
[06:10:32] rafaelfranca: has joined #RubyOnRails
[06:11:08] Axsuul: has joined #RubyOnRails
[06:15:56] aganov: has joined #RubyOnRails
[06:17:51] erlend: has joined #RubyOnRails
[06:19:22] dminca: has joined #RubyOnRails
[06:19:45] xall: has joined #RubyOnRails
[06:20:31] srinidhi: has joined #RubyOnRails
[06:21:21] conta: has joined #RubyOnRails
[06:22:03] tego101: has joined #RubyOnRails
[06:22:40] User458764: has joined #RubyOnRails
[06:22:53] ur5us: has joined #RubyOnRails
[06:24:09] pawnbox: has joined #RubyOnRails
[06:28:10] comrad: has joined #RubyOnRails
[06:31:12] djbkd: has joined #RubyOnRails
[06:31:36] alfiemax: https://github.com/Paytm-Payments/Paytm_Web_Sample_Kit_Ruby/blob/master/samplekit/TxnTest.html
[06:31:52] dminuoso: has joined #RubyOnRails
[06:31:59] alfiemax: in the form here, the action is given as "action="generate_checksum.rb""
[06:32:34] alfiemax: i'm not certain which channel i am supposed to post this, but hoping someone here would be able to help me out
[06:32:56] dionysus69: has joined #RubyOnRails
[06:33:46] sadaf2606: has joined #RubyOnRails
[06:34:09] harfangk: has joined #RubyOnRails
[06:34:44] rvanlieshout: what would be your question, alfiemax?
[06:35:00] alfiemax: the file gets downloaded when i do it like this
[06:35:30] alfiemax: but i think it's supposed to execute it or something, i'm fairly new to using paytm
[06:35:33] alfiemax: so not sure
[06:36:06] alfiemax: see the form action, a ruby file is passed in
[06:36:27] rvanlieshout: oh right. yeah that's not the way to go
[06:36:33] rvanlieshout: it should be a url
[06:36:55] tvw: has joined #RubyOnRails
[06:36:55] alfiemax: yeah, but this is the sample code they provided
[06:36:57] rvanlieshout: this is a really really really bad example
[06:37:00] rvanlieshout: with ugly code
[06:40:16] emilkarl: has joined #RubyOnRails
[06:40:35] artto: has joined #RubyOnRails
[06:42:05] justrohu: has joined #RubyOnRails
[06:43:37] hahuang61: has joined #RubyOnRails
[06:45:46] User458764: has joined #RubyOnRails
[06:48:17] Ergo: has joined #RubyOnRails
[06:48:20] jenrzzz: has joined #RubyOnRails
[06:48:20] jenrzzz: has joined #RubyOnRails
[06:49:04] DoubleMalt: has joined #RubyOnRails
[06:50:50] _tpavel: has joined #RubyOnRails
[06:50:52] djbkd: has joined #RubyOnRails
[06:53:25] jahbrewski: has joined #RubyOnRails
[06:54:18] Coldblackice: has joined #RubyOnRails
[06:55:16] GoranPavlovic: has joined #RubyOnRails
[06:55:31] roamingdog: has joined #RubyOnRails
[06:55:36] fox_mulder_cp: rvanlieshout: u say about Paytm-Payments repo code?
[06:56:40] rubyonrailed: has joined #RubyOnRails
[07:00:31] cd-rum: has joined #RubyOnRails
[07:02:51] dminuoso: has joined #RubyOnRails
[07:03:27] hahuang61: has joined #RubyOnRails
[07:03:51] fox_mulder_cp: sample code seems hardcoded
[07:04:32] artto: has joined #RubyOnRails
[07:06:08] pLaToOn: has joined #RubyOnRails
[07:07:09] jishankai: has joined #RubyOnRails
[07:07:31] blackmes1: has joined #RubyOnRails
[07:07:56] fox_mulder_cp: ACTION Cap today.
[07:08:30] shaman42: has joined #RubyOnRails
[07:10:22] Pazician: has joined #RubyOnRails
[07:10:22] Pazician: has joined #RubyOnRails
[07:12:23] cd-rum_: has joined #RubyOnRails
[07:13:59] darutoko: has joined #RubyOnRails
[07:15:16] yfeldblum: has joined #RubyOnRails
[07:15:47] mark_66: has joined #RubyOnRails
[07:23:37] quazimodo: has joined #RubyOnRails
[07:23:51] quazimod1: has joined #RubyOnRails
[07:24:48] agit0: has joined #RubyOnRails
[07:26:13] emiltin: has joined #RubyOnRails
[07:31:50] solars: has joined #RubyOnRails
[07:33:21] Dimik: has joined #RubyOnRails
[07:35:42] jishankai: has joined #RubyOnRails
[07:40:45] rhett: has joined #RubyOnRails
[07:41:24] rhett: I just set up a rails 5 app in development mode. how do I see full parameters posted in the dev logs?
[07:41:47] rvanlieshout: rhett: what do you see in the log?
[07:42:17] rhett: Started POST "/url" for 173.252.90.98 at 2016-07-01 00:40:59 -0700
[07:42:26] alfiemax: when i pass in a datetime attribute through as_json the output is like this "2016-07-03T11:00:00.000Z"
[07:42:35] jenrzzz: has joined #RubyOnRails
[07:42:45] alfiemax: is there a way that i don't get the timezone?
[07:42:54] alfiemax: since i'd be storing all values in UTC
[07:42:54] fox_mulder_cp: rhett: in rails server opened console
[07:42:56] rvanlieshout: rhett: ah. the full post body. that's not displayed no.. that would be way too much data
[07:43:01] rvanlieshout: you can inspect it in the controller
[07:43:08] alfiemax: and the timezone conversion is handled in the ios app side
[07:43:44] alaing_: has joined #RubyOnRails
[07:43:58] alaing: has joined #RubyOnRails
[07:44:25] rvanlieshout: alaing: change the time zone settings for your app?
[07:44:36] alaing: rvanlieshout: ?
[07:44:52] alfiemax: rvanlieshout, for me?
[07:45:00] rvanlieshout: euh.. for alfiemax indeed :)
[07:45:10] rvanlieshout: config/application.rb
[07:45:31] alfiemax: but i'd want to have timezone as UTC for storing all values in db
[07:45:51] alfiemax: the thing is i dont want that value to be passed through to the app through the api
[07:45:55] alaing: is it possible to only load in a specific js/css file for a specific view? if so how do i go about it?
[07:46:34] alfiemax: alaing, render that in your specific view using yeild
[07:46:40] alfiemax: but it't not recommended
[07:46:52] AndrewIsHere: has joined #RubyOnRails
[07:46:58] alaing: alfiemax: i'm hoping to modularise my js
[07:47:02] alfiemax: also, you'd have to add those css/js files to asset pipeline manually
[07:47:21] alfiemax: rvanlieshout, ??
[07:47:43] alaing: does require_tree have some sort of magic/convention to include or suppress js files?
[07:48:13] alfiemax: require_tree requires all js files in the directory (and sub directories, i think)
[07:50:24] AimlessRAven: has joined #RubyOnRails
[07:50:38] AimlessRAven: hi all, is somewhere have a list of rails gems with their functionalities
[07:50:55] AimlessRAven: i just want to see cool gems
[07:51:03] AimlessRAven: witch i dont know
[07:53:22] tbuehlmann: AimlessRaven: see https://www.ruby-toolbox.com/ and http://awesome-ruby.com/
[07:54:58] alfiemax: this is what i was talking about : https://gist.github.com/alfie-max/d96a1d93ad45f0ddc87563de11ac7c23
[07:55:11] Velizar: has joined #RubyOnRails
[07:55:41] AimlessRAven: tbuehlmann: tnx
[07:55:59] roamingdog: has joined #RubyOnRails
[07:56:00] wethu: has joined #RubyOnRails
[07:56:11] ur5us: has joined #RubyOnRails
[07:58:54] alebatt: has joined #RubyOnRails
[07:59:29] EasyCo: has joined #RubyOnRails
[08:00:05] alebatt: hello everyone
[08:02:05] rvanlieshout: alfiemax: i was away for a few min. issue solved?
[08:02:31] jgt: has joined #RubyOnRails
[08:04:21] artto: has joined #RubyOnRails
[08:05:18] fox_mulder_cp: ACTION is crying. my app says for me, that 'You are not authorized to perform this action.', bad, bad app..
[08:06:33] sevenseacat: has joined #RubyOnRails
[08:06:42] alebatt: What's the best way, i'm building a rails api with url /api/v1/:country/:town in my controller, in my controller i have 2 method by_country and by_town, but when i called by_town, how should i get the previous "path" (the country) given by the url ?
[08:07:19] GorillaApe: has joined #RubyOnRails
[08:07:25] emilkarl: has joined #RubyOnRails
[08:07:55] iamawesome: has joined #RubyOnRails
[08:08:03] alfiemax: rvanlieshout, nop
[08:08:12] quazimodo: has joined #RubyOnRails
[08:08:18] blackmes1: has joined #RubyOnRails
[08:08:21] Dimik: iamawesome hi
[08:08:23] alfiemax: gist updated with what i've tried
[08:08:24] alfiemax: https://gist.github.com/alfie-max/d96a1d93ad45f0ddc87563de11ac7c23
[08:08:29] siaw23: has joined #RubyOnRails
[08:08:42] rvanlieshout: did you change your app timezone?
[08:09:07] quazimod1: has joined #RubyOnRails
[08:09:40] alfiemax: nop, what will i set my timezone to? i believe the default is UTC
[08:09:52] alfiemax: and i still want that to be how the date is stored in the db
[08:10:01] alfiemax: or is there a way not to store timezone in db?
[08:10:34] rvanlieshout: db timezones are always stored in utc
[08:10:41] rvanlieshout: s/timezones/times/
[08:11:05] conta: has joined #RubyOnRails
[08:11:09] mikecmpbll: has joined #RubyOnRails
[08:11:48] dannyguk: has joined #RubyOnRails
[08:12:13] siaw23: has joined #RubyOnRails
[08:12:49] ferr1: has joined #RubyOnRails
[08:16:25] rakm: has joined #RubyOnRails
[08:16:47] snowy: has joined #RubyOnRails
[08:20:00] iamawesome: has left #RubyOnRails: ()
[08:26:30] pawnbox: has joined #RubyOnRails
[08:31:19] marr: has joined #RubyOnRails
[08:32:28] conta: so I have polymorphic logs. And then Order.logs and Cart.logs. I can also do Order.cart.logs. Is there a way to join Order.logs and Order.cart.logs?
[08:33:50] dionysus69: has joined #RubyOnRails
[08:34:17] tbuehlmann: conta: should be a query with two conditions using OR, right?
[08:35:44] conta: tbuehlmann: right, didn't occur to me I could start with Log, not with Order :D
[08:36:15] arnonhongklay: has joined #RubyOnRails
[08:37:11] blackmes1: has joined #RubyOnRails
[08:37:59] alebatt: http://stackoverflow.com/questions/38140770/rails-api-handle-tree-path
[08:38:12] rvanlieshout: only manually
[08:38:22] alebatt: I post my question here, if someone have an idea :)
[08:39:44] blackhuey: has joined #RubyOnRails
[08:39:58] rvanlieshout: alebatt: there is no link between those parent scopes and the one you're requesting
[08:40:04] rvanlieshout: it's just alling by_city with 2 arguments
[08:40:55] chipotle: has joined #RubyOnRails
[08:41:27] alebatt: But i need, if a called coutry to get a json list of overy country, with their city inside
[08:41:53] conta: has joined #RubyOnRails
[08:41:53] rvanlieshout: maybe it's cleaner to use proper resources
[08:42:00] rvanlieshout: then you should just have an countries_controller#index
[08:42:32] alebatt: and so make a different controller for every /:xxxx/ ?
[08:42:52] fox_mulder_cp: congrats! http://weblog.rubyonrails.org/2016/6/30/Rails-5-0-final/
[08:42:53] rvanlieshout: let me gist something
[08:44:11] jenrzzz: has joined #RubyOnRails
[08:44:39] rubyonrailed: has joined #RubyOnRails
[08:45:51] alebatt: fox_mulder_cp: yeah ! can't wait rails5
[08:46:05] alebatt: i used rails_api gem
[08:46:31] rvanlieshout: alebatt: something like https://gist.github.com/rvanlieshout/907c116772166ec3ef82eac5a49741a3
[08:48:02] rogue_koder: has joined #RubyOnRails
[08:48:49] alebatt: Yeah ! i think it's the solution ! i thought i should have the same controller for it ..
[08:49:15] rvanlieshout: also possible
[08:49:21] rvanlieshout: anything is possible :)
[08:50:01] alebatt: Yeah, but i need a scalable project so i have to wrote my code clean and DRY
[08:50:35] rvanlieshout: you can use concerns for that
[08:50:42] rvanlieshout: but it's weird that it's both a Datum?
[08:51:19] alebatt: I used mangoid, soi have a datum with all my data inside
[08:51:37] conta: so when I have AppLog.where(recipient: [@order.cart, @order]).count, it takes only first recipient. what am I doing wrong? (recipient in polymorphic assoc.)
[08:51:41] lxsameer: has joined #RubyOnRails
[08:52:08] rvanlieshout: conta: i think you have to write down that if yourself
[08:52:13] rvanlieshout: when it comes down to polymorphic
[08:52:28] conta: I see, i'll do that
[08:53:23] AndrewIsHere: has joined #RubyOnRails
[08:55:08] jahbrews1i: has joined #RubyOnRails
[09:00:55] Qwertie: has joined #RubyOnRails
[09:01:10] defsdoor: has joined #RubyOnRails
[09:02:27] Qwertie: Im getting the error "Template is missing". I looked it up and found that it could be because my create method in the controller is empty. Does anyone know where I can find a simple guide for what I should put in the create method?
[09:02:41] Hyuk: has joined #RubyOnRails
[09:03:22] deecross: has joined #RubyOnRails
[09:03:25] alebatt: if you scaffold something you'll see :)
[09:05:27] GodFather: has joined #RubyOnRails
[09:08:30] Velizar: How can I put bootstrap glyphicons to a submit button without hardcoding the submit button text? Since it's either Update or Create, depending on what it's rendered for.
[09:09:20] mdw: has joined #RubyOnRails
[09:10:57] conta1: has joined #RubyOnRails
[09:11:28] mdw7: has joined #RubyOnRails
[09:12:23] mdw7: has joined #RubyOnRails
[09:13:32] dangerousdave: has joined #RubyOnRails
[09:16:54] fox_mulder_cp: Velizar: i can use helpers and i18n for buttons, and t'some_yaml_key' as btn visible text
[09:17:29] conta: has joined #RubyOnRails
[09:17:36] Qwertie: Turns out the problem was I needed to restart the server..
[09:19:39] User458764: has joined #RubyOnRails
[09:20:46] mixnblend: has joined #RubyOnRails
[09:22:16] artto: has joined #RubyOnRails
[09:22:27] tvw: has joined #RubyOnRails
[09:22:36] rogue_koder: has joined #RubyOnRails
[09:23:06] conta: has joined #RubyOnRails
[09:24:28] wethu: has joined #RubyOnRails
[09:26:44] jenrzzz: has joined #RubyOnRails
[09:30:02] cd-rum: has joined #RubyOnRails
[09:31:11] boshhead: has joined #RubyOnRails
[09:32:06] xcesariox: has joined #RubyOnRails
[09:33:47] mixnblend: has joined #RubyOnRails
[09:35:22] xcesariox: rails 5 is officially release and out of RC?
[09:35:36] dminuoso: xcesariox: Yes.
[09:35:43] rvanlieshout: https://rubygems.org/gems/rails
[09:35:46] xcesariox: lol, seems like it. i just did gem update
[09:35:50] xcesariox: and it updated to 5.0.0
[09:35:56] xcesariox: rails -v showing 5.0.0
[09:36:50] alfiemax: has joined #RubyOnRails
[09:38:59] rvanlieshout: then why ask? :)
[09:39:59] conta1: has joined #RubyOnRails
[09:42:37] alebatt: No my big deal, should i delete my project with rails_api gem and start again with rails5 ... :(
[09:42:53] xcesariox: alebatt : why?
[09:42:57] alebatt: i didn't wrote that much code..
[09:43:12] alebatt: because rails_api is deprecated
[09:43:36] xcesariox: alebatt : what are they replacing with for rails_api?
[09:43:49] alebatt: i don't know exactly ... :/
[09:44:23] alebatt: i will genere both and make a diff
[09:44:27] xcesariox: alebatt : http://blog.michelada.io/whats-new-in-rails-5
[09:44:29] rvanlieshout: why not just use rails?
[09:44:35] rvanlieshout: not rails_api
[09:44:36] xcesariox: rvanlieshout : -.-
[09:44:56] alebatt: For making an api, it's faster before the v5
[09:45:12] rvanlieshout: that slight difference
[09:45:20] rvanlieshout: which will loose all kinds of compatibility
[09:45:29] rubyonrailed: has joined #RubyOnRails
[09:45:32] alebatt: When you generate you don't have view created, some security is add
[09:45:45] rvanlieshout: then don't keep those views or remove them
[09:45:59] rvanlieshout: i really don't find the benefits worth enough to compensate the cons
[09:49:05] GorillaApe: I am having an issue. I use IPAddr type for a model
[09:49:26] GorillaApe: problem is that for black and for invalid input it becomes null.
[09:49:36] GorillaApe: Using before_type_cast works somehow
[09:49:43] GorillaApe: But the problem is using a custom converter
[09:49:49] toomus: has joined #RubyOnRails
[09:49:53] GorillaApe: custom validator
[09:50:34] GreekFreak: has joined #RubyOnRails
[09:50:38] GorillaApe: because if allow_blank is false it will fail on null input
[09:52:34] GreekFreak: I am trying to create an app where a user can follow another user or a channel. The relationship table is a polymorphic table. I'm having trouble with the "Follower" relationship. Any advice would be appreciated: https://gist.github.com/tscholiadis/42a61f345e3b75ede022bb5eda8809f6
[09:53:20] alfiemax: GreekFreak, try using : https://github.com/tcocca/acts_as_follower
[09:53:51] alfiemax: simplifies alot of things you are trying to achieve
[09:56:24] GreekFreak: alfiemax, I'm checking it now. I assume I would have to remove the relationship table "Followings" that I created?
[09:56:47] xcesariox: alfiemax : does acts_As_follower gem works on rails 5?
[09:57:00] alfiemax: GreekFreak, yes
[09:57:11] alfiemax: xcesariox, i'm not certain about that
[09:57:23] GreekFreak: alfiemax, looks pretty nifty. I'll give it a try
[09:57:27] xcesariox: alebatt : are you using rbenv or rvm to manage your rails?
[09:57:37] xcesariox: alfiemax : are you using rbenv or rvm to manage your rails?
[09:57:56] xcesariox: alfiemax : damn it, i should use rvm
[09:58:25] User458764: has joined #RubyOnRails
[09:58:26] GreekFreak: alfiemax, thanks
[09:59:19] alebatt: xcesariox: i use Docker ! :D
[09:59:31] xcesariox: alebatt : on ubuntu or mac?
[09:59:54] alebatt: and if i have yo use linux, definelty not Ubuntu :p
[09:59:56] rvanlieshout: we use vagrant + puppet here
[10:00:26] rvanlieshout: running centos in those vms.. to match server context
[10:00:38] quazimodo: has joined #RubyOnRails
[10:00:45] alebatt: I'll start this weekend to config a nixOS ;p someone tried ?
[10:03:57] toomus: If I have resources :shedules, and I want to change method of :new action to POST?
[10:04:29] rvanlieshout: convention tells you not to do that
[10:04:36] toomus: because I want to render form in modal
[10:04:37] alebatt: rvanlieshout: i have a no route match /api/v1/country/:country_id/city/:id ?? isn't strange ?
[10:04:48] rvanlieshout: alebatt: rake routes?
[10:05:05] alebatt: rvanlieshout: Why isn't /api/v1/:country_id/:city ?? isn't strange ?
[10:05:38] quazimod1: has joined #RubyOnRails
[10:06:05] alebatt: rvanlieshout: Why isn't /api/v1/:country/:city ??
[10:06:25] rvanlieshout: because that's not a defined route
[10:06:37] toomus: rvanlieshout: so this is wrong way. Ok, thx :)
[10:06:50] alebatt: my rake route show me to do something like /api/v1/country/italy/city/rome
[10:09:13] mdw: has joined #RubyOnRails
[10:09:18] alebatt: how can i defined the route as /italy/rome ?
[10:09:50] rvanlieshout: get '/:country/:city' => 'SomeController#method'
[10:10:04] rvanlieshout: why not make it restfull and use /countries/italy/cities/rome ?
[10:10:47] alebatt: /countries/italy/cities/rome is restfull and not /italy/rome ?!
[10:11:59] User458764: has joined #RubyOnRails
[10:12:38] dminuoso: alebatt: Though with shallow routes that will just become /cities/rome
[10:12:46] dminuoso: It is far more sensible that way.
[10:13:36] alebatt: Aw! well i forgot 'shallow'
[10:14:21] jgt: has joined #RubyOnRails
[10:16:01] Circuit8: has joined #RubyOnRails
[10:16:18] alebatt: it's not shallow
[10:17:53] dminuoso: alebatt: Actually come to think of it I was wrong.
[10:18:00] dminuoso: Nevermind what I said.
[10:19:15] rvanlieshout: hm.. i'm getting a ActiveRecord::NoEnvironmentInSchemaError when i try to run rails db:schema:load in rails 5
[10:19:21] alebatt: My problem is it's country/city but tommorow it could be parent/child ...
[10:19:27] rvanlieshout: it tells me to do a bin/rails db:environment:set first
[10:19:37] rvanlieshout: only thing is.. i'm doing that before
[10:19:43] rvanlieshout: somebody here who had similar issues?
[10:21:54] alebatt: I could use shallow_prefix to set every time if it's city, parent, child, city ..
[10:22:24] dminuoso: rvanlieshout: https://github.com/rails/rails/issues/23279
[10:23:30] yfeldblum: has joined #RubyOnRails
[10:24:00] rvanlieshout: which kinda indicates it has been solved
[10:24:24] rvanlieshout: i'm even unable to run drop:all
[10:25:44] dminuoso: rvanlieshout: --trace it and gist the output
[10:26:25] dminuoso: rvanlieshout: Also you are now using the "rails" command for it, right? (Quite unsure whether we *have* to do it now)
[10:27:04] rvanlieshout: https://gist.github.com/rvanlieshout/a88e714562118a996915e1c68df20c45
[10:28:17] dminuoso: By the way, for rails you dont need bundle exec :)
[10:28:25] dminuoso: (The binstub does that for you)
[10:28:38] rvanlieshout: right.. habbit
[10:29:07] dminuoso: I guess in a way that is also nice for the unified rails command, as you do not need bundle exec at all for rails anymore.
[10:29:10] dminuoso: But back to the problem.
[10:29:52] rvanlieshout: yeah. that's a nice bonus. just been using bundle exec ever since it came out and happy that it solved so many issues with multiple gems installed on the same machine
[10:30:59] rvanlieshout: i do have a ar_internal_metadata table in scheme public
[10:31:00] rvanlieshout: that's a start
[10:31:16] dminuoso: rvanlieshout: http://y-yagi.tumblr.com/post/142064773890/rails-5%E3%81%AB%E5%85%A5%E3%81%A3%E3%81%9Fdb%E7%A0%B4%E5%A3%8A%E7%B3%BBtask%E3%81%AE%E9%98%B2%E6%AD%A2%E5%87%A6%E7%90%86%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6
[10:31:21] dminuoso: You should do your homework!
[10:31:40] jahbrews1i: has joined #RubyOnRails
[10:31:46] rvanlieshout: and i need google translate for that :)
[10:31:58] dminuoso: Ive been trying to make sense of it.
[10:32:19] dminuoso: rvanlieshout: Interestingly it seems to fit your exact problem.
[10:34:36] rvanlieshout: although it still doesn't make sens to me what he / she is trying to do here
[10:35:40] dminuoso: rvanlieshout: "Therefore, Ar_internal_metadata there is no state (update to Rails 5 from Rails 4, even once : db migrate in the case of execution to not state) db: Drop When you try to run the task of breaking system such as, Environment information that there is no error ( ActiveRecord :: EnuoEnvironmentInSchemaError ) will occur."
[10:36:04] rvanlieshout: i really don't follow that sentence
[10:36:09] dminuoso: Neither do I.
[10:36:23] dminuoso: Are there any japanese folks around?
[10:36:33] dminuoso: Cross posting in #ruby because of the unliklihood.
[10:39:27] allcentury: has joined #RubyOnRails
[10:39:41] dminuoso: rvanlieshout: Random thought, was it dropped already perhaps?
[10:39:52] rvanlieshout: it's created by puppet on a VM on CI server
[10:39:55] rvanlieshout: already existed
[10:40:17] dminuoso: Still. Try a db:create db:drop
[10:40:38] rvanlieshout: before envronment:set ?
[10:41:25] dminuoso: Or actually that makes no sense.
[10:41:34] rvanlieshout: will try the create without drop :)
[10:41:39] rvanlieshout: but even that doesn't really make sense
[10:42:05] dminuoso: At least Im beginning to make sense of the japanes article.
[10:42:54] rvanlieshout: hmm. now have rails db:environment:set db:migrate db:seed RAILS_ENV=test and it somehow seems to do something
[10:42:58] rvanlieshout: at least on some instances
[10:43:09] dminuoso: rvanlieshout: But a plain rails db:environment:set RAILS_ENV=test works right?
[10:43:14] User458764: has joined #RubyOnRails
[10:43:19] rvanlieshout: and the table is created
[10:43:55] User458764: has joined #RubyOnRails
[10:44:01] rvanlieshout: i did notice we had that metatable in schema.rb. most likely commited when somebody was working on this branch and switched back
[10:44:31] suchness: has joined #RubyOnRails
[10:45:15] GodFather: has joined #RubyOnRails
[10:46:16] GreekFreak: alfiemax, THANK YOU! Works like wonders and it was easy!!!
[10:49:38] rvanlieshout: dminuoso: thanks for thinking along
[10:52:33] mikecmpb_: has joined #RubyOnRails
[10:55:30] alfiemax: hi again :)
[10:55:57] alfiemax: what do i do when i really really need to access the current logged in user object in my model?
[10:56:24] sevenseacat: you pass it in when you need it
[10:56:27] tbuehlmann: provide the object as a method argument?
[10:56:27] GreekFreak: alfiemax, I pass it as a variable to the method I'm calling
[10:56:43] alfiemax: ok, let me explain
[10:56:45] roamingdog: has joined #RubyOnRails
[10:56:50] jgt1: has joined #RubyOnRails
[10:58:25] alfiemax: the scenario is like this,
[10:58:26] alfiemax: in my api, i'm rendering json response,
[10:58:26] alfiemax: so implicitly the `as_json` method is called.
[10:58:26] alfiemax: now, i need to merge in an attribute to this user object if the current user has liked/favorited him
[10:59:13] alfiemax: so how do i pass in the current_user to as_json ?
[10:59:37] sevenseacat: in the arguments to the method
[11:00:19] GreekFreak: alfiemax, I had a similar problem. I created an attr_accessor called current_user. I them assigned it the current_user in the controller. From then on it was available everywhere in my model without my having to pass it anywhere, including my as_json
[11:00:33] GreekFreak: although passing it in your as_json options works too
[11:00:50] alfiemax: GreekFreak, i've done the same before, but i hear it's not the right way
[11:01:13] alfiemax: i mean the attr_accessor way
[11:01:44] agit0: has joined #RubyOnRails
[11:02:11] GreekFreak: oh. I thought that was the reason for attr_accessor. well let's see what the more experience guys have to say
[11:02:27] alfiemax: yeah, waiting :)
[11:03:15] alfiemax: sevenseacat, in that case i'd have to call as_json explicitly and then pass in the current_user object right?
[11:03:43] sevenseacat: well you haven't posted any code, so I don't know what you're doing already
[11:03:47] andywww: has joined #RubyOnRails
[11:04:21] alfiemax: render json: { status: 'OK', code: 200, data: @users }
[11:04:29] alfiemax: this is all i have in my controller
[11:04:42] andywww: hi, i have a hash which can come in in many forms, i want to access the data from a very specific place in the hash and throw an exception if i can’t access it.
[11:04:43] sevenseacat: in that case yes, you could use @users.to_json and pass in the current_user
[11:04:46] andywww: i currently have this:
[11:04:47] andywww: https://gist.github.com/anonymous/4a8fb189def57537585b3ffe1ab90c33
[11:04:51] GreekFreak: alfiemax, have you tried "respond_with my_object, current_user: current_user" ? You will then be able to do options[:current_user] in the as_json method
[11:04:57] sevenseacat: or use a decorator for more advanced rendering
[11:05:15] sevenseacat: or a serializer even
[11:05:41] Macaveli: has joined #RubyOnRails
[11:05:44] andywww: firstly i’m wondering if its okay to throw at the bottom of a method on the off chance a return is not met before it gets to that code
[11:05:48] AnoHito: has joined #RubyOnRails
[11:05:50] andywww: or if thats a bit cowboy?
[11:08:01] alfiemax: andywww, check my comment on your gist
[11:08:44] alfiemax: GreekFreak, nop, checking
[11:09:07] andywww: yeah that was the alternative i was gonna go with but i wasn’t sure if rescuing without explicitly stating what exception might happen would be a bit presumptuous
[11:09:26] AimlessRAven: has joined #RubyOnRails
[11:09:33] AimlessRAven: how to delete all records in my post db table
[11:09:41] alfiemax: Post.delete_all
[11:09:46] alfiemax: AimlessRaven, ^
[11:10:08] AimlessRAven: alfiemax: tnx bro
[11:10:19] alfiemax: or call destroy_all if you need the callbacks to be triggered
[11:13:28] dminuoso: has joined #RubyOnRails
[11:14:59] jgt1: has joined #RubyOnRails
[11:15:42] hardtail: has joined #RubyOnRails
[11:17:52] dionysus69: has joined #RubyOnRails
[11:19:21] emilkarl: has joined #RubyOnRails
[11:31:03] ldnunes: has joined #RubyOnRails
[11:31:31] alfiemax: has joined #RubyOnRails
[11:31:31] hardtail: has joined #RubyOnRails
[11:38:11] ybart: has joined #RubyOnRails
[11:38:30] dminuoso: has joined #RubyOnRails
[11:39:02] alfiemax: is it not possible to use the `parameterize` method in your rails model?
[11:40:12] alfiemax: or how do i use it in my model?
[11:40:12] sevenseacat: sure, it's just a string method
[11:40:16] sevenseacat: call it on a string
[11:40:43] alfiemax: i'm getting this error : NoMethodError: undefined method `parameterize' for #<Event:0x000000061a75d8>
[11:40:54] sevenseacat: thats because you're not calling it on a string
[11:40:54] alfiemax: sevenseacat, string method?
[11:40:59] sevenseacat: you're calling it on an event
[11:41:03] conta: has joined #RubyOnRails
[11:41:19] sevenseacat: http://apidock.com/rails/ActiveSupport/Inflector/parameterize
[11:41:34] alfiemax: yeah, i'm already looking at it
[11:42:13] alfiemax: one sec, i'll post a gist
[11:43:42] rodfersou: has joined #RubyOnRails
[11:44:01] alfiemax: sevenseacat, https://gist.github.com/alfie-max/b12ab704d9a8c714207eee6318337e94
[11:44:25] brazenbraden: has joined #RubyOnRails
[11:44:27] sevenseacat: yes, you're calling it on the event object
[11:44:36] sevenseacat: not the string c.name, which is what I expect you want
[11:44:54] alfiemax: how is it that i'm not calling it on c.name?
[11:45:04] alfiemax: isnt this correct : parameterize(c.name, separator: '_')
[11:45:08] sevenseacat: because you're calling parameterize(c.name) not c.name.parameterize
[11:45:43] alfiemax: hmm, but in the api docs... the example given is : parameterize("^trés|Jolie-- ", separator: '_')
[11:46:05] alfiemax: am i missing something ?
[11:46:25] sevenseacat: what? no it's not
[11:46:40] hardtail: hi everyone
[11:46:43] sevenseacat: the example given is name.parameterize, where name is a string
[11:47:02] brazenbraden: hey folks. attempting to upgrade to rails 5 but getting the error that BUndle could not find a compatible version of rack. This is the error log and my gemfile: https://gist.github.com/brazenbraden/cbeca6371dc969eaa7f489cd8c3e3e61
[11:47:28] Detch: has joined #RubyOnRails
[11:47:54] ybart: Is there a difference between job.new.perform vs job.perform_now?
[11:49:40] hardtail: I have an association question that I am confused about after discussing it with a friend. Say I have a User. User has many Books. Books have many Chapters, Chapters have many Posts and Posts have Comments. They all belong to User. Is that fine or must they all be tied together with has many through?
[11:49:41] alfiemax: sevenseacat, ok, it works the way you said, but how do i pass in a custom separator?
[11:49:51] sevenseacat: alfiemax: with the separator argument
[11:49:52] alfiemax: the default is '-' i want a '_'
[11:50:03] alfiemax: TypeError: no implicit conversion of Hash into String
[11:50:08] alfiemax: 'Starter Dish'.parameterize(separator: '_')
[11:50:13] sevenseacat: argument, not option
[11:50:30] sevenseacat: "Starter Dish".parameterize("_")
[11:50:38] alfiemax: 'Starter Dish'.parameterize('_')
[11:50:45] ldnunes: has joined #RubyOnRails
[11:53:07] nettoweb: has joined #RubyOnRails
[11:58:32] artto: has joined #RubyOnRails
[12:03:00] deecross: has joined #RubyOnRails
[12:05:14] siaw23: has joined #RubyOnRails
[12:06:22] yardenbar: has joined #RubyOnRails
[12:06:36] siaw23: hello every1. running some tests i get: https://gist.github.com/siaw23/bc679466d4370b746a40344059a1f016#file-failingt-txt-L9 i did some googling but can’t find the difference between http://www.rubydoc.info/docs/rails/4.1.7/ActionController/UrlGenerationError and http://www.rubydoc.info/docs/rails/4.1.7/ActionController/RoutingError is it safe to assume they are the same?
[12:07:34] sevenseacat: siaw23: it sounds like you want a routing spec
[12:07:39] sevenseacat: not a controller spec
[12:07:56] conta: is it possible that after application error, the app gets 'confused' about models? I have controller and inside I have Model.find(). After I encounter some error, it tries to do Controller::Model.find and complains that there is no such a thing. I fixed it by using ::Model.find()
[12:08:39] sevenseacat: the app doesn't get "confused", but if you have the same constant defined in different namespaces, you may run into problems with load order
[12:11:04] conta: sevenseacat : I have Admin::AdminUser::ConfirmationsController < Devise::ConfirmationsController. could that be the thing?
[12:11:18] conta: and some more similar
[12:11:24] sevenseacat: conta: if you gist your actual error, I may be able to tell you
[12:11:47] conta: NoMethodError - undefined method `find' for Admin::AdminUser:Module:
[12:12:06] sevenseacat: you also have a AdminUser model, I presume
[12:12:37] sevenseacat: then yes, that is the problem - it's already loaded AdminUser when running the controller action, so it doesnt look for the model with the same name
[12:13:37] User458764: has joined #RubyOnRails
[12:14:41] conta: thanks a lot, any idea why it was happening only after app crashed? (I mean when I start server it works, but after I have some error, eg,NoMethodError at some other place, I start to see problem with AdminUser )
[12:15:17] sevenseacat: in development, a lot of autoloading tricks go on, so there's magic in there
[12:15:24] sevenseacat: I would rename your controller namespace
[12:16:15] conta: ok, thanks
[12:17:14] GorillaApe: We have a Gem. However it is painfull to commit/push , pull and bundle update. Is there any solution for development so that it can be simpler/
[12:18:41] alfiemax: GorillaApe, http://stackoverflow.com/questions/5633939/how-do-i-specify-local-gem-files-in-my-gemfile
[12:18:47] sevenseacat: if you're actively developing the gem on your computer, you can link the gem in your Gemfile to a local folder
[12:19:07] Circuit8: Hey guys. Say I have a namespace 'api'. I want a single route for indexing all fabrics that belong to a product, such that the URL will be 'mydomain.com/api/products/23/fabrics' . How do I set my routes up for this? To further complication matters the ID for the products is not an id its another field called 'custom_id'. So far I have this: https://gist.github.com/Circuit8/649c6668f40e8d2b15e74b69a87e924f
[12:19:08] GorillaApe: Other dev told me that he tried that and failed. I'll try it
[12:19:14] alfiemax: https://rossta.net/blog/how-to-specify-local-ruby-gems-in-your-gemfile.html
[12:19:20] alfiemax: GorillaApe, ^
[12:19:32] AimlessRAven: has joined #RubyOnRails
[12:19:34] GorillaApe: would I still need update?
[12:19:51] alfiemax: GorillaApe, probably
[12:20:23] GorillaApe: ok however its better
[12:20:29] Circuit8: The issue is that the path should be called api_product_fabrics_path
[12:20:33] Circuit8: but its just called api
[12:21:05] alfiemax: Circuit8, set custom path name
[12:21:09] User458764: has joined #RubyOnRails
[12:21:39] AimlessRAven: Post mode: has_many :likes, as: :likeable
[12:21:50] alfiemax: check my comment in your gist
[12:21:50] AimlessRAven: how to make this relation, to current_user like post only one time
[12:22:20] tknz: has joined #RubyOnRails
[12:22:21] Circuit8: alfiemax: Perfect, thanks alot, I didnt know you could do that
[12:23:49] alfiemax: AimlessRaven, didnt get your question, could you possibly rephrase ?
[12:24:12] arBmind: has joined #RubyOnRails
[12:24:16] AmiMoench: has joined #RubyOnRails
[12:24:48] AimlessRAven: alfiemax: ok, have Post model who have polymorphic association Likes
[12:24:54] AimlessRAven: my user also have this association
[12:24:59] AimlessRAven: now i do current_user to like post
[12:25:05] bmaland: has joined #RubyOnRails
[12:25:12] AimlessRAven: but i want current_user only one time like post..
[12:26:58] siaw23: i have this test and it’s result. this line is complaining https://gist.github.com/siaw23/d01b2ee024ab164c07888b2cb5d3a27b#file-failingt-txt-L7 and looking at the test i’m can’t figure why it’s saying so. it’s pointing to this line: https://gist.github.com/siaw23/d01b2ee024ab164c07888b2cb5d3a27b#file-api_notice_search_spec-rb-L124
[12:27:09] siaw23: i need some help… :)
[12:27:28] alfiemax: siaw23, everyone does.. :)
[12:28:58] fmcgeough: has joined #RubyOnRails
[12:28:58] siaw23: alfiemax: what do you need help with?
[12:31:37] sevenseacat: siaw23: looks like json is an array, not a hash
[12:33:10] jahbrewski: has joined #RubyOnRails
[12:35:13] roamingdog: has joined #RubyOnRails
[12:36:05] AimlessRAven: how to make relation in my model to limit current_user to have only like post like
[12:36:36] siaw23: sevenseacat: the definition of that method here: https://gist.github.com/siaw23/d01b2ee024ab164c07888b2cb5d3a27b#file-api_notice_search_spec-rb-L123 is this https://gist.github.com/siaw23/d01b2ee024ab164c07888b2cb5d3a27b#file-def-rb i see an options hash in there…
[12:37:23] sevenseacat: siaw23: the options hash isnt what gets yielded to your spec though
[12:38:34] siaw23: sevenseacat: what do i need to change to fix it please?
[12:38:49] sevenseacat: siaw23: understanding what its doing would be a start
[12:39:05] siaw23: sevenseacat: i don’t :p
[12:39:22] sevenseacat: thats where you can start then. you call a helper from your spec, that yields some data struture to your spec
[12:39:27] mikecmpbll: has joined #RubyOnRails
[12:39:33] sevenseacat: you expect that structure to be hash-like, but it isnt
[12:41:19] siaw23: sevenseacat: i believe this: https://gist.github.com/siaw23/d01b2ee024ab164c07888b2cb5d3a27b#file-def-rb is looking for a term and return the result as json, which should be a hash
[12:41:23] siaw23: am i right?
[12:41:40] sevenseacat: should be. is it?
[12:41:57] sevenseacat: i have no idea what with_curb_get_for_json does
[12:42:07] siaw23: if it was i’d be able to run “json_item = json['notices'].first” on it
[12:42:07] sevenseacat: or what it yields
[12:42:28] sergio_101: has joined #RubyOnRails
[12:43:24] SirOliver: has joined #RubyOnRails
[12:45:14] siaw23: sevenseacat: maybe i shold convert this “json-item” here to a hash first? https://gist.github.com/siaw23/d01b2ee024ab164c07888b2cb5d3a27b#file-failingt-txt-L4
[12:46:04] sevenseacat: siaw23: what is that "json-item"?
[12:46:07] chipotle: has joined #RubyOnRails
[12:46:07] allcentury: has joined #RubyOnRails
[12:46:19] sevenseacat: investigate, don't make guesses
[12:46:42] SteenJobs: has joined #RubyOnRails
[12:47:10] siaw23: i’m stuck on investing even
[12:47:16] siaw23: investigating*
[12:47:33] siaw23: when i get stuck, i come here :D
[12:49:03] xpl0iter: has joined #RubyOnRails
[12:49:07] AimlessRAven: how to set in my post model unique index to my user to limit only one like per post
[12:49:39] context: sevenseacat: WAT ?!?!?!
[12:49:55] context: whats this "investigate" word you speak
[12:50:07] sevenseacat: sounded like a clever thing t osay.
[12:50:19] xpl0iter: I am submitting a form using form helper. Now I have 2 hidden fields one id and another application id(which can't be null in the db). When I submit the form, the db is throwing error saying, application_id is null. What could be the problem?
[12:50:42] context: xpl0iter: maybe the application_id is null ?
[12:50:58] sevenseacat: i hate when that happens
[12:51:16] xpl0iter: context, now, the error page is showing the params, and it has application_id
[12:51:34] sevenseacat: xpl0iter: show us the code and error, because we can't see it
[12:51:56] xpl0iter: sevenseacat, one sec
[12:52:31] mark_66: has joined #RubyOnRails
[12:52:35] alfiemax: there is a eql? and equal? methods, are there something like not_equal?
[12:52:47] context: siaw23: ok. by "investigate" he means... just start printing shit. from the error i can glean that 'json' is NOT what you think it is. so print it. and see what it is not.
[12:53:07] context: alfiemax: !
[12:53:13] context: alfiemax: irb, try it
[12:53:18] context: let is know what you find out
[12:53:21] alfiemax: tried, its not there
[12:53:24] siaw23: context: she* :p. i’m on it ;)
[12:53:31] context: alfiemax: excellent. we can close that case then
[12:53:39] alfiemax: thats why i asked, is there somethind "like" that
[12:53:56] context: ill start saying "they", its less sexist and more ominous
[12:54:13] sevenseacat: it's safest i think
[12:54:18] siaw23: context: or we even, cause you’re part
[12:54:20] sevenseacat: if you are unsure of gender
[12:54:38] context: i dont want to be apart of anything. given the context and all
[12:54:41] mdw: has joined #RubyOnRails
[12:54:46] siaw23: if gender is unsure, “it” would be more appropriate :D :D :D
[12:55:16] context: im half asleep still waiting for coffee to kick in
[12:55:53] Moeh: has joined #RubyOnRails
[12:56:07] xpl0iter: sevenseacat, context : Error: http://imgur.com/a/Kt7HB, code: form - http://pastie.org/private/rdfecskra0mtx6fihesfbg, controller: http://pastie.org/private/doljudydxo42ysqxtyojrw
[12:56:07] sevenseacat: siaw23: not in English
[12:56:34] Moeh: Is there a
[12:56:50] Moeh: better / more best practice way to write this query: Organization.find_by(id: @session.organization_id).dashboards.where("published = true OR user_id = #{@session.user_id}")
[12:56:58] sevenseacat: xpl0iter: so application_id isn't part of your segment params
[12:57:26] sevenseacat: xpl0iter: in your form, you want f.hidden_field, not hidden_field_tag
[12:57:41] Scient: @session.organization.dashboards.published.for_user(:user => @session.user_id) for example
[12:57:43] xpl0iter: sevenseacat, yes it is. I think you're confusing with 'id'. which is not
[12:57:45] Scient: fill in the scopes yourself :P
[12:57:46] xpl0iter: sevenseacat, oh ok.
[12:57:52] sevenseacat: xpl0iter: no, it's not
[12:58:19] sevenseacat: xpl0iter: you have params[:application_id], not params[:segment][:application_id]
[12:58:27] Moeh: Scient: What is the advantage if structuring the query like this?
[12:58:52] Scient: uses scopes and doesnt rely on manual interpolation?
[12:58:57] xpl0iter: sevenseacat, :O, so thats why its not working. Damn, let me check again
[12:59:06] mdw7: has joined #RubyOnRails
[12:59:16] aegis3121: has joined #RubyOnRails
[12:59:16] crystal77: has joined #RubyOnRails
[12:59:37] alfiemax: Scient, +1, also possible to reuse the scope
[13:00:04] xpl0iter: sevenseacat, where do I change it? In the hidden_tag helper?
[13:00:20] sevenseacat: the only place you've used hidden_field_tag
[13:01:38] Moeh: Scient: Ok, to implement this I create an "organization" method in the session model that finds the organization based on session.organization_id and a scope like "scope :published, -> { where(published: true) }" in the dashboard model?
[13:01:57] fox_mulder_cp: Scient: Post.previous_month.today - scope and scope :)
[13:01:59] xpl0iter: sevenseacat, so I have to change it to hidden_tag right?
[13:02:09] sevenseacat: [20:57:26] sevenseacat: xpl0iter: in your form, you want f.hidden_field, not hidden_field_tag
[13:03:02] xpl0iter: aah, ok, thanks
[13:03:21] dminuoso: has joined #RubyOnRails
[13:03:48] SirOliver: has joined #RubyOnRails
[13:04:18] thomasjachmann: has joined #RubyOnRails
[13:07:59] mdw: has joined #RubyOnRails
[13:09:03] mrodrigues: has joined #RubyOnRails
[13:14:43] ekinmur: has joined #RubyOnRails
[13:15:39] SirOliver: has joined #RubyOnRails
[13:18:49] thomasjachmann: has left #RubyOnRails: ()
[13:19:09] mikecmpbll: does anybody use UUIDs in mysql here? struggling to find any best practices
[13:20:17] dminuoso: Best practice is to avoid mysql.
[13:21:50] blackmes1: has joined #RubyOnRails
[13:22:15] mikecmpbll: percona/mariadb included
[13:22:26] chouhoulis: has joined #RubyOnRails
[13:22:58] fox_mulder_cp: mikecmpbll: use postgres, Luke ^)
[13:23:09] dminuoso: mikecmpbll: What exactly is your question though?
[13:23:47] jgt1: has joined #RubyOnRails
[13:23:59] mikecmpbll: dminuoso : how to generate the ids, what type to use to store them .. stuff like that
[13:24:02] mikecmpbll: still mulling it over.
[13:24:23] dminuoso: mikecmpbll: well lets ignore that postgres has native support for uuids...
[13:24:23] mikecmpbll: there seems to be performance implications, and some folks suggest using a binary(16) column
[13:24:48] mikecmpbll: dminuoso : yes, probably best to ignore postgres all together, seeing as i'm using mysql :)
[13:24:55] dminuoso: mikecmpbll: The big problem you face is that you cannot convert them to an integral type because bignum won't be able to hold UUID.
[13:25:06] sharkman: has joined #RubyOnRails
[13:25:06] dminuoso: Oh I know, just rubbing a bit of salt into the wounds.
[13:26:32] dminuoso: mikecmpbll: I would simply store the UUID into two bigint columns.
[13:27:31] cmmagid: has joined #RubyOnRails
[13:27:32] loocash: has joined #RubyOnRails
[13:27:50] siaw23: why am i getting this https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-fail-txt-L16 on https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-conroller-rb-L7 ?
[13:28:10] dminuoso: mikecmpbll: That should be the fastest method if you are worried about index speeds for lookups
[13:28:42] mikecmpbll: composite primary key?
[13:29:04] dminuoso: siaw23: Include the log for the request please.
[13:29:05] dminuoso: mikecmpbll: Yes.
[13:29:23] dminuoso: Rails and DHH will hate you for it.
[13:29:45] dannyguk: has joined #RubyOnRails
[13:29:52] elomatreb: dminuoso: Stackoverflow says something about storing the UUID as binary?
[13:30:12] loocash: Hi, I noticed commenting out coffee-rails gem doesn't work because my app crashes. What is recommended solution to turn coffeescript off - I want rails to generate js files instead io coffee. TIA
[13:30:37] mikecmpbll: i read this also, but then there's further problems about it not being ordered (or something) slowing down inserts.
[13:30:45] siaw23: dminuoso: log? i added to files to the link :) the failing test and the code that’s failing
[13:30:57] dminuoso: siaw23: Yes. Rails has a log file.
[13:31:19] dminuoso: Contrary to what most people here would like you believe, if you judge them by their gists.
[13:31:53] siaw23: dminuoso: i added it :) https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36
[13:31:55] dminuoso: mikecmpbll: What order of magnitude are we talking about for your data?
[13:32:13] mikecmpbll: total amount?
[13:32:16] dminuoso: siaw23: Can you please just insert the log entry for the reqest?
[13:32:26] siaw23: yeap one sec
[13:32:27] dminuoso: mikecmpbll: All metrics. How many data, how many requests per second
[13:32:38] chouhoulis: has joined #RubyOnRails
[13:34:01] alebatt: I just discover the splat in ruby ! WTF !! it's so powerful !
[13:34:16] mikecmpbll: many trillions rows across all the databases, about 1000 queries per second..
[13:34:28] siaw23: dminuoso: updated: https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36
[13:34:28] dminuoso: alebatt: Until you step on some of the quirks with it.
[13:34:46] dminuoso: siaw23: Missing the first lines on the log.
[13:35:03] dminuoso: siaw23: But it already says enough regardless.
[13:35:14] dminuoso: siaw23: https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-log-txt-L1
[13:35:22] alebatt: Idk what is it, wait i -> RTFM
[13:36:21] siaw23: right! updated: https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36
[13:36:52] dminuoso: siaw23: You are still skimming out on me.
[13:36:57] alebatt: aw, quirks mean just weird stuff --'
[13:37:39] dminuoso: siaw23: https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-log-txt-L1
[13:37:42] dminuoso: siaw23: Just look at that line.
[13:38:27] dminuoso: Somehow you are requesting this URL as HTML.
[13:38:37] cmmagid: has joined #RubyOnRails
[13:39:00] dminuoso: Since you only have a JSON responder, it rightfully says "unknown format"
[13:39:36] SirOliver: has joined #RubyOnRails
[13:40:53] siaw23: dminuoso: yeah i see it now
[13:41:44] cmmagid: has joined #RubyOnRails
[13:42:30] SirOliver: has joined #RubyOnRails
[13:43:59] hardtail: If my User model has many Books, (belong to user), that has many Chapters, (belongs to User and Books), that has many Pages, (belongs to User and Chapters), that has many Comments, (belongs to User and Pages). I thought this was correct to nest everything and point them all back to the User model? Must the relationships be setup with has many through?
[13:44:08] User458764: has joined #RubyOnRails
[13:44:13] SteenJobs: has joined #RubyOnRails
[13:44:51] Pazician: has joined #RubyOnRails
[13:45:10] beingjohnm: hardtail: yes
[13:45:30] dminuoso: hardtail: You must not do anything.
[13:45:52] Guest6988: has joined #RubyOnRails
[13:46:00] mrodrigues: Hey guys! Is it against the rules to promote a gem that I just released?
[13:46:22] hardtail: beingjohnm: Ok but why? I am gapping on something.
[13:46:23] dminuoso: mrodrigues: Did you bother to look at the topic?
[13:46:29] siaw23: dminuoso: i added this https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-routes-rb-L39 to my routes.rb and still getting the same error. any ideas why?
[13:46:50] hardtail: dminuoso: ok, lol
[13:47:35] dminuoso: siaw23: Well, how about you include the full log of the request at least in the original gist.
[13:47:38] DaniG2k: has joined #RubyOnRails
[13:47:40] dminuoso: And this time... DONT SKIM OUT ON ME.
[13:47:41] mrodrigues: hardtail: I'm new to IRC, I don't know where to find the rules. Maybe a better question would be: where can I find the rules? :s
[13:47:58] helpa: https://gist.github.com/996779
[13:48:06] morfin: has joined #RubyOnRails
[13:48:17] sevenseacat: they're in the channel topic :)
[13:48:32] epochwolf: sevenseacat: please... no one reads that.
[13:48:58] adaedra: it's the problem of the people not reading the topic, no?
[13:49:23] epochwolf: adaedra: in practice those people become problems for the rest of us that do read.
[13:50:13] elomatreb: IRC channel rules are almost the same 98% of the time, so I can understand why one wouldn't bother to read them
[13:50:19] Technodrome: has joined #RubyOnRails
[13:50:20] shinnya: has joined #RubyOnRails
[13:50:34] sevenseacat: given the people who don't read them all claim to be 'new to IRC', I'd say thats more of a reason *to* read them.
[13:50:49] dminuoso: sevenseacat: At the very least the person asked about the rules.
[13:50:54] dminuoso: That is more than most people do.
[13:51:21] epochwolf: Correct, mrodrigues did exactly the right thing.
[13:51:35] mrodrigues: Guys, I'm new to IRC and to irssi, I *don't* know where to find either this topic or the rules you're talking about. Could you point me to the correct direction, please?
[13:51:49] sevenseacat: [21:47:58] helpa: https://gist.github.com/996779
[13:52:02] hardtail: the rules are posted at the very top of your log
[13:52:14] elomatreb: irssi and "new to IRC" is probably not the best combination
[13:52:17] epochwolf: Or you can do /topic
[13:52:18] sevenseacat: `Rules: http://goo.gl/dgSj5`
[13:52:18] mrodrigues: hardtail: Thank you very much! :)
[13:52:19] alebatt: I was new on irc and irssi also yesterday, nice tips. go to weechat ;)
[13:52:35] epochwolf: I'm using irssi. :(
[13:52:48] adaedra: And that makes you sad?
[13:53:03] dminuoso: I also regulary recommend vi to programming newcomers - that way I weed out the useless folks whose code I otherwise might have to clean up later...
[13:53:12] srinidhi: has joined #RubyOnRails
[13:53:29] epochwolf: dminuoso: thats... cynical and mean. I like you.
[13:53:35] cmmagid: has joined #RubyOnRails
[13:53:35] elomatreb: So I'm useless if I can't be bothered to learn the user-hostile vim? :(
[13:53:49] epochwolf: elomatreb: I use sublime text 2.
[13:53:56] siaw23: dminuoso: sorry. but despite the change it’s still showing as HTML https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-log-txt-L10
[13:53:59] epochwolf: And I've been doing code since 2006.
[13:54:03] hardtail: dminuoso, any benefit of VIM over customizing atom?
[13:54:10] sevenseacat: despite what change?
[13:54:18] epochwolf: hardtail: oh dear, you did not ask that.
[13:54:30] dminuoso: siaw23: What are you doing to trigger the request?
[13:54:40] alebatt: hardtail: You have just everythong on your terminal
[13:54:43] elomatreb: hardtail: Definitely performance. I can't use Atom on my laptop without it getting too hot to handle
[13:54:44] siaw23: just running the test that calling it
[13:54:50] dminuoso: siaw23: Include the test.
[13:54:59] alebatt: and try to open a big file with atom ...
[13:55:03] hardtail: epochwolf of course I did!
[13:55:21] alebatt: with sublime it's ok but atom it directly crash
[13:55:26] hardtail: ok thanks, because with Terminal nested in Atom I was not aware of any of the differences
[13:55:28] elomatreb: alebatt: Big files aren't usually a problem, very long lines break Atom
[13:55:38] dminuoso: hardtail: Sorry I don't discuss editors.
[13:55:53] epochwolf: dminuoso: you sir, are a saint and a monster. :D
[13:56:10] siaw23: dminuoso: https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-search_controller_spec-rb
[13:56:14] alebatt: elomatreb: With a ~50k json file it's just impossible to move in it
[13:56:23] alebatt: and line is less than 80 char
[13:56:40] SteenJobs: has joined #RubyOnRails
[13:56:48] sevenseacat: what on earth is that test testing
[13:57:33] beingjohnm: I'm getting some weird behaviour when seeding a database and have spent too much time on it. Lines 40 and 41 of this should have the same output but don't in all cases. https://gist.github.com/willjohnson/04a2c1da120f3e66bad022c6c4d82631
[13:58:13] sevenseacat: beingjohnm: line 40 references t,and line 41 references task
[13:58:28] dminuoso: siaw23: Can you actually just run that single spec and then include the full output?
[13:58:34] dminuoso: (log output)
[13:58:40] siaw23: yeap one sec
[13:58:41] sevenseacat: are you sure they're the same thing?
[13:58:44] deecross: has joined #RubyOnRails
[13:58:44] beingjohnm: sevenseacat: right. but task is t saved
[13:59:11] mrodrigues: Ok, noted my first mistake (probably since English is not my native language): using "guys" which is gender-exclusive. Sorry about that.
[13:59:20] tvw: has joined #RubyOnRails
[13:59:30] sevenseacat: so you're loading the record, and reassigning the same data back to it?
[13:59:46] beingjohnm: sevenseacat: for each t I am creating and saving a task. However when I access it it sometimes does not save the proper information
[13:59:46] dminuoso: beingjohnm: new_task != task
[13:59:59] dminuoso: beingjohnm: Think about that for a second while staring at your code. Maybe you'll see it.
[14:00:21] siaw23: dminuoso: this is the log for this single run of the test: https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-log-txt
[14:00:26] sevenseacat: so check your validations and your save return value
[14:00:35] beingjohnm: dminuoso: Spent hours on this yesterday...
[14:01:18] dminuoso: Spending ours on 40 lines of code?
[14:01:20] User458764: has joined #RubyOnRails
[14:01:40] beingjohnm: dminuoso: I know. pathetic. But I don't undertsand how line 19 of the output happens.
[14:01:55] dminuoso: beingjohnm: https://gist.github.com/willjohnson/04a2c1da120f3e66bad022c6c4d82631#file-seeds-rb-L39
[14:02:01] dminuoso: beingjohnm: Ill guide you.
[14:02:04] mrodrigues: So, the rules are not explicit about it, but it seems this channel is focused mainly on support, so promoting a new gem would be frowned upon, right?
[14:02:05] brazenbraden: hey folks. attempting to upgrade to rails 5 but getting the error that BUndle could not find a compatible version of rack. This is the error log and my gemfile: https://gist.github.com/brazenbraden/cbeca6371dc969eaa7f489cd8c3e3e61 . I have tried gem installing rack 2.0.1 manually and adding it into my gemfile. no cigar.
[14:02:12] dminuoso: beingjohnm: You are calling #task_order on an object. Which one?
[14:02:26] beingjohnm: dminuoso: task
[14:02:41] dminuoso: beingjohnm: How does task come to be? Please point out the line.
[14:02:59] beingjohnm: dminuoso: 31
[14:03:01] SteenJobs: has joined #RubyOnRails
[14:03:13] context: what is the question
[14:03:16] dminuoso: beingjohnm: What attributes are you assigning to that task?
[14:03:40] beingjohnm: dminuoso: setting the translations for task_name and task_text
[14:04:01] deecross: has joined #RubyOnRails
[14:04:11] dminuoso: beingjohnm: Right. The task_name is set to what?
[14:04:26] wethu: has joined #RubyOnRails
[14:04:35] siaw23: dminuoso: i put the log here: https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-log-txt
[14:04:43] SirOliver: has joined #RubyOnRails
[14:04:45] beingjohnm: dminuoso: In english "test 3" and in spanish "test 3 in spanish"
[14:05:13] dminuoso: siaw23: Include the format: :json inside your request parameters I think.
[14:05:35] beingjohnm: which is why I don't understand how it can print "test 2"
[14:05:36] GodFather: has joined #RubyOnRails
[14:05:37] dminuoso: beingjohnm: No I just meant the expression.
[14:06:07] beingjohnm: dminuoso: for the translation it is "task.task_name = t[:task_name_es]"
[14:06:16] dminuoso: beingjohnm: Right, compare that with line 40, the other line you were wondering about.
[14:06:53] siaw23: dminuoso: you mean in the controller i should add another request param?
[14:07:13] beingjohnm: dminuoso: but on line 37 I set the local back to english. So task.task_name should be printing the english.
[14:07:16] dminuoso: siaw23: No, just another key/value pair in your hash.
[14:07:52] beingjohnm: dminuoso: and it is printing the engligh but for the third task you can see that line 40 prints "test 3" while line 41 prints "test 2"
[14:08:33] tvon: has joined #RubyOnRails
[14:08:46] dminuoso: beingjohnm: You said that lines 39 and 40 don't print the same thing. I just showed you why.
[14:08:57] siaw23: dminuoso: like this: https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-conroller-rb-L15 ?
[14:09:10] beingjohnm: dminuoso: I must have meant 40 and 41
[14:09:44] arnonhon_: has joined #RubyOnRails
[14:09:46] beingjohnm: dminuoso: and why would 40 and 41 print the same for task 1, 2, and 4 but not 3?
[14:09:59] dminuoso: siaw23: In your spec.
[14:11:16] dminuoso: beingjohnm: Since I dont know what Task is, I cannot tell.
[14:11:28] SteenJobs: has joined #RubyOnRails
[14:11:36] context: i dont think translation works how you think it does
[14:12:08] dminuoso: context: That almost sounded like Fezzik from "The Princess Bride"
[14:12:27] siaw23: dminuoso: that has been there all this while: https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-search_controller_spec-rb-L10
[14:12:46] SirOliver: has joined #RubyOnRails
[14:13:00] dminuoso: siaw23: Yes, but you are not sending the format: "json" as parameters.
[14:13:14] beingjohnm: context: that is true of many things in life :)
[14:13:51] guest56: has joined #RubyOnRails
[14:14:14] dminuoso: beingjohnm: Include the full (dont cut things out) implementation of your class Task.
[14:14:40] jahbrewski: has joined #RubyOnRails
[14:14:45] SirOliver: has joined #RubyOnRails
[14:15:09] xall: has joined #RubyOnRails
[14:16:02] tweeeaks: woowhoo rails 5!
[14:16:33] dminuoso: All hail ActionCable.
[14:16:33] beingjohnm: dminuoso: done
[14:17:42] dminuoso: beingjohnm: Where?
[14:17:49] beingjohnm: dminuoso: https://gist.github.com/willjohnson/04a2c1da120f3e66bad022c6c4d82631
[14:18:36] dminuoso: beingjohnm: Also if Im right, then your code does not match your output.
[14:19:09] beingjohnm: dminuoso: sorry, here it is: https://gist.github.com/willjohnson/04a2c1da120f3e66bad022c6c4d82631
[14:19:38] dminuoso: beingjohnm: What is translates?
[14:19:46] siaw23: dminuoso: how do i send json as parameter :(
[14:20:02] SirOliver: has joined #RubyOnRails
[14:20:16] dminuoso: siaw23: send the key value pair "format" => "json" the same way you are already sending parameters.
[14:21:10] dminuoso: siaw23: Or set Content-Type, that is probably preferrable.
[14:21:11] beingjohnm: dminuoso: for the globalize gem I believe
[14:21:24] dminuoso: beingjohnm: You believe?
[14:21:51] beingjohnm: dminuoso: yes, https://github.com/globalize/globalize
[14:21:57] dminuoso: beingjohnm: I dont care what you believe.
[14:22:01] dminuoso: I care about what you know.
[14:22:05] dminuoso: If you dont know, go find out.
[14:22:12] beingjohnm: dminuoso: yes, it is for the globalize gem.
[14:22:21] dopamean_: has joined #RubyOnRails
[14:22:22] dminuoso: sevenseacat: Help me out, I think I may need a massage.
[14:22:48] Robtop__: has joined #RubyOnRails
[14:22:50] sevenseacat: [22:05:51] sevenseacat: taking bets on how long before dminuoso cracks
[14:22:54] sevenseacat: cmon it was only like 20min
[14:23:24] beingjohnm: ACTION appologizes for being the cause
[14:23:24] dminuoso: Trying to imagine a candle in my mind, but that makes me set things on fire...
[14:23:44] crdpink: has joined #RubyOnRails
[14:23:45] Fridtjof: has joined #RubyOnRails
[14:23:50] rubyonrailed: has joined #RubyOnRails
[14:24:03] deecross: has joined #RubyOnRails
[14:25:48] blackmes1: has joined #RubyOnRails
[14:25:55] jsrn: has joined #RubyOnRails
[14:26:13] alfiemax: has joined #RubyOnRails
[14:26:29] siaw23: dminuoso: that’s already been done on line “get :index, { term: 'foo' }, format: :json”
[14:26:36] siaw23: in the controller_spec
[14:27:12] dminuoso: siaw23: No its not.
[14:27:31] dminuoso: This by the way is why people should learn Ruby before they write Rails code.
[14:28:33] dminuoso: siaw23: https://eval.in/599187
[14:30:06] siaw23: dminuoso: i’ve never been this confused in my life!
[14:30:08] siaw23: https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-search_controller_spec-rb
[14:30:17] siaw23: is what i’m doing on line 10 wrong?
[14:30:44] dminuoso: siaw23: Look at my gist, disassembly output line 13
[14:30:50] dminuoso: siaw23: argc:3
[14:30:58] dminuoso: The call to get() receives 3 (!) arguments.
[14:31:24] context: dminuoso: yeah currect
[14:31:45] sevenseacat: I like turtles.
[14:31:47] lele: has joined #RubyOnRails
[14:31:52] dminuoso: siaw23: Can you tell me what the third argument is?
[14:31:58] context: doesnt take rocket science to see 3 arguments
[14:32:04] siaw23: dminuoso: it’s format: :json
[14:32:20] context: ACTION goes away
[14:32:45] dminuoso: siaw23: Right. Where do you place request parameters?
[14:33:10] siaw23: dminuoso: in “get”
[14:33:40] dminuoso: siaw23: You are passing request params in your second argument and then giving some keyword arguments to get.
[14:33:54] artto: has joined #RubyOnRails
[14:34:29] dminuoso: That keyword argument is ignored because get does not know what to do with it.
[14:34:48] sevenseacat: its actually not ignored
[14:34:57] sevenseacat: it's used as session data iirc
[14:35:22] context: if im looking at right docs its headers_or_env
[14:35:32] dminuoso: context: Can you provide a link?
[14:35:38] dminuoso: I was looking but couldn't find immediately
[14:35:55] context: http://apidock.com/rails/ActionDispatch/Integration/RequestHelpers/get
[14:36:09] context: 5.0.0 is different, but im assuming they arent on 5
[14:37:01] dminuoso: Ah it was headers right, I should know since thats where I commonly pass Content-Type.
[14:38:26] siaw23: dminuoso: this makes sense? https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-search_controller_spec-rb-L10
[14:38:57] sevenseacat: thats different to what you had before
[14:39:08] dminuoso: siaw23: The question is whether it makes sense to you.
[14:39:26] dminuoso: siaw23: My goal is not to fix your code, but help you understand what you are actually doing.
[14:39:28] prithaj: has joined #RubyOnRails
[14:39:29] siaw23: dminuoso: i understand is a passing 3 args to #get
[14:39:36] sevenseacat: no, it's not now
[14:40:14] blackmes1: has joined #RubyOnRails
[14:40:22] dminuoso: sevenseacat: Actually it is.
[14:40:37] sevenseacat: i dont think so.
[14:40:39] dminuoso: https://eval.in/599196
[14:40:50] dminuoso: It's just that the documentation sucks for kwargs.
[14:40:59] sevenseacat: theyre not kwargs.
[14:41:04] dminuoso: Yes they are.
[14:41:08] dminuoso: sevenseacat: Look at the link.
[14:41:22] dminuoso: <callinfo!mid:get, argc:3, kw:[term,format], FCALL|KWARG>, <callcache>
[14:41:59] dminuoso: Back in 2.0 I think kwargs were just syntax sugar for hashes, but they are not anymore.
[14:42:05] siaw23: dminuoso: you understand why i’m confused now?
[14:43:39] dminuoso: sevenseacat: On the receiver side they get mangled into a Hash back again if the kwargs are not found in the definition.
[14:43:41] context: they get smashed anyway
[14:43:43] dminuoso: It's quite silly.
[14:44:03] beingjohnm: ACTION bangs head against desk
[14:44:31] siaw23: dminuoso: can you please tell me if this is wrong or right? https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-search_controller_spec-rb-L10
[14:44:49] context: why are we compiling instructions. isnt the guy just trying to send a request that wants a json format
[14:45:00] context: s/the guy/the person/
[14:45:04] sevenseacat: context: yep.
[14:45:11] dminuoso: siaw23: Try it out and see what happens.
[14:45:19] context: its not like he found a VM bug or something
[14:45:28] sevenseacat: I have no idea why we're compiling instructions.
[14:45:31] context: we dont need to start pulling nukes out when a 22 will do
[14:45:44] dminuoso: I think I just got emotional... :S
[14:45:54] dminuoso: I always pull VMs and chainsaws when I do get emotional.
[14:46:24] siaw23: i did try it. https://gist.github.com/siaw23/277defd43bce3593b243a367948a4a36#file-fail-txt-L17
[14:46:38] ybart: has left #RubyOnRails: ()
[14:47:27] Sylario: Code review question. Here is how i handle exception to connect to an API, what do you think about it? : https://gist.github.com/bsylvain/4c50438b58acc6b6574fc6185ae81254
[14:48:21] dminuoso: siaw23: And?
[14:48:54] sevenseacat: ACTION gives dminuoso a non/alcoholic beverage of choice
[14:51:25] loocash: has joined #RubyOnRails
[14:51:39] siaw23: dminuoso: and the log says Processing by Entities::SearchController#index as JSON
[14:51:39] siaw23: Parameters: {"term"=>"foo"}
[14:51:40] siaw23: Completed 500 Internal Server Error in 36ms (ActiveRecord: 0.8ms)
[14:51:48] loocash: How to disable coffeescript in Rails 5?
[14:52:20] sevenseacat: loocash: remove it from your Gemfile
[14:52:49] loocash: sevenseacat: but then my app crashes
[14:52:55] sevenseacat: why does it crash?
[14:53:49] artto: has joined #RubyOnRails
[14:53:51] loocash: sevenseacat: cannot load such file -- coffee_script
[14:53:56] roelof: has joined #RubyOnRails
[14:53:58] sevenseacat: loocash: !debug
[14:53:58] helpa: loocash: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
[14:54:07] dminuoso: siaw23: Would you say that its working then?
[14:54:18] roelof: Why does my controller get found here : https://gist.github.com/rwobben/fb2854ebb062ca66e92cd4d68a3b4451
[14:54:53] sevenseacat: that sentence does not go with that gist
[14:55:20] siaw23: dminuoso: having requests return a json is working: but i don’t want this: NoMethodError:
[14:55:20] siaw23: undefined method `[]' for nil:NilClass
[14:55:22] roelof: when I do rspec I see the error I posted : undefined local variable or method `accountsController' for main:Object (NameError)
[14:55:26] sevenseacat: siaw23: so fix it
[14:55:35] roelof: sevenseacat: ^^^^
[14:55:36] sevenseacat: roelof: right. where are you defining accountsController ?
[14:56:08] roelof: sentence 1 of the accountsController
[14:56:16] sevenseacat: no, thats AccountsController
[14:56:46] sevenseacat: "class AccountsController < ApplicationController"
[14:57:00] sevenseacat: AccountsController != accountsController
[14:57:09] roelof: oke, so the test schould look for AccountsController not accountsController
[14:57:28] sevenseacat: if you're not defining accountsController, then accessing it will raise you an undefined error.
[14:58:32] roelof: oke, thanks, problem solved. I m playing with Rails 5 where I try to make my first api
[15:00:25] siaw23: has left #RubyOnRails: ()
[15:02:45] Hyuk: has joined #RubyOnRails
[15:02:48] deecross: has left #RubyOnRails: ()
[15:03:02] tvw: has joined #RubyOnRails
[15:04:21] axl_: has joined #RubyOnRails
[15:05:29] roamingdog: has joined #RubyOnRails
[15:05:31] artto: has joined #RubyOnRails
[15:10:41] Malgorath: has joined #RubyOnRails
[15:12:28] Malgorath: I am trying to think of a way to approach an issue I've been asked to work on. I have a table that lists things out by record id as per usual. But I been asked to make it allow you to move a record higher or lower in the list.
[15:12:37] Malgorath: Any suggestions would be amazing
[15:12:52] epochwolf: Malgorath: acts_as_list
[15:13:09] Devalo: has joined #RubyOnRails
[15:13:51] Malgorath: epochwolf, oh nice
[15:14:52] skiz: has joined #RubyOnRails
[15:17:28] flopsec: has joined #RubyOnRails
[15:18:18] descript: has joined #RubyOnRails
[15:18:32] pawnbox: has joined #RubyOnRails
[15:19:08] beingjohnm: I have removed all translation and am still getting inconsistent output: https://gist.github.com/willjohnson/8697b53ab329cfddc2d857d714db5366
[15:21:26] AzaToth: has joined #RubyOnRails
[15:23:04] Devalo: has joined #RubyOnRails
[15:25:00] Devalo: has joined #RubyOnRails
[15:30:14] disgrntld: has joined #RubyOnRails
[15:30:25] eserror: has joined #RubyOnRails
[15:31:09] macsteps: has joined #RubyOnRails
[15:32:32] beingjohnm: definitely not saving correctly here: https://gist.github.com/willjohnson/4b3d01f448d49d9330439664a968ea8a
[15:33:15] shinnya: has joined #RubyOnRails
[15:33:39] sevenseacat: what do your logs say?
[15:34:54] qejk: has joined #RubyOnRails
[15:35:15] dminuoso: beingjohnm: Do the following. Install pry - learn about pry - pry into the offending line of code - and then inspect your objects.
[15:35:29] dminuoso: task.translations.inspect is probably a great starter.
[15:36:17] blackmes1: has joined #RubyOnRails
[15:37:10] beingjohnm: sevenseacat: good call. looking at logs and seems to be an issue with the task_translations table
[15:37:22] sevenseacat: I guess you didnt remove all the translations then
[15:37:47] beingjohnm: sevenseacat: yeah, I meant removed from the example loop
[15:41:10] pawnbox: has joined #RubyOnRails
[15:41:40] User458764: has joined #RubyOnRails
[15:43:22] conta: has joined #RubyOnRails
[15:45:15] nettoweb: has joined #RubyOnRails
[15:50:49] SteenJobs: has joined #RubyOnRails
[15:51:17] Osmosis311: has joined #RubyOnRails
[15:51:20] beingjohnm: sevenseacat and dminuoso; found the problem. globalize does not create uuid reference columns. thanks for your help!
[15:52:12] siaw23: has joined #RubyOnRails
[15:52:49] artto: has joined #RubyOnRails
[15:53:47] dminuoso: sevenseacat: Is that offer with a non-alcoholic beverage still up? If so, I would like some grape juice - but please put some yeast in it, in a few weeks Ill take it.
[15:54:55] sk0r: has joined #RubyOnRails
[15:55:30] polishdub: has joined #RubyOnRails
[15:57:09] loocash: has joined #RubyOnRails
[15:58:59] loocash: sevenseacat: I've created a repo with the simplest possible way (4 steps) of reproducing the crash of my app. https://github.com/loocash/CrashingRailsApp
[15:59:14] alfiemax: what is the recommended way to send out mails? from the controller or model?
[15:59:32] alfiemax: like i have a welcome mail that has to be sent out when a new user registers
[15:59:44] dminuoso: alfiemax: The model has absolutely no business even knowing what a Mail is, unless its for some reason supposed to store it.
[16:00:04] morfin: well, we use callbacks in model to do that
[16:00:06] alfiemax: should i have a method for sending this out in model, and call it in after_create ?
[16:00:17] dminuoso: alfiemax: Of course... this is probably an exceptional case.. :)
[16:00:58] alfiemax: thought so too, i was looking a the code of my colleague and was wondering
[16:01:18] Devalo: has joined #RubyOnRails
[16:02:31] alfiemax: but for cases like, when a user signs up or registers for an event, he is sent the event details as mail. so in that case it's not necessary to have a method calling the mailer in the model right?
[16:03:14] alfiemax: maybe another justified scenario for calling the mailer from model would be for password reset ? to send out a new password in a mail?
[16:03:58] morfin: hmm interesting how Devise deal with that
[16:04:17] alfiemax: not using Devise in this particular app
[16:06:33] morfin: it seems to be sending stuff in own controller
[16:09:08] SanguineAnomaly: has joined #RubyOnRails
[16:12:03] KensoDev: has joined #RubyOnRails
[16:12:49] diegoviola: has joined #RubyOnRails
[16:15:35] artto: has joined #RubyOnRails
[16:19:29] Hobogrammer: has joined #RubyOnRails
[16:21:19] Guest_: has joined #RubyOnRails
[16:23:31] mikecmpbll: has joined #RubyOnRails
[16:24:27] User458764: has joined #RubyOnRails
[16:28:54] siaw23: has joined #RubyOnRails
[16:33:28] zarubin: has joined #RubyOnRails
[16:35:00] macsteps: has joined #RubyOnRails
[16:35:37] sevenseacat: loocash: you have a coffeescript file in your app
[16:35:45] sevenseacat: you should change that to be a javascript file
[16:37:48] Axsuul: has joined #RubyOnRails
[16:37:58] quazimodo: has joined #RubyOnRails
[16:38:11] User458764: has joined #RubyOnRails
[16:38:11] quazimod1: has joined #RubyOnRails
[16:38:21] [Butch]: has joined #RubyOnRails
[16:40:15] fujinuma: has joined #RubyOnRails
[16:40:39] fujinuma: is there a place to find rails cool projects to looking at?
[16:46:01] nogic: has joined #RubyOnRails
[16:47:09] deecross: has joined #RubyOnRails
[16:47:15] manfrin_: has joined #RubyOnRails
[16:48:47] triptec: has joined #RubyOnRails
[16:49:17] agit0: has joined #RubyOnRails
[16:51:21] AndrewIsHere: has joined #RubyOnRails
[16:52:39] rogue_koder: has joined #RubyOnRails
[16:54:23] Devalo: has joined #RubyOnRails
[16:56:26] matthewd: fujinuma: Things I know of: http://www.opensourcerails.com/, https://github.com/alphagov/e-petitions, http://manageiq.org/
[16:57:08] matthewd: fujinuma: I can't offer much insight as to which are more interesting, but that might give you a start to browse through
[16:58:44] Moeh: has joined #RubyOnRails
[16:59:11] bitemyapp: has left #RubyOnRails: ()
[16:59:34] pixelhandler: has joined #RubyOnRails
[17:00:13] deecross: has joined #RubyOnRails
[17:00:43] sk0r: has joined #RubyOnRails
[17:00:50] alebatt: And if you want to visite a big airbnb website, airbnb is in rails :)
[17:03:22] aegis3121: has joined #RubyOnRails
[17:08:05] djbkd: has joined #RubyOnRails
[17:09:01] siaw23: has joined #RubyOnRails
[17:10:36] djbkd: has joined #RubyOnRails
[17:13:20] pawnbox: has joined #RubyOnRails
[17:16:21] kallisti5: /var/lib/gems/2.3.0/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:293:in `require': cannot load such file -- rack/showexceptions (LoadError)
[17:16:28] rubyonrailed: has joined #RubyOnRails
[17:16:29] kallisti5: post upgrade from rails 4.x to 5
[17:17:37] kallisti5: ack... didn't do app:update. just bundler update :-)
[17:17:49] AmiMoench: has joined #RubyOnRails
[17:18:02] artto: has joined #RubyOnRails
[17:18:28] rakm: has joined #RubyOnRails
[17:20:11] DoctorMonocular: has joined #RubyOnRails
[17:22:43] kallisti5: huh... still no love
[17:22:58] kallisti5: anyone see the failure to load rack/showexceptions error above?
[17:23:07] kallisti5: I feel like a gem dep. changed
[17:23:54] AntiSpamMeta: has joined #RubyOnRails
[17:28:50] SteenJobs: has joined #RubyOnRails
[17:29:29] GodFather_: has joined #RubyOnRails
[17:30:34] matthewd: kallisti5: Where's the require that's failing?
[17:30:37] kallisti5: huh... looks like cause was me mounting resque in my routes.rb
[17:30:40] matthewd: Rack renamed that file
[17:31:29] kallisti5: so, I was require 'resque/server' , mount Resque::Server, at: "/resque" in my routes... once removed issue went away
[17:32:19] kallisti5: ActiveRecord::ImmutableRelation
[17:32:29] kallisti5: yeesh. gonna be a big upgrade :-)
[17:36:03] wtiger: has joined #RubyOnRails
[17:36:37] _djbkd: has joined #RubyOnRails
[17:36:50] AndroidLoverInSF: has joined #RubyOnRails
[17:38:25] Technodrome: has joined #RubyOnRails
[17:39:28] dminuoso: has joined #RubyOnRails
[17:39:36] banisterfiend: has joined #RubyOnRails
[17:40:42] sneakers: has joined #RubyOnRails
[17:42:00] theRoUS: has joined #RubyOnRails
[17:44:30] djbkd: has joined #RubyOnRails
[17:46:00] blackmes1: has joined #RubyOnRails
[17:47:43] User458764: has joined #RubyOnRails
[17:48:09] PlasmaStar: has joined #RubyOnRails
[17:48:13] dionysus69: has joined #RubyOnRails
[17:48:17] wtiger: hey folks, is it recommended to use vagrant/docker for development? or should I develop locally?
[17:48:57] tbuehlmann: totally up to you. I'm very okay with developing locally
[17:49:16] sevenseacat: I just run `rails server` on my own laptop and away I go
[17:51:34] watersoul: has joined #RubyOnRails
[17:51:40] cnk: has joined #RubyOnRails
[17:52:32] wtiger: cool, locally it is :)
[17:52:49] kallisti5: so in rails 5 you can no longer re-order post-query of activerecord objects?
[17:53:09] jenrzzz: has joined #RubyOnRails
[17:53:09] jenrzzz: has joined #RubyOnRails
[17:53:29] tbuehlmann: kallisti5: what do you mean?
[17:53:40] kallisti5: sec, working on example :-)
[17:54:59] wtiger: has left #RubyOnRails: ("WeeChat 1.5")
[17:55:09] kallisti5: https://gist.github.com/avongluck-r1soft/fda5504ea7d85f8b8fb7717dfacfd257
[17:55:28] kallisti5: so @sbms.order! shows ActiveRecord::ImmutableRelation
[17:55:36] kallisti5: in rails 5, before it worked fine
[17:55:37] sevenseacat: why not order first?
[17:55:40] Dreamer3: has joined #RubyOnRails
[17:56:19] kallisti5: does it matter? It seems you would want to order the smaller dataset last
[17:56:30] kallisti5: pre-ordering means you're doing more work :-)
[17:56:30] matthewd: Neither where! nor order! are part of the API; don't use them
[17:56:50] centrx: has joined #RubyOnRails
[17:56:59] sevenseacat: it doesnt make a lot of sense to re-order a query after its been run
[17:57:13] sevenseacat: either you're running other query, or sorting in memory
[17:58:30] kallisti5: huh.. yeah, that fixed it
[17:59:52] djbkd: has joined #RubyOnRails
[18:01:05] defsdoor: has joined #RubyOnRails
[18:02:12] _djbkd: has joined #RubyOnRails
[18:10:37] AndroidLoverInSF: has joined #RubyOnRails
[18:11:19] aegis3121: has joined #RubyOnRails
[18:12:45] Devalo: has joined #RubyOnRails
[18:12:58] shinnya: has joined #RubyOnRails
[18:13:22] macsteps: has joined #RubyOnRails
[18:15:22] AndroidLoverInSF: has joined #RubyOnRails
[18:15:55] whathappens: has joined #RubyOnRails
[18:16:30] Pazician: has joined #RubyOnRails
[18:16:30] Pazician: has joined #RubyOnRails
[18:19:34] alfiemax: has joined #RubyOnRails
[18:19:40] Technodrome: has joined #RubyOnRails
[18:23:35] roamingdog: has joined #RubyOnRails
[18:24:50] Coldblackice: has joined #RubyOnRails
[18:29:14] Dimik: has joined #RubyOnRails
[18:30:53] kallisti5: uugh.. thinking of killing off turbolinks in our project
[18:31:11] kallisti5: ... it always causes hours and hours of javascript debugging because of "weird things happen"
[18:32:03] dblessing: has joined #RubyOnRails
[18:32:22] alfiemax: kallisti5, +1
[18:32:51] kallisti5: I get it, and like the idea... but if you have any javascript stuff it generally breaks everything in a hard-to-debug way
[18:33:58] alfiemax: exactly, the first thing i do after starting a new rails project is remove turbolinks
[18:34:20] nettoweb: has joined #RubyOnRails
[18:35:13] Devalo: has joined #RubyOnRails
[18:35:21] pawnbox: has joined #RubyOnRails
[18:37:49] FCser: has joined #RubyOnRails
[18:39:30] allcentury: has joined #RubyOnRails
[18:40:34] norfumpit: has joined #RubyOnRails
[18:41:12] rhett: has joined #RubyOnRails
[18:41:28] dminuoso: has joined #RubyOnRails
[18:41:32] tbuehlmann: I'm okay with turbolinks, but I understand the trouble one can get into with it. same with spring ¯\_(ツ)_/¯
[18:43:48] adaedra: iirc, you can remove turbolinks when creating the project
[18:44:52] kallisti5: yeah, removing on even on an old app is easy
[18:45:00] kallisti5: I admit, the app does feel a bit slower
[18:45:12] kallisti5: ... however I just need to do more ajax loads of content :-)
[18:45:21] kallisti5: turbolinks was kind of covering that up a bit
[18:45:36] kallisti5: with pretty nprogress ;-)
[18:46:03] kallisti5: well.. removing turbolinks gem + all the on ready hacks everywhere
[18:46:45] AndrewIsHere: has joined #RubyOnRails
[18:48:17] blackmes1: has joined #RubyOnRails
[18:49:23] morfin: what it actually do? why not use pjax?
[18:51:27] kallisti5: I could do pjax, I pretty much want to load some html content after page load
[18:52:04] matthewd: Which is... basically what turbolinks does, no?
[18:52:20] kallisti5: yeah, but tuned down to only the things I want :-)
[18:52:25] kallisti5: not the whole site
[18:52:36] User458764: has joined #RubyOnRails
[18:52:43] Oliphaunte: has joined #RubyOnRails
[18:52:56] morfin: i heard turbolinks store dom copies to let you go back faster)
[18:53:15] kallisti5: yeah, likely part of the faster feel
[18:53:46] morfin: is rails so slow and need such things?
[18:54:07] morfin: i saw how you can cache stuff alot
[18:54:28] morfin: for some stuff use Redis/Memcached
[18:55:10] kallisti5: rails doesn't offload things to clients as much as some newer stuff.
[18:55:24] morfin: i guess you can also Etag your pages so user will get 304(not modified) in case if pages matches
[18:56:57] manfrin_: has joined #RubyOnRails
[18:57:10] jhack: has joined #RubyOnRails
[18:58:26] morfin: kallisti5 offload like what?
[19:00:28] jhack: has joined #RubyOnRails
[19:05:57] jenrzzz: has joined #RubyOnRails
[19:06:53] siaw23: has joined #RubyOnRails
[19:08:08] fox_mulder_cp: hi, folks, i see, that Pundit drops relation, when initializing policy for model, i try to use model.relation, but it throws 'no method relation for model'
[19:19:25] kallisti5: https://coderwall.com/p/kqb3xq/rails-4-how-to-partials-ajax-dead-easy
[19:19:27] tbuehlmann: fox_mulder_cp: show code
[19:19:36] kallisti5: like that mostly... but that article is a bit confusing
[19:19:37] braincrash: has joined #RubyOnRails
[19:20:16] kallisti5: I have a pop-up modal in bootstrap showing data... it would be nice if I could not have the controller trigger until the user clicks on the button to open the dialog
[19:20:23] patrick_star_2: has joined #RubyOnRails
[19:21:01] kallisti5: .. that way the page loads quicky... then I the user clicks the button and the longer running info could be loaded (with javascript spinner, whatever)
[19:21:19] blackmesa: has joined #RubyOnRails
[19:21:50] ur5us: has joined #RubyOnRails
[19:26:28] triptec: has joined #RubyOnRails
[19:29:36] Fernando-Basso: Did you see my messages?
[19:31:38] braincrash: has joined #RubyOnRails
[19:34:35] weaksauce: has joined #RubyOnRails
[19:36:50] agit0: has joined #RubyOnRails
[19:38:52] srinidhi: has joined #RubyOnRails
[19:38:54] srinidhi: has joined #RubyOnRails
[19:39:37] maxx88_: has joined #RubyOnRails
[19:39:39] AndrewIs_: has joined #RubyOnRails
[19:40:07] deecross_: has joined #RubyOnRails
[19:40:11] mattp__: has joined #RubyOnRails
[19:40:12] pawnbox_: has joined #RubyOnRails
[19:40:12] wkoszek_: has joined #RubyOnRails
[19:41:57] mdw: has joined #RubyOnRails
[19:42:13] dminuoso: has joined #RubyOnRails
[19:43:02] skiz: has joined #RubyOnRails
[19:43:30] ewilliam: has joined #RubyOnRails
[19:43:38] slash_nick: has joined #RubyOnRails
[19:43:39] SebastianThorn: has joined #RubyOnRails
[19:43:47] meoblast001: has joined #RubyOnRails
[19:43:53] jbermudes: has joined #RubyOnRails
[19:43:53] jbermudes: has joined #RubyOnRails
[19:44:03] Nowaker: has joined #RubyOnRails
[19:44:04] shaman42: has joined #RubyOnRails
[19:44:06] JackMc: has joined #RubyOnRails
[19:44:11] pfg: has joined #RubyOnRails
[19:44:14] guacamole: has joined #RubyOnRails
[19:44:15] jamo: has joined #RubyOnRails
[19:44:15] shwoodard_: has joined #RubyOnRails
[19:44:49] Expanse: has joined #RubyOnRails
[19:46:18] GodFather_: has joined #RubyOnRails
[19:47:06] M-shine: has joined #RubyOnRails
[19:47:18] webnanners: has joined #RubyOnRails
[19:47:22] chridal: has joined #RubyOnRails
[19:47:26] okdas: has joined #RubyOnRails
[19:47:26] okdas: has joined #RubyOnRails
[19:47:27] jalcine: has joined #RubyOnRails
[19:47:27] machuga: has joined #RubyOnRails
[19:47:28] brainslug: has joined #RubyOnRails
[19:47:32] Papierkorb: has joined #RubyOnRails
[19:47:33] targaf: has joined #RubyOnRails
[19:47:35] icedp: has joined #RubyOnRails
[19:47:38] segy: has joined #RubyOnRails
[19:47:39] joelsmith: has joined #RubyOnRails
[19:47:39] shamanime: has joined #RubyOnRails
[19:47:42] LateralOctober: has joined #RubyOnRails
[19:47:44] maxmanders: has joined #RubyOnRails
[19:47:49] theRoUS: has joined #RubyOnRails
[19:48:01] waseem_: has joined #RubyOnRails
[19:48:01] kitallis: has joined #RubyOnRails
[19:48:02] jenrzzz: has joined #RubyOnRails
[19:48:02] jenrzzz: has joined #RubyOnRails
[19:48:24] modran: has joined #RubyOnRails
[19:48:40] davidcelis: has joined #RubyOnRails
[19:48:40] davidcelis: has joined #RubyOnRails
[19:49:47] g3funk: has joined #RubyOnRails
[19:49:48] rubyonrailed: has joined #RubyOnRails
[19:50:51] ianconnolly: has joined #RubyOnRails
[19:52:21] TheMoonMaster: has joined #RubyOnRails
[19:52:35] Gm4n: has joined #RubyOnRails
[19:53:53] michael_mbp: has joined #RubyOnRails
[19:54:28] elementaru: has joined #RubyOnRails
[19:55:10] JesseH: has joined #RubyOnRails
[19:55:11] hightower2: has joined #RubyOnRails
[19:56:29] duffy_duck: has joined #RubyOnRails
[19:58:01] fox_mulder_cp: tbuehlmann: here https://gist.github.com/foxmuldercp/5cdb3ef0cd1b6f3213b47fcc6f002652
[19:58:08] fox_mulder_cp: Fernando-Basso: pong
[20:00:43] tbuehlmann: and what code raises the error?
[20:03:26] DoctorMonocular: has joined #RubyOnRails
[20:04:54] jenrzzz: has joined #RubyOnRails
[20:05:21] siaw23: has joined #RubyOnRails
[20:17:30] Fernando-Basso: fox_mulder_cp: Pardon me?
[20:18:10] yardenbar: has joined #RubyOnRails
[20:19:48] allcentury: has joined #RubyOnRails
[20:20:30] a1fa: has left #RubyOnRails: ()
[20:21:19] Axsuul: has joined #RubyOnRails
[20:22:04] GodFather_: has joined #RubyOnRails
[20:22:05] fox_mulder_cp: Fernando-Basso: its ok
[20:22:13] Talltree: i'm still really unsure whats the best method to have a search form that is also "clearing" the params
[20:22:26] Talltree: 3 options, true false or nothing at all
[20:24:21] hahuang61: has joined #RubyOnRails
[20:27:56] rikkipitt: has joined #RubyOnRails
[20:28:18] rikkipitt: Evening everyone
[20:28:36] triptec: has joined #RubyOnRails
[20:29:04] AmiMoench: has joined #RubyOnRails
[20:30:00] rikkipitt: When it comes to rspec for testing controllers and an app with multiple roles, how do you folks go about ensuring each role is tested?
[20:30:36] rikkipitt: Do you just login as say the admin role and then just test abilities separately for each sub role?
[20:33:19] lxsameer: has joined #RubyOnRails
[20:34:28] SteenJobs: has joined #RubyOnRails
[20:36:24] matthewd: rikkipitt: Yeah, personally, I'd white-box it -- focus most of the testing on an unrestricted role, then just add additional tests for things that are expected to differ
[20:37:20] blackmesa: has joined #RubyOnRails
[20:39:26] Neo--: has joined #RubyOnRails
[20:39:41] Neo--: is there a link to all the helpful devise helpers like user signed in ?
[20:40:06] rikkipitt: has joined #RubyOnRails
[20:40:25] rikkipitt: Cheers matthewd
[20:40:45] rikkipitt: My client signed out for a moment there but thanks for confirming
[20:41:08] Talltree: is my question really that stupid? i just dont get it i guess :D
[20:41:33] matthewd: Talltree: I'm not sure I understand the question. What's the problem you're having?
[20:42:39] rikkipitt: Neo--: there's a lot of helpful stuff on the devise wiki around testing.
[20:42:58] dminuoso: has joined #RubyOnRails
[20:43:20] Talltree: matthewd, i want to search through a list of records. a simple true/false checkbox doesnt do it since i also want to display both records at the same time.
[20:43:57] Talltree: so i thought i use a third radio button.... thats like an "either" option
[20:44:13] Talltree: but for that i would have to clear the params again from the search, no idea how...
[20:44:24] matthewd: Talltree: Right, that's what you're trying to achieve. But what are you trying, and how is it not working?
[20:44:44] matthewd: Talltree: The part I'm lost on is why it doesn't Just Work
[20:44:46] cnk: rikkipitt: I often write tests that just focus on permissions for a controller
[20:44:58] Talltree: is there a method to clear a param on a form?
[20:45:03] Talltree: thats my question basicly
[20:45:09] cnk: just make a loop with the controller actions + inner loop with roles, and assert got there or got denied
[20:45:20] matthewd: clear a param?
[20:45:23] matthewd: Talltree: Code please.
[20:46:07] Talltree: http://pastie.org/10896875 oO that code doesnt help you at all probably
[20:46:19] Talltree: 3rd radio button that acts like a "either" option
[20:46:33] yfeldblum: has joined #RubyOnRails
[20:46:36] fox_mulder_cp: tbuehlmann: no error - a post dev log with nil
[20:46:53] matthewd: Talltree: Well you're probably going to want to start by adding a third call to radio_button_tag ...
[20:46:55] meoblast001: has joined #RubyOnRails
[20:46:57] tbuehlmann: I don't know what that means
[20:47:10] fox_mulder_cp: tbuehlmann: oh, in initizlize @client = @record.client raised 'no method'
[20:48:11] Talltree: i have the feeling that you kinda kidding me...
[20:49:01] tbuehlmann: fox_mulder_cp: I don't understand and the gist is not helping either, I can't help you
[20:49:53] blackmes1: has joined #RubyOnRails
[20:50:00] asheinfeld: has joined #RubyOnRails
[20:50:23] jhack: ln: target `//' is not a directory: No such file or directory, anyone know how i can get through this error? trying to link my applications public folder to a subdomain
[20:50:38] fox_mulder_cp: tbuehlmann: i don't understand too, why pundit drops relations
[20:50:59] tbuehlmann: pundit doesn't drop anything, you are doing something wrong
[20:51:06] rafaelfranca: has joined #RubyOnRails
[20:51:07] rafaelfranca: has joined #RubyOnRails
[20:51:32] [Butch]_: has joined #RubyOnRails
[20:54:15] fox_mulder_cp: tbuehlmann: when i try to set @record from record in initializator, and add @client = @record.client - it raised 'no method client for class Contact'
[20:55:33] tbuehlmann: why are you calling a method that doesn't exist on Contact/the relation?
[20:56:23] fox_mulder_cp: tbuehlmann: Contact.client - is a relation. it works in rails console and return accociated client model
[20:57:35] tbuehlmann: so a contact has a client?
[20:58:03] fox_mulder_cp: tbuehlmann: yes. i post models in gist.
[20:58:15] tbuehlmann: you're doing it wrong then
[20:58:17] matthewd: Talltree: I'm stating the hopefully-very-obvious, because you haven't shown where you ran into a problem
[20:58:31] fox_mulder_cp: tbuehlmann: ook, where is my fail?
[20:58:31] tbuehlmann: a contact object has a client, not the Contact class
[20:59:19] fox_mulder_cp: extend my fail, please
[20:59:28] tbuehlmann: you just said you're calling .client on Contact
[20:59:29] Talltree: matthewd, there must be a method to clear the true or false from the search query
[20:59:34] tbuehlmann: and that doesn't make sense
[20:59:41] tbuehlmann: also, I don't see where you call contact.client in your gist
[21:00:06] matthewd: Talltree: Then good luck.
[21:00:11] Talltree: i can make it with something liker http://pastie.org/10896882
[21:00:37] Talltree: but that doesnt work well if there is more then one search field...
[21:00:59] fox_mulder_cp: tbuehlmann: i drop this line. but @record in policy properly works, why @client = @record.client doesn't work?
[21:01:34] matthewd: Talltree: It sounds like you're finally approaching a description of an actual problem. Hopefully someone will be able to help you once you get there.
[21:01:53] tbuehlmann: what does "properly works" mean? also, could you gist the real code that doesn't work, please?
[21:03:21] rogue_koder: has joined #RubyOnRails
[21:03:51] fox_mulder_cp: tbuehlmann: here https://gist.github.com/foxmuldercp/f910e4e339b36aa435ea85e25406f65d
[21:04:40] tbuehlmann: there is no client method on your contact class/a relation
[21:04:45] tbuehlmann: that's the problem
[21:05:13] fox_mulder_cp: tbuehlmann: yes. and i don't know, how to load it
[21:05:33] tbuehlmann: what are you trying to achieve at all?
[21:05:40] Devalo: has joined #RubyOnRails
[21:06:23] shinnya: has joined #RubyOnRails
[21:06:55] SirOliver: has joined #RubyOnRails
[21:07:53] fox_mulder_cp: tbuehlmann: i want to use pundit scopes. main problem is get this contact client, find it's associated reseller,and get all of contacts, associated with this reseller
[21:08:25] fox_mulder_cp: and return this array as scope
[21:09:28] jetpack_joe: has joined #RubyOnRails
[21:10:19] Velizar: has joined #RubyOnRails
[21:13:12] rafaelfranca: has joined #RubyOnRails
[21:13:44] tbuehlmann: you want to get the scoped contacts for the current user
[21:14:02] tbuehlmann: depending on the user's attributes/associations
[21:14:50] tbuehlmann: like this: https://gist.github.com/tbuehlmann/4549347a75ea36b68d49fe7b5efe473e
[21:15:15] fox_mulder_cp: tbuehlmann: yes
[21:15:50] tbuehlmann: in your controller, you go with this: `@contacts = policy_scope(Contact.all)`
[21:16:27] tfitts: I'm trying to use pry-byebug with break points instead of just inserting binding.pry and running reload. When I insert a break point using break it shows the break point where I need it and that it is enabled but doesn't actually break there. I feel like I've read about an issue with the wrong ruby version or something but can't find it now. Anyone have
[21:16:28] tfitts: any ideas?
[21:16:29] fox_mulder_cp: user - loads associations, but contact - not
[21:16:57] tbuehlmann: I don't understand
[21:17:28] fox_mulder_cp: tbuehlmann: user, initialized in policy have a proper associations - client, reseller etc
[21:17:48] tbuehlmann: forget the Policy, focus on the Scope
[21:21:45] centrx: has joined #RubyOnRails
[21:23:41] SirOliver: has joined #RubyOnRails
[21:24:42] matt8473: has joined #RubyOnRails
[21:26:43] fox_mulder_cp: tbuehlmann: hm...
[21:28:35] tbuehlmann: I gave you the code and how to call it in the controller, what's not working?
[21:28:36] GodFather_: has joined #RubyOnRails
[21:28:57] fox_mulder_cp: tbuehlmann: works: return scope.all if (@user.client.owner? and @user.client.reseller.operator?)
[21:29:23] matthewd: tfitts: Have you tried putting the breakpoint in a different / easier / more obvious position, to check it's not just that the line you're aiming for isn't actually getting run?
[21:29:25] fox_mulder_cp: tbuehlmann: but when i want get @contact.client.reseller - it fails
[21:29:47] jenrzzz: has joined #RubyOnRails
[21:29:48] tbuehlmann: there's no @contact...
[21:30:23] fox_mulder_cp: tbuehlmann: scope - contact. it's a ContactPolicy, not User
[21:30:59] tbuehlmann: we are talking about ContactPolicy::Scope and its #resolve method
[21:31:23] fox_mulder_cp: yes. @record = contact
[21:31:24] tbuehlmann: it shall return a relation of contacts for the given pundit_user
[21:31:52] tbuehlmann: there's no record for Scope, just user and scope
[21:33:10] fox_mulder_cp: tbuehlmann: hmhm, class scope def initialize, and i try to fix initialize of ContactPolicy
[21:33:32] fox_mulder_cp: and it fails.. i'm friday's idiot :)
[21:36:31] djbkd: has joined #RubyOnRails
[21:37:15] SteenJobs: has joined #RubyOnRails
[21:38:26] fox_mulder_cp: but scope... need learning
[21:39:27] fox_mulder_cp: tbuehlmann: thanks u
[21:39:46] Contigi: has joined #RubyOnRails
[21:46:28] AmiMoench: has joined #RubyOnRails
[21:47:03] watersoul_: has joined #RubyOnRails
[21:48:23] brianblanton: has joined #RubyOnRails
[21:49:51] boshhead_: has joined #RubyOnRails
[21:50:27] Darmani: has joined #RubyOnRails
[21:51:08] dever_: has joined #RubyOnRails
[21:51:09] nwkr: has joined #RubyOnRails
[21:51:35] hirvi_: has joined #RubyOnRails
[21:53:08] tfitts: matthewd: yeah, I've tried putting it in multiple places
[21:53:24] Technodrome: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[21:53:24] differentreality: has joined #RubyOnRails
[21:53:46] hahuang61: has joined #RubyOnRails
[21:54:40] akshat: has joined #RubyOnRails
[21:55:44] cgfbee: has joined #RubyOnRails
[21:56:57] Pazician: has joined #RubyOnRails
[21:57:25] roamingdog: has joined #RubyOnRails
[21:57:37] joevandyk: has joined #RubyOnRails
[21:57:49] jamo: has joined #RubyOnRails
[22:00:12] nettoweb: has joined #RubyOnRails
[22:00:57] Oliphaunte: has joined #RubyOnRails
[22:01:27] whathappens: has joined #RubyOnRails
[22:01:53] mdw7: has joined #RubyOnRails
[22:02:57] djbkd: has joined #RubyOnRails
[22:03:32] Devalo: has joined #RubyOnRails
[22:03:55] jenrzzz: has joined #RubyOnRails
[22:03:55] jenrzzz: has joined #RubyOnRails
[22:05:17] xibalba: has joined #RubyOnRails
[22:08:37] nofxx: Fernando-Basso, wassup... nope
[22:09:26] jetpack_joe: has joined #RubyOnRails
[22:14:05] djbkd: has joined #RubyOnRails
[22:15:10] macsteps: has joined #RubyOnRails
[22:15:19] macsteps: has joined #RubyOnRails
[22:21:15] Oliphaunte: has joined #RubyOnRails
[22:24:32] clouder`grr: has joined #RubyOnRails
[22:24:45] roamingdog: has joined #RubyOnRails
[22:26:37] adamsilver: has joined #RubyOnRails
[22:28:21] adamsilver: Any one knows if Apple accepts TurboLinks apps without any native functionality? I am surprised RoR folks are advertising it as a quick way to launch mobile apps but in reality Apple do not accept such apps without significant native functionality used?
[22:28:31] B1n4r10: has joined #RubyOnRails
[22:29:12] cd-rum: has joined #RubyOnRails
[22:32:09] cd-rum: has joined #RubyOnRails
[22:33:20] maxx88: has joined #RubyOnRails
[22:36:58] whathappens: has joined #RubyOnRails
[22:38:24] matthewd: adamsilver: TBH I'm not across the details, beyond knowing there's a native/turbolinks split of some sort. A large part of the Basecamp 3 app is turbolinks though.
[22:41:17] cd-rum: has joined #RubyOnRails
[22:41:53] p8m: has joined #RubyOnRails
[22:43:43] whathappens: has joined #RubyOnRails
[22:44:26] adamsilver: matthewd: yeah, they are getting by by making the first couple of screens native
[22:45:36] Fernando-Basso: nofxx: The problem with my tests trying to find admin_foos tables was that I had fixtures in test/admin/<fixtures>.rb.
[22:46:02] Fernando-Basso: Ah, nope, that is incorrect.
[22:47:12] Fernando-Basso: I mean, they were in test/fixtures/admin/..., and they should be in test/fixtures/... because the models themselves are not namspaced.
[22:47:19] [gmi]: has joined #RubyOnRails
[22:47:47] matthewd: adamsilver: I guess I'm not sure what your question is
[22:47:50] Fernando-Basso: nofxx: Also, are you the choosen one who announced a #ruby-br channel in the rails-br google group?
[22:50:26] adamsilver: matthewd: Never mind, I was just confused because this part wasn't mentioned when they are talking about native iOS apps using a wrapper.
[22:53:17] Fernando-Basso: http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#the-update-task <-- I have rails 4.2 in this app, and none of the commands they talk about on that link is available here.
[22:54:05] matthewd: Fernando-Basso: "After updating the Rails version in the Gemfile, run this task"
[22:55:06] jetpack_joe: has joined #RubyOnRails
[22:55:21] Fernando-Basso: What does it mean "to update rails on the gem file"? Just change the version or change the version and do bundle update or something?
[22:56:16] asheinfeld: has joined #RubyOnRails
[22:56:56] jenrzzz: has joined #RubyOnRails
[23:02:47] whathappens: has joined #RubyOnRails
[23:07:34] chouhoul_: has joined #RubyOnRails
[23:08:27] chouhoul_: has joined #RubyOnRails
[23:11:48] Oliphaunte: has joined #RubyOnRails
[23:15:29] dalbusch1t: has joined #RubyOnRails
[23:27:43] viiralvx: has joined #RubyOnRails
[23:28:32] one_zero: has joined #RubyOnRails
[23:31:05] Oliphaunte: has joined #RubyOnRails
[23:35:49] hahuang61: has joined #RubyOnRails
[23:38:46] desnudop1nguino: has joined #RubyOnRails
[23:40:28] Axilla: has joined #RubyOnRails
[23:42:43] desnudop1nguino: I'm working on my admin side for a project, and realized that it is getting pretty far away from being DRY and I now have 3 controllers for many models, any thoughts on some rules to help clean it up?
[23:43:46] desnudop1nguino: I have the regular, public access for users to view photo albums and images, an account namespaced set of routes for users to manage their content, and the admin namespace to manage everything in case something goes crazy
[23:50:20] SteenJobs: has joined #RubyOnRails
[23:57:26] B1n4r10: has joined #RubyOnRails