« Back to channel list

#RubyOnRails - 12 June 2015

« Back 1 day Forward 1 day »
[00:00:52] arthurcolle: has joined #RubyOnRails
[00:01:56] jstanton: has joined #RubyOnRails
[00:02:39] siaw23: has joined #RubyOnRails
[00:02:43] DoctorMonocular: has joined #RubyOnRails
[00:03:19] Axsuul: has joined #RubyOnRails
[00:06:12] siaw23: on the localhost i can render my templates, on heroku i can???t. more details: http://stackoverflow.com/questions/30780730/rendering-template-wont-work-on-heroku-but-works-locally can someone please help me?
[00:06:14] intinig: has joined #RubyOnRails
[00:06:18] siaw23: i???m struggling with this
[00:07:20] edwinrozario: has joined #RubyOnRails
[00:08:39] rubyonrailed: has joined #RubyOnRails
[00:10:26] renews: has joined #RubyOnRails
[00:10:42] FCser: has joined #RubyOnRails
[00:11:59] rickmasta: has joined #RubyOnRails
[00:12:31] doodlehaus: has joined #RubyOnRails
[00:15:50] intinig: has joined #RubyOnRails
[00:16:03] scottmatheina: has joined #RubyOnRails
[00:17:04] arthurcolle: has joined #RubyOnRails
[00:19:15] passionincode: has joined #RubyOnRails
[00:19:50] Oog: has joined #RubyOnRails
[00:21:30] Oog: im trying to pick a delaeyed job processor - looking at delayed_job resque and sidekiq - advice?
[00:21:44] michaeldeol: has joined #RubyOnRails
[00:23:13] DoctorMonocular: Oog: whatever you do, use ActiveJob to wrap it
[00:23:18] DoctorMonocular: then it doesn't really matter what you choose
[00:23:30] DoctorMonocular: I think the cool kids these days still use sidekiq
[00:23:51] simplyianm: has joined #RubyOnRails
[00:24:45] Oog: ive used delayed_job before and had constant problems with it crashing
[00:24:49] Oog: HUGE memory bloat
[00:24:58] Oog: it would just grow and grow
[00:25:14] DoctorMonocular: well like I said, definitely use ActiveJob, and I'd recommend sidekiq as the backend
[00:29:08] siaw23: will someone help me with this? my template is not rendering and objects not being created after installing zurb foudnation http://stackoverflow.com/questions/30793542/redirect-to-template-not-working-of-foundation-framework-installation
[00:31:08] DoctorMonocular: siaw23: your question isn't clear enough to answer
[00:31:16] one_zero: has joined #RubyOnRails
[00:31:22] siaw23: DoctorMonocular: which part?
[00:31:25] bronson: has joined #RubyOnRails
[00:32:26] Befine: has joined #RubyOnRails
[00:32:34] siaw23: DoctorMonocular: before installng zurb foundation i could render a template, create an object in the database, and had flash message show when for example a user fails to enter a field that needed to be filled. now all that is gone.
[00:32:35] DoctorMonocular: what are you doing? what is happening? what should be happening instead? Do you submit a form? does it hit the right action? what are you seeing on the screen?
[00:34:36] Oog: here is what im doing - im setting up a subscription service. for example you can signup for a weekly delivery. i have a frequency parameter that is the number of days. when the subscription is created im going to create a job that runs in 7 days
[00:34:40] nobitanobi: has joined #RubyOnRails
[00:35:33] Oog: the reason i think i shouldnt use sidekiq is because i need proper state in the database. for example i think i want to create the new subscription and the job in a transaction so that IF creation fail im sure there is no job
[00:35:42] Oog: does that make sense?
[00:35:42] krisquigley: has joined #RubyOnRails
[00:35:53] robustus: has joined #RubyOnRails
[00:36:47] siaw23: DoctorMonocular: i???m submitting a form, that will create a new object. after clicking the button i expect a redirect to another page. before installing zurb foundation all this worked. now it won???t. the object is not saving in the database, hence the redirect to the template is not working, the form keeps rendering `new`. that???s the problem.
[00:37:52] DoctorMonocular: what do you see when you debug?
[00:38:29] DoctorMonocular: in the create method what are the param values?
[00:38:36] ght: Can Rails constants be utilized in Rails coffeescript code via string interpolation?
[00:38:39] DoctorMonocular: what is hte result when the model tries to save them?
[00:38:42] nonparfumee: has joined #RubyOnRails
[00:40:03] siaw23: DoctorMonocular: param values are :name, :email, :country,
[00:40:23] siaw23: the model can???t save at all, it can???t reach that stage
[00:42:01] MEATCHICKEN: has joined #RubyOnRails
[00:42:06] bmurt: has joined #RubyOnRails
[00:42:18] Valien: has joined #RubyOnRails
[00:42:45] DoctorMonocular: siaw23: what I'm asking is when you look at your debugger, at the values the form actually submits to the action, what are those values?
[00:42:57] mheld: has joined #RubyOnRails
[00:42:59] DoctorMonocular: eg, what is that value of params[:email]?
[00:43:20] asheinfeld: has joined #RubyOnRails
[00:43:57] siaw23: DoctorMonocular: Parameters: {"utf8"=>"???", "authenticity_token"=>"qgXmHuloO7rKfYIUXFH5PVjsLDjpYcNDsX6gIff71a4n+Ehe/uu7DOt29+50S8B11TZp1uxaxf3+BqgSuHp+3Q==", "investor"=>{"name"=>"Emmanuel", "email"=>"lalapnt@yahoo.com", "country"=>"Poland", "phone"=>"733378602"}, "commit"=>"I'm interested!"}
[00:44:21] fgo: has joined #RubyOnRails
[00:44:58] siaw23: those are the the values after submitting
[00:45:43] joaomdmoura: has joined #RubyOnRails
[00:46:03] simplyianm: has joined #RubyOnRails
[00:46:42] DoctorMonocular: ok, in the create method you're saying it @investor.save is false, right?
[00:46:52] DoctorMonocular: that it just renders :new?
[00:47:13] DoctorMonocular: when it's about to render :new, what value does @investor.errors have?
[00:48:08] siaw23: DoctorMonocular: i would need to try to do that manually in the console to check
[00:49:32] DoctorMonocular: that might be a good start if you don't have a visual debugger, to paste in the params exactly as you showed them to me, call require() and permit() on them to see the result, then pass the result in to Investor.create, and see what happens
[00:50:34] siaw23: DoctorMonocular: how do i get the debugger to show in the browser?
[00:51:18] asteros: has joined #RubyOnRails
[00:51:27] Valien: has joined #RubyOnRails
[00:51:35] DoctorMonocular: there are various gems that do that sort of thing, I use personally use Rubymine which has a nice debugger built in
[00:52:32] sarink: has joined #RubyOnRails
[00:53:07] siaw23: DoctorMonocular: i used the console to create a user
[00:53:15] siaw23: user is saved
[00:53:27] x1337807x: has joined #RubyOnRails
[00:53:34] siaw23: i.errors (where i is instance of objectf) is empty. no errors
[00:53:36] DoctorMonocular: can I see the console session text?
[00:53:47] bin_005: has joined #RubyOnRails
[00:54:22] siaw23: DoctorMonocular: https://gist.github.com/siaw23/ac19d12c6a0491217322
[00:54:43] DoctorMonocular: that's not what I said to do
[00:54:56] DoctorMonocular: I said to paste the params:
[00:55:03] DoctorMonocular: {"utf8"=>"???", "authenticity_token"=>"qgXmHuloO7rKfYIUXFH5PVjsLDjpYcNDsX6gIff71a4n+Ehe/uu7DOt29+50S8B11TZp1uxaxf3+BqgSuHp+3Q==", "investor"=>{"name"=>"Emmanuel", "email"=>"lalapnt@yahoo.com", "country"=>"Poland", "phone"=>"733378602"}, "commit"=>"I'm interested!"}
[00:55:18] DoctorMonocular: and them call require and permit on that
[00:55:20] DoctorMonocular: to see the result
[00:55:30] DoctorMonocular: then pass that result to Investor.creatre
[00:56:17] siaw23: but in ???rails c????
[00:56:41] DoctorMonocular: you're trying to recreate the scenario as closely as you can
[00:56:50] siaw23: DoctorMonocular: pasting in those params in rails returns nothing
[00:56:55] siaw23: i just pasted this
[00:56:56] siaw23: {"utf8"=>"???", "authenticity_token"=>"qgXmHuloO7rKfYIUXFH5PVjsLDjpYcNDsX6gIff71a4n+Ehe/uu7DOt29+50S8B11TZp1uxaxf3+BqgSuHp+3Q==", "investor"=>{"name"=>"Emmanuel", "email"=>"lalapnt@yahoo.com", "country"=>"Poland", "phone"=>"733378602"}, "commit"=>"I'm interested!"}
[00:57:11] siaw23: i can???t assign it to a variable
[00:59:31] jschoolcraft: has joined #RubyOnRails
[01:01:33] x1337807x: has joined #RubyOnRails
[01:01:39] DoctorMonocular: sure you can, just do:
[01:01:43] DoctorMonocular: params = <pasted stuff>
[01:02:36] highcup: has joined #RubyOnRails
[01:02:43] highcup: has joined #RubyOnRails
[01:02:55] siaw23: DoctorMonocular: ok now i have params = pasted stuff
[01:03:11] siaw23: next would be to do params.permit.require()
[01:03:15] siaw23: DoctorMonocular: right?
[01:03:51] siaw23: DoctorMonocular: or maybe this
[01:03:51] CyborgCygnus: has joined #RubyOnRails
[01:03:54] siaw23: params.require(:investor).permit(:name, :email, :country,
[01:04:18] DoctorMonocular: right, the second one, just like your controller code
[01:04:35] renews: has joined #RubyOnRails
[01:05:08] edwinrozario: has joined #RubyOnRails
[01:05:49] siaw23: DoctorMonocular: i get private method `require' called for #<Hash:0x007fd9baee0d18>
[01:06:00] chipotle: has joined #RubyOnRails
[01:06:53] DoctorMonocular: in your console put:
[01:07:01] DoctorMonocular: params = ActionController::Parameters.new(params)
[01:08:22] siaw23: now after params.require(:investor).permit(:name, :email, :country, :phone)
[01:08:23] siaw23: => {"name"=>"Emmanuel", "email"=>"lalapnt@yahoo.com", "country"=>"Poland", "phone"=>"733378602"}
[01:09:34] DoctorMonocular: ok, and when you pass that to Investor.create?
[01:10:06] Filete: has joined #RubyOnRails
[01:10:21] siaw23: DoctorMonocular: like this? Investor.create(params)
[01:10:35] codeurge: has joined #RubyOnRails
[01:10:48] DoctorMonocular: well, you have to do something like strong_params = params.require(:investor).permit(:name, :email, :country, :phone)
[01:10:56] DoctorMonocular: then Investor.create(strong_params)
[01:11:47] Oog: how does activejob do jobs that run at a specific time with resque
[01:12:34] Valien: has joined #RubyOnRails
[01:12:56] CyborgCygnus: has joined #RubyOnRails
[01:14:11] arthurcolle: has joined #RubyOnRails
[01:14:12] siaw23: DoctorMonocular: the result of that is https://gist.github.com/siaw23/37ca956d4349b9e46261
[01:14:32] scottmatheina: has joined #RubyOnRails
[01:15:46] DoctorMonocular: cool, so it looks like that's not the issue -- can you verify that the form submission is hitting the right action, and that the .create() is returning false and that's why it's rendered "new?
[01:18:23] siaw23: others are saying it???s from the form
[01:18:36] siaw23: DoctorMonocular: please check the updates http://stackoverflow.com/questions/30793542/redirect-to-template-not-working-after-foundation-framework-installation
[01:18:44] siaw23: DoctorMonocular: but i can???t seem to find what i did wrong with the form
[01:21:13] DoctorMonocular: yup, that's what I suspected too when I asked about being sure you're hitting the right action
[01:21:31] highcup: has joined #RubyOnRails
[01:21:39] siaw23: DoctorMonocular: yeah. but didn???t know how to confirm that.
[01:22:06] drale2k: has joined #RubyOnRails
[01:23:09] arthurcolle: has joined #RubyOnRails
[01:23:19] hakunin: has joined #RubyOnRails
[01:23:35] hahuang65: has joined #RubyOnRails
[01:25:24] CyborgCygnus: has joined #RubyOnRails
[01:26:15] scottmatheina: has joined #RubyOnRails
[01:27:51] beauby: has joined #RubyOnRails
[01:28:14] blackmesa: has joined #RubyOnRails
[01:28:14] johntrails: has joined #RubyOnRails
[01:28:21] scottmatheina: has joined #RubyOnRails
[01:29:59] x1337807x: has joined #RubyOnRails
[01:30:47] tsvenson: has joined #RubyOnRails
[01:31:09] Oog: if i use resque which is backed by redis and schedule jobs in the future, if redis is restarted are all the jobs lost...?
[01:33:49] siaw23: DoctorMonocular: thank a lot btw :)
[01:34:04] siaw23: you thought me something with the console
[01:34:22] bronson: has joined #RubyOnRails
[01:34:46] Valien: has joined #RubyOnRails
[01:36:56] workmad3: has joined #RubyOnRails
[01:37:30] unreal_: has joined #RubyOnRails
[01:37:56] Scriptonaut: has joined #RubyOnRails
[01:37:57] ferr: Hey, any suggestions on simple online tool to design a website? I mean to draw the UI before coding
[01:39:23] johntrails: Has anyone encountered using checkbox_tag but no checkboxes appearing? instead, I have dots ? (.) My code = http://pastie.org/10236509 Image of results = http://s3.postimg.org/gzz5afegj/checkbox.png
[01:42:55] johntrails: ferr, google "html wysiwig editor"
[01:43:44] l0oky: has joined #RubyOnRails
[01:45:09] hakunin: has joined #RubyOnRails
[01:46:52] ferr: johntrails: thanks, I have found what I was looking for, it's mockflow.com
[01:47:56] johntrails: cool.. awesome
[01:48:42] unreal: has joined #RubyOnRails
[01:48:44] unreal: has joined #RubyOnRails
[01:52:29] chipotle: has joined #RubyOnRails
[01:52:37] philcrissman: has joined #RubyOnRails
[01:52:48] jphenow: has joined #RubyOnRails
[01:53:34] x1337807x: has joined #RubyOnRails
[01:54:19] Valien: has joined #RubyOnRails
[01:55:14] givanse: has joined #RubyOnRails
[01:56:35] commondream: has joined #RubyOnRails
[01:58:45] renews: has joined #RubyOnRails
[01:59:06] merryfett: has joined #RubyOnRails
[02:02:19] rromanchuk: has joined #RubyOnRails
[02:03:05] SteenJobs: has joined #RubyOnRails
[02:04:28] CyborgCygnus: has joined #RubyOnRails
[02:05:39] tenderlo_: has joined #RubyOnRails
[02:07:39] Valien: has joined #RubyOnRails
[02:08:02] jonahR: has joined #RubyOnRails
[02:08:52] beauby: has joined #RubyOnRails
[02:09:25] shyshy: has joined #RubyOnRails
[02:13:42] jscheel: has joined #RubyOnRails
[02:18:51] aloneintheworld: has joined #RubyOnRails
[02:19:26] earthquake: has joined #RubyOnRails
[02:23:16] RegulationD: has joined #RubyOnRails
[02:23:26] lessless: has joined #RubyOnRails
[02:24:35] krisquigley: has joined #RubyOnRails
[02:24:49] konsolebox: has joined #RubyOnRails
[02:32:37] lele: has joined #RubyOnRails
[02:33:59] bruno-: has joined #RubyOnRails
[02:36:26] Valien: has joined #RubyOnRails
[02:36:51] axsuul_: has joined #RubyOnRails
[02:37:33] scottmatheina: has joined #RubyOnRails
[02:38:58] arthurcolle: has joined #RubyOnRails
[02:39:24] hakunin: has joined #RubyOnRails
[02:40:21] earthquake: has joined #RubyOnRails
[02:40:33] Valien: has joined #RubyOnRails
[02:40:51] beauby: has joined #RubyOnRails
[02:40:59] bronson: has joined #RubyOnRails
[02:42:17] doodlehaus: has joined #RubyOnRails
[02:49:03] michael_mbp: has joined #RubyOnRails
[02:49:20] mike___1234: has joined #RubyOnRails
[02:49:49] djbkd: has joined #RubyOnRails
[02:50:18] n1lo: has joined #RubyOnRails
[02:52:46] sarink: has joined #RubyOnRails
[02:52:57] renews: has joined #RubyOnRails
[02:54:24] duderonomy: has joined #RubyOnRails
[02:54:34] darrencauthon: has joined #RubyOnRails
[02:56:29] DoctorMonocular: has joined #RubyOnRails
[02:58:13] bamorim: has joined #RubyOnRails
[02:58:39] adavia: im a bit confuse using this format.html response, so how im suppose to show my flash message in this case format.html { flash[:info] = "Success!!" redirect_to root_url }
[02:58:46] chouhoulis: has joined #RubyOnRails
[03:03:11] djbkd: has joined #RubyOnRails
[03:06:42] baweaver: has joined #RubyOnRails
[03:09:23] joaomdmoura_: has joined #RubyOnRails
[03:09:28] CalvinnHobbes: has joined #RubyOnRails
[03:09:33] braincrash: has joined #RubyOnRails
[03:09:43] beauby: has joined #RubyOnRails
[03:09:53] dented42: has joined #RubyOnRails
[03:10:25] cornerma1: has joined #RubyOnRails
[03:11:12] baweaver: has joined #RubyOnRails
[03:12:24] highcup: has joined #RubyOnRails
[03:12:46] earthquake: has joined #RubyOnRails
[03:13:35] edwinrozario: has joined #RubyOnRails
[03:15:58] rhizome: adavia: you can supply a flash message as an argument to redirect_to
[03:17:38] Scripore: has joined #RubyOnRails
[03:17:52] adavia: rhinon: but should i need to create a parcial for the success message and render it with a create.js.erb file to make that work?
[03:17:54] eggoez: has joined #RubyOnRails
[03:18:05] darrenca_: has joined #RubyOnRails
[03:24:47] arup_r: has joined #RubyOnRails
[03:25:43] workmad3: has joined #RubyOnRails
[03:26:44] annlewis_: has joined #RubyOnRails
[03:29:25] yfeldblum: has joined #RubyOnRails
[03:29:53] pontiki: has joined #RubyOnRails
[03:30:48] Valien: has joined #RubyOnRails
[03:31:57] simplyianm: has joined #RubyOnRails
[03:36:27] GnuYawk: has joined #RubyOnRails
[03:37:44] annlewis: has joined #RubyOnRails
[03:37:44] Cache_Money: has joined #RubyOnRails
[03:41:03] mike___1234: has joined #RubyOnRails
[03:41:22] jphenow: has joined #RubyOnRails
[03:42:51] ivanskie: has joined #RubyOnRails
[03:43:36] Jarboe: has joined #RubyOnRails
[03:47:08] renews: has joined #RubyOnRails
[03:54:36] theery: has joined #RubyOnRails
[03:55:05] bin_005: has joined #RubyOnRails
[03:55:34] Paradox: has joined #RubyOnRails
[03:56:11] mikajo: has joined #RubyOnRails
[03:56:31] w0rd-driven: has joined #RubyOnRails
[03:56:51] arBmind: has joined #RubyOnRails
[03:57:45] SteenJobs: has joined #RubyOnRails
[03:58:53] mauro1254: has joined #RubyOnRails
[03:59:32] edwinrozario: has joined #RubyOnRails
[04:03:02] fedexo: has joined #RubyOnRails
[04:03:10] penguinpowernz: has joined #RubyOnRails
[04:05:25] rickmasta: has joined #RubyOnRails
[04:05:35] merryfett: has joined #RubyOnRails
[04:06:30] gambl0re: has joined #RubyOnRails
[04:07:21] nobitanobi: has joined #RubyOnRails
[04:08:05] chintanparikh: has joined #RubyOnRails
[04:08:22] baweaver: has joined #RubyOnRails
[04:09:28] freezevee: has joined #RubyOnRails
[04:11:41] freezevee: Hi all, I am trying to upload my first github page with middleman and I get a 404. I followed the instructions for middleman-deploy and everything was deployed ok. But I see the repo and there is only a feed.xml file and two folders
[04:13:38] krisquigley: has joined #RubyOnRails
[04:15:37] braincra-: has joined #RubyOnRails
[04:19:38] aloneintheworld: I have a look-up table model (ID, NAME, SHORT_NAME, LONG_NAME). I want to create a scope on that model, where I pass a symbol as parameter to that scope so it searches for a specific ID
[04:19:54] aloneintheworld: how should I write the Enum in that model ?
[04:20:14] aloneintheworld: enum id: { string: 1, other: 2 } doesnt seem to work
[04:20:43] aloneintheworld: I have scope :category, -> type { where('psu_categories.id = ?', type) }
[04:20:53] aloneintheworld: but thats not working
[04:23:03] bruno-: has joined #RubyOnRails
[04:25:07] simplyianm: has joined #RubyOnRails
[04:25:34] DCio: has joined #RubyOnRails
[04:26:10] DCio: anyone familiar with the koudoku gem?
[04:28:06] SteenJobs: has joined #RubyOnRails
[04:29:22] SteenJobs: does anyone have experience with devise + facebook omniauth, but using facebook???s JS SDK?
[04:31:03] i: has joined #RubyOnRails
[04:31:19] darrencauthon: has joined #RubyOnRails
[04:34:53] Spami: has joined #RubyOnRails
[04:35:23] edwinrozario: has joined #RubyOnRails
[04:36:20] dseitz: has joined #RubyOnRails
[04:36:21] chintanparikh: has joined #RubyOnRails
[04:36:26] growlove: has joined #RubyOnRails
[04:36:31] DoctorMonocular: has joined #RubyOnRails
[04:37:18] rdavila: has joined #RubyOnRails
[04:38:10] earthquake: has joined #RubyOnRails
[04:41:19] renews: has joined #RubyOnRails
[04:42:03] towski_: has joined #RubyOnRails
[04:43:08] RegulationD: has joined #RubyOnRails
[04:45:59] justintv90: has joined #RubyOnRails
[04:46:47] justintv90: has joined #RubyOnRails
[04:48:03] paradisaeidae: has joined #RubyOnRails
[04:55:13] x1337807x: has joined #RubyOnRails
[05:00:09] nobitanobi: has joined #RubyOnRails
[05:00:59] xye: has joined #RubyOnRails
[05:01:08] commondream: has joined #RubyOnRails
[05:07:36] rickmasta: has joined #RubyOnRails
[05:07:50] theery: has joined #RubyOnRails
[05:13:10] theery_: has joined #RubyOnRails
[05:14:30] workmad3: has joined #RubyOnRails
[05:16:58] hyperjuice: has joined #RubyOnRails
[05:17:06] Axsuul: has joined #RubyOnRails
[05:17:08] Oog: has joined #RubyOnRails
[05:17:18] Oog: if im using resque with redis and the redis server is restarted are all jobs lost?
[05:17:50] teufelChiCoder: has joined #RubyOnRails
[05:17:52] Aeyrix: Depends if the redis server is flushing to disk, I think.
[05:17:57] hyperjuice: Hi! I have nested resources: user has many products. I'm trying to figure out how to display all the products on one page.
[05:18:00] edwinrozario: has joined #RubyOnRails
[05:18:15] Aeyrix: hyperjuice: All of one user's products, or all products?
[05:18:44] hyperjuice: Aeyrix: all products, not just one user's products
[05:18:57] tbuehlmann: Oog, the default says so, iirc. but you can configure saving to disk every m time units and/or n writings
[05:18:57] hyperjuice: not sure what to do with the products_controller
[05:19:13] gaussblurinc1: has joined #RubyOnRails
[05:19:15] tbuehlmann: Oog, see http://redis.io/topics/persistence
[05:19:24] Aeyrix: hyperjuice: @products = Products.all
[05:19:48] Oog: so then i guess that means it is safest/best to use a database backed system like delayed job if it is important that jobs not be lost right?
[05:20:08] Oog: i was thinking about moving to resque/sidekiq for my jobs but im worried about lost jobs
[05:20:16] hyperjuice: Aeyrix: Products.all (plural)?
[05:20:29] Aeyrix: Your model should be called Product, singular.
[05:20:36] Aeyrix: Your controller should be products, plural.
[05:20:44] Aeyrix: Just the rails convention.
[05:20:50] tagrudev: has joined #RubyOnRails
[05:20:53] hakunin: has joined #RubyOnRails
[05:21:01] hyperjuice: rt. you typed, @products = Products.all
[05:21:04] hyperjuice: thats y i was asking
[05:21:18] Aeyrix: I thought I typed Product, heh.
[05:21:21] gaussblurinc1: should I write an api controllers for my api? ( well, now I have combined controllers for api and web )
[05:21:21] Aeyrix: Yes, @products = Product.all
[05:21:22] tbuehlmann: Oog, most of the time persisting redis data to disk is enough
[05:21:36] Aeyrix: gaussblurinc1: An API namespace, sure.
[05:21:53] theery: has joined #RubyOnRails
[05:21:54] Aeyrix: But separate controllers within that API namespace.
[05:22:33] hyperjuice: Aeyrix: so that's what i already have, in order to show all the products for one user
[05:22:58] Aeyrix: hyperjuice: That will show all products, not all products for one user.
[05:23:32] hyperjuice: Aeyrix: do u have a minute to look at my repo? https://github.com/hyperjuice/swuit
[05:23:52] michaeldeol: has joined #RubyOnRails
[05:24:02] Aeyrix: https://github.com/hyperjuice/swuit/blob/dev/app/controllers/products_controller.rb#L6
[05:24:04] Aeyrix: Yeah that's it yo.
[05:24:45] ProLoser: has joined #RubyOnRails
[05:24:51] baweaver: has joined #RubyOnRails
[05:24:55] Oog: what im doing is setting up a subscription service. for example say a user signs up for a weekly subscription i need to email them every monday (they can pick any interval so must be versatile) what is the best way to do this?
[05:25:10] Oog: when the subscription was created i was going to create a job that runs X days in teh future but if that job is lost its really bad
[05:25:11] hyperjuice: but there's no route to show all the products created by all users
[05:25:14] Oog: because i would neve rknow
[05:25:18] Aeyrix: Oog: The `whenever` gem, probably.
[05:25:42] Aeyrix: Write something to look at all subscriptions in the DB, and email.
[05:26:51] tbuehlmann: Oog, for me, running jobs immediately and scheduling a job for a later run are different things
[05:27:05] aganov: has joined #RubyOnRails
[05:27:05] hyperjuice: Aeyrix: but there's no route to show all the products created by all users, just to show all products for a particular user
[05:27:10] Oog: tbuehlmann: so how do you recommend doing the latter? what is the best way?
[05:27:11] tbuehlmann: but having a look at cron/whenever can't hurt
[05:27:23] Aeyrix: hyperjuice: That controller is not showing all products by a user.
[05:27:27] Aeyrix: It's showing all products by all users.
[05:27:32] Aeyrix: That's what `Product.all` does.
[05:27:32] yfeldblum: has joined #RubyOnRails
[05:27:41] Aeyrix: So your route should really be /products, not /users/1/products.
[05:28:05] Oog: why would i use whenever instead of regular cronjob? it has nice syntax but cronjob is extermely reliable/tested etc so probably better to use it right?
[05:28:09] tbuehlmann: hyperjuice, so you want to have two things: 1) show a user's products 2) show all products. using one controller
[05:28:09] hyperjuice: Aeyrix: but i want the ability to see all products for user 1, and all products for all users
[05:28:19] Aeyrix: Then add a second route and a second controller method.
[05:28:23] hyperjuice: tbuehlmann: cortrect
[05:28:43] jglover: has joined #RubyOnRails
[05:28:46] Skelz0r: has joined #RubyOnRails
[05:28:50] hyperjuice: second controller method in my products_controller?
[05:28:54] teufelChiCoder: has joined #RubyOnRails
[05:28:59] tbuehlmann: hyperjuice, either have a second controller or rely on the user_id param, if existing. like, check whether params[:user_id] is set, then get the user's product. else all products
[05:29:08] tbuehlmann: Oog, if you are familiar with cron, great, use it directly
[05:29:19] Aeyrix: Although, it should really be in the users controller, right tbuehlmann?
[05:29:26] tbuehlmann: no, products controller
[05:29:28] Aeyrix: The user-specific one, anyway.
[05:29:39] Aeyrix: The global one in products.
[05:29:53] tbuehlmann: the resource is Product, so it should be a products controller
[05:30:05] tbuehlmann: let me write up a thing..
[05:30:10] hyperjuice: tbuehlmann: tnx!
[05:30:30] Oog: lets say i have a cron job that runs every day 12pm but the server happens to be down at 12pm so the jb is missed... how to handle that?
[05:30:40] hyperjuice: tbuehlmann: im not sure how to do the 'check' u mentioned
[05:30:46] tbuehlmann: yea, give me a minute
[05:30:49] jglover: i'm use a twilio client in a few different applications, so i added this in a before filter in the application controller: @client = Twilio::REST::Client.new TWILIO_SID, TWILIO_AUTH_TOKEN. Will that ensure that there is only one instance of the client ever?
[05:31:00] jglover: *a few different controllers -- not applications
[05:31:20] Oog: that is why i liked the idea of scheduled jobs - even if the processor restarts or is down etc itll pick back up when restarted
[05:31:21] hyperjuice: tbuehlmann: here's my repo https://github.com/hyperjuice/swuit
[05:31:36] Aeyrix: Oog: You can do that with cron IIRC.
[05:31:52] Oog: ah didnt know that - how?
[05:31:54] Oog: what do i search for
[05:34:49] Oog: seems like it is anacron
[05:35:31] renews: has joined #RubyOnRails
[05:35:56] tbuehlmann: hyperjuice, like this: https://gist.github.com/tbuehlmann/23fbcff626a6392214da#file-products_controller-rb-L6-L12
[05:36:26] tbuehlmann: @user is only set if you're in /users/42/products
[05:36:52] hyperjuice: so what would be the URI to see all products from everyone?
[05:37:04] tbuehlmann: you need a route for that, too
[05:37:15] tbuehlmann: like, `resources :products, only: :index`
[05:37:24] tbuehlmann: oh, and show
[05:37:47] hyperjuice: so i would have 2 products#index?
[05:37:57] tbuehlmann: no, just one, which works for both routes
[05:38:30] hyperjuice: rt now i have /users/:user_id/products(.:format) for products#index
[05:38:48] tbuehlmann: correct, that's for the user specific products
[05:39:18] tbuehlmann: that's one option. another one is having two different controllers. like, ProductsController and User::ProductsController (or UserProductsController)
[05:39:19] hyperjuice: so put in the 'resources :products, only: :index' as well?
[05:39:41] hyperjuice: wont that give me 2 products#index?
[05:39:48] tbuehlmann: but that's really mixing things up. if the views differ between the two, you'd have to write some complex index view, for example
[05:40:17] tbuehlmann: no, just one. /users/42/products would route to products#index. so would /products
[05:40:34] tbuehlmann: the difference in the controller params is that the :user_id key is present, which we use in the index action
[05:40:55] philcrissman: has joined #RubyOnRails
[05:41:08] tbuehlmann: as said, that's one option. might work for simple setups, not so well for more complicated ones
[05:41:50] hyperjuice: i put in 'resources :products, only: :index' and then did rake routes
[05:42:03] hyperjuice: i have: products GET /products(.:format) products#index
[05:42:13] hyperjuice: and: user_products GET /users/:user_id/products(.:format) products#index
[05:42:18] tbuehlmann: yup, looks good
[05:43:00] hyperjuice: ahhhh. so both URIs pt to the same controller#method, and the if statement decides what should hap[pen?
[05:44:05] tbuehlmann: but remember, this can get messy in the view if things shall be rendered differently for the user products and all products
[05:44:21] tbuehlmann: so having two different controllers with different views might be worth it
[05:45:48] hyperjuice: plus, i just tried the code and it threw an error bc of '@user = User.find(params[:user_id])' in the private section below in the products_controller ('Couldn't find User with 'id'=')
[05:46:11] hyperjuice: maybe another controller is a better option
[05:46:32] tbuehlmann: hyperjuice, that's why I changed that line in my gist
[05:46:43] tbuehlmann: but yes, I agree, it's maybe a better option to have two controllers
[05:47:41] hyperjuice: i missed that :-)
[05:49:01] DoctorMonocular: has joined #RubyOnRails
[05:49:19] hahuang65: has joined #RubyOnRails
[05:49:54] daneo: has joined #RubyOnRails
[05:51:07] hyperjuice: tbuehlmann: im going to try to implement a allproducts_controller
[05:51:58] bronson: has joined #RubyOnRails
[05:52:15] nonparfumee: has joined #RubyOnRails
[05:52:44] ivanskie: has joined #RubyOnRails
[05:53:00] GPrime: has joined #RubyOnRails
[05:54:15] CyborgCygnus: has joined #RubyOnRails
[05:55:01] darrencauthon: has joined #RubyOnRails
[05:55:10] bratsche: has joined #RubyOnRails
[05:55:23] hyperjuice: tbuehlmann: tnx 4 ur time and help
[05:57:32] toomus: has joined #RubyOnRails
[05:58:12] toomus: How to stub CanCan can? method to return true?
[05:58:58] Zen-Zen: has joined #RubyOnRails
[05:59:07] tbuehlmann: toomus, using what testing framework?
[05:59:18] toomus: Sorry, RSpec
[05:59:47] tbuehlmann: depending on where you are, something like this: expect(controller).to receive(:can?).and_return(true)
[06:00:02] tbuehlmann: (that expect should be an allow)
[06:01:16] bin_005: has joined #RubyOnRails
[06:01:22] toomus: tbuehlmann: my problem is, that I don't have logged in user
[06:01:41] raunicolae: has joined #RubyOnRails
[06:01:52] tbuehlmann: I see. so either stub it as mentioned or setup a logged in user
[06:02:15] toomus: tbuehlmann: And I can't sign in any, or I don't know how to :/
[06:02:23] krisquigley: has joined #RubyOnRails
[06:02:43] Macaveli: has joined #RubyOnRails
[06:03:19] tbuehlmann: beside stubbing can? you could also stub current_user (or what the name of your choice is)
[06:03:22] tbuehlmann: many options
[06:04:49] toomus: tbuehlmann: allow(controller).to receive(:current_user).and_return(johnny) ??
[06:05:37] toomus: tbuehlmann: But test again fails because current_user is still nil :/
[06:06:42] tbuehlmann: is johnny nil?
[06:06:52] tbuehlmann: also, can you paste your controller and the spec file?
[06:07:30] toomus: tbuehlmann: OK, I'll make some pastie :)
[06:08:37] tbuehlmann: or gist? I like gists
[06:09:39] riotjones: has joined #RubyOnRails
[06:11:50] bruno-: has joined #RubyOnRails
[06:12:59] roolo: has joined #RubyOnRails
[06:14:49] kerunaru: has joined #RubyOnRails
[06:16:24] anthony: has joined #RubyOnRails
[06:17:05] toomus: tbuehlmann: http://pastie.org/10236719
[06:18:12] toomus: tbuehlmann: and full error http://pastie.org/private/wl3jcrme6z0w3ci5gkl5g
[06:19:49] arooni-mobile: has joined #RubyOnRails
[06:20:16] raunicolae: has left #RubyOnRails: ("Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is")
[06:21:31] Macaveli: has joined #RubyOnRails
[06:21:54] emilkarl: has joined #RubyOnRails
[06:23:43] tvw: has joined #RubyOnRails
[06:24:27] freezevee: has joined #RubyOnRails
[06:24:43] tbuehlmann: toomus, looks like current_user or something else is nil there? :)
[06:24:49] freezevee: hi all, does anyone have experience with middleman ?
[06:25:26] freezevee: My page works ok except from the blog entries (using middleman-blog) which do not appear on the page
[06:25:36] toomus: tbuehlmann: Yes, current_user is nil, and it should be nil, because I don't have any logged user :P
[06:26:26] paradisaeidae: has joined #RubyOnRails
[06:29:38] GPrime: I want to create a method so I can pass it as an argument for my geocoder gem in the model, does anyone know how I might do this?
[06:29:41] renews: has joined #RubyOnRails
[06:30:33] rakm: hey, I have my asset_host set to a Cloudfront URL in production. Is there a way to refer to precompiled assets in public/assets from a model file? I tried just /assets/foo.png, but since it has a digest attached to it, it 404s. `ActionController::Base.helpers.asset_path` seems to be the way to get rails to get the right path with the digest but since
[06:30:33] rakm: asset_host is set to the cloudfront url, this generates the wrong page
[06:30:36] rakm: wrong path*
[06:30:46] Mia: has joined #RubyOnRails
[06:31:11] DEA7TH_: has joined #RubyOnRails
[06:31:58] RegulationD: has joined #RubyOnRails
[06:32:03] mattp__: has joined #RubyOnRails
[06:33:58] sbaird: has joined #RubyOnRails
[06:34:06] toomus: tbuehlmann: so probably I need to stub current_user to return some user
[06:34:08] Lightsword: has joined #RubyOnRails
[06:36:53] solars: has joined #RubyOnRails
[06:37:20] rakm: lol, i hate to do this, but this is the only thing that i can come up with right now
[06:37:28] rakm: default_url: "/assets/#{File.basename(Dir["#{Rails.root}/public/assets/missing-city*"].first)}"
[06:37:29] sinkensabe: has joined #RubyOnRails
[06:37:32] ndrei: has joined #RubyOnRails
[06:37:54] rakm: ACTION says hello to the h8rs
[06:40:23] pragmatism: has joined #RubyOnRails
[06:40:58] tbuehlmann: toomus, right, do so
[06:42:00] toomus: tbuehlmann: thi should be done this way => allow(controller).to receive(:current_user).and_return(johnny), but doesn't work :/
[06:44:24] Zen-Zen: has joined #RubyOnRails
[06:45:15] simplyianm: has joined #RubyOnRails
[06:47:03] rubyonrailed: has joined #RubyOnRails
[06:50:13] DoctorMonocular: has joined #RubyOnRails
[06:51:20] allenn: has joined #RubyOnRails
[06:51:20] allenn: has joined #RubyOnRails
[06:54:04] tbuehlmann: what about allow_any_instance_of(ApplicationController).to receive(:current_user).and_return(johhny)?
[06:54:21] Macaveli: has joined #RubyOnRails
[06:54:33] trollface: has joined #RubyOnRails
[06:54:53] dopie: has joined #RubyOnRails
[06:55:03] arup_r: has joined #RubyOnRails
[06:55:32] bogdanchilianu: has joined #RubyOnRails
[06:56:00] toomus: tbuehlmann: Yeah, it works! THX!
[06:56:12] tbuehlmann: then controller is not the controller receiving the call
[06:56:48] baweaver: has joined #RubyOnRails
[06:56:54] dopie: hey all how do I trouble shoot a cap aborted!
[06:56:54] dopie: Net::SSH::AuthenticationFailed: error
[06:57:18] ChargedLight: has joined #RubyOnRails
[06:58:53] tbuehlmann: dopie, my first attempt would be: check ssh keys
[06:59:01] dopie: tbuehlmann, have them
[06:59:38] x-light: has joined #RubyOnRails
[07:00:20] tbuehlmann: added your ssh public key to the remote server user's ~/.ssh/authorized_keys file?
[07:00:59] dopie: i have known_hosts
[07:01:02] dopie: and config file
[07:01:35] tbuehlmann: add a file called "authorized_keys" and put your ssh public key in it
[07:01:57] rubyonrailed: has joined #RubyOnRails
[07:02:12] tbuehlmann: see http://capistranorb.com/documentation/getting-started/authentication-and-authorisation/#1.1-ssh-keys-from-workstation-to-servers
[07:03:12] workmad3: has joined #RubyOnRails
[07:03:49] commondream: has joined #RubyOnRails
[07:05:22] mrbubbles: has joined #RubyOnRails
[07:11:13] dopie: do i need to create a user named deployer on my machine ?
[07:11:29] dopie: if username is deployer?
[07:11:29] ddv: dopie: you can name the user whatever you want
[07:11:52] dopie: well basically i moved everything from my ubuntu machine to my mac osx
[07:11:54] tbuehlmann: it's advised to have a user (capistrano suggestion: "deploy") on the remote machine
[07:12:00] dopie: do i need to adducer for ?
[07:12:09] dopie: adduser deployer?
[07:12:17] tbuehlmann: you mean the user deploying?
[07:12:23] tbuehlmann: you already have one, your system user
[07:12:36] tbuehlmann: no need to create a specific user for that task
[07:12:47] tbuehlmann: you just need an ssh key pair for your user
[07:15:03] x44x45x41x4E: has joined #RubyOnRails
[07:15:46] Trefex: has joined #RubyOnRails
[07:15:52] ddv: dopie: you can use ssh-copy-id to copy the public key to your server: ssh-copy-id deploy@yourserver
[07:16:35] ddv: dopie: you can create a key pair with ssh-keygen -t rsa
[07:16:40] fedexo: has joined #RubyOnRails
[07:17:14] tbuehlmann: again, see http://capistranorb.com/documentation/getting-started/authentication-and-authorisation/#1.1-ssh-keys-from-workstation-to-servers
[07:17:17] tbuehlmann: it's really useful
[07:18:51] strixd: has joined #RubyOnRails
[07:19:49] strixd: has joined #RubyOnRails
[07:20:29] djbkd: has joined #RubyOnRails
[07:20:39] krz: has joined #RubyOnRails
[07:21:25] l0oky: has joined #RubyOnRails
[07:21:49] dariusweb: has joined #RubyOnRails
[07:23:51] renews: has joined #RubyOnRails
[07:25:43] pragmatism: has joined #RubyOnRails
[07:26:37] francoi__: has joined #RubyOnRails
[07:28:27] Rubennn: has joined #RubyOnRails
[07:28:31] Sylario: has joined #RubyOnRails
[07:28:45] K0nserv-_: has left #RubyOnRails: ()
[07:29:43] K0nserv-: has joined #RubyOnRails
[07:31:30] dhjondoh: has joined #RubyOnRails
[07:32:04] vedu: Hello. I have a html.erb (used inside rails_admin) with `javascript_include_tag`s . But I get 404 for JS files in /assets, while files in /public are fetched properly. code and error: https://gist.github.com/vedant1811/e425b713612921a6c2ba
[07:32:14] arup_r: Say I have some links like <a href="/questons/3">124dr</a>, <a href="/questons/4">124dr</a>, <a href="/questons/8">124dr</a> etc etc I want once someone click the url... question url becomes like as an example "http://ruby-doc.org/core-2.2.0/String.html#method-i-25" Please let me know if you didn't get me
[07:36:36] livathinos: has joined #RubyOnRails
[07:37:06] K0nserv-: Hey everyone, I have a question about interpolting regexes. I am wondering if there are any caveats with this approach http://pastie.org/10236805
[07:40:51] Macaveli: Implementing seo tracking from google
[07:41:04] arup_r: any idea ?
[07:41:06] Macaveli: still wondering if it's not an invasion of the privacy
[07:41:17] Macaveli: they track every-thing
[07:43:01] krz: has joined #RubyOnRails
[07:44:07] artto: has joined #RubyOnRails
[07:45:30] simplyianm: has joined #RubyOnRails
[07:46:45] yaymukund: has joined #RubyOnRails
[07:47:24] bin_005_c: has joined #RubyOnRails
[07:49:30] jcaho: has joined #RubyOnRails
[07:50:57] DoctorMonocular: has joined #RubyOnRails
[07:51:16] krisquigley: has joined #RubyOnRails
[07:52:23] x-light: has joined #RubyOnRails
[07:53:01] waseem_: arup_r: What exactly are you trying to achieve?
[07:55:02] arup_r: waseem_: I got it.. I just don't what to type in Google.. But finally I got it.. I was looking like exactly this http://stackoverflow.com/a/1145042/2767755
[07:55:23] arup_r: didn't know**
[07:55:49] neanderslob: has joined #RubyOnRails
[07:56:10] freezevee: has anyone experience with middleman ? how is the link_to for tags ? I tried almost everything <%= link_to 'tags', tags %> but nothing works
[07:59:25] bruno-: has joined #RubyOnRails
[07:59:35] s2013: has joined #RubyOnRails
[07:59:51] s2013: sup folks
[08:01:02] b0nn1e: has joined #RubyOnRails
[08:01:03] mikecmpbll: has joined #RubyOnRails
[08:02:26] jsrn_: has joined #RubyOnRails
[08:02:42] imanzarrabian: has joined #RubyOnRails
[08:04:17] krisquigley: has joined #RubyOnRails
[08:08:10] neanderslob: has joined #RubyOnRails
[08:10:57] creature: has joined #RubyOnRails
[08:11:04] darutoko: has joined #RubyOnRails
[08:18:00] baweaver: has joined #RubyOnRails
[08:18:01] renews: has joined #RubyOnRails
[08:18:25] jenrzzz: has joined #RubyOnRails
[08:20:26] marr: has joined #RubyOnRails
[08:20:35] op84: has joined #RubyOnRails
[08:20:50] RegulationD: has joined #RubyOnRails
[08:21:20] arup_r: I wrote a custom helper to generate the html option while working link_to ,, But it is producing the wrong anchor tags.. What wrong I did ? https://gist.github.com/aruprakshit/683a8d07f2c47db13609
[08:23:37] op84: hi there - i???m trying to create a routing with nested slashes??? i do have a page model which uses nested slugs and a team model which should be a member of the page so basically i???m trying to recreate the outcommented stuff??? http://pastie.org/private/lccuuyx5iyj3o8xyj2mow how can i nest something like i tried on line 3-5?
[08:23:39] Macaveli_: has joined #RubyOnRails
[08:24:35] Ergo: has joined #RubyOnRails
[08:26:03] edwinvdgraaf: has joined #RubyOnRails
[08:26:15] toomus: has left #RubyOnRails: ()
[08:26:54] lxsameer: has joined #RubyOnRails
[08:26:54] lxsameer: has joined #RubyOnRails
[08:27:17] ahmadsoe: has joined #RubyOnRails
[08:27:49] francoi__: has joined #RubyOnRails
[08:28:46] davidhq: has joined #RubyOnRails
[08:30:25] waseem_: arup_r: href is not a valid option passed to link_to.
[08:30:33] bmurt: has joined #RubyOnRails
[08:30:35] sleungcy: has joined #RubyOnRails
[08:31:24] arup_r: Ok.. I found it is attribute so I did like that : http://www.w3schools.com/tags/tag_a.asp
[08:31:25] Macaveli: has joined #RubyOnRails
[08:31:41] arup_r: and http://apidock.com/rails/ActionView/Helpers/UrlHelper/link_to is showing -- one syntax
[08:31:51] artto: has joined #RubyOnRails
[08:32:03] arup_r: link_to(options = {}, html_options = {}) { # name }
[08:32:18] arup_r: Then how should I write ?
[08:32:26] universa1: arup_r: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to -- search for anchor ...
[08:33:31] arup_r: universa1: Yes. one Signatures is link_to(options = {}, html_options = {}) { # name }
[08:33:33] artto_: has joined #RubyOnRails
[08:33:42] universa1: arup_r: ohh really?
[08:33:56] universa1: arup_r: did you look at what is written in the docs for anchors?
[08:33:56] arup_r: third link_to(options = {}, html_options = {}) { # name }
[08:34:05] waseem_: The documentation seems to be misleading in that case.
[08:34:10] universa1: waseem_: no.
[08:34:17] universa1: the anchor is not a html option.
[08:34:26] waseem_: Also options, in that case, should have controller and action as valid options.
[08:34:28] universa1: it is a path "option".
[08:34:30] arup_r: universa1: thrid signature
[08:34:37] waseem_: universa1: That's confusing.
[08:34:53] universa1: arup_r: link_to "whatever", my_fucking_path(anchor: "my_stupid_anchor")
[08:34:54] waseem_: universa1: Below it sayd valid options are just, :data, :method and :remote.
[08:34:57] intinig: has joined #RubyOnRails
[08:34:57] universa1: no need for a custom helper.
[08:35:20] arup_r: universa1: What the 3r signature stands for ?
[08:35:30] waseem_: It does have an example with :controller and :action as options but it's missing from the main docuemntation under Options heading.
[08:35:51] Papierkorb: has joined #RubyOnRails
[08:36:11] arup_r: According to the 3r sig ,, I though html_options should take { herf: "some_fucking_url" }
[08:36:17] universa1: arup_r: no.
[08:36:21] arup_r: But it is not working
[08:36:26] universa1: arup_r: it makes no sense.
[08:36:54] ndrei: has joined #RubyOnRails
[08:36:54] arup_r: Yes... That I can see from the output,, But why I don't know
[08:37:02] waseem_: arup_r: It should be something like this link_to(activity.trackable.notification_text, your_url_string_coming_from_helper, your_anchor_option)
[08:37:17] universa1: arup_r: link_to "whatever is between > and </a>", some_url_which_is_put_into_href, {class: "my html option example"}
[08:37:33] universa1: arup_r: you know where in an html link the path is stored?
[08:38:06] arup_r: I know I need to go with other signature.. But why 3rd one not working,.. could you please point me there ?
[08:38:13] universa1: arup_r: you know where in an html link the path is stored?
[08:38:17] Macaveli: has joined #RubyOnRails
[08:38:19] arup_r: universa1: Yes.. `href`
[08:38:42] universa1: arup_r: so link_to stores whatever it receives as the argument for path in that attribute.
[08:39:03] arup_r: universa1: My Hash has that option..
[08:39:08] universa1: arup_r: o0.
[08:39:21] arup_r: But the 3rd signature just didn't work as I expected
[08:39:26] universa1: arup_r: link_to always requires a path as an option.
[08:39:42] arup_r: https://gist.github.com/aruprakshit/683a8d07f2c47db13609#file-application_helper-rb-L8
[08:39:45] universa1: so third option is:
[08:39:52] s2013: has joined #RubyOnRails
[08:40:48] universa1: link_to "some_path_which_is_put_into_href", {other: "html", options: "cool"} do; now specifiy what comes between end of opening <a> tag and closing </a> tag.
[08:40:49] darrencauthon: has joined #RubyOnRails
[08:41:09] arup_r: yes.. that's the 4th signature
[08:41:30] universa1: arup_r: the fourth is: link_to {controller: "whatever", action: "blub"}, {html_options}
[08:41:38] arup_r: Now as 3rd one didn't work.. I need to write 2 helper methods as per my need
[08:42:03] arup_r: universa1: 4th is
[08:42:07] universa1: arup_r: link_to "whatever", question_path(question, anchor: "woopWhoop"
[08:42:19] arup_r: link_to(url, html_options = {}) { # name }
[08:42:22] dmz: has joined #RubyOnRails
[08:42:48] universa1: which translates to: link_to "some_path_which_is_put_into_href", {other: "html", options: "cool"} do; now specifiy what comes between end of opening <a> tag and closing </a> tag.
[08:42:56] SalexW: has joined #RubyOnRails
[08:43:02] arup_r: 3rd one just didn't work as advertised.. preparing for GitHub issye
[08:43:10] universa1: 3rd is bascially the same, just that you specify the path differently
[08:43:13] universa1: arup_r: it works as advertised.
[08:43:18] universa1: there is nothing wrong.
[08:43:27] nhhagen: has joined #RubyOnRails
[08:43:31] arup_r: No Man! It didn't 3rd one didn't
[08:43:39] srinidhi: has joined #RubyOnRails
[08:43:45] waseem_: arup_r: This should work https://gist.github.com/waseem/eda9b84e76eb141942d8
[08:43:46] universa1: arup_r: your wrong usage didn't work.
[08:44:10] universa1: arup_r: what should work?
[08:44:20] waseem_: I forgot to remove the block from link_to.
[08:44:50] arup_r: waseem_: yes.. I will fix it.. but that will work.. as I told I need to write 2 helpers.. but thanks..
[08:45:14] waseem_: There you go.
[08:45:46] universa1: such a complicated solution for a plain: whatever_path(anchor: "whatever_anchor") ... ...anyways i'm out.
[08:46:22] arup_r: universa1: If you read the 3rd syntax carefully.. `link_to(options = {}, html_options = {}) { # name }` ,,, where options are :data, :method and :remote.. from where are you getting other options.. This is a doco error..
[08:46:55] waseem_: universa1: He has optional urls and optional anchor tags with them.
[08:47:05] simplyianm: has joined #RubyOnRails
[08:47:24] freezevee: can anyone tell me how do I set the link_to for tags or calendar in middleman ?
[08:47:24] universa1: the options stuff is misleading, but the examples show the actual usage quite clearly imho.
[08:47:38] universa1: freezevee: dug into the code yet?
[08:47:55] waseem_: universa1: Yes, and, arup_r should've read the whole documentation with examples.
[08:47:56] universa1: freezevee: there you go ;-)
[08:48:12] Papierkorb: has joined #RubyOnRails
[08:48:12] universa1: waseem_: he didn't get pointed to it *cough* ;)
[08:48:23] waseem_: universa1: FML!
[08:48:29] freezevee: tried with <%= 'tags', tags or tag or blog.tag or blog.tags or 'tags' or '/tag.html.erb' etc
[08:48:39] freezevee: universa1: no sense
[08:48:49] freezevee: I know this can be very silly
[08:48:56] artto: has joined #RubyOnRails
[08:49:23] universa1: freezevee: what? i haven't used middleman ever, but my next step would be to dig into the code of it and find it out.
[08:49:55] freezevee: I have no idea
[08:50:17] universa1: how can you if you do not look at the code?
[08:50:17] freezevee: universa1: I am looking at https://github.com/middleman/middleman/tree/v3-stable/middleman-core but I can't find anything usefull
[08:50:32] mattp__: has joined #RubyOnRails
[08:51:11] freezevee: universa1: and it doesn't have something like "Rake routes" to find them right now
[08:51:41] artto: has joined #RubyOnRails
[08:51:43] DoctorMonocular: has joined #RubyOnRails
[08:51:59] AntiSpamMeta: has joined #RubyOnRails
[08:52:00] workmad3: has joined #RubyOnRails
[08:52:25] universa1: freezevee: https://middlemanapp.com/advanced/sitemap/
[08:53:08] teufelChiCoder: has joined #RubyOnRails
[08:53:19] nizmow_: has joined #RubyOnRails
[08:53:24] freezevee: I saw that, it says "Ignored" next to tag.html
[08:53:40] universa1: freezevee: https://middlemanapp.com/basics/blogging/ -- read the stuff about tags?
[08:53:47] universa1: freezevee: also: http://stackoverflow.com/questions/9870538/using-middleman-tags
[08:54:08] freezevee: yeah I read them all
[08:54:14] freezevee: but I don't want a list of tags
[08:54:26] freezevee: I want the link to the tag template
[08:54:27] ndrei: has joined #RubyOnRails
[08:54:41] AntiSpamMeta: has joined #RubyOnRails
[08:54:43] jcm: has joined #RubyOnRails
[08:56:10] rajj: has joined #RubyOnRails
[08:57:22] aep: has joined #RubyOnRails
[08:57:30] CalvinnHobbes: has joined #RubyOnRails
[08:57:54] rajj: HI all..... I have one file in public folder ...If user wants to open/see that file user has to enter name,email..... How to achieve this...... I am complete blank how and from where to start this
[08:57:58] universa1: freezevee: so i just installed middleman-blog
[08:58:19] Mia: has joined #RubyOnRails
[08:58:19] Mia: has joined #RubyOnRails
[08:58:24] nhhagen: has joined #RubyOnRails
[08:58:29] universa1: freezevee: and the generated layout has: https://gist.github.com/universal/db73ae11ce686351b269
[08:58:53] freezevee: but no direct link to the tag.html.erb
[08:59:04] universa1: freezevee: ?! that is a template.
[08:59:47] freezevee: universa1: so ? so does index.html
[08:59:51] one_zero: has joined #RubyOnRails
[09:00:05] universa1: freezevee: pages and templates are not the same thing.
[09:00:41] rajj: HI all..... I have one file in public folder ...If user wants to open/see that file user has to enter name,email..... How to achieve this...... I am complete blank how and from where to start this
[09:01:00] universa1: freezevee: index.html is a page, something you're supposedly directly looking at, a tempalte is like a small layout for a specific thing, like a partial in rails. (that is how i would udnerstand it from my 5minute usage)
[09:01:01] freezevee: universa1: what's the difference ?
[09:01:29] freezevee: universa1: no, the partials are like the rails ones, with an underscore in the beginning
[09:01:45] freezevee: the tag.html code displays all tags
[09:02:03] starfox_sf: has joined #RubyOnRails
[09:02:15] universa1: rajj: if it is in public, you would need to add access control directly to your webserver with http auth or whatever.
[09:02:37] laut: has joined #RubyOnRails
[09:02:52] universa1: freezevee: the generated one does not.
[09:03:43] universa1: freezevee: it requires a tag to be passed to it.
[09:03:59] freezevee: no it doesn't
[09:04:03] arup_r: waseem_: and universa1: `anchor` options I just saw there _-_
[09:04:08] freezevee: universa1: because the index works the same way
[09:04:18] universa1: freezevee: no. it works differently.
[09:04:26] pontiki: has joined #RubyOnRails
[09:04:42] Pazician: has joined #RubyOnRails
[09:04:47] freezevee: universa1: If the tag_path(tag) works ok for middleman there must be a way to view the tag.html for all tags
[09:05:18] freezevee: universa1: I am ok with creating another page and display there all data but I don't why tag.html.erb works for
[09:05:29] universa1: freezevee: the tag.html is for a specific tag. if you want a page with all tags you need to create one
[09:06:07] universa1: https://github.com/middleman/middleman-blog/blob/master/lib/middleman-blog/tag_pages.rb
[09:06:19] Detch: has joined #RubyOnRails
[09:06:43] universa1: https://github.com/middleman/middleman-blog/blob/master/lib/middleman-blog/tag_pages.rb#L40
[09:06:52] freezevee: universa1: so it picks up your tag and diplays all articles under this
[09:06:59] freezevee: this makes sense
[09:07:07] freezevee: and I can see that <% page_articles.each_with_index do |article, i| %> is inside the template
[09:07:17] stevednd: has joined #RubyOnRails
[09:07:20] freezevee: it iterates all articles for that tag
[09:07:21] intinig: has joined #RubyOnRails
[09:07:23] freezevee: you are right
[09:08:42] Axy: has joined #RubyOnRails
[09:08:42] Axy: has joined #RubyOnRails
[09:09:17] mrmist: has joined #RubyOnRails
[09:09:35] barnex: has joined #RubyOnRails
[09:12:08] renews: has joined #RubyOnRails
[09:14:46] rvanlieshout: has joined #RubyOnRails
[09:16:14] jas02: has joined #RubyOnRails
[09:17:51] intinig: has joined #RubyOnRails
[09:19:38] ksan: has joined #RubyOnRails
[09:23:35] l0oky: has joined #RubyOnRails
[09:23:46] universa1: rvanlieshout: !friday <3
[09:23:46] helpa: rvanlieshout: http://youtu.be/kfVsfOSbJY0
[09:24:10] ksan: has left #RubyOnRails: ()
[09:24:10] ksan: has joined #RubyOnRails
[09:25:53] rvanlieshout: have really never heard that song on the radio here
[09:26:05] Rubennn: has left #RubyOnRails: ()
[09:27:21] universa1: rvanlieshout: i think it is a youtube only thing ;)
[09:29:18] drale2k: has joined #RubyOnRails
[09:30:08] bruno-: has joined #RubyOnRails
[09:31:05] dEPy: has joined #RubyOnRails
[09:31:34] Pazician: has joined #RubyOnRails
[09:31:50] afrianska: has joined #RubyOnRails
[09:33:44] arup_r: has joined #RubyOnRails
[09:35:09] Hates_: has joined #RubyOnRails
[09:37:30] nhhagen: has joined #RubyOnRails
[09:41:52] Coldblackice: has joined #RubyOnRails
[09:42:25] arup_r: waseem_: I did it as https://gist.github.com/aruprakshit/683a8d07f2c47db13609 .. and working..
[09:42:40] bin_005_c: has joined #RubyOnRails
[09:43:33] Coldblackice_: has joined #RubyOnRails
[09:43:47] yfeldblum: has joined #RubyOnRails
[09:45:09] jenrzzz: has joined #RubyOnRails
[09:47:07] apofis: has joined #RubyOnRails
[09:47:25] kerunaru: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[09:48:01] hackeron_: has joined #RubyOnRails
[09:48:42] rajj: send_file through ajax request is not working.....so can we include javascript prompt in link_to tag ?
[09:49:31] ksan90: has joined #RubyOnRails
[09:50:16] workmad3: has joined #RubyOnRails
[09:50:30] andywww: has joined #RubyOnRails
[09:52:13] Coldblackice: has joined #RubyOnRails
[09:53:19] Coldblackice_: has joined #RubyOnRails
[09:53:19] srinidhi: has joined #RubyOnRails
[09:53:39] futilegames: has joined #RubyOnRails
[09:54:42] apofis: has joined #RubyOnRails
[09:55:01] nhhagen: has joined #RubyOnRails
[09:56:01] intinig: has joined #RubyOnRails
[09:56:34] darrencauthon: has joined #RubyOnRails
[09:56:53] apofis: has joined #RubyOnRails
[09:58:45] Veejay: has joined #RubyOnRails
[10:01:17] Veejay: Hello, I have a question about Strong Parameters: In the params, I have a key 'steps', which is an array of hashes, each hash has the same structure (6 keys, which are always the same). I can params.require(:steps), but then I don't know how to check that each hash inside that array has the proper structure, is that possible?
[10:01:35] arup_r: has joined #RubyOnRails
[10:02:24] Veejay: {steps: [{url: "...", description: "...", validated: true, name: "...", action: "...", level: 1}, {url: "..." ....}, ....]} something like that
[10:02:58] Moonlight-Angel: has joined #RubyOnRails
[10:04:35] Veejay: Right now, I just params.require(:steps) and then use that result to call a method that slices the hashes with the keys I accept
[10:04:54] pepelui: has joined #RubyOnRails
[10:04:56] camonz: has joined #RubyOnRails
[10:05:07] Veejay: And I'm looking for a way to do it all with the SP syntax
[10:06:23] renews: has joined #RubyOnRails
[10:08:55] nhhagen: has joined #RubyOnRails
[10:09:42] commondream: has joined #RubyOnRails
[10:09:45] RegulationD: has joined #RubyOnRails
[10:12:53] comrad: has joined #RubyOnRails
[10:13:17] pacman: has joined #RubyOnRails
[10:13:37] pacman: has left #RubyOnRails: ()
[10:13:45] intinig: has joined #RubyOnRails
[10:13:52] krokuz: has joined #RubyOnRails
[10:14:34] baweaver: has joined #RubyOnRails
[10:16:33] arup_r: Veejay: SP means ?
[10:17:43] kanzure: has joined #RubyOnRails
[10:18:15] Veejay: Strong Parameters sorry
[10:18:28] Veejay: arup_r: i.e. use of require and permit
[10:19:53] universa1: Veejay: there is the possibility to do something with blocks, can't really remember, there was something in the docs about that. i think you can't do it with plain permit and require
[10:20:12] arup_r: well strong paramters means SP.. cool
[10:20:53] universa1: Veejay: i don't think you can directly permit an array of hashes with specific keys.
[10:21:08] arup_r: Veejay: Are you looking for nested SP things.. how to do ?
[10:21:45] arup_r: Veejay: something like https://github.com/rails/strong_parameters#nested-parameters ?
[10:22:06] arup_r: see ^^ if it helps ..
[10:23:25] nhhagen: has joined #RubyOnRails
[10:23:30] Veejay: Thanks, I'll have a look
[10:24:10] francoi__: has joined #RubyOnRails
[10:25:20] universa1: Veejay: ohh i think it works with plain sp syntax ;)
[10:25:34] Veejay: Well, I think I overcomplicated things. I can just use: params.permit(steps: [:action, :url, :description, ..])
[10:25:44] rajj: Hi guys ..... I have a file in public folder ... if user want to see that folder user need to provide name and email ..... how to achieve this ?
[10:25:59] rajj: and the file here is pdf in public folder
[10:26:17] universa1: Veejay: https://gist.github.com/universal/4a9738ac0102c28a88ab
[10:26:34] arup_r: rajj: through the signin page
[10:26:46] universa1: rajj: already told you, you need to add access control to your web server, if you want rails to handle access control, you need to move file outside of the public folder.
[10:26:54] Veejay: universa1: Spot on
[10:27:12] Veejay: arup_r: Thanks as well
[10:27:14] universa1: Veejay: yw :-) was intrigued, little exercise before lunch :-)
[10:27:17] rajj: moving files is kinda problem :(
[10:27:25] arup_r: make a controller which need authentication ... and from there after authenticate route to the file..
[10:27:34] arup_r: Veejay: WELCOME Bro!
[10:27:43] universa1: arup_r: how does that prevent someone knowing the url to access the file?
[10:28:00] arup_r: lots of ways universa1:
[10:28:10] arup_r: can't list here
[10:28:21] universa1: arup_r: hint: if it is in the public folder, it does not prevent any access to the file.
[10:28:24] arup_r: broad topic for this channel
[10:28:33] Pazician: has joined #RubyOnRails
[10:28:34] Veejay: Having it in the public folder makes it public
[10:28:48] Veejay: Thus the name. If you need to restrict access, it needs to be somewhere else
[10:28:53] arup_r: Ohh,, it is in public.. I see.. sorry then
[10:29:04] camilasann: has joined #RubyOnRails
[10:29:14] arup_r: universa1: o0
[10:29:17] universa1: it is actually very simple: files in the public folder are usually handled by the webserver (apache / nginx) directly, and the rails app is never hit for requests to stuff in there.
[10:29:25] Veejay: Because putting a file in there is at best access restriction through obfuscation
[10:29:31] Veejay: Which is meh
[10:29:39] Aeyrix: It's garbage, not "meh".
[10:30:04] universa1: you can use http basic auth to limit access to files there, but this will need to be configured directly in the webserver (apache / nginx) ...
[10:30:09] universa1: and with that: off to lunch.
[10:30:13] Veejay: meh is an acronym for most elevated hubris
[10:30:21] Veejay: (no it's not :()
[10:30:24] arup_r: universa1: what's time there
[10:30:32] Aeyrix: Lunch time, obviously.
[10:32:10] intinig: has joined #RubyOnRails
[10:33:30] n008f4g_: has joined #RubyOnRails
[10:36:35] bruno-: has joined #RubyOnRails
[10:37:07] afrianska: has joined #RubyOnRails
[10:37:10] Pazician: has joined #RubyOnRails
[10:39:45] fontas: has joined #RubyOnRails
[10:40:33] artto: has joined #RubyOnRails
[10:40:41] mathie: has joined #RubyOnRails
[10:44:11] tianyi_: has joined #RubyOnRails
[10:45:26] emilkarl: has joined #RubyOnRails
[10:46:04] mostlybadfly: has joined #RubyOnRails
[10:47:18] bruno-: has joined #RubyOnRails
[10:49:36] mclee: has joined #RubyOnRails
[10:50:47] starfox_sf: has joined #RubyOnRails
[10:51:55] thelastinuit: has joined #RubyOnRails
[10:54:22] nonparfumee: has joined #RubyOnRails
[10:54:53] sandstrom: has joined #RubyOnRails
[10:55:43] baweaver: has joined #RubyOnRails
[10:57:16] creature: has joined #RubyOnRails
[10:59:05] robustus|Off: has joined #RubyOnRails
[11:00:30] rodfersou: has joined #RubyOnRails
[11:02:48] intinig: has joined #RubyOnRails
[11:03:04] bruno-: has joined #RubyOnRails
[11:04:09] djellemah_: has joined #RubyOnRails
[11:04:25] apofis: has joined #RubyOnRails
[11:04:27] intinig: has joined #RubyOnRails
[11:04:58] ndrei: has joined #RubyOnRails
[11:08:07] bruno-: has joined #RubyOnRails
[11:09:25] yoongkang: has joined #RubyOnRails
[11:10:40] camilasan: has joined #RubyOnRails
[11:13:06] bruno-: has joined #RubyOnRails
[11:14:35] daneo: has joined #RubyOnRails
[11:14:48] arup_r: has joined #RubyOnRails
[11:15:10] rodferso1: has joined #RubyOnRails
[11:18:48] bruno-: has joined #RubyOnRails
[11:21:30] dhjondoh: has joined #RubyOnRails
[11:21:56] doodlehaus: has joined #RubyOnRails
[11:24:18] strixd: has joined #RubyOnRails
[11:24:42] wethu: has joined #RubyOnRails
[11:26:32] rodfersou: has joined #RubyOnRails
[11:26:42] Scripore: has joined #RubyOnRails
[11:27:18] darrencauthon: has joined #RubyOnRails
[11:31:15] renews: has joined #RubyOnRails
[11:32:49] gerep: has joined #RubyOnRails
[11:33:16] fcp14: has joined #RubyOnRails
[11:33:46] BlissOfBeing: has joined #RubyOnRails
[11:34:00] gerep: I have a model Merchant that has_many AffiliationAddress and I have this partial https://gist.github.com/gerep/cdf6924703c01d257b93 Everytime I submit the form and there are validation errors, the addresses are duplicated
[11:34:32] francoi__: has joined #RubyOnRails
[11:34:49] k4nd4lf: has joined #RubyOnRails
[11:35:06] gerep: For instance, I fill in the form with two addresses and submit the form. There is any validation error. When the page renders again, it comes with 4 addresses
[11:35:15] universa1: gerep: first thing: f.fields_for :affiliation_addressesm @merchant.affiliation_addresses do |builder|; render partial: "...", locals: {f: builder}
[11:35:23] universa1: gerep: second thing: we need to see the controller
[11:35:37] aloneintheworld: has joined #RubyOnRails
[11:35:50] jenrzzz: has joined #RubyOnRails
[11:36:00] gerep: universa1, updated: https://gist.github.com/gerep/cdf6924703c01d257b93
[11:36:07] gerep: universa1, it is the Devise Registration controller
[11:38:27] universa1: gerep: can you also add the partial please
[11:38:40] sandstrom: has joined #RubyOnRails
[11:38:42] Pazician_: has joined #RubyOnRails
[11:39:23] gerep: universa1, of course! https://gist.github.com/gerep/cdf6924703c01d257b93
[11:39:55] universa1: gerep: ok that looks ok'ish
[11:40:14] fcp14: llo please i'm trying to add an image to a haml file with = imag_tag
[11:40:14] gerep: universa1, I'm trying your "first thing" :)
[11:40:14] fcp14: 'some_img.png' when i restart appears an error Errno::EACCES:
[11:40:15] fcp14: Permission denied @ rb_sysopen read imageh
[11:40:39] universa1: fcp14: please create a gist with the code and the full stack trace :-=
[11:41:10] universa1: gerep: hmm, that shouldn't change much. you would need to change your partial also
[11:41:23] gerep: universa1, what do I have to change?
[11:41:29] gerep: universa1, in the partial?
[11:42:39] universa1: gerep: https://gist.github.com/universal/7bc154cd0f9ccbda177b -- gist-coding here, so it probably doesn't work.
[11:42:43] fcp14: universa1 http://pastebin.com/D57zZL8Z
[11:43:06] gerep: universa1, thanks a lot for your help, I'll tell you if it works ;)
[11:43:39] fcp14: universa1 http://pastie.org/10237114
[11:43:41] yoongkang: has joined #RubyOnRails
[11:43:45] fcp14: can you check please
[11:44:15] universa1: gerep: :-) your code looks ok otherwise, i don't see anything obvious. i'd probably try a plain controller without devise, and see if the problem persists there. might be quicker to spot the error than
[11:44:31] universa1: fcp14: no stack trace.
[11:44:33] teufelChiCoder: has joined #RubyOnRails
[11:44:36] gerep: universa1, great idea, I'll try that
[11:44:51] universa1: fcp14: and also your haml indentation is off.
[11:45:09] fcp14: sorry to noob on ruby :S
[11:45:24] rvanlieshout: indentation is important
[11:45:28] chipotle: has joined #RubyOnRails
[11:45:42] universa1: fcp14: no worries. but since haml is indentation based, it is important as rvanlieshout said.
[11:45:56] BlissOfBeing: has joined #RubyOnRails
[11:45:57] renegadeandy: has joined #RubyOnRails
[11:45:58] fcp14: ok gona check
[11:46:07] universa1: and strictly speaking is haml not ruby ;)
[11:46:30] universa1: haml is not ruby, strictly speaking... ...my english today...
[11:46:39] gerep: fcp14, I had a problem yesterday sing Haml, one of my Javascript code wasn't working because of wrong indentation :(
[11:46:39] diegoviola: has joined #RubyOnRails
[11:47:01] gerep: I don't like haml :)
[11:47:14] gerep: I prefer the default erb
[11:47:31] rvanlieshout: it's been ages since i've used erb
[11:47:41] gerep: Use haml?
[11:47:45] universa1: i'm just so bad at closing tags :(
[11:48:15] fcp14: thanks gerep
[11:48:32] fcp14: i correct th indentation and opens :)
[11:48:39] renegadeandy: Hi everyone. I have an event model - which has a 'user_id' field. Each event belongs to a user, so I added "belongs_to :owner, :class_name=>'User'" however i get this error when trying to print the owner name from the association : https://gist.github.com/anonymous/7ada3fbc8d4bed322ff9 can anybody help me workout why?
[11:48:50] fcp14: but i need to add an image.png and dono why doesn't show
[11:49:23] gerep: fcp14, see? hahaha
[11:49:28] rvanlieshout: renegadeandy: you have an event without an owner
[11:49:48] universa1: renegadeandy: if you do belongs_to :owner, you should shave an owner_id column
[11:50:00] renegadeandy: universa1: , no i override that with class_name
[11:50:03] rvanlieshout: but it's not an sql error
[11:50:08] rvanlieshout: so it's just an even without an owner
[11:50:20] CyborgCygnus: has joined #RubyOnRails
[11:50:23] renegadeandy: rvanlieshout: you are right hahaha - those are generated events without users lol! thanks!
[11:50:33] universa1: renegadeandy: the class name doesn't overwrite the foreign key used iirc.
[11:50:34] rvanlieshout: renegadeandy: you could use .try for that
[11:50:40] rvanlieshout: @event.owner.try(:name)
[11:50:44] rvanlieshout: althoug it's a bit ugly to do so
[11:51:17] renegadeandy: universa1: really? so I have to do belongs_to :owner, :class_name=>'User', :foreign_key=>'user_id'
[11:51:23] renegadeandy: that seems wrong, it should infer it from the class name
[11:51:33] universa1: renegadeandy: why not just do belongs_to :user ?
[11:51:48] highcup: has joined #RubyOnRails
[11:51:49] startupality: has joined #RubyOnRails
[11:51:50] renegadeandy: universa1: cos i want to call it an owner
[11:51:53] universa1: renegadeandy: if you want belongs_to :owner, you should have an owner_id and not a user_id column ;)
[11:52:17] renegadeandy: belongs_to :owner, :class_name=>'User' that would work, as well as belongs_to :owner, :class_name=>'User', :foreign_key=>'user_id' as well as belongs_to :user
[11:52:36] ekain: has joined #RubyOnRails
[11:52:45] universa1: renegadeandy: the first one should not work, as soon as you actually assign an owner.
[11:53:16] universa1: renegadeandy: in your current setup
[11:53:22] renegadeandy: universa1: can you explain why, if i explicitely say the class name, it should infer the column by the class, not the association name
[11:53:24] universa1: quoting the docs: Specify the foreign key used for the association. By default this is guessed to be the name of the association with an ?_id? suffix. So a class that defines a belongs_to :person association will use ?person_id? as the default :foreign_key. Similarly, belongs_to :favorite_person, class_name: "Person" will use a foreign key of ?favorite_person_id?.
[11:53:41] renegadeandy: universa1: wow, ok, i expected more of rails!
[11:53:51] universa1: renegadeandy: well, that is the sane way imho.
[11:53:54] renegadeandy: universa1: i stand corrected - thanks for your help
[11:54:04] universa1: renegadeandy: pleasure :-)
[11:54:15] renegadeandy: universa1: I think equally as sane is saying i wanna call my association owner, but i want it to act as a User
[11:54:30] renegadeandy: an owner, is a type of user
[11:54:42] renegadeandy: but yeah, its all semantics and opinions! I will use :foreign_key :D
[11:54:44] universa1: renegadeandy: the db columns should at least somehow reflect what they are supposed to represent. so a user_id whcih is used as an owner is somewhat suprising
[11:54:54] universa1: if you just look at the table
[11:55:13] endorphine_: has joined #RubyOnRails
[11:55:18] universa1: renegadeandy: imagine you also have a caretaker, another user, which column would you use?
[11:55:29] universa1: renegadeandy: user_id is already used ;)
[11:55:51] renegadeandy: universa1: but i dont have them ;) its like a has_one, there is only ever going to be one...
[11:55:59] rvanlieshout: caretaker_user_id
[11:56:07] renegadeandy: thats a question, whats the difference between has_one, and belongs_to, cos they are both 1 - 1mappings
[11:56:17] universa1: renegadeandy: or a message whcih has a sender and receiver
[11:56:18] ndrei: has joined #RubyOnRails
[11:56:18] rvanlieshout: the location of the foreign key
[11:56:25] universa1: renegadeandy: they're different sides of the same relation.
[11:56:44] universa1: belongs_to is the one with the foreign key column, has_one is the referred one.
[11:56:45] meoblast001: has joined #RubyOnRails
[11:56:54] universa1: rvanlieshout: caretaker_id ;)
[11:57:08] renegadeandy: universa1: ok, but they don't always have a correct mapping...in my applicationa user can have many events, but an event can only ever have 1 owner.....so the has_one in this example doesn't make sense
[11:57:12] rvanlieshout: i would include the user-part in it just for reference
[11:57:18] renegadeandy: universa1: which is why i don't have it defined ;)
[11:57:31] universa1: renegadeandy: that's because you have a 1-to-n mapping
[11:57:36] rustymyers: has joined #RubyOnRails
[11:57:38] jcaho: has joined #RubyOnRails
[11:57:43] universa1: renegadeandy: belongs_to is used for 1-to-1 and 1-to-n mapping
[11:57:44] renegadeandy: universa1: exactly, this has been useful - thanks guys
[11:58:13] universa1: renegadeandy: it is used as the referring part for both has_one and has_many :-)
[11:58:35] RegulationD: has joined #RubyOnRails
[11:58:40] universa1: in that sense, has_one is a special case of has_many, in that there is always only one ;)
[11:58:43] francoi__: has joined #RubyOnRails
[11:59:32] gerep: universa1, I'm back. undefined local variable or method `affiliation_address' when sending it to the partial
[11:59:58] universa1: gerep: can you show what you did? ;)
[12:00:02] gerep: universa1, I checked and the "builder.object" returns AffiliationAddress as expected
[12:00:52] w0rd-driven: has joined #RubyOnRails
[12:00:52] universa1: gerep: probably just a typo in the local options hash? ;)
[12:01:03] francoi__: has joined #RubyOnRails
[12:01:05] Macaveli_: has joined #RubyOnRails
[12:01:33] gerep: universa1, https://gist.github.com/gerep/f042abb95b5edbad05bb
[12:01:39] gerep: universa1, I hope so :)
[12:02:02] gerep: universa1, No it is not a typo :(
[12:02:21] rvanlieshout: add the partial to that gist
[12:02:28] rvanlieshout: and stack trace for this error
[12:02:30] universa1: gerep: can you add the full error trace also
[12:04:21] gerep: universa1, https://gist.github.com/gerep/f042abb95b5edbad05bb
[12:04:40] gerep: universa1, it is enormous and it one line in the gist, sorry for that
[12:04:56] rvanlieshout: a trace normaly contains newlines
[12:04:57] universa1: gerep: that is not the stack trace ;)
[12:04:58] surrealanalysis: has joined #RubyOnRails
[12:05:14] universa1: that is some session / whatever variable ;)
[12:05:19] gerep: universa1, sorry, this application here is using bettererrors, I'm lost with it hahaha
[12:05:23] gerep: universa1, I'll find it and send you
[12:05:32] universa1: gerep: it should be in the development.log
[12:05:58] Sheperson: has joined #RubyOnRails
[12:06:10] gerep: universa1, found it
[12:06:22] gerep: universa1, https://gist.github.com/gerep/f042abb95b5edbad05bb
[12:06:40] rvanlieshout: gerep: what's on app/helpers/application_helper.rb:117
[12:06:57] universa1: gerep: https://gist.github.com/gerep/f042abb95b5edbad05bb#file-trace-L15
[12:07:00] universa1: also the partial ;)
[12:07:21] universa1: but rvanlieshout's looks like the better guess
[12:07:41] gerep: rvanlieshout, https://gist.github.com/gerep/f042abb95b5edbad05bb#file-application_helper-rb
[12:07:42] ndrei_: has joined #RubyOnRails
[12:07:58] gerep: rvanlieshout, this method is used to create some links for my javascript functions
[12:08:01] rvanlieshout: gerep: it's missing the local there
[12:08:06] rvanlieshout: it's rendering the same partial
[12:08:14] rvanlieshout: maybe you should just use f.object in your partial
[12:08:17] rvanlieshout: and not affiliation_address
[12:09:02] universa1: rvanlieshout: i initially thought about proposing that, but than i though, passing it explicitly is better ;)
[12:09:15] universa1: anyways, gtg :-) bbl
[12:09:17] gerep: https://gist.github.com/gerep/f042abb95b5edbad05bb#file-_company_addresse-html-haml
[12:09:26] gerep: this is where this helper method is called
[12:09:28] livathinos: has joined #RubyOnRails
[12:09:36] universa1: gerep: https://gist.github.com/gerep/f042abb95b5edbad05bb#file-application_helper-rb-L4
[12:09:47] gerep: I still don't get it
[12:09:55] universa1: gerep: you either need to pass affiliation_address here to, or to - affiliation_address = f.object at the top of your partial ;)
[12:09:56] rvanlieshout: gerep: you're rendering the partial from within that helper
[12:10:33] gerep: I thought it was called only when I clicked the button =link_to_add_affiliation_forms(...
[12:12:10] highcup: has joined #RubyOnRails
[12:12:20] ekain: has joined #RubyOnRails
[12:12:44] gerep: I can't force that method to use only affiliation_address, it will be used by another models like: affiliation_owner, affiliation_bank, etc
[12:12:55] rvanlieshout: there is no need to do that
[12:13:01] rvanlieshout: 14:08 < rvanlieshout> maybe you should just use f.object in your partial
[12:13:23] rvanlieshout: and leave out the local affiliation_address
[12:13:43] commondream: has joined #RubyOnRails
[12:14:29] gerep: sorry, I missed that!
[12:14:33] apofis: has joined #RubyOnRails
[12:14:38] gerep: So I don't need to pass the objects to my partial?
[12:14:41] rvanlieshout: no worries, was just to lazy to type it in again
[12:14:43] gerep: Just the f: builder?
[12:14:46] rvanlieshout: no, cause you already pass f
[12:14:52] rvanlieshout: and you can use f.object within that partial
[12:14:53] gerep: I'll test it now
[12:15:26] baweaver: has joined #RubyOnRails
[12:16:53] fontas: has left #RubyOnRails: ()
[12:16:57] gerep: universa1 and rvanlieshout that was it guys! You rock ;)
[12:17:08] gerep: universa1 and rvanlieshout thanks a lot for the patience and time!
[12:19:15] moeabdol: has joined #RubyOnRails
[12:19:47] Detch: has joined #RubyOnRails
[12:23:51] lxsameer: has joined #RubyOnRails
[12:23:51] lxsameer: has joined #RubyOnRails
[12:24:18] Macaveli: has joined #RubyOnRails
[12:24:50] goodcodeguy: has joined #RubyOnRails
[12:24:51] sdwrage: has joined #RubyOnRails
[12:26:00] renews: has joined #RubyOnRails
[12:26:01] baweaver: has joined #RubyOnRails
[12:26:37] tyrone: has joined #RubyOnRails
[12:27:15] djellemah__: has joined #RubyOnRails
[12:27:37] borodin: has joined #RubyOnRails
[12:27:38] arup_r: good #{time_of_day} to everyone.
[12:29:27] darrencauthon: has joined #RubyOnRails
[12:30:01] startupality: has joined #RubyOnRails
[12:30:58] Pazician: has joined #RubyOnRails
[12:31:34] benhuda: has joined #RubyOnRails
[12:32:49] sandstrom: has joined #RubyOnRails
[12:33:19] ndrei: has joined #RubyOnRails
[12:36:14] wethu: has joined #RubyOnRails
[12:37:32] Valien: has joined #RubyOnRails
[12:37:44] francoi__: has joined #RubyOnRails
[12:37:46] Pazician: has joined #RubyOnRails
[12:38:30] bruno-: has joined #RubyOnRails
[12:39:32] starfox_sf: has joined #RubyOnRails
[12:39:42] aufi: has joined #RubyOnRails
[12:43:28] Macaveli: has joined #RubyOnRails
[12:43:32] bruno-_: has joined #RubyOnRails
[12:43:39] tyrone: I am having a hard time using httmultiparty to upload a file like in this example: http://docs.e-signlive.com/doku.php?id=esl:api:e-signlive_packages#post_packages Here is my work so far just trying to find how it's done https://gist.github.com/tyronewilson/ae29d59aab79c67fb4ba
[12:45:44] yoongkang: has joined #RubyOnRails
[12:46:08] futilegames: has joined #RubyOnRails
[12:46:20] lxsameer: has joined #RubyOnRails
[12:47:42] endorphine_: has joined #RubyOnRails
[12:48:40] arup_r: has joined #RubyOnRails
[12:49:03] michael_mbp: has joined #RubyOnRails
[12:49:38] nonparfumee: has joined #RubyOnRails
[12:49:41] ldnunes: has joined #RubyOnRails
[12:49:53] coderhs: has joined #RubyOnRails
[12:50:09] livathinos: has joined #RubyOnRails
[12:51:32] gerep: has left #RubyOnRails: ("Leaving")
[12:51:39] gerep: has joined #RubyOnRails
[12:52:23] Macaveli: has joined #RubyOnRails
[12:52:40] francoi__: has joined #RubyOnRails
[12:54:36] JoshL: has joined #RubyOnRails
[12:59:27] asheinfeld: has joined #RubyOnRails
[13:00:15] s2013: has joined #RubyOnRails
[13:01:25] foucist: has joined #RubyOnRails
[13:01:40] francoi__: has joined #RubyOnRails
[13:01:40] bmurt: has joined #RubyOnRails
[13:03:45] jkamenik: has joined #RubyOnRails
[13:05:42] gaussblurinc1: has joined #RubyOnRails
[13:06:45] doodlehaus: has joined #RubyOnRails
[13:11:18] sonofdirt: has joined #RubyOnRails
[13:11:33] lessless: has joined #RubyOnRails
[13:12:09] renegadeandy: has joined #RubyOnRails
[13:12:41] renegadeandy: Hi - i have a line : Favourite.delete_all in my db_seeds.rb file. It all works locally. When I try seeding in heroku it fails at that line with : NameError: uninitialized constant Favourite - why would that be?!
[13:12:44] jasonthesensei: has joined #RubyOnRails
[13:13:01] jasonthesensei: has left #RubyOnRails: ()
[13:13:24] jasonthesensei: has joined #RubyOnRails
[13:14:14] Macaveli: has joined #RubyOnRails
[13:15:05] Oxynum: has joined #RubyOnRails
[13:15:06] Macaveli: has joined #RubyOnRails
[13:16:14] diegoviola: has joined #RubyOnRails
[13:18:21] renegadeandy: can anybody help - its really confusing me, why would it work locally, but not on heroku :/
[13:20:14] renews: has joined #RubyOnRails
[13:22:24] gerep: Does anyone here use recaptcha? https://github.com/ambethia/recaptcha/ I'm getting a weird behavior now, when I click the recapctha it reloads the page. It is also happening in production and it wasn't a few days ago
[13:22:59] adimircolen: has joined #RubyOnRails
[13:23:14] ddv: I hate captchas
[13:23:26] ddv: with a passion
[13:24:21] alho: has joined #RubyOnRails
[13:24:38] alho: has joined #RubyOnRails
[13:24:43] jenrzzz: has joined #RubyOnRails
[13:24:56] sahilc: has joined #RubyOnRails
[13:26:07] salc1: has joined #RubyOnRails
[13:27:13] salc1: Hi everyone! I'm working on the Rails Tutorial, but I'm stuck on one part. I used "rails s" to start a server, and I'm trying to open up the page in my browser
[13:27:26] salc1: so I go to localhost:3000 and my "hello world" page pops up fine.
[13:27:31] ruv: has joined #RubyOnRails
[13:27:46] salc1: When I try to get into localhost:3000/static_pages/home, i get an error.
[13:27:59] salc1: However this is what Michael Hartl does in his tutorial!
[13:28:04] tyrone: salc1, what is the error
[13:28:14] salc1: So I'm a little confused. Please let me know if I should provide any other information! :) Thanks
[13:28:54] ndrei: has joined #RubyOnRails
[13:29:03] salc1: https://www.filepicker.io/api/file/at5JjWfGQiORUSRJs3YZ
[13:29:10] salc1: ^That's the error
[13:29:30] RegulationD: has joined #RubyOnRails
[13:29:30] qejk: has joined #RubyOnRails
[13:29:47] salc1: I can show you the views or the routes or anything, just let me know :)
[13:30:07] arup_r: has joined #RubyOnRails
[13:30:26] teufelChiCoder: has joined #RubyOnRails
[13:30:32] soahccc: salc1: the view please
[13:30:36] justintv90: has joined #RubyOnRails
[13:30:49] soahccc: salc1: actually the layout
[13:31:06] salc1: Here is the layout:
[13:31:07] salc1: <!DOCTYPE html>
[13:31:08] salc1: <title>SampleApp</title>
[13:31:08] salc1: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
[13:31:08] salc1: <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
[13:31:08] salc1: <%= csrf_meta_tags %>
[13:31:10] salc1: <%= yield %>
[13:31:16] salc1: Shit. That didn't workout.
[13:31:21] garrypolley: has joined #RubyOnRails
[13:32:22] qwertme: has joined #RubyOnRails
[13:32:25] justintv90: has joined #RubyOnRails
[13:32:41] salc1: Sorry for all the spaces soachcc
[13:32:44] gaussblurinc1: has joined #RubyOnRails
[13:33:12] francoi__: has joined #RubyOnRails
[13:33:48] justintv90: has joined #RubyOnRails
[13:33:57] axl_: has joined #RubyOnRails
[13:34:43] justintv90: has joined #RubyOnRails
[13:34:43] uris: has joined #RubyOnRails
[13:34:44] erichu: has joined #RubyOnRails
[13:34:53] salc1: Here is the layout
[13:34:59] flori: has joined #RubyOnRails
[13:35:11] helpa: salc1: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[13:35:17] salc1: https://www.filepicker.io/api/file/fXgimUMEQVKrmysOJ3v9
[13:35:51] justintv90: has joined #RubyOnRails
[13:35:54] terabytest: has joined #RubyOnRails
[13:36:09] salc1: @helpa Thanks! Do you want the "layout"?
[13:36:44] justintv90: has joined #RubyOnRails
[13:36:54] griffindy: has joined #RubyOnRails
[13:37:18] Criten: Hey guys, trying to settup some cross origin stuff... I have it setting the headers in before_filter, but when a request comes it rails complains that it can't even find the route, which it finds perfectly if its the same origin
[13:37:29] salc1: I put the application.html (layout) into that gist thing.
[13:37:41] justintv90: has joined #RubyOnRails
[13:37:42] salc1: @helpa. Do you want the embed URL?
[13:38:14] maodun: has joined #RubyOnRails
[13:38:42] Moonlight-Angel: has joined #RubyOnRails
[13:38:58] justintv90: has joined #RubyOnRails
[13:40:13] justintv90: has joined #RubyOnRails
[13:40:46] Criten: https://gist.github.com/Criten/69fcf3ab0fca6b07ffb0
[13:41:08] justintv90: has joined #RubyOnRails
[13:41:41] paulcsmith: has joined #RubyOnRails
[13:42:08] justintv90: has joined #RubyOnRails
[13:42:41] jan1337z: has joined #RubyOnRails
[13:43:02] justintv90: has joined #RubyOnRails
[13:43:10] DoubleMalt: has joined #RubyOnRails
[13:43:53] justintv90: has joined #RubyOnRails
[13:44:39] justintv90: has joined #RubyOnRails
[13:44:40] ndrei: has joined #RubyOnRails
[13:45:30] justintv90: has joined #RubyOnRails
[13:45:52] drale2k: has joined #RubyOnRails
[13:46:19] justintv90: has joined #RubyOnRails
[13:47:09] justintv90: has joined #RubyOnRails
[13:47:20] jphenow: has joined #RubyOnRails
[13:48:37] simplyianm: has joined #RubyOnRails
[13:48:50] momomomomo: has joined #RubyOnRails
[13:50:19] Varun_krishna: has joined #RubyOnRails
[13:50:50] coderhs: has joined #RubyOnRails
[13:51:17] darrencauthon: has joined #RubyOnRails
[13:51:27] darrencauthon: has joined #RubyOnRails
[13:51:56] Varun_krishna: I guys in my models I'm using before_filter :authenticate_user! so when I try to click on new without loggin in it is taking me to the users/sign_in page, but after success ful login I should not be taken back to home page instead I want to go back to the page where I was earlier. I tried this https://github.com/plataformatec/devise/wiki/How-To%3A-Redirect-to-a-specific-page-on-successful-sign-in-and-sign-out
[13:52:03] Varun_krishna: but it is showing the errror
[13:52:56] Varun_krishna: undefined local variable or method `current_user_path' for #<Devise::SessionsController:0x4ef5dc0>
[13:53:08] startupality: has joined #RubyOnRails
[13:53:13] atrius: has joined #RubyOnRails
[13:53:36] ndrei: has joined #RubyOnRails
[13:54:15] hsps_: has joined #RubyOnRails
[13:54:49] francoi__: has joined #RubyOnRails
[13:56:45] Varun_krishna: has left #RubyOnRails: ()
[13:58:06] Macaveli_: has joined #RubyOnRails
[13:58:55] zlude: Hey guys, I know that is not really important but it cause nervous on me... about indentation, in my view file it's correct but when I open on browser the indentation is wrong, why? Look a example: http://pastie.org/private/umpwsb7cwp4ufronnkfjq
[13:59:10] commondream: has joined #RubyOnRails
[13:59:14] rikkipitt: has joined #RubyOnRails
[13:59:55] rikkipitt: hey guys does anyone use thoughtbot neat in their rails projects? I can't get rid of a margin when using full width...
[14:00:08] sahilc: has joined #RubyOnRails
[14:00:21] earthquake: has joined #RubyOnRails
[14:01:23] alho: has joined #RubyOnRails
[14:01:32] null__: you can define the margin size
[14:01:36] rubyonrailed: has joined #RubyOnRails
[14:01:37] null__: check the docs for the variable you need to set
[14:02:09] RegulationD: has joined #RubyOnRails
[14:04:29] josqu4red: has joined #RubyOnRails
[14:04:38] roolo_: has joined #RubyOnRails
[14:04:50] baweaver: has joined #RubyOnRails
[14:07:20] axl_: has joined #RubyOnRails
[14:12:35] livathinos: has joined #RubyOnRails
[14:12:47] axl_: has joined #RubyOnRails
[14:13:02] francoi__: has joined #RubyOnRails
[14:13:55] allcentury: has joined #RubyOnRails
[14:14:27] renews: has joined #RubyOnRails
[14:15:27] fryguy: zlude: depending on which templating system you are using, some of them have some options to try and do a better job of matching whitespace exactly, this causes them all to run slower though, so you probably shouldn't worry about it. HTML is a syntax tree, so parse it to get the output you want instead of string manipulation.
[14:15:59] soahccc: salc1: it seems like you have an error in your coffeescript
[14:16:24] zlude: fryguy, thank you.
[14:16:49] salc1: @soachh, you mean in the layout?
[14:16:57] salc1: (application.html)?
[14:18:18] soahccc: salc1: it says its in line 6 which is your javascript include tag
[14:18:43] Trefex: has joined #RubyOnRails
[14:19:17] bratsche: has joined #RubyOnRails
[14:20:26] arBmind: has joined #RubyOnRails
[14:20:57] highcup: has joined #RubyOnRails
[14:20:59] salc1: soahccc: when you say "it's in", how do you know? Are you using an IDE or something that detects errors?
[14:21:15] soahccc: In rails 3 there was a way to utilize self.table_name_prefix to access a different DB on the same server (over the same connection?). I try to migrate data (so dirty is just fine). Any idea how to do it quickly in rails 4 since the method got deprecated?
[14:21:21] salc1: By the way, I didn't write the code - it's auto generated when I created the controller
[14:21:33] soahccc: salc1: I just look at the error message :)
[14:22:00] podman: has joined #RubyOnRails
[14:22:48] soahccc: salc1: maybe you want to also give better_errors a try to get this: http://files.sven.bmonkeys.net/images/NoMethodError_at_backend_2015-06-12_16-22-32.png
[14:23:50] Oxynum: has joined #RubyOnRails
[14:24:30] strixd: has joined #RubyOnRails
[14:24:42] SahilC_: has joined #RubyOnRails
[14:25:23] zlude: salc1, I recommend you try to rewrite this example on http://c9.io. I've used this tutorial and I don't get any error. I see you are using windows, try to create the sample app on a Linux machine on c9.io. If you follow step by step of tutorial this should work, if you follow steps and not working, maybe can be a problem caused by something on windows.
[14:25:54] soahccc: and nvm me... If you fix typos it works :>
[14:26:16] baweaver: has joined #RubyOnRails
[14:26:21] salc1: I see. Thanks @soahccc and zlude. Anyways I don't think it's a big deal, I understsand what Hartl is getting at... I'll move on :)
[14:26:44] nertzy: has joined #RubyOnRails
[14:26:54] Spami: has joined #RubyOnRails
[14:27:54] bamorim: has joined #RubyOnRails
[14:28:17] starfox_sf: has joined #RubyOnRails
[14:28:36] salc1: has joined #RubyOnRails
[14:29:20] zlude: salc1, good luck! that's an awesome tutorial :)
[14:30:06] dANO-: has joined #RubyOnRails
[14:30:35] loc22: has joined #RubyOnRails
[14:31:25] drale2k: has joined #RubyOnRails
[14:32:06] sonofdirt: has joined #RubyOnRails
[14:32:25] rvanlieshout: ok. off we go
[14:32:33] rvanlieshout: enjoy the weekend folks
[14:32:50] bobbobbins: has joined #RubyOnRails
[14:32:55] dopie: has joined #RubyOnRails
[14:34:24] devdazed: has joined #RubyOnRails
[14:34:25] francoi__: has joined #RubyOnRails
[14:35:39] marcoceppi: has joined #RubyOnRails
[14:35:40] marcoceppi: has joined #RubyOnRails
[14:35:46] war_pigs: has joined #RubyOnRails
[14:36:23] alex88: has joined #RubyOnRails
[14:37:25] war_pigs: has joined #RubyOnRails
[14:39:20] smathy: has joined #RubyOnRails
[14:40:35] AzaToth: has joined #RubyOnRails
[14:41:27] jphenow: has joined #RubyOnRails
[14:41:46] foucist: has left #RubyOnRails: ()
[14:42:21] eoy_: has joined #RubyOnRails
[14:45:46] tvw: has joined #RubyOnRails
[14:47:53] qejk: has joined #RubyOnRails
[14:50:00] JakFrist: has joined #RubyOnRails
[14:50:39] qwertme: has joined #RubyOnRails
[14:53:09] josqu4red: hi there, quite noob here, I'm trying to figure out how to access a bi-dir self-referential association in a unified way, without duplicating form.fields_for, accept_nested_attrs & all ?
[14:53:12] cmisenas: has joined #RubyOnRails
[14:53:43] josqu4red: the purpose is representing a computer network
[14:54:52] josqu4red: I set up my app based on all friendship examples out ther
[14:56:39] adavia: has joined #RubyOnRails
[14:57:12] givanse: has joined #RubyOnRails
[14:58:49] emilkarl: has joined #RubyOnRails
[14:58:53] apofis: has joined #RubyOnRails
[14:59:41] egrm: has joined #RubyOnRails
[14:59:49] francoi__: has joined #RubyOnRails
[15:00:31] ChargedLight: Hello. I am having strange problem. I've wrote website scrapper using capybara-webkit. All logic was in my controller and it was working fine. But then i've decided to move all logic to separate class under app/services folder. ANd after i've done that i started to get an error. I've also added config.autoload_paths += %W(#{config.root}/app/services) to applecation.rb, but that didnt help. All info in the gist - https://gist.github.com/andrei-
[15:00:31] ChargedLight: sheina/f796bf3aff31360036b6 What am i doing wrong?
[15:00:42] teufelChiCoder: has joined #RubyOnRails
[15:00:46] ChargedLight: https://gist.github.com/andrei-sheina/f796bf3aff31360036b6
[15:01:15] kdys: has joined #RubyOnRails
[15:02:12] alho: has joined #RubyOnRails
[15:02:15] greengriminal: has joined #RubyOnRails
[15:02:15] soahccc: ChargedLight: I would say try a instance method instead of a class method... No idea though :D
[15:03:37] shinnya: has joined #RubyOnRails
[15:04:54] disgrntld: has joined #RubyOnRails
[15:05:31] greengriminal: Using activeadmin here and according to the docs on custom_pages (http://activeadmin.info/docs/10-custom-pages.html) it tells you how to add a page_action
[15:05:54] greengriminal: when you define a action_block with a link_to it states it adds a route
[15:05:55] ogpastaling: has joined #RubyOnRails
[15:05:58] coderkatze: has left #RubyOnRails: ()
[15:06:13] greengriminal: my issue is that i get an undefined method for url: https://gist.github.com/anonymous/165d2ad14dc4f61c3f77
[15:06:48] greengriminal: I mean i could specify this explictly in my routes.rb but doesn't this defeat the purpose
[15:06:53] theery: has joined #RubyOnRails
[15:07:04] Pazician: has joined #RubyOnRails
[15:08:41] renews: has joined #RubyOnRails
[15:10:13] theery_: has joined #RubyOnRails
[15:10:52] arooni-mobile: has joined #RubyOnRails
[15:11:56] The_Phoenix: has joined #RubyOnRails
[15:14:43] Pazician: has joined #RubyOnRails
[15:14:48] jenrzzz: has joined #RubyOnRails
[15:15:11] allcentury: question - is there any mechansim in rails that allows me to get the model name from within a controller? So if I'm in PostsController, by convetion that correlates to the Post model but is there a way to get that somehow?
[15:16:08] allcentury: something like model_name = self.model_associated_to_this_controller
[15:16:46] jan1337z: has joined #RubyOnRails
[15:17:19] pontiki: has joined #RubyOnRails
[15:17:54] startupality: has joined #RubyOnRails
[15:18:06] mary5030: has joined #RubyOnRails
[15:18:11] l0oky: has joined #RubyOnRails
[15:18:15] snockerton: has joined #RubyOnRails
[15:19:01] baweaver: has joined #RubyOnRails
[15:19:11] mary5030: has joined #RubyOnRails
[15:22:15] ndrei: has joined #RubyOnRails
[15:23:02] Fire-Dragon-DoL: allcentury: !google rails from controller to model name
[15:23:03] cornerma1: has joined #RubyOnRails
[15:23:32] acti0nman: has joined #RubyOnRails
[15:23:37] Cache_Money: has joined #RubyOnRails
[15:23:45] Fire-Dragon-DoL: allcentury: and yeah there is no "official" way, I mean there is no direct binding in any case
[15:23:51] MuffinPimp: has left #RubyOnRails: ()
[15:24:03] Fire-Dragon-DoL: convention over configuration: use the name, otherwise supply it with your own method
[15:24:04] aarkerio: has joined #RubyOnRails
[15:24:47] salc1: has joined #RubyOnRails
[15:26:50] riotjones: has joined #RubyOnRails
[15:29:38] Pazician: has joined #RubyOnRails
[15:30:55] umgrosscol: has joined #RubyOnRails
[15:31:35] adimircolen: has joined #RubyOnRails
[15:31:59] dstarh: has joined #RubyOnRails
[15:32:26] baweaver: has joined #RubyOnRails
[15:32:38] Peteykun: has joined #RubyOnRails
[15:33:54] sandstrom: has joined #RubyOnRails
[15:35:01] qwertme: has joined #RubyOnRails
[15:35:49] varunwachaspati: has joined #RubyOnRails
[15:36:07] The_Phoenix: has joined #RubyOnRails
[15:37:56] paulcsmith: has joined #RubyOnRails
[15:38:36] commondream: has joined #RubyOnRails
[15:39:40] commondream: has joined #RubyOnRails
[15:39:51] theery: has joined #RubyOnRails
[15:41:53] momomomomo: has joined #RubyOnRails
[15:42:51] yellow_face: has joined #RubyOnRails
[15:43:56] erichu: has joined #RubyOnRails
[15:44:08] adavia: hi.. i have this code which works fine when displaying errors, but what im missing in order to show this success flash message? http://pastie.org/10237478
[15:44:22] simplyianm: has joined #RubyOnRails
[15:45:10] startupality: has joined #RubyOnRails
[15:45:13] salc1: has joined #RubyOnRails
[15:46:21] daveg__: has joined #RubyOnRails
[15:51:21] chintanparikh: has joined #RubyOnRails
[15:53:50] JakFrist: has joined #RubyOnRails
[15:55:04] boverall: has joined #RubyOnRails
[15:56:43] simplyianm: has joined #RubyOnRails
[15:57:52] ebbflowgo: has joined #RubyOnRails
[15:59:09] Dingus: has joined #RubyOnRails
[16:02:34] smathy: adavia, your code works for me.
[16:02:53] renews: has joined #RubyOnRails
[16:03:13] towski_: has joined #RubyOnRails
[16:03:18] adavia: smathy: should i need to create a create.js.erb also?
[16:03:34] adavia: and request the message parcial?
[16:04:04] smathy: adavia, huh?
[16:04:37] __butch__: has joined #RubyOnRails
[16:04:50] smathy: adavia, did you perhaps fail to mention that the problem you're having is when making your request via JSON?
[16:05:13] adavia: smathy: why?
[16:05:47] smathy: adavia, well, your response to me saying it worked fine for me was to start asking about create.js.erb
[16:06:18] smathy: adavia, what would that have to do with the display of the success flash for the HTML page?
[16:06:39] Zadrel: has joined #RubyOnRails
[16:06:57] ebbflowgo: has joined #RubyOnRails
[16:07:13] jcaho: has joined #RubyOnRails
[16:07:33] adavia: smathy: im confused with what format.html does
[16:08:03] Zadrel: good afternoon! :D
[16:08:50] Zen-Zen: has joined #RubyOnRails
[16:08:54] startupality: has joined #RubyOnRails
[16:09:21] adavia: smathy: but for some reason im only getting the json response. Im not seeing the flash message
[16:09:27] smathy: adavia, it's the block that's executed when the format requested is HTML
[16:10:05] smathy: adavia, then you must be requesting the js/json format.
[16:11:30] purezen: has joined #RubyOnRails
[16:11:51] purezen: Hi guys, I am trying to make my first gem
[16:12:23] purezen: I have added some dependencies using 'add_dependency' to my-gem.gemspec
[16:13:14] Maletor: has joined #RubyOnRails
[16:13:27] purezen: But when I try to use the gem anywhere.. Rails app etc.. It doesn't find any of those dependencies included.
[16:13:37] purezen: How Do I include them?
[16:14:33] givanse: has joined #RubyOnRails
[16:14:59] smathy: purezen, when you say "when I try to use the gem", how are you using it?
[16:15:04] adavia: shouldnt be easy to include a success message in the same json response
[16:15:11] purezen: smathy: Hi
[16:15:27] purezen: I am using it by including the gem in the Gemfile of a Rails app
[16:15:32] purezen: Using the path argument
[16:16:07] smathy: adavia, right, but the code you showed, ie. `application.html.erb` and `shared/_alert_messages.html.erb` were of HTML views, nothing to do with JSON responses.
[16:16:31] purezen: 'bundle install' also works fine.. But the place where a call is made within the gem.. It reports Uninitialized constant, for one of its dependencies which I have mentioned in the gemspec using add_dependency
[16:17:05] starfox_sf: has joined #RubyOnRails
[16:17:10] xcesariox: has joined #RubyOnRails
[16:17:10] daveg_: has joined #RubyOnRails
[16:17:19] adavia: smathy: then im really missing something =/
[16:17:27] smathy: purezen, are the dependencies listed in your Gemfile.lock ?
[16:17:44] ascarter: has joined #RubyOnRails
[16:17:58] purezen: smathy: Hmm.. yes
[16:17:59] smathy: adavia, are you working through some sort of tutorial or something?
[16:18:05] philcrissman: has joined #RubyOnRails
[16:18:09] simplyianm: has joined #RubyOnRails
[16:18:20] startupality: has joined #RubyOnRails
[16:18:46] adavia: just following general examples about submiting forms using ajax
[16:19:01] smathy: purezen, "It reports" - what's "it"? You're running the app in `rails server` or `rails console` or a test, what?
[16:19:07] rhizome: purezen: have you run bundle update or removed and reinstalled since you added the dependency?
[16:19:11] xcesariox: is there any one there can help me with my error? " Errno::EACCES: Permission denied @ dir_s_mkdir - /Users/shaunstanislaus/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0-static/binding_of_caller-0.7.2" after bundling install.
[16:19:49] purezen: smathy: rails server
[16:19:49] xcesariox: smathy: can you help me out with my error?
[16:19:52] ascarter: has joined #RubyOnRails
[16:19:52] drale2k: has joined #RubyOnRails
[16:19:59] smathy: adavia, unless you already have a lot of experience with other frameworks, and really - even then - you really can't just pick Rails up like that. You should go through a thorough tutorial like Agile Web Development with Rails.
[16:20:02] purezen: rhizome: I added the gem after it was made
[16:20:27] smathy: purezen, run: spring stop
[16:20:28] xcesariox: smathy: i keep getting error gem by gem asking me to Make sure that `gem install binding_of_caller -v '0.7.2'` succeeds before bundling.
[16:20:56] xcesariox: smathy: is there any one there can help me with my error? " Errno::EACCES: Permission denied @ dir_s_mkdir - /Users/shaunstanislaus/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-14/2.2.0-static/binding_of_caller-0.7.2" after bundling install.
[16:21:01] smathy: purezen, well, stop your rails server, then run spring stop, then restart it. Make sure you're restarting with `bin/rails server` or `bundle exec rails server`
[16:21:38] sandstrom: has joined #RubyOnRails
[16:21:39] ascarter: has joined #RubyOnRails
[16:22:29] DoctorMonocular: has joined #RubyOnRails
[16:23:52] apofis: has joined #RubyOnRails
[16:27:06] purezen: smathy: rhizome still the same :(
[16:28:24] allcentury: has joined #RubyOnRails
[16:28:49] smathy: purezen, maybe this isn't what you think it is. What's the actual constant that's undefined and the gem you think defines it?
[16:29:42] purezen: smathy: It's asking for Rest-client..
[16:29:54] pipework: Maybe it's asking for a rest, client.
[16:30:06] towski_: has joined #RubyOnRails
[16:30:23] borodin_: has joined #RubyOnRails
[16:30:29] smathy: purezen, well, the hyphen is an operator in Ruby, so that's obviously never going to work as a constant name.
[16:31:15] Scripore: has joined #RubyOnRails
[16:31:16] gaussblurinc1: has joined #RubyOnRails
[16:31:30] purezen: smathy: I mean its saying 'uninitialized constant RestClient' and I have included add_runtime_dependency 'rest-client' to gemspec
[16:31:55] blackmesa: has joined #RubyOnRails
[16:31:58] borodin_: I have a rails 4 app which fails to show views for any resources, but the root_path page works finer (html, assets and all) - when you go to any resouce's index page it displays a blurb of javascript in the browser
[16:32:35] borodin_: it displays (function() { }).call(this);
[16:32:50] nobitanobi: has joined #RubyOnRails
[16:33:06] borodin_: I have run strace on the server and curl on localhost on the server port - curl also returns the javascript blurb
[16:33:12] borodin_: has anyone seen this?
[16:33:51] tskogberg: has joined #RubyOnRails
[16:34:03] endorphine_: has joined #RubyOnRails
[16:34:05] rhizome: borodin_: did it ever work before?
[16:34:50] GnuYawk: has joined #RubyOnRails
[16:34:55] borodin__: has joined #RubyOnRails
[16:35:03] borodin__: it works fine in dev
[16:35:25] borodin__: the only differenc ebetween dev and cert (where it is failing) is that in cert it's sitting behind a proxy wiich proxy's ssl
[16:35:45] borodin__: but a curl on the server also returns the javascript only
[16:36:04] smathy: purezen, !gist your Gemfile.lock and the your-gem.gemspec
[16:36:04] helpa: purezen: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[16:36:58] borodin__: i.ei curl http://localhost:3000/escrow-admin/escrow_sessions/ returns (function() { }).call(this);
[16:37:22] borodin__: but curl http://localhost:3000/escrow-admin/ returns a perfect page
[16:37:33] Britton: has joined #RubyOnRails
[16:38:17] rhizome: check the log. kinda hard to troubleshoot something like this on irc
[16:38:47] purezen: smathy: http://pastebin.com/3L6jYRs7
[16:39:25] [H]unt3r: has joined #RubyOnRails
[16:39:33] purezen: smathy: Ah, pardon me smathy. Shall I make another one in gist?
[16:40:25] borodin__: the log shows Started GET "/escrow-admin/escrow_sessions" for 127.0.0.1 at 2015-06-12 11:39:58 -0500 twice
[16:40:30] borodin__: two lines one over the other
[16:41:57] joaomdmoura: has joined #RubyOnRails
[16:43:32] purezen: smathy_afk: https://gist.github.com/purezen/64084e754a35fb1f5a87
[16:43:33] baweaver: has joined #RubyOnRails
[16:44:10] jan1337z: has joined #RubyOnRails
[16:44:35] cmisenas: has joined #RubyOnRails
[16:44:59] yoongkang: has joined #RubyOnRails
[16:45:30] gusrub: has joined #RubyOnRails
[16:45:44] starfox_sf: has joined #RubyOnRails
[16:45:55] KamalKaur: has joined #RubyOnRails
[16:46:19] rdavila: has joined #RubyOnRails
[16:47:15] balr0g: has joined #RubyOnRails
[16:47:19] borodin__: this is truly a Murphy's law project - due yesterday, everything that could go wrong has gone wrong
[16:47:28] borodin__: totally amazing
[16:51:10] artto: has joined #RubyOnRails
[16:51:11] towski_: has joined #RubyOnRails
[16:51:38] Lightsword: has joined #RubyOnRails
[16:51:44] erichu: has joined #RubyOnRails
[16:51:57] SteenJobs: has joined #RubyOnRails
[16:53:35] simplyianm: has joined #RubyOnRails
[16:55:50] k4nd4lf: has joined #RubyOnRails
[16:56:44] blackmes1: has joined #RubyOnRails
[16:57:03] renews: has joined #RubyOnRails
[16:57:16] sandelius: has joined #RubyOnRails
[16:57:18] KamalKaur: Hi, I've been working to improve on improving an RoR project. I am stuck at a little styling issue. My View is here: http://paste.ubuntu.com/11702992/ I'm just not getting why only some of the fields are on the left? See the screen shot: http://awesomescreenshot.com/0344za69b4
[16:57:43] hectortrope: has joined #RubyOnRails
[16:57:46] KamalKaur: Here I want to tell that it' my first experience with ROR, facing too much problem with such styling issues
[16:57:51] KamalKaur: Any help will be greatly appreciated
[16:58:05] blackmes2: has joined #RubyOnRails
[16:58:50] rhizome: KamalKaur: that's a css issue, not rails
[16:59:54] SteenJobs: has joined #RubyOnRails
[17:00:13] smathy: borodin__, !gist the rest of the log of the full request/response, ie from "Started ..." to "Completed ..."
[17:00:13] helpa: borodin__: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[17:00:29] baweaver: has joined #RubyOnRails
[17:00:50] smathy: KamalKaur, that's rhizome's way of saying "We have no idea how to do CSS and we're proud of it." :)
[17:01:03] baweaver: has joined #RubyOnRails
[17:01:06] SteenJobs: has joined #RubyOnRails
[17:01:08] krisquigley: has joined #RubyOnRails
[17:01:29] rhizome: why i oughtta
[17:01:31] KamalKaur: rhizome: But its a CSS issue in Rails
[17:01:40] arup_r: has joined #RubyOnRails
[17:01:47] KamalKaur: and I just asked about an idea if anyone had as I wasn't getting
[17:01:48] SteenJobs: just joined the chat - saw a CSS issue ???> running the other way
[17:02:16] ght: Question: Is it possible to utilize rails constants for string interpolation in coffeescript code?
[17:02:17] RegulationD: has joined #RubyOnRails
[17:02:21] ght: In Rails 4.2.
[17:02:39] SteenJobs: ght: i think there???s a gem for that, but i don???t remember what it???s called off the top of my head
[17:03:03] Eminence_: has joined #RubyOnRails
[17:03:06] qwertme: has joined #RubyOnRails
[17:03:21] boverall: has joined #RubyOnRails
[17:03:24] rhizome: some insane people use foo.coffee.erb
[17:03:27] SteenJobs: ght: check out ???gon???
[17:03:46] borodin__: smathy: https://gist.github.com/anonymous/33493222d6bf29680fd5
[17:05:55] SeanLazer: has joined #RubyOnRails
[17:06:42] smathy: borodin__, do you have some SSL check in your controllers?
[17:07:43] smathy: KamalKaur, he wasn't saying you had done a bad thing, he was just explaining why you're unlikely to get any responses from anyone. You're free to ask, but we're not the right people to ask.
[17:08:13] KamalKaur: smathy: Ok, thanks :)
[17:08:39] ght: SteenJobs: thank you
[17:08:42] borodin__: no I don't but ssl was an issue earlier - the proxy in front of this web server uses ssl
[17:08:55] SteenJobs: ght: no prob, enjoy.
[17:08:58] krisquigley: has joined #RubyOnRails
[17:09:00] erich: has joined #RubyOnRails
[17:09:19] smathy: borodin__, yeah, I read that earlier. Just that from Rails's perspective, if the proxy is terminating the SSL then Rails will be unaware of the SSL.
[17:09:23] borodin__: and I was using devise, and since devise forced a redirect to an absolute url, I had to use config.force_ssl
[17:09:40] borodin__: but I removed devise and thus removed force_ssl
[17:09:45] smathy: borodin__, so, if - for example - you're using the ssl_requirement gem (or whatever it's called), then that might explain it.
[17:10:02] smathy: borodin__, ok.
[17:10:09] borodin__: I'll look again but I don't thing anything is ssly anymore
[17:10:14] djbkd: has joined #RubyOnRails
[17:10:38] smathy: borodin__, that'd be my best guess. Maybe you have something fancy in your routes?
[17:11:18] borodin__: I'll add routes
[17:11:21] borodin__: to the gist
[17:11:39] smathy: And your application controller and one example controller for a resource that's having the problem.
[17:12:11] smathy: Make sure you add them with the "Add File" button: https://goo.gl/zcPI43
[17:12:17] SeanLazer_: has joined #RubyOnRails
[17:12:26] smathy: ACTION loves those arrows
[17:13:23] mikecmpbll: has joined #RubyOnRails
[17:14:59] smathy: borodin__, also, why aren't your assets precompiled?
[17:15:07] smathy: This is a non-dev environment right?
[17:15:10] borodin__: this is development
[17:15:20] SteenJobs: does anyone have experience with devise + facebook omniauth, but using facebook???s JS SDK?
[17:15:44] bricker: has joined #RubyOnRails
[17:16:00] borodin__: smathy: ok all updated: https://gist.github.com/chewmanfoo/c629cb9b7ce81efb4d15
[17:17:40] smathy: borodin__, you forgot your application controller.
[17:17:50] horsecowdog: has joined #RubyOnRails
[17:18:11] alho: has joined #RubyOnRails
[17:18:15] smathy: borodin__, and while you're at it, add your app/views/escrow_sessions/index.* view
[17:19:33] adimircolen: has joined #RubyOnRails
[17:20:28] borodin__: smathy - ok I added and updated https://gist.github.com/chewmanfoo/c629cb9b7ce81efb4d15
[17:20:47] momomomomo: has joined #RubyOnRails
[17:20:58] x1337807x: has joined #RubyOnRails
[17:21:27] smathy: borodin__, thanks, you must have missed me asking for the view too.
[17:21:53] x1337807x: has joined #RubyOnRails
[17:21:55] Lightsword_: has joined #RubyOnRails
[17:22:08] borodin__: smathy: which view do you want to see?
[17:22:36] Spami: has joined #RubyOnRails
[17:22:51] x1337807x: has joined #RubyOnRails
[17:23:47] Lightsword__: has joined #RubyOnRails
[17:25:03] weaksauce: has joined #RubyOnRails
[17:26:02] smathy: borodin__, your app/views/escrow_sessions/index.* view
[17:26:57] pixelhandler: has joined #RubyOnRails
[17:27:33] borodin__: smathy: it's in there - second from the bottom
[17:27:59] smathy: borodin__, no, the view file itself.
[17:28:07] smathy: Not what the browser sees.
[17:28:37] x1337807x: has joined #RubyOnRails
[17:28:38] endorphine_: has joined #RubyOnRails
[17:29:10] borodin__: you mean app/views/escrow_sessions/index.html.erb? it's on there - 2nd from the bottom: https://gist.github.com/chewmanfoo/c629cb9b7ce81efb4d15
[17:29:13] xcesariox: has joined #RubyOnRails
[17:30:24] Pazician: has joined #RubyOnRails
[17:32:02] SeanLazer_: has joined #RubyOnRails
[17:33:01] alho_: has joined #RubyOnRails
[17:33:38] Scripore: has joined #RubyOnRails
[17:34:46] SteenJobs: has joined #RubyOnRails
[17:35:39] SteenJobs: has joined #RubyOnRails
[17:35:46] tvw: has joined #RubyOnRails
[17:36:05] SteenJobs: re using the JS SDK for facebook omniauth, what would be the difference between doing it client side vs server side?
[17:36:35] bronson: has joined #RubyOnRails
[17:37:04] RegulationD: has joined #RubyOnRails
[17:37:20] momomomomo: has joined #RubyOnRails
[17:38:11] intuxicated: has joined #RubyOnRails
[17:38:37] Fire-Dragon-DoL: SteenJobs: if you do it client side, server won't be able to access it, so if you want to do something with server data that you don't want to expose to the user, you won't be able to
[17:39:15] chintanparikh: has joined #RubyOnRails
[17:39:15] SteenJobs: Fire-Dragon-DoL: ah yea so i want some server side action like having access to the user???s profile picture
[17:39:34] SteenJobs: Fire-Dragon-DoL: but what if i do both? what functionality would adding the JS stuff contribute?
[17:40:01] SteenJobs: Fire-Dragon-DoL: like would it prevent the user from having to leave my app in order to login, or will the user experience be the same either way
[17:40:19] Fire-Dragon-DoL: SteenJobs: nothing, if you need anything on the server side, do it only serverside. JS can just perform an async request to your server and your server will do it for you
[17:40:50] SteenJobs: Fire-Dragon-DoL: do what for me?
[17:40:57] Fire-Dragon-DoL: SteenJobs: nope, if oauth flow will be the same in any case for login (either client side or server side)
[17:41:06] Fire-Dragon-DoL: ehm, without if*
[17:41:11] borodin__: smathy you don't see anything do you?
[17:41:26] borodin__: I guess it might be a clumsy remove of devise
[17:41:39] SteenJobs: Fire-Dragon-DoL: amazing. thank you so much. spent a while trying to implement client-side, and you???ve just saved me from wasting even more time!
[17:41:54] chintanparikh: If I'm using Redis as a cache and I have a 100MB Redis database filled with 90MB of data, will performance be significantly worse than with 10 MB of data?
[17:42:19] symbol: has joined #RubyOnRails
[17:42:30] Fire-Dragon-DoL: SteenJobs: if you use the facebook api client side, server side can't access it, disadvantage. If however you implement it server side, server can access it and client can "access" it by your code (basically using the server like a proxy)
[17:42:44] Fire-Dragon-DoL: so with server side you have both, with client you have one
[17:43:00] SteenJobs: Fire-Dragon-DoL: so why would anyone ever want to use just the client-side SDK?
[17:44:12] l0oky: has joined #RubyOnRails
[17:45:24] marr: has joined #RubyOnRails
[17:45:50] SteenJobs: Fire-Dragon-DoL: although the railscast for FB omniauth mentions ???Facebook provides a JavaScript SDK that we can use to authenticate a user on the client-side so that it doesn???t look to them like they???ve left our application then returned.???
[17:47:03] tvw: has joined #RubyOnRails
[17:48:30] Fire-Dragon-DoL: SteenJobs: sorry was on the phone: if you want an application without a server (cheap hosting even in case of big userbase), for example a static blog with support for comments, you want it client side
[17:48:55] SteenJobs: Fire-Dragon-DoL: how dare you take care of personal matters before helping me, so inconsiderate. jeeeez.
[17:49:18] moeabdol: has joined #RubyOnRails
[17:49:35] Fire-Dragon-DoL: SteenJobs: mhhh I don't know if the javascript api has a special feature, but omniauth usually requires you to "visit" facebook at least once to get the token
[17:49:56] Fire-Dragon-DoL: maybe he means because you can show some sort of popup/something integrated directly in the page?
[17:50:25] SteenJobs: Fire-Dragon-DoL: that???s what i was thinking, which is why i wanted to implement both client and server side, so the user wouldn???t have to be directed to an external page.
[17:50:40] SteenJobs: Fire-Dragon-DoL: but there are no good tutorials for implementing client-side FB omniauth with devise
[17:51:11] renews: has joined #RubyOnRails
[17:52:47] dopie: how would i call the utils.js in
[17:52:47] dopie: https://gist.github.com/staycreativedesign/585b1a351d87511d766e
[17:52:50] vickleton: has joined #RubyOnRails
[17:52:53] dopie: its in my vendor assets
[17:52:54] qwertme: has joined #RubyOnRails
[17:53:01] dopie: in rails 3.2
[17:53:07] Rubie: has joined #RubyOnRails
[17:54:12] ebbflowgo: has joined #RubyOnRails
[17:54:35] JamesDH: has joined #RubyOnRails
[17:55:15] emachnic: has joined #RubyOnRails
[17:55:30] SteenJobs: Fire-Dragon-DoL: i guess i???ll implement it server side, and once it???s working i???ll try to get the client side implementation working and check if it makes a difference.
[17:55:50] commondream: has joined #RubyOnRails
[17:56:03] smathy: borodin__, second from the bottom is: https://www.evernote.com/l/ABCzu3eKykJLYpxPJ3F76gjTUFNcA7VadXY
[17:56:27] smathy: borodin__, you're telling me that the text inside that "the issue" box is what's in app/views/escrow_sessions/index.html.erb ?
[17:56:49] smathy: borodin__, seems pretty obvious why your browser shows (function() { }).call(this); then.
[17:58:50] alho: has joined #RubyOnRails
[17:59:27] smathy: chintanparikh, no, that doesn't pose a problem for redis. You can always use the redis-benchmark tool to get some metrics: http://redis.io/topics/benchmarks
[17:59:43] chintanparikh: smathy: Awesome, thanks
[18:00:00] erich: has joined #RubyOnRails
[18:00:18] Pazician: has joined #RubyOnRails
[18:00:34] x1337807x: has joined #RubyOnRails
[18:00:51] sandelius: has joined #RubyOnRails
[18:01:26] x1337807x: has joined #RubyOnRails
[18:01:35] smathy: dopie, you want `asset_path "libphonenumber/utils.js"` - with the subdirectory in there.
[18:01:55] JakFrist: has joined #RubyOnRails
[18:02:22] x1337807x: has joined #RubyOnRails
[18:03:14] qejk: has joined #RubyOnRails
[18:03:18] x1337807x: has joined #RubyOnRails
[18:05:05] reber: has joined #RubyOnRails
[18:05:37] EXCHGR: has joined #RubyOnRails
[18:05:46] gheegh: has joined #RubyOnRails
[18:06:05] robbyoconnor: has joined #RubyOnRails
[18:07:19] krowv: has joined #RubyOnRails
[18:08:13] DoctorMonocular: has joined #RubyOnRails
[18:08:23] EXCHGR: has joined #RubyOnRails
[18:11:23] jacaballero: has joined #RubyOnRails
[18:15:23] n008f4g_: has joined #RubyOnRails
[18:15:44] SteenJobs: has joined #RubyOnRails
[18:15:57] ruv: has joined #RubyOnRails
[18:17:38] cesarstafe: has joined #RubyOnRails
[18:17:38] simplyianm: has joined #RubyOnRails
[18:18:13] cesarstafe: hi guys, question about rake tasks, is it possible to run/call a rake task via cURL ?
[18:19:18] cesarstafe: is there some gem or something that makes easier to use cURL to run rake task with it?
[18:25:03] moeabdol: has joined #RubyOnRails
[18:30:09] ruv: Hey, I am trying to do a One-to-Many update using nested attrs following http://api.rubyonrails.org/classes/ActiveRecord/NestedAttributes/ClassMethods.html. I am passing an id but it will not update it keeps doing an insert.
[18:31:37] baweaver: has joined #RubyOnRails
[18:31:50] intinig: has joined #RubyOnRails
[18:33:30] chintanparikh: How would I turn something like {['a', 'b'] => ['c', 'd'], 'e' => ['f', 'g']} into {'a' => ['c', 'd'], 'b' => ['c', 'd'], 'e' => ['f', 'g']}
[18:33:45] commondream: has joined #RubyOnRails
[18:34:50] sinkensabe: has joined #RubyOnRails
[18:35:18] rromanchuk: has joined #RubyOnRails
[18:36:46] nobitanobi: has joined #RubyOnRails
[18:38:35] alho: has joined #RubyOnRails
[18:41:21] allcentury: has joined #RubyOnRails
[18:41:35] hakunin: has joined #RubyOnRails
[18:42:40] alho: has joined #RubyOnRails
[18:43:33] jsrn_: has joined #RubyOnRails
[18:43:54] bl4ckdu5t: has joined #RubyOnRails
[18:44:03] horsecowdog: has joined #RubyOnRails
[18:44:46] a346: has joined #RubyOnRails
[18:44:57] lucianosousa: has joined #RubyOnRails
[18:45:24] renews: has joined #RubyOnRails
[18:46:08] merryfett: has joined #RubyOnRails
[18:49:12] alyosha: has joined #RubyOnRails
[18:50:10] hotpancakes: has joined #RubyOnRails
[18:50:50] nym: has joined #RubyOnRails
[18:51:54] michaeldeol: has joined #RubyOnRails
[18:52:34] jan1337z: has joined #RubyOnRails
[18:52:45] hotpancakes: I'm just starting to build a rails app that, among other things, lets the user build an email newsletter design via a drag-and-drop interface. I would like to avoid javascript MVC as much as possible. Any suggestions as to how you'd build this?
[18:52:48] edwinvdgraaf: has joined #RubyOnRails
[18:53:15] intuxicated: has joined #RubyOnRails
[18:53:15] intuxicated: has joined #RubyOnRails
[18:54:17] simplyianm: has joined #RubyOnRails
[18:56:50] krisquigley: has joined #RubyOnRails
[18:57:11] lucianosousa: hotpancakes: javascript is the best solution for this. you can use some mvc framework or not. but just with ruby/rails is almost impossible
[18:57:24] cesarstafe: somebody knows how could be the best way to call a rake task with curl?
[18:57:38] lucianosousa: system(???curl ??????
[18:57:52] hotpancakes: lucianosousa: that's what I was thinking...I just hate working with javascript
[18:58:00] cesarstafe: but... no... I mean
[18:58:11] tomeara: has joined #RubyOnRails
[18:58:28] lucianosousa: hotpancakes: can you imagine build a drag `n drop system without JS? :)
[18:58:36] nothingmuch: has joined #RubyOnRails
[18:58:59] hotpancakes: lucianosousa: hah, well, no.
[18:59:09] nertzy: has joined #RubyOnRails
[18:59:19] batasrki: has joined #RubyOnRails
[18:59:43] cesarstafe: execute from console
[18:59:47] dionysus69: has joined #RubyOnRails
[19:00:05] dstarh: has joined #RubyOnRails
[19:00:12] lucianosousa: accept that you should work with it. it will be less painful hotpancakes
[19:00:32] nothingmuch: I am adding in place editing for existing static content (currently HAML templates). I need to be able to link to rails actions, but preferably this should retain the semantic advantages of e.g. url_for as opposed to hard coded URIs
[19:00:46] lucianosousa: cesarstafe: curl just works with urls
[19:00:49] hotpancakes: lucianosousa: any recommendations for js library to accomplish this?
[19:00:52] cesarstafe: should I do a simple controller action that contains this rake task command and call this action with curls?
[19:01:00] francoi__: has joined #RubyOnRails
[19:01:01] nothingmuch: can anyone explain why Rails.application.routes.recognize_path was deprecated and what would be a sensible appoach under rails 4?
[19:01:31] lucianosousa: cesarstafe: yes. like this. but if want to do it, it???s better instead of use a rake task, put the code in a controller action
[19:01:57] alho: has joined #RubyOnRails
[19:02:15] rdavila: has joined #RubyOnRails
[19:02:28] horsecowdog: has joined #RubyOnRails
[19:03:09] edwinvdg_: has joined #RubyOnRails
[19:03:28] cesarstafe: lucianosousa: why put the code in the controller instead call directly from there the rake task ?
[19:03:52] neanderslob: has joined #RubyOnRails
[19:04:14] Coldblackice: has joined #RubyOnRails
[19:05:17] srinidhi: has joined #RubyOnRails
[19:05:31] erich: has joined #RubyOnRails
[19:06:50] lucianosousa: cesarstafe: the question is: why put in a rake task
[19:08:05] aariel_us: has joined #RubyOnRails
[19:08:15] SteenJobs: has joined #RubyOnRails
[19:08:30] blackmes2: has joined #RubyOnRails
[19:09:06] lucianosousa: if I need execute some operation when happens a request in my app, i???ll execute this in my controller or in the best cases, in a service
[19:10:08] lucianosousa: I use rake tasks in general to save few objects in my apps, or change some data in attributes from models
[19:10:12] Pupeno: has joined #RubyOnRails
[19:12:30] duderonomy: has joined #RubyOnRails
[19:13:26] Lightsword: has joined #RubyOnRails
[19:14:05] Sheperson: has joined #RubyOnRails
[19:14:15] snockerton: has joined #RubyOnRails
[19:16:13] DoctorMonocular: has joined #RubyOnRails
[19:16:29] cesarstafe: lucianosousa: the thing is that it is an application that still in hands of other developer and he asked us to be able to call those rake tasks with curl ... so, we are just trying to make this wishes to be real
[19:16:50] kadoppe: has joined #RubyOnRails
[19:16:55] qwertme: has joined #RubyOnRails
[19:17:37] lucianosousa: it makes no sense. :) you should ask him why should it be executed from a rake task
[19:17:53] lucianosousa: there is a smarter way. :)
[19:18:02] DLSteve: has joined #RubyOnRails
[19:18:51] bin_005: has joined #RubyOnRails
[19:19:20] cesarstafe: lucianosousa: that is true .. lets see what happens
[19:19:22] Sheperson: has joined #RubyOnRails
[19:20:07] batasrki: lucianosousa, cesarstafe coming in late, but does a curl imply you're hitting a third party service?
[19:21:47] yfeldblum: has joined #RubyOnRails
[19:21:48] sinkensabe: has joined #RubyOnRails
[19:21:49] lucianosousa: batasrki: still doesnt makes sense for me. let???s take back
[19:21:59] batasrki: sure it does
[19:22:06] lucianosousa: someone is accessing your app. can be from a curl or a browser request, anyway
[19:22:22] lucianosousa: why you want to put the code to be executed in a rake task?
[19:22:26] batasrki: if it's so, you're blocking your request while dealing with timeouts on the third party service
[19:22:38] lucianosousa: why you cannot put in a controller/action?
[19:22:39] Jarboe: has joined #RubyOnRails
[19:23:09] mathie: has joined #RubyOnRails
[19:23:10] batasrki: lucianosousa: let's make this clear: your user does something that you then query a third-party service for, right?
[19:23:30] batasrki: lucianosousa: your user requests a view from your app that needs a PDF as rendered by someone else
[19:23:39] momomomomo: has joined #RubyOnRails
[19:23:41] batasrki: in this case, a rake task makes total sense
[19:23:49] knikolov: has joined #RubyOnRails
[19:24:06] toydestroyer: has joined #RubyOnRails
[19:24:13] batasrki: otherwise, you're waiting on that someone else to finish its request, send the response back to you, so that you'd send a response back to your user
[19:24:26] batasrki: it makes *your* app feel slow, even though it's not within your control
[19:25:02] lucianosousa: sure. but, if its the case, I prefer put this code in a sidekiq/reque worker, not in a rake task
[19:25:21] batasrki: lucianosousa: sure, but it's a spectrum of solutions
[19:25:27] batasrki: rake task is the simples
[19:25:36] batasrki: a work queue is next up the chain
[19:25:51] lucianosousa: hum. I???ve never called a rake task inside a controller. I???ve no idea if it works
[19:25:52] siaw23: has joined #RubyOnRails
[19:26:28] siaw23: i am trying to autofill a form field with a country based on a user???s ip address. i am not sure where to start. any ideas?
[19:26:36] paulcsmith: has joined #RubyOnRails
[19:26:49] lucianosousa: makes sense what you are talking but I still looks strange for me
[19:27:03] eliasbagley: has joined #RubyOnRails
[19:27:08] batasrki: lucianosousa: sure, but that doesn't mean it's wrong
[19:28:15] lucianosousa: siaw23: https://github.com/geokit/geokit-rails
[19:28:18] lucianosousa: it???s a start
[19:29:30] lucianosousa: batasrki: I dont like rake tasks because is harder to test. but the good part you said, the sidekiq solution is more complicated
[19:30:02] batasrki: lucianosousa: yeah, on both
[19:31:35] bin_005_p: has joined #RubyOnRails
[19:31:35] sinkensabe: has joined #RubyOnRails
[19:33:14] maz-dev: has joined #RubyOnRails
[19:34:49] hotpancakes: has joined #RubyOnRails
[19:35:00] RushingFitness: has joined #RubyOnRails
[19:36:30] momomomomo_: has joined #RubyOnRails
[19:37:43] toretore: has joined #RubyOnRails
[19:39:07] endorphine_: has joined #RubyOnRails
[19:39:31] renews: has joined #RubyOnRails
[19:40:06] commondream: has joined #RubyOnRails
[19:40:09] dopie: has joined #RubyOnRails
[19:40:12] givanse: has joined #RubyOnRails
[19:40:17] FCser: has joined #RubyOnRails
[19:40:56] haz111: has joined #RubyOnRails
[19:41:33] Voxxit: has joined #RubyOnRails
[19:42:43] jacaballero: has joined #RubyOnRails
[19:43:15] jenrzzz: has joined #RubyOnRails
[19:43:47] x-light: has joined #RubyOnRails
[19:43:51] Surt_Q: has joined #RubyOnRails
[19:43:56] nertzy: has joined #RubyOnRails
[19:47:05] alfie_max15: has joined #RubyOnRails
[19:47:06] djbkd: has joined #RubyOnRails
[19:47:11] joaomdmoura_: has joined #RubyOnRails
[19:47:21] commondream: has joined #RubyOnRails
[19:48:02] Hates_: has joined #RubyOnRails
[19:48:32] djbkd: has joined #RubyOnRails
[19:48:58] SeanLazer_: has joined #RubyOnRails
[19:50:20] qwertme: has joined #RubyOnRails
[19:52:47] nobitanobi: has joined #RubyOnRails
[19:53:21] workmad3: has joined #RubyOnRails
[19:53:28] mtchllbr_: has joined #RubyOnRails
[19:53:44] FCser: has joined #RubyOnRails
[19:55:30] jan1337z: has joined #RubyOnRails
[19:55:47] suffice: has joined #RubyOnRails
[19:56:58] borodin__: smathy - I ended up removing all the gems and reinstalling them on the box - and the problem disappeared. weird
[19:58:09] smathy: borodin__, cool, well done.
[19:58:52] borodin__: so I've learned today how to do everything all over again. time for a cold brew
[19:59:05] chintanparikh: has joined #RubyOnRails
[19:59:06] borodin__: thanks for your kind attention
[20:00:07] smathy: borodin__, definitely a weird one.
[20:00:15] smathy: Glad you sorted it, you deserve that beer.
[20:01:06] Frem: has joined #RubyOnRails
[20:02:34] francoi__: has joined #RubyOnRails
[20:03:00] blackmes2: has joined #RubyOnRails
[20:03:23] SeanLazer_: has joined #RubyOnRails
[20:04:07] alyosha: why doesn't find_each support order?
[20:04:17] qwertme: has joined #RubyOnRails
[20:04:48] momomomomo: has joined #RubyOnRails
[20:06:09] rhizome: alyosha: it says right in the docs
[20:06:47] haz111_: has joined #RubyOnRails
[20:07:35] brandon: has joined #RubyOnRails
[20:07:36] Tashi_: has joined #RubyOnRails
[20:07:37] kanzure_: has joined #RubyOnRails
[20:07:46] n008f4g_: has joined #RubyOnRails
[20:07:50] alyosha: has joined #RubyOnRails
[20:07:54] dopie: has joined #RubyOnRails
[20:07:57] AntiSpamMeta: has joined #RubyOnRails
[20:07:57] alfie_max15: has joined #RubyOnRails
[20:07:58] nizmow_: has joined #RubyOnRails
[20:08:03] SirCmpwn: has joined #RubyOnRails
[20:08:05] qwertme: has joined #RubyOnRails
[20:08:08] mr_rich101: has joined #RubyOnRails
[20:08:12] SanguineAnomaly: has joined #RubyOnRails
[20:08:18] l0oky: has joined #RubyOnRails
[20:08:25] existensil: has joined #RubyOnRails
[20:08:32] diegoviola: has joined #RubyOnRails
[20:08:36] drale2k: has joined #RubyOnRails
[20:08:42] diegoviola: has joined #RubyOnRails
[20:08:46] martinbmadsen: has joined #RubyOnRails
[20:08:55] Obfuscate: has joined #RubyOnRails
[20:08:55] Jarboe: has joined #RubyOnRails
[20:09:30] hectortrope: has joined #RubyOnRails
[20:09:33] diegoviola: coworker: "Do you use vim to write code?" -- me: "Yes"
[20:09:35] FCser: has joined #RubyOnRails
[20:09:58] alfie_max15: has left #RubyOnRails: ()
[20:10:00] alyosha: the docs claim it is impossible but i don't believe it is
[20:10:09] simplyianm: has joined #RubyOnRails
[20:10:21] alyosha: offset and limit should work irrespective of order
[20:10:30] dualbus: has joined #RubyOnRails
[20:10:42] alho_: has joined #RubyOnRails
[20:11:46] cnk: has joined #RubyOnRails
[20:11:47] eduardodeoh: has joined #RubyOnRails
[20:12:03] LBo: has joined #RubyOnRails
[20:12:14] ss_much: has joined #RubyOnRails
[20:13:18] rhizome: i'm sure you can submit a PR to add it to rails if you can think of a compatible way to do it
[20:14:13] rhizome: how would :start work in a situation where order is in play?
[20:15:14] rhizome: because currently it's where(table[primary_key].gteq(start))
[20:15:49] SeanLazer_: has joined #RubyOnRails
[20:16:09] alyosha: i don't see why start/begin_at are useful when you could just add a where condition if you wanted to start at a specific point
[20:16:21] jcaho: has joined #RubyOnRails
[20:16:26] FCser: has joined #RubyOnRails
[20:16:34] duncannz: has joined #RubyOnRails
[20:16:39] alyosha: relying on the primary key seems unnecessary
[20:17:02] smathy: start could just be done with offset
[20:18:22] asheinfeld: has joined #RubyOnRails
[20:18:35] alyosha: i think they want to avoid offset because it's not performant
[20:18:37] lessless: has joined #RubyOnRails
[20:18:56] alyosha: offset requires finding all of the records prior to the offset and then ignoring them
[20:20:08] smathy: I didn't think it did if there was an index.
[20:20:44] blackmes2: has joined #RubyOnRails
[20:20:46] alyosha: maybe, i'm not sure
[20:22:02] smathy: (an index on the order column)
[20:22:09] SeanLazer_: has joined #RubyOnRails
[20:22:24] paulcsmith: has joined #RubyOnRails
[20:22:51] aamax: has joined #RubyOnRails
[20:23:54] hotpanca_: has joined #RubyOnRails
[20:24:19] aamax: Hi all, I'm working on a new site and haven't been coding for a while. just getting into rails 4.1, trying to use minitest better and using devise/pundit. I'm writing some controller tests to check routing when a user is logged in or not on some actions and the pundit policies don't seem to be called. Am I missing something or can I not test this way?
[20:27:42] smathy: has joined #RubyOnRails
[20:29:13] lucianosousa_: has joined #RubyOnRails
[20:30:34] x1337807x: has joined #RubyOnRails
[20:31:13] shinnya: has joined #RubyOnRails
[20:33:44] smathy: has joined #RubyOnRails
[20:33:44] renews: has joined #RubyOnRails
[20:33:51] ascarter: has joined #RubyOnRails
[20:34:26] SeanLazer_: has joined #RubyOnRails
[20:34:59] jenrzzz: has joined #RubyOnRails
[20:35:09] sandelius: has joined #RubyOnRails
[20:36:15] Lightsword: has joined #RubyOnRails
[20:36:59] SeanLazer: has joined #RubyOnRails
[20:37:29] smathy_: has joined #RubyOnRails
[20:38:50] DoctorMonocular: has joined #RubyOnRails
[20:40:17] bobbobbins: has joined #RubyOnRails
[20:40:39] moeabdol: has joined #RubyOnRails
[20:40:58] smathy: has joined #RubyOnRails
[20:42:46] workmad3: has joined #RubyOnRails
[20:44:23] Coldblackice: has joined #RubyOnRails
[20:45:39] nobitanobi: has joined #RubyOnRails
[20:45:53] krisquigley: has joined #RubyOnRails
[20:46:15] Lightsword: has joined #RubyOnRails
[20:47:32] gmixalot: has joined #RubyOnRails
[20:47:44] SeanLazer_: has joined #RubyOnRails
[20:48:44] smathy: has joined #RubyOnRails
[20:49:12] momomomomo: has joined #RubyOnRails
[20:49:56] helpa: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
[20:50:36] SeanLazer: has joined #RubyOnRails
[20:51:09] towski_: has joined #RubyOnRails
[20:51:42] SteenJobs: if i???ve added additional user attributes to devise, how do i require that they be submitted during registration?
[20:51:49] Lightsword: has joined #RubyOnRails
[20:51:53] ght: Question: I have some Rails 4.2 coffeescript that pulls the current values for a form in a view. I want to pass that data to a bash script on the web server. Is this possible?
[20:52:06] ght: Or does all the coffeescript execute client-side in rails 4.2 and this can't happen?
[20:52:19] sdwrage: has joined #RubyOnRails
[20:53:20] ght: Perhaps it could be coded to pass those values back to the web server itself for processing via an AJAX post statement?
[20:53:50] aamax: ght, as I understand it, the coffee script is going to only execute on the client side... you would have to do an ajax call or something like that to the server and from there run whatever you were trying to run. I haven't tried running a bash script from inside a rails controller so I'm not sure if that's going to fly... maybe...
[20:53:50] gmixalot: has joined #RubyOnRails
[20:54:15] ght: Yes, you can run a bash script or any other executable from a rails controller.
[20:54:16] sonofdirt: has joined #RubyOnRails
[20:54:25] ght: There's %w, there's exec, there's system.
[20:54:30] ght: However, yes, that's the question here.
[20:54:37] ght: Will I have to send that data back to the server for processing.
[20:54:42] rubyonrailed: has joined #RubyOnRails
[20:57:03] griffindy: has joined #RubyOnRails
[20:57:08] pulgalipe: has joined #RubyOnRails
[20:57:19] blackmes2: has joined #RubyOnRails
[20:57:20] bronson: has joined #RubyOnRails
[20:57:44] smathy: ght, coffeescript executes client-side in all versions of Rails.
[20:58:11] smathy: ...or rather, coffeescript is turned into JS on the server, and that JS always executes on the client-side in all versions of Rails.
[20:58:29] smathy: ...so yes, push the data back via ajax.
[20:58:49] SteenJobs: nevermind my earlier Q, stupid question.
[20:58:49] mtchllbrrn: has joined #RubyOnRails
[20:59:22] ght: smathy: Thank you, I've figured out a solution.
[20:59:28] DoctorMonocular: has joined #RubyOnRails
[20:59:48] mtchllbrrn: I'm creating model entries, and one of the columns is a datetime. However, if I do something like FooModel.create(date: '1/10/2015'), it creates a row with date = October 10, 2015, rather than date = January 1, 2015. Can I fix it such that .create() parses strings as American-style dates?
[20:59:54] smathy: ght, if you're going to run something in bash, be careful of opening your system to attack.
[21:00:18] m0r0n: has joined #RubyOnRails
[21:01:34] mtchllbrrn: Sorry, s/January 1/January 10
[21:01:34] ascarter: has joined #RubyOnRails
[21:03:10] zorak8: has joined #RubyOnRails
[21:03:16] farazy: has joined #RubyOnRails
[21:03:33] diegoviola: "You use Linux? You use Vim to write code?" -- Why do I always get these type of questions from coworkers
[21:04:10] allcentury: has joined #RubyOnRails
[21:04:19] smathy: mtchllbrrn, I hope you meant October 1st too :) But yes, Ruby isn't written by an American, so the date parsing isn't American.
[21:04:53] mtchllbrrn: hah, good catch. I did mean October 1
[21:05:07] m0r0n: Can someone tell me why this compiles? I understand that $screen-sm-min is a Sass bootstrap variable, but without @import-ing bootstrap how could it compile?
[21:05:11] smathy: mtchllbrrn, best would be to use an unambiguous format like: "Jan 10, 2015"
[21:05:21] smathy: mtchllbrrn, or "2015-01-10"
[21:05:22] m0r0n: I'm getting an undefined variable when I try without importing
[21:05:40] mtchllbrrn: I'd love to, but I'm working with a large dataset. I suppose I'm cursed to parse by hand
[21:05:43] smathy: diegoviola, because you're working in the wrong place.
[21:06:02] diegoviola: smathy: they're developing with Sublime on Windows
[21:06:35] smathy: mtchllbrrn, or use DateTime.strptime to make a real date from the string format you have.
[21:06:49] smathy: diegoviola, that's not what's wrong about them.
[21:06:57] smathy: diegoviola, what's wrong about them is that they think it matters.
[21:07:37] smathy: m0r0n, why _what_ compiles?
[21:07:40] mtchllbrrn: smathy, that was my thought as well. Just wanted to make sure there wasn't a saner solution out there. Thanks for the info!
[21:07:51] smathy: mtchllbrrn, you're welcome.
[21:07:57] bruno-: has joined #RubyOnRails
[21:07:59] m0r0n: smathy, Aw crap. I thought I linked it https://github.com/rubysherpas/r4ia_examples/blob/master/ticketee/app/assets/stylesheets/responsive.scss
[21:08:37] sandstrom: has joined #RubyOnRails
[21:10:11] smathy: m0r0n, https://github.com/rubysherpas/r4ia_examples/blob/master/ticketee/app/assets/stylesheets/application.css.scss is what imports both bootstrap and responsive
[21:10:33] m0r0n: So they don't compile individually?
[21:11:11] smathy: m0r0n, as a standalone SCSS file, no, that won't compile.
[21:11:29] smathy: ...I thought you already knew that :)
[21:12:57] ratmav: has joined #RubyOnRails
[21:13:12] ratmav: i'm trying to use html.erb in a mailer fixture
[21:13:19] ratmav: is that possible?
[21:14:13] SteenJobs: ght: btw also check therubyracer, might help too for whatever youre doing (irrespective of your question)
[21:14:18] m0r0n: Hmm that's neat. I have to walk my dog, but when I'm back I'm going to ask you why I'm getting this error. Uploading my app to git now
[21:14:23] smathy: ratmav, "mailer fixture" ?
[21:14:33] sandstrom: has joined #RubyOnRails
[21:15:19] jphenow: has joined #RubyOnRails
[21:15:27] m0r0n: Here is my app. https://github.com/Zilenc3/ticketee but I'm off to walk my dog
[21:15:35] smathy: ratmav, you mean for your testing? Then no, the fixture should be the entire complete email you expect to be generated.
[21:16:09] ratmav: smathy: so if i'm checking an id in the email, it needs to be fixed?
[21:16:22] smathy: ratmav, yes.
[21:16:27] ratmav: smathy: thanks
[21:16:34] smathy: ratmav, you're welcome.
[21:17:40] endorphine_: has joined #RubyOnRails
[21:18:55] teufelChiCoder: has joined #RubyOnRails
[21:22:01] bin_005: has joined #RubyOnRails
[21:24:52] robbyoconnor: has joined #RubyOnRails
[21:25:31] m0r0n: Hello again
[21:26:41] m0r0n: So if I'm importing my responsive.scss to application.css.scss. Why would I get an undefined variable?
[21:27:18] x1337807x: has joined #RubyOnRails
[21:27:56] renews: has joined #RubyOnRails
[21:28:04] smathy: m0r0n, !gist your two files and the error
[21:28:04] helpa: m0r0n: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[21:28:51] borodin__: hey smathy: know how I told you I rebuilt and the problem went away?
[21:28:54] code1o6: has joined #RubyOnRails
[21:29:58] nertzy: has joined #RubyOnRails
[21:30:17] johntrails: has joined #RubyOnRails
[21:30:46] crdpink: has joined #RubyOnRails
[21:30:59] adavia: is it possible to do something like this? format.json { render json: { user: @user, notice: "User updated." }
[21:31:07] m0r0n: smathy, Here they are: https://gist.github.com/Zilenc3/dedae5997b934fd07d30
[21:31:11] borodin__: I know how to re-create it
[21:31:29] Sigma00: adavia: yes, but you'er missing a } there
[21:32:32] EduardoBautista: has joined #RubyOnRails
[21:33:28] smathy: m0r0n, you forgot the errror.
[21:33:57] adavia: Sigma00: upps yeah
[21:34:29] m0r0n: Isn't the error the title? I'll pull whatever I can off the page then
[21:34:35] borodin__: my app was working in dev, but then I added config.force_ssl = true. that caused it to do the (function() {}).call(this);
[21:34:56] borodin__: and that error stays around even after you remove the config.force_ssl from development.rb
[21:35:49] borodin__: I had it broken in cert and working in dev, so I was looking at differences - that force ssl was the only diff so I changed dev to have it and restarted the server - it broke it and it's stayed broke
[21:35:51] nickjj: has joined #RubyOnRails
[21:36:05] borodin__: I tried rake assets:clean but it didn't work
[21:36:12] borodin__: I cleaned out tmp/ but it didn't fix it
[21:36:22] borodin__: it's pretty amazing
[21:36:56] pixelhandler: has joined #RubyOnRails
[21:37:32] bendangelo: has joined #RubyOnRails
[21:37:34] drale2k: has joined #RubyOnRails
[21:37:50] hotpancakes: has joined #RubyOnRails
[21:38:59] pehlert: has joined #RubyOnRails
[21:39:05] smathy: m0r0n, ah, ok, I was looking for it pasted into a snippet. The full error would be better, yes.
[21:39:18] m0r0n: smathy, https://gist.github.com/Zilenc3/6ead26193b94248e28b0
[21:39:37] smathy: borodin__, spring stop
[21:39:59] pehlert: Hey folks! For Rails 4's strong parameters, is there an option to "soft check", i.e. allow mass assignment always if the params are accessed directly, rather than through the object generated by params.require().permit()?
[21:40:13] aamax: Here is a gist - problem description included. basically, I'm trying to learn how to test my controller actions in a system using Devise, Minitest, Pundit, Rolify. My policy tests are working but what I'm trying to do in the controller test is not. any help would be appreciated... I hope this is a better question :)
[21:40:29] commondream: has joined #RubyOnRails
[21:40:34] Zadrel: i have an array that instantiates 31 times, in one instantiation it stores a valie of 35.98, and the rest it stores 0 --all in the same index-- anyone knows why when i try to access that index affter the loop closure it gives me a value of 32?
[21:40:43] borodin__: smathy: spring stop?
[21:40:47] op: has joined #RubyOnRails
[21:40:47] pehlert: I know this is bad practice, but I'm migrating an in-house app from Rails 3 and security is not an important app on this one
[21:40:49] smathy: m0r0n, and if you view the source of the page, can you see the bootstrap-sprockets and bootstrap CSS files being loaded.
[21:40:56] smathy: borodin__, in your console, run: spring stop
[21:41:03] smathy: borodin__, then try again.
[21:41:20] joaomdmoura: has joined #RubyOnRails
[21:41:29] erich: has joined #RubyOnRails
[21:41:53] smathy: pehlert, config.action_controller.permit_all_parameters = true
[21:42:22] avelldiroll: has joined #RubyOnRails
[21:42:23] aamax: Zadrel - show your code in a gist
[21:42:25] borodin__: it said Spring is not running
[21:42:32] aamax: oops, my gist is at: https://gist.github.com/aamax/e769e2d9764fa8e3091f
[21:42:39] aamax: for the above question
[21:42:51] borodin__: maybe Spring stop then rake assets:clean then rm -rf tmp/ ?
[21:43:01] Zadrel: aamax: is the "find_by_sql" relevant?
[21:43:06] daneo: has joined #RubyOnRails
[21:43:11] borodin__: is the issue that there's a bas asset somewhere?
[21:43:24] aamax: Zadrel, not sure what you're talking about
[21:43:38] pehlert: smathy: Awesome, thank you
[21:43:46] smathy: pehlert, you're welcome.
[21:44:12] m0r0n: smathy, I do see that. I've uploaded it here
[21:44:13] m0r0n: https://gist.github.com/Zilenc3/6ead26193b94248e28b0
[21:44:24] Zadrel: aamax: ok if you find somethin missing, let me know
[21:45:02] smathy: m0r0n, if you click on those files from within the "view source" do you see their contents?
[21:45:38] m0r0n: Holy hell I didn't know that you can do that. That is neat.
[21:45:52] m0r0n: I do see their contents
[21:46:19] FernandoBasso: has joined #RubyOnRails
[21:47:08] babykosh: has joined #RubyOnRails
[21:48:05] Zadrel: aamax: here :https://gist.github.com/rmatuoka/828deca819bb02c7ab47
[21:48:09] Zadrel: thx for your attention
[21:49:24] wldcordeiro: has joined #RubyOnRails
[21:49:42] m0r0n: I see how Saas is going through all the relevant files, but I'm still unsure of how to debug this
[21:49:51] rubyonrailed: has joined #RubyOnRails
[21:50:04] Zadrel: aamax: sales is an Array of DB records (31 in this case)
[21:50:33] rubyonrailed: has joined #RubyOnRails
[21:50:46] aamax: what's in @day_array
[21:50:55] Zadrel: aamax: sorry, it's only 1 in this case, not 31
[21:51:31] Zadrel: aamax: @day_array stores all the days of a given month, in this case, May (31 days)
[21:53:00] robbyoconnor: has joined #RubyOnRails
[21:53:49] aamax: and what's in the sales array?
[21:54:15] aamax: Zadrel, what's in the sales array?
[21:55:46] Zadrel: aamax: all the values of sales an costs in my DB of a given month, in this case May, 1 record, sale ==35.98 && cost==10.
[21:56:53] aamax: Zadrel, and price is the same as sale?
[21:57:12] Zadrel: aamax: yes
[21:57:50] commondream: has joined #RubyOnRails
[21:59:38] aamax: Zadrel, so you're using s.amount, s.product.father.price and s.product.father.cost_price... if I understand you right you only have one record with an amount of 35.98, a father.cost_price of 10 and a father.price of 35.98?
[22:00:02] rubyonrailed: has joined #RubyOnRails
[22:00:37] th_masv: has joined #RubyOnRails
[22:01:51] aamax: Zadrel, does the single item have a father object or not?
[22:03:16] Zadrel: aamax: it depends. child objects doesn't have price, so it needs to search the father. so the price, when a record exists, is never null
[22:03:16] rubyonra_: has joined #RubyOnRails
[22:03:59] aamax: but you have a specific situation you're having trouble with and you only have one item in the list... does it have a father or not?
[22:04:13] aamax: Zadrel, but you have a specific situation you're having trouble with and you only have one item in the list... does it have a father or not?
[22:04:29] rubyonra_: has joined #RubyOnRails
[22:04:37] smathy: m0r0n, paste the contents of responsive.css
[22:04:42] smathy: (to the gist)
[22:06:17] m0r0n: It's not there? Weird
[22:06:36] nertzy: has joined #RubyOnRails
[22:06:37] aamax: Zadrel, can you code the objects for @day_array and sales above the loop so I can run through the code and see what you're seeing?
[22:07:17] borodin__: smathy: wow this is amazingly broken
[22:07:21] m0r0n: smathy, you said CSS not SCSS. My file is a scss file, have I been doing this wrong?
[22:07:21] Zadrel: aamax: sorry, i don't know. but my problem was solved. my problem was that i needed to show the total profit of the month in my view. my friend told me to instantiate a variable to store the total profit in every loop. that's what i did and worked. thx for your attention and sorro for the incoveniance
[22:07:56] Zadrel: aamax: sorry****
[22:08:07] aamax: Zadrel, no prob. yw
[22:08:11] Zadrel: aamax: gtg, i'm in incredibly hurry
[22:08:19] Zadrel: aamax: Odin bless you :D
[22:08:32] jphenow: has joined #RubyOnRails
[22:08:33] aamax: gezundheit
[22:09:11] smathy: m0r0n, no, but Rails will compile it into a .css file.
[22:09:27] smathy: m0r0n, that's not happening, which actually makes sense.
[22:10:46] x-light: has joined #RubyOnRails
[22:10:56] JakFrist: has joined #RubyOnRails
[22:11:22] axl_: has joined #RubyOnRails
[22:11:46] m0r0n: smathy, Where would I find said CSS file? in my browser and paste it into a gist?
[22:12:50] Sigma00: m0r0n: remember you can't use scss variables in different files than where they're declared unless you @import said file
[22:13:10] jan1337z: has joined #RubyOnRails
[22:14:07] m0r0n: Sigma00, the variable that is undefined, is defined by bootstrap. My application.css.scss imports both bootstrap and my responsive.scss
[22:15:13] qwertme: has joined #RubyOnRails
[22:15:34] Sigma00: m0r0n: you're requiring tree...
[22:16:01] Sigma00: the asset pipeline isn't that smart
[22:16:51] m0r0n: Removing that made it work
[22:17:11] m0r0n: I guess I forgot to remove it, maybe I didn't follow the instructions that well
[22:17:12] JamesDH: has joined #RubyOnRails
[22:17:32] Sigma00: since you removed it, you'll have to manually @import each file you write
[22:17:34] Sigma00: remember that
[22:17:53] Sigma00: it'll let you use variables and mixins everywhere though
[22:18:31] centrx: has joined #RubyOnRails
[22:19:09] Lightsword: has joined #RubyOnRails
[22:19:38] dented42: has joined #RubyOnRails
[22:19:59] m0r0n: Sigma00, Where can I read up on this 'tree'
[22:20:10] sloggerkhan: has joined #RubyOnRails
[22:20:11] m0r0n: What's it officially called?
[22:21:21] jenrzzz: has joined #RubyOnRails
[22:21:47] sloggerkhan: Whats the proper method of getting your site's address, like "example.com" to put in emails and such?
[22:22:07] Sigma00: m0r0n: what tree?
[22:22:07] renews: has joined #RubyOnRails
[22:22:18] Sigma00: m0r0n: the Asset Pipeline is probably what you're asking about
[22:22:26] m0r0n: Just got a link on it
[22:22:56] Sigma00: require tree just adds every single file in every directory at and under where application.css is AFTER preprocessing
[22:23:10] Sigma00: which is why the asset pipeline on its own doesn't let you use variables throughout scss files
[22:23:23] Sigma00: because it precompiles and then merges
[22:23:35] Sigma00: s/precompile/preprocess
[22:23:36] Pupeno: has joined #RubyOnRails
[22:23:41] m0r0n: Gotcha. Thanks
[22:25:25] drale2k: has joined #RubyOnRails
[22:30:58] siemprefresco: has joined #RubyOnRails
[22:33:32] man_in_the_b0x: has joined #RubyOnRails
[22:34:42] krisquigley: has joined #RubyOnRails
[22:37:44] gusrub: has joined #RubyOnRails
[22:37:48] pragmatism: has joined #RubyOnRails
[22:38:40] pragmatism: When the hell did the #rubylang channel become private?
[22:38:54] x1337807x: has joined #RubyOnRails
[22:39:45] arooni-mobile: has joined #RubyOnRails
[22:40:03] starfox_sf: out of curiosity, do you guys use active_admin when putting together an admin for an app or do you just build the admin from scratch yourselves? I've been using active_admin for a while, but lately I have been considering building an admin from scratch myself.
[22:40:33] Licardo7: has joined #RubyOnRails
[22:40:49] lucianosousa: starfox_sf: I???m really suffering with active admin. in my future projects I???ve a plan to build it from scratch
[22:40:59] Scripore: has joined #RubyOnRails
[22:41:04] JakFrist: has joined #RubyOnRails
[22:41:11] lucianosousa: but, I???m talking about really custom projects. for regular stuffs it???s fine
[22:41:46] jacaballero: has joined #RubyOnRails
[22:42:08] Spami_: has joined #RubyOnRails
[22:42:22] SteenJobs: has joined #RubyOnRails
[22:42:47] rubie_: has joined #RubyOnRails
[22:42:50] Rager: which is more idomatically railsy: page 1 being the first page or page 0 being the first page?
[22:42:54] weaksauce: starfox_sf I rewrote a small Active Admin app and it was a bit of a pain to do but probably worth it in the longer run
[22:43:04] starfox_sf: lucianosousa: yeah... I'm sortof in the same situation. I find myself digging thru active_admin's source (and the source of the gems it heavily uses e.g. arbre) very often nowadays
[22:43:42] commondream: has joined #RubyOnRails
[22:43:57] starfox_sf: that said, I very much like active_admin and it has been a life saver many times
[22:44:08] joaomdmoura: has joined #RubyOnRails
[22:44:49] lucianosousa: my last project was terrible with it. especially because we introduced a new layer in the app, authorization(pundit)
[22:45:01] lucianosousa: inside page actions it did not work very well
[22:45:18] weaksauce: activeadmin is more of a replacement for django admin
[22:45:29] weaksauce: basic crud for models.
[22:45:34] Filete: has joined #RubyOnRails
[22:45:36] lucianosousa: yes. just for it
[22:45:49] weaksauce: yep. if you want to do anything remotely tricky it's more of a pain
[22:45:52] lucianosousa: any other admin I can imagine
[22:45:58] starfox_sf: lucianosousa: when building a custom admin what did you use for managing regular users and admin users? I'm asking because I often make use of devise, and have not really thought about how to split between regular users and admins
[22:46:09] Sigma00: Rager: er, where did that question come from?
[22:46:26] Sigma00: anything user facing should index from 1
[22:46:41] Sigma00: but it's weird that you're talking about 'page 1'
[22:47:04] lucianosousa: I always use this structure: admin and admin_user
[22:47:26] lucianosousa: always with devise, but just because it works fine with activeadmin
[22:47:50] starfox_sf: lucianosousa: admin and admin_user? you mean user and admin_user?
[22:49:04] hardlin3r: has joined #RubyOnRails
[22:49:32] starfox_sf: and how do you deal with more fine grained authorization (who can do CRUD on what)? do you just check if the resource is an admin user bypass all checks?
[22:49:56] lucianosousa: starfox_sf: I use pundit nowadays
[22:50:12] DLSteve: has joined #RubyOnRails
[22:50:13] lucianosousa: https://github.com/elabs/pundit
[22:50:15] starfox_sf: nope, will check it out
[22:50:39] lucianosousa: http://activeadmin.info/docs/13-authorization-adapter.html
[22:51:14] sloggerkhan: I like pundit, also a user.
[22:51:39] acti0nman: has joined #RubyOnRails
[22:52:42] hardlin3r: Hi, guys, can i use rails for ios app backend?
[22:53:04] hardlin3r: Can i use devise gem to make authentication for ios app?
[22:53:05] acti0nman: has joined #RubyOnRails
[22:53:39] towski__: has joined #RubyOnRails
[22:54:29] cnk: hardlin3r: If by ios backend you mean data API server, yes.
[22:54:49] cnk: I am less sure about authentication dance with your app and rails
[22:54:58] hardlin3r: cnk, yes, just restful api
[22:55:37] Lightsword: has joined #RubyOnRails
[22:55:45] acti0nman: has joined #RubyOnRails
[22:55:49] Rubie: has joined #RubyOnRails
[22:56:05] cnk: I would google "rails api server" for some opinions and options.
[22:56:17] hardlin3r: cnk, thank you, sir)
[22:56:37] cnk: I would probably use rails for my api server if I needed one - but mainly because I am fast at it and it is v likely good enough
[22:57:02] Sigma00: yes, you can use devise for auth
[22:57:08] Sigma00: you'll just have to make it work with JSON
[22:57:12] Sigma00: or use devise_token
[22:57:25] acti0nman: has joined #RubyOnRails
[22:57:30] ruurd: has joined #RubyOnRails
[22:58:11] francois_: has joined #RubyOnRails
[22:59:30] bruno-: has joined #RubyOnRails
[23:02:49] rubyonrailed: has joined #RubyOnRails
[23:04:54] ruurd: has joined #RubyOnRails
[23:05:15] sandstrom: has joined #RubyOnRails
[23:05:45] SteenJobs: has joined #RubyOnRails
[23:06:17] crdpink: has joined #RubyOnRails
[23:06:52] crdpink: has joined #RubyOnRails
[23:07:09] jenrzzz: has joined #RubyOnRails
[23:07:49] baweaver: has joined #RubyOnRails
[23:09:17] x-light: has joined #RubyOnRails
[23:10:05] qwertme: has joined #RubyOnRails
[23:10:52] mtchllbrrn: has joined #RubyOnRails
[23:14:51] crdpink: has joined #RubyOnRails
[23:15:03] crdpink: has joined #RubyOnRails
[23:16:26] snockerton: has left #RubyOnRails: ()
[23:16:36] x1337807x: has joined #RubyOnRails
[23:17:15] darrencauthon: has joined #RubyOnRails
[23:17:44] gusrub: has joined #RubyOnRails
[23:23:11] bobbobbins: has joined #RubyOnRails
[23:24:45] boromak_: has joined #RubyOnRails
[23:27:59] bin_005: has joined #RubyOnRails
[23:30:36] annlewis: has joined #RubyOnRails
[23:31:52] arooni-mobile: has joined #RubyOnRails
[23:32:38] nahtnam: has joined #RubyOnRails
[23:34:28] Spami: has joined #RubyOnRails
[23:34:34] michael_mbp: has joined #RubyOnRails
[23:34:35] Spami: I'm trying to deploy a new release on my server with the metamagic gem but for some reason the gem is not getting used/installed. I'm using capistrano. Any idea why?
[23:35:11] bobbobbins: has joined #RubyOnRails
[23:36:35] scottmatheina: has joined #RubyOnRails
[23:38:55] nobitanobi: has joined #RubyOnRails
[23:44:06] nobitanobi: has joined #RubyOnRails
[23:45:43] bronson: has joined #RubyOnRails
[23:46:54] erich: has joined #RubyOnRails
[23:48:07] erichu: has joined #RubyOnRails
[23:48:08] blackhuey: has joined #RubyOnRails
[23:48:09] ascarter: has joined #RubyOnRails
[23:49:24] cnk: Does your capistrano task call bundle?
[23:49:39] cnk: as in bundle install?
[23:49:56] blackhuey: has left #RubyOnRails: ()
[23:50:01] arooni-mobile: has joined #RubyOnRails
[23:52:11] Spami: cnk, yes it does
[23:52:19] drale2k: has joined #RubyOnRails
[23:52:20] Spami: I don't understand what is happening
[23:52:24] Spami: it's so weird
[23:52:52] Spami: "cd /var/www/data/releases/20150612234717 && ~/.rvm/bin/rvm default do bundle install --path /var/www/data/shared/bundle --without development test --deployment --quiet"
[23:53:21] smathy: Spami, it's not in a development or test group in your Gemfile?
[23:53:36] smathy: Spami, !gist your Gemfile
[23:53:36] helpa: Spami: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[23:54:13] Spami: smathy, https://gist.github.com/theonegri/1940a91e8e8f379fc749
[23:55:04] smathy: Spami, and add the output from your console, showing the capistrano log after the bundle command aboe.
[23:55:13] smathy: (or just add it all if you like)
[23:56:19] jenrzzz: has joined #RubyOnRails
[23:56:26] LicHacker: has joined #RubyOnRails
[23:57:02] Rager: trying to pick between jbuilder and AM::S
[23:57:16] Rager: I like the idea of basing the outputs on the models with AM::S
[23:57:29] Rager: the other folks like the higher degree of flexibility with jbuilder
[23:57:39] Rager: trying to understand pro/con of the two
[23:58:01] Spami: smathy, https://gist.github.com/theonegri/3a82cf20ddbd86494cea
[23:58:38] moeabdol: has joined #RubyOnRails
[23:58:46] Spami: And a cat of the Gemfile in the current directory does show "gem 'metamagic'"
[23:59:00] doodlehaus: has joined #RubyOnRails
[23:59:39] babykosh: has joined #RubyOnRails
[23:59:48] cmisenas: has joined #RubyOnRails