« Back to channel list

#RubyOnRails - 17 July 2016

« Back 1 day Forward 1 day »
[00:00:16] flashpoint9: has joined #RubyOnRails
[00:01:08] jtong: has joined #RubyOnRails
[00:04:51] claypo: has joined #RubyOnRails
[00:07:49] rollinDyno: has joined #RubyOnRails
[00:08:30] matthewd: gavri: Parent.includes(:child).merge(Child.filtered_by_your_scope)
[00:13:06] carpeliam: has joined #RubyOnRails
[00:13:18] xall_: has joined #RubyOnRails
[00:14:13] wethu: has joined #RubyOnRails
[00:14:52] gavri: matthewd: great, thanks a lot!
[00:16:32] roamingdog: has joined #RubyOnRails
[00:18:38] crystal77: has joined #RubyOnRails
[00:25:25] pontiki: has joined #RubyOnRails
[00:29:06] arBmind1: has joined #RubyOnRails
[00:29:08] hahuang65: has joined #RubyOnRails
[00:29:15] gavri: matthewd: Is there a way to derive from these where clauses what should be added to the includes hash?
[00:30:53] mdanielk: has joined #RubyOnRails
[00:38:43] carpeliam: has joined #RubyOnRails
[00:39:28] Oliphaunte: has joined #RubyOnRails
[00:42:03] siaW: has joined #RubyOnRails
[00:47:24] Oliphaunte: has joined #RubyOnRails
[00:49:27] dminuoso: has joined #RubyOnRails
[00:50:30] Oliphaunte: has joined #RubyOnRails
[00:53:01] xall_: has joined #RubyOnRails
[01:01:04] matt_d: has left #RubyOnRails: ()
[01:01:41] Oliphaunte: has joined #RubyOnRails
[01:02:55] jtong: has joined #RubyOnRails
[01:05:02] wethu: has joined #RubyOnRails
[01:05:29] crystal77: has joined #RubyOnRails
[01:05:50] ekinmur: has joined #RubyOnRails
[01:07:21] leea: has joined #RubyOnRails
[01:13:53] bronson: has joined #RubyOnRails
[01:14:48] l4v2: has joined #RubyOnRails
[01:15:44] leea: has joined #RubyOnRails
[01:19:30] xall_: has joined #RubyOnRails
[01:23:02] xall_: has joined #RubyOnRails
[01:25:14] jenrzzz: has joined #RubyOnRails
[01:25:14] jenrzzz: has joined #RubyOnRails
[01:25:52] AndrewIsHere: has joined #RubyOnRails
[01:30:09] hahuang65: has joined #RubyOnRails
[01:38:19] ur5us_: has joined #RubyOnRails
[01:39:06] rafaelfranca: has joined #RubyOnRails
[01:41:43] nettoweb: has joined #RubyOnRails
[01:50:10] dminuoso: has joined #RubyOnRails
[02:00:06] ElFerna: has joined #RubyOnRails
[02:02:10] barhum2013: has joined #RubyOnRails
[02:02:41] andrecastelo: has joined #RubyOnRails
[02:03:47] jtong: has joined #RubyOnRails
[02:05:05] pat: has joined #RubyOnRails
[02:12:10] andrecastelo: has joined #RubyOnRails
[02:12:30] monoprotic: has joined #RubyOnRails
[02:12:30] monoprotic: has joined #RubyOnRails
[02:12:37] barhum2013: has joined #RubyOnRails
[02:14:50] contradictioned: has joined #RubyOnRails
[02:20:06] rogue_koder: has joined #RubyOnRails
[02:20:49] wiskirz: has joined #RubyOnRails
[02:21:02] chipotle: has joined #RubyOnRails
[02:25:13] jgpawletko: has joined #RubyOnRails
[02:29:31] andrecastelo: hey guys, i'm not able to start a rails server on a linode machine
[02:32:11] andrecastelo: i've installed rvm with rails 5.0, cloned a simple project I'm working on, installed dependencies and rails s works, but I'm not able to reach it with the browser
[02:32:11] andrecastelo: I've opened the port 3000 with iptables and netstat shows it is listening when the server is running
[02:32:12] andrecastelo: what could be the cause?
[02:32:49] rogue_koder: has joined #RubyOnRails
[02:35:26] yfeldblum: has joined #RubyOnRails
[02:38:11] KnownSyntax: has joined #RubyOnRails
[02:38:11] KnownSyntax: has joined #RubyOnRails
[02:40:28] Oliphaunte: has joined #RubyOnRails
[02:47:23] xall: has joined #RubyOnRails
[02:51:11] benlieb: has joined #RubyOnRails
[02:51:31] Leepoff: has joined #RubyOnRails
[02:52:31] pulse_: has joined #RubyOnRails
[02:54:33] Qwertie: has joined #RubyOnRails
[02:55:26] metasploitable: has joined #RubyOnRails
[02:55:30] metasploitable: has left #RubyOnRails: ()
[03:01:30] JesseH: has joined #RubyOnRails
[03:02:02] andrecastelo: Hey guys, I'm trying to deploy an application using Rails 5's builtin Puma (with rails s -e production) but when I try hitting the IP with the port 3000, there's no answer
[03:02:27] andrecastelo: I've altered the Iptables so that the port 3000 is free and even netstat shows it's listening when the server is running, but no success
[03:03:13] Devalo: has joined #RubyOnRails
[03:03:37] andrecastelo: any ideas on what the issue could be?
[03:05:01] xlegoman: has joined #RubyOnRails
[03:05:29] fryguy: andrecastelo: what IP is it bound to
[03:05:44] jtong: has joined #RubyOnRails
[03:06:55] claypo: has joined #RubyOnRails
[03:12:07] rails45: has joined #RubyOnRails
[03:14:09] rails45: Can I specify a .js.erb file name when using remote: true? I know that by default it finds the file with the matching name i.e. a remote:true inside index.html.erb will look for a index.js.erb. But the thing is I have multiple remote: true links in index.html.erb so I need multiple .js.erb for that right?
[03:18:01] roamingdog: has joined #RubyOnRails
[03:21:02] k3rn31: has joined #RubyOnRails
[03:21:13] fryguy: rails45: it goes through normal controller routing
[03:23:15] quazimodo: has joined #RubyOnRails
[03:23:19] quazimod1: has joined #RubyOnRails
[03:25:34] treaki__: has joined #RubyOnRails
[03:36:06] pulse: has joined #RubyOnRails
[03:36:38] zacts: has joined #RubyOnRails
[03:36:44] bryanculver: has joined #RubyOnRails
[03:38:07] xall: has joined #RubyOnRails
[03:39:24] harfangk: has joined #RubyOnRails
[03:43:54] lxsameer: has joined #RubyOnRails
[03:54:05] Axsuul: has joined #RubyOnRails
[03:55:45] djbkd: has joined #RubyOnRails
[03:56:12] pulse_: has joined #RubyOnRails
[04:01:07] benlieb: has joined #RubyOnRails
[04:07:12] jtong: has joined #RubyOnRails
[04:11:23] speaking1ode: has joined #RubyOnRails
[04:11:45] et09: has joined #RubyOnRails
[04:11:58] et09: if a client initiates a request to rails, and it's received successfully, is there anything whatsoever a client can do to stop the request ?
[04:12:14] et09: ie halt the code
[04:13:39] et09: dumb question i assume..
[04:20:14] hahuang65: has joined #RubyOnRails
[04:28:57] Axsuul: has joined #RubyOnRails
[04:30:28] Oliphaunte: has joined #RubyOnRails
[04:31:22] pat: has joined #RubyOnRails
[04:36:09] FCser: has joined #RubyOnRails
[04:36:19] fryguy: et09: depends on how the webserver is configured, but usually not
[04:37:27] hahuang65: has joined #RubyOnRails
[04:39:01] k3rn31: has joined #RubyOnRails
[04:39:03] Oliphaunte: has joined #RubyOnRails
[04:43:41] chipotle_: has joined #RubyOnRails
[04:46:53] kevr: has joined #RubyOnRails
[04:50:32] wethu: has joined #RubyOnRails
[04:52:08] andrecastelo: has joined #RubyOnRails
[04:53:17] TinkerTyper: has joined #RubyOnRails
[04:55:13] kevr: I have this controller here. http://ix.io/14Aw/ruby
[04:55:56] kevr: And in there, args = { title: "blah", description: "blah", priority: 1 }
[04:56:47] kevr: I'm trying to understand why I receive a ForbiddeenAttributesError when I pass the data structure alone, but not when i 1. specifically pass each parameter manually or 2. do the same exact thing in rails console that's in the create action
[04:57:05] AndrewIsHere: has joined #RubyOnRails
[04:57:07] kevr: seems to only raise that error when it's being passed via form
[04:57:22] kevr: i've compared the data structures i've tested, and they seem to be absolutely the same
[04:57:55] kevr: (and yes, in the task model, title is a string, description is a string, and priority is an integer
[04:59:22] kevr: (i'm doing the conversion here for priority, because i have a <select> with options of values 0,1,2 and they're strings when passed
[04:59:34] kevr: so i changed it into an integer for proper typing)
[05:03:03] kevr: The exception gives me absolutely no context as to what failed, which is somewhat alarming
[05:05:00] andrecastelo: has joined #RubyOnRails
[05:08:25] roamingdog: has joined #RubyOnRails
[05:09:13] jtong: has joined #RubyOnRails
[05:09:23] hahuang65: has joined #RubyOnRails
[05:30:31] rafaelfranca: has joined #RubyOnRails
[05:53:59] benlieb_: has joined #RubyOnRails
[05:56:24] harfangk: has joined #RubyOnRails
[05:57:18] Oliphaunte: has joined #RubyOnRails
[06:00:40] arup_r: has joined #RubyOnRails
[06:02:36] Devalo: has joined #RubyOnRails
[06:07:55] xall: has joined #RubyOnRails
[06:09:12] claypo: has joined #RubyOnRails
[06:10:51] jtong: has joined #RubyOnRails
[06:14:41] ur5us: has joined #RubyOnRails
[06:18:30] Leonardodutra: has joined #RubyOnRails
[06:18:47] Leonardodutra: <%= link_to(equipment) do %>
[06:18:47] Leonardodutra: <%= div_for(@equipment, class: "alert-danger") do %>
[06:18:47] Leonardodutra: <% equipment['user'] %>
[06:19:06] Leonardodutra: what my equipment[..] is doubled?
[06:19:12] Leonardodutra: prited 2 times
[06:19:31] Leonardodutra: <% @amiorada.each do |equipment| %>
[06:19:31] Leonardodutra: <%= link_to(equipment) do %>
[06:19:31] Leonardodutra: <%= div_for(@equipment, class: "alert-danger") do %>
[06:19:31] Leonardodutra: <% equipment['user'] %>
[06:27:07] moeabdol: has joined #RubyOnRails
[06:27:15] arup_r: Leonardodutra: !gist is your tool to show code next time.
[06:27:15] helpa: Leonardodutra: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[06:27:34] arup_r: but for now I hope `@amiorada` contains 2 items.. did you check that?
[06:28:44] arup_r: and also div_for(@equipment, should not be div_for(equipment, ? I removed `@`
[06:29:26] arup_r: you don't have @equipment defined any where in the given code, so I hope you used @equipment by mistake.
[06:33:28] benlieb: has joined #RubyOnRails
[06:35:16] sypheren: has joined #RubyOnRails
[06:36:11] Dimik--: has joined #RubyOnRails
[06:37:36] Axsuul: has joined #RubyOnRails
[06:37:48] pawnbox: has joined #RubyOnRails
[06:53:10] wethu: has joined #RubyOnRails
[06:53:23] jstransky: has joined #RubyOnRails
[06:54:37] apotry: has joined #RubyOnRails
[06:59:21] AndrewIsHere: has joined #RubyOnRails
[07:04:18] futilegames: has joined #RubyOnRails
[07:07:08] futilegames: has left #RubyOnRails: ()
[07:10:16] roamingdog: has joined #RubyOnRails
[07:12:11] kevr: has joined #RubyOnRails
[07:12:17] jtong: has joined #RubyOnRails
[07:14:29] dionysus69: has joined #RubyOnRails
[07:16:10] Palsson: has joined #RubyOnRails
[07:16:39] darutoko: has joined #RubyOnRails
[07:20:05] the_drow: has joined #RubyOnRails
[07:29:57] xall: has joined #RubyOnRails
[07:30:01] pulse: has joined #RubyOnRails
[07:31:40] solars: has joined #RubyOnRails
[07:33:30] benlieb_: has joined #RubyOnRails
[07:41:07] antgel: has joined #RubyOnRails
[07:42:05] izzy_: has joined #RubyOnRails
[07:42:08] Macca: has joined #RubyOnRails
[07:43:36] izzy_: anybody have experience building signups?
[07:43:43] harfangk: has joined #RubyOnRails
[07:44:42] izzy_: having some issues with passing params
[07:45:24] djbkd: has joined #RubyOnRails
[07:54:10] DoctorMonocular: has joined #RubyOnRails
[07:55:14] helpa: has joined #RubyOnRails
[07:57:11] djbkd: has joined #RubyOnRails
[07:58:29] ur5us: has joined #RubyOnRails
[07:59:48] pulse: has joined #RubyOnRails
[08:01:04] AzaToth: has joined #RubyOnRails
[08:03:09] helpa: has joined #RubyOnRails
[08:03:23] roamingdog: has joined #RubyOnRails
[08:05:40] jhass: ACTION hands quazimod1 a new keyboard
[08:10:59] claypo: has joined #RubyOnRails
[08:13:15] jtong: has joined #RubyOnRails
[08:14:09] defsdoor: has joined #RubyOnRails
[08:17:01] benlieb: has joined #RubyOnRails
[08:20:30] cd-rum: has joined #RubyOnRails
[08:21:38] arup_r: has joined #RubyOnRails
[08:22:46] nettoweb: has joined #RubyOnRails
[08:32:34] rafaelfranca: has joined #RubyOnRails
[08:32:34] rafaelfranca: has joined #RubyOnRails
[08:37:26] blackhuey: has joined #RubyOnRails
[08:37:35] Coldblackice: has joined #RubyOnRails
[08:40:13] pulse: has joined #RubyOnRails
[08:42:55] Amras0000: has joined #RubyOnRails
[08:44:02] izzy__: has joined #RubyOnRails
[08:45:28] chipotle: has joined #RubyOnRails
[08:48:45] Dreamer3: has joined #RubyOnRails
[08:50:24] xall: has joined #RubyOnRails
[08:51:12] iamayam: has joined #RubyOnRails
[08:51:25] theRoUS: has joined #RubyOnRails
[08:51:54] dmz: has joined #RubyOnRails
[08:52:31] jalcine: has joined #RubyOnRails
[08:52:47] Technodrome: has joined #RubyOnRails
[08:56:50] DoctorMonocular: has joined #RubyOnRails
[08:59:54] jtong: has joined #RubyOnRails
[09:06:52] rails56: has joined #RubyOnRails
[09:08:02] rails56: Does making elements that don't change between page loads permanent in turbolinks 5 actually decrease the page load time or is it just for show?
[09:09:04] Technodrome: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[09:15:30] roamingdog: has joined #RubyOnRails
[09:19:04] arBmind: has joined #RubyOnRails
[09:19:40] sergey_makagon: has joined #RubyOnRails
[09:27:33] rocketsurgeon: has joined #RubyOnRails
[09:35:24] pawnbox: has joined #RubyOnRails
[09:36:49] pawnbox: has joined #RubyOnRails
[09:37:25] djbkd: has joined #RubyOnRails
[09:41:50] akira616: has joined #RubyOnRails
[09:42:31] marr: has joined #RubyOnRails
[09:43:11] arup_r: has joined #RubyOnRails
[09:49:13] izzy__: has joined #RubyOnRails
[09:51:40] Jasaka: has joined #RubyOnRails
[09:51:52] benhoi: has joined #RubyOnRails
[09:54:24] pawnbox: has joined #RubyOnRails
[09:54:57] Velizar: has joined #RubyOnRails
[09:56:37] pawnbox: has joined #RubyOnRails
[09:57:15] kh0d: has joined #RubyOnRails
[09:58:45] drptbl: has joined #RubyOnRails
[09:59:04] Velizar: Updating Capybara to 2.7.0 broke some of my tests using find(:css, string) - I get Capybara::ElementNotFound. But there is nothing about that mentioned in the changelog. What is going on?
[10:03:06] Velizar: I looked at the changelog, _find_ itself is not changed; it must be something it uses.
[10:08:29] pawnbox_: has joined #RubyOnRails
[10:11:42] benlieb: has joined #RubyOnRails
[10:14:42] arup_r: Velizar: use the screeshot method of capybara to capture the page screenshot to make sure if the element is visible in the page indeed or not. Did you try this?
[10:16:05] sergey_makagon: has joined #RubyOnRails
[10:16:11] Velizar: arup_r: I used _puts page.body_, and I could find the css manually
[10:16:19] Velizar: but the find method failed anyway
[10:16:52] arup_r: Velizar: ok, add like sleep(5) before find and see the result
[10:17:02] wd40s: has joined #RubyOnRails
[10:17:37] Velizar: arup_r: still failure
[10:17:53] arup_r: can you show the code now in gist?
[10:18:52] Velizar: the method call is find(:css, "#something"); the HTML is <input id="something"> ... </input>, it has lots of other attributes in addition to the id
[10:19:09] Velizar: ok I'll gist the spec, the HTML and the errors I get
[10:20:17] arup_r: also there is no Ajax call related the to the section of the page you are testing, right? just confirming once
[10:20:22] roshanavand: has joined #RubyOnRails
[10:21:04] Velizar: I don't think so
[10:21:28] Velizar: btw I tested many times going back to capybara 2.6.2 and then 2.7.1 and it always fails if it's 2.7.1 and doesn't if 2.6.2
[10:21:40] Velizar: tested at least 4-5 times with each
[10:23:19] Velizar: hope I'm not forgetting something https://gist.github.com/VelizarHristov/061a3f02098f0068d25258fcf831b1b9
[10:23:50] Velizar: btw it fails the same way if I remove the .set
[10:23:59] Honeycomb: has joined #RubyOnRails
[10:24:36] arup_r: Velizar: can you do me a favor? :) give me the line number please :)
[10:25:14] Velizar: arup_r: Start from the second file - it gives the line numbers: they are 243 and 199
[10:25:20] Velizar: at the end of it
[10:25:32] Velizar: also the HTML starts at line 14 of the second file
[10:25:35] Honeycomb: has joined #RubyOnRails
[10:26:11] arup_r: ok Velizar click the line number, you will get a url on the browser addressbar.. and share it. Gist is good to give a link to the line number, FYI
[10:26:44] arup_r: for now I got it.
[10:27:05] Velizar: neat! gist is very well designed
[10:28:41] yfeldblum: has joined #RubyOnRails
[10:29:51] arup_r: What I see is you have more than 1 html element which has same ID which is wrong.
[10:30:07] Velizar: huh I didn't intend that
[10:30:19] arup_r: https://gist.github.com/VelizarHristov/061a3f02098f0068d25258fcf831b1b9#file-run-L92 and https://gist.github.com/VelizarHristov/061a3f02098f0068d25258fcf831b1b9#file-run-L86
[10:30:32] arup_r: Velizar: can you fix those 2 first
[10:30:59] kevr: has joined #RubyOnRails
[10:31:14] Velizar: arup_r: it's different: _count vs _discount
[10:31:25] Velizar: but let me know if you find any duplicate ids
[10:31:34] arup_r: nvm then.. sorry
[10:32:25] Velizar: I'm considering downgrading to 2.6.2 and waiting until more documentation is available or maybe I'm just experiencing a bug which they'll fix
[10:33:10] arup_r: Velizar: may be you are right.
[10:34:12] moeabdol: has joined #RubyOnRails
[10:34:44] arup_r: Velizar: not helpfull.. in this context.. why not using `fill_in ..,..` syntax :) readable more
[10:36:01] Velizar: arup_r: I believe it had a potentially duplicate label, because it allows the editing of multiple items at the same time, so it's called Count for each
[10:36:09] arup_r: other than that, I also have no idea why it is breking
[10:36:10] Velizar: does fill_in take CSS?
[10:36:41] arup_r: it takes label name, what else it takes I forget now
[10:36:41] Velizar: I think it only takes a label name, so with duplicates I can do nothing
[10:37:33] arup_r: Velizar: it takes ID also http://www.rubydoc.info/github/jnicklas/capybara/master/Capybara%2FNode%2FActions%3Afill_in
[10:38:12] arup_r: but, can you try by increasing the time like to 5 as `Capybara.default_max_wait_time = 5`
[10:38:17] wethu: has joined #RubyOnRails
[10:38:25] arup_r: Just give it a try before giving up I meant :)
[10:39:25] arup_r: and also fill_in takes argument to define *waiting* time. I am guessing capybara trying to find the element before page load completes may be. but I am not 100% sure
[10:39:49] arup_r: or before element loaded completely
[10:39:52] Velizar: it must be something they changed. that was all working with 2.6.2
[10:41:19] Velizar: wait_time didn't fix it, I'll try fill_in
[10:42:23] arup_r: then it is a gem bug, downgrade it.. or may be file a report to github issue tracker
[10:43:35] ur5us: has joined #RubyOnRails
[10:44:03] Velizar: I get the same thing with fill_in 'the_id', with: val
[10:44:14] Velizar: yeah I'll do that
[10:48:09] konsolebox: has joined #RubyOnRails
[10:50:23] Velizar: that's strange: everything is green with 2.6.2, but if I change it to fill_in('ironing_booking_services_attributes_0_count', with: ironing_svc_hours.to_s), it can't find it
[10:50:30] Velizar: fill_in is supposed to be able to find an id
[10:50:50] Velizar: and I checked for typos
[10:59:46] FernandoBasso: I have a select box with categories. f.label and f.select use :category_id. Should I translate :category_id attribute to "Category" or there is another way to translate those kind of things?
[10:59:46] yuniorFromCuba: has joined #RubyOnRails
[11:00:36] AndrewIsHere: has joined #RubyOnRails
[11:01:08] yuniorFromCuba: i'm almost new with rails and i need some help with routes
[11:01:36] jtong: has joined #RubyOnRails
[11:03:29] jhass: yuniorFromCuba: what's your question?
[11:03:34] FernandoBasso: We still don't know how to possibly help.
[11:05:25] yuniorFromCuba: wait a minute please
[11:08:04] Rodya_: has joined #RubyOnRails
[11:09:01] yuniorFromCuba: jhass can i write you in private?
[11:09:19] jhass: I'd prefer not to
[11:11:04] pontiki: has joined #RubyOnRails
[11:12:57] xall: has joined #RubyOnRails
[11:14:31] izzy__: i'm having trouble with params
[11:14:56] izzy__: i keep getting an error that my params object is missing or empty in my integration test
[11:15:27] izzy__: for my signup process, but i can sign up and create users that get stored in the DB just fine
[11:15:29] harfangk: has joined #RubyOnRails
[11:15:46] izzy__: not sure what to check or how to debug it
[11:16:01] roshanavand: has joined #RubyOnRails
[11:16:09] izzy__: can anybody help?
[11:16:50] jhass: yuniorFromCuba: why don't you ask your question here?
[11:16:56] c355E3B: has joined #RubyOnRails
[11:19:27] roshanavand: has joined #RubyOnRails
[11:20:04] Velizar: My project is using two gems which depend on rails < 5 and are last updated 2-3 years ago; I want to update to Rails 5. Also I can't remove one of the gems without a major rewrite. So basically I'm screwed?
[11:20:37] izzy__: get different but similar gems maybe?
[11:21:01] Velizar: the problematic gem is iced-rails, I'm using IcedCoffeeScript
[11:21:44] pontiki: fork the gem and fix it
[11:22:09] izzy__: or define what you need to do so you can more easily replace them
[11:22:21] roshanavand: has joined #RubyOnRails
[11:22:25] mikecmpbll: has joined #RubyOnRails
[11:22:32] yuniorFromCuba: here i come jhass
[11:22:40] yuniorFromCuba: i have this in my routes
[11:22:50] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[11:23:06] yuniorFromCuba: get 'send' => 'sms#send'
[11:23:26] yuniorFromCuba: this empty method in the SmsoController
[11:24:01] yuniorFromCuba: and when i try to access to
[11:24:02] yuniorFromCuba: i get this error
[11:24:16] yuniorFromCuba: wrong number of arguments (1 for 0)
[11:24:44] yuniorFromCuba: what is my "maybe evident" error?
[11:25:17] matthewd: yuniorFromCuba: `send` is a reserved method name in ruby; you can use it in your URL, but name your action method something else
[11:25:53] yuniorFromCuba: i read something similar but let me change and i go back to you
[11:26:07] yuniorFromCuba: thanks matthewd
[11:26:14] conta: has joined #RubyOnRails
[11:27:15] yuniorFromCuba: now i get another error but is the missing template
[11:27:23] yuniorFromCuba: thanks again matthewd
[11:27:36] tbuehlmann: actually, #send is for the user to be used and you should use __send__ if you want to call a method, let's say dynamically
[11:31:49] roshanavand: has joined #RubyOnRails
[11:32:23] dionysus69: has joined #RubyOnRails
[11:38:18] jhass: tbuehlmann: not sure I agree, I'd say only if you can't use send for some reason, in general you should in fact use public_send where possible
[11:39:09] wd40s: has joined #RubyOnRails
[11:39:59] flashpoint9: has joined #RubyOnRails
[11:40:24] tbuehlmann: right, I also prefer public_send if possible. though #send really is for email.send, sms.send, notification.send and whatnot, it's not exclusively for calling methods dynamically
[11:40:57] tbuehlmann: that's why __send__ exists
[11:42:09] yuniorFromCuba: i'm still learning about my mistake
[11:43:30] tbuehlmann: that's a tough one if one doesn't know about the send method
[11:43:41] tbuehlmann: http://stackoverflow.com/a/4658359/384293
[11:50:18] kh0d: has joined #RubyOnRails
[11:50:37] jheathco: has joined #RubyOnRails
[11:51:31] kh0d: Does anyone know how to inspect diagnose the problem with long TTFB times when loading rails assets?
[11:52:42] workmad3: has joined #RubyOnRails
[11:54:48] benlieb: has joined #RubyOnRails
[11:57:45] pawnbox: has joined #RubyOnRails
[12:01:41] apotry: has joined #RubyOnRails
[12:03:18] BigChief: has joined #RubyOnRails
[12:04:29] jtong: has joined #RubyOnRails
[12:04:30] BigChief: Anyone here ?
[12:04:52] andywww: has joined #RubyOnRails
[12:05:56] pawnbox: has joined #RubyOnRails
[12:07:09] xall: has joined #RubyOnRails
[12:08:22] ia9371: has joined #RubyOnRails
[12:08:30] ia9371: i need a view that
[12:08:35] StevenXL: has joined #RubyOnRails
[12:08:35] StevenXL: has joined #RubyOnRails
[12:09:09] sergey_makagon: has joined #RubyOnRails
[12:10:14] ia9371: that sends user informatin to the database and than sends me to the html page
[12:12:12] ia9371: just a simple ruby on rails view
[12:12:40] Mia: has joined #RubyOnRails
[12:12:53] ia9371: ruby view
[12:12:56] ia9371: rube send
[12:12:59] srinidhi: has joined #RubyOnRails
[12:13:21] ia9371: ruby . * /
[12:14:30] jhass: what did you try so far?
[12:14:54] ia9371: ruby take my data
[12:15:41] ia9371: and make it into a working a class
[12:17:39] quazimodo: has joined #RubyOnRails
[12:17:54] jhass: you don't make a whole lot of sense tbh
[12:18:21] ia9371: im just not really a fan of ruby on rails view
[12:18:31] ia9371: the question again
[12:18:40] ia9371: why should i sit in my room for months on end
[12:18:47] ia9371: trying to learn the Ruby Way?
[12:19:17] jhass: if it takes you months, you shouldn't. That's the whole point.
[12:21:02] jhass: also don't confuse ruby for ruby on rails
[12:21:13] jhass: rails is a webframework written in Ruby, it is not ruby
[12:22:02] quazimod1: has joined #RubyOnRails
[12:22:04] jhass: anyway, even if you decide to ditch rails, if you want to become a programmer you should learn the MVC pattern and why a view doesn't send anything to a database
[12:29:40] bzb: has joined #RubyOnRails
[12:38:33] ia9371: oh .. a view doesnt send anythin to the database
[12:38:49] PotatoChipz: has joined #RubyOnRails
[12:38:56] ia9371: ok i will put that in mu notez
[12:39:17] Dimik--: has joined #RubyOnRails
[12:41:52] ia9371: i may be confused
[12:42:06] ia9371: but that it what a view does
[12:42:22] doodlehaus: has joined #RubyOnRails
[12:42:42] ia9371: ok so a view has nothing to do with a database
[12:43:22] ia9371: but it is the one way to communicate with a db
[12:43:34] jhass: there's a concept in most RDBMSes called view, but that has nothing to do with the MVC view
[12:43:48] jhass: in MVC the model communicates with the DB
[12:43:50] ia9371: a view is the one thing that communicates to the db
[12:43:57] jhass: are you trying to troll?
[12:44:13] DoubleMalt: has joined #RubyOnRails
[12:44:35] ia9371: the models are the database
[12:44:52] ia9371: the view communicares
[12:45:00] roshanavand: has joined #RubyOnRails
[12:45:09] jhass: okay, bad trolling attempt
[12:45:13] jhass: gonna ignore you now I gues
[12:45:18] ia9371: the view communicates controller to the model
[12:46:06] ia9371: the view is the ruby programming lanuage
[12:46:21] ia9371: communicating between the database and the html
[12:46:49] ia9371: the view is the ruby programming language
[12:47:01] ia9371: communicating with the htnl
[12:47:41] ia9371: to say something like the view is not a ruby programming language is is completeley incoreect
[12:48:25] jhass: it's a nice sunday, go and do something productive, take a nice walk or so
[12:48:56] ia9371: the view is like the only ruby language that comunicates from the database to the fronted
[12:49:00] Papierkorb: Thanks for the chuckle. Now back to something productive.
[12:49:28] ia9371: the view is like the only thing that commmuncates with the datatbase and the html
[12:49:48] Papierkorb: You could've incorporated parts of the "Let me interrupt you for a second" speech of RMS though, so I'll give you 3/7 points for this one.
[12:49:59] jhass: enough of that
[12:51:14] jhass: oh well, of course nobody ever cleans this one up either
[12:52:42] ia9371: the models are the db
[12:52:56] yuniorFromCuba: can anyone help me with my second problem
[12:53:00] ia9371: the views controll the ruby code
[12:53:10] ia9371: and the controller it html
[12:53:12] yuniorFromCuba: i'm trying to deploy with git hooks
[12:53:38] yuniorFromCuba: and the script can not execuse bundle and rake
[12:54:21] Papierkorb: yuniorFromCuba: install bundle and rake for the user the git hook runs as
[12:54:53] Papierkorb: yuniorFromCuba: and/or make sure, that if you installed those system-wide, that they're in the $PATH of the git hook user as well
[12:55:50] harfangk: has joined #RubyOnRails
[12:56:07] yuniorFromCuba: i'm using rbenv Papierkorb
[12:56:32] jhass: -qqqq Guest_94857!*@* *!*@ruby/staff/smathy *!*@2605:e000:3011:4d00:f01c:70f9:edad:3c66 *!*@unaffiliated/lightt
[12:56:34] jhass: -qqqq *!*@gateway/web/cgi-irc/kiwiirc.com/ip.119.159.66.98 *!*@unaffiliated/rockhardstar *!*@187.38.33.195 *!*@gateway/web/freenode/ip.194.66.175.89
[12:56:36] jhass: -qqqq *!*@216.207.42.134 *!*@67.213.25.150 *!*@cpe-184-58-9-98.woh.res.rr.com *!*@192.99.217.2
[12:56:38] jhass: -qqqq *!*@2601:18f:300:47d2:26fd:52ff:fe23:8d0 *!*@2601:18f:300:47d2:26fd:52ff:fe23:8d04 *!*@gateway/web/freenode/ip.146.185.31.221 *!*@pool-173-63-161-177.nwrknj.fios.verizon.net
[12:56:40] jhass: -qqo *!*@gateway/web/cgi-irc/kiwiirc.com/ip.162.252.83.185 *!*@218.24.88.126 jhass
[12:57:45] Papierkorb: yuniorFromCuba: what's the command you're running that fails, including the complete error message you're getting?
[13:00:15] jhass: -bbbb *!*@187.38.33.195 *!*@*knows.you.stole-my.pw *!*@*109.201.154.212 *!*@*200.79.251.35
[13:00:17] jhass: -bbbb *!*@gateway/web/freenode/ip.50.47.81.172 *!*@93.114.45.133 *!*@187.153.59.178 *!*@gateway/web/irccloud.com/x-iabzwrutnxuxjlqg
[13:00:19] jhass: -bbbb *!*@cpe-75-82-223-204.socal.res.rr.com *!*@96.232.23.191 *!*@14.156.147.16 *!*@teweco-a1.cust.sloane.cz
[13:00:21] jhass: -bbo *!*@*14.156.122.19 *!*@c-67-190-40-55.hsd1.co.comcast.net jhass
[13:00:40] differentreality: has joined #RubyOnRails
[13:00:44] yuniorFromCuba: when i push to my server (AWS by the way) i have there a post-receive script
[13:01:02] yuniorFromCuba: but i have installed rbenv
[13:01:22] Papierkorb: ... so what's the issue now?
[13:01:23] yuniorFromCuba: maybe that's why the script can not find the bundle command
[13:01:25] xall: has joined #RubyOnRails
[13:01:32] jhass: -bbbb *!*@banan.olf.sgsnet.se *!*@*198.7.58.96 *!*@gateway/web/freenode/ip.50.47.83.14 *!*@ip98-163-242-143.no.no.cox.net
[13:01:34] jhass: -bbbb *!*@37.130.224.21 *!*@*112.199.40.107 *!*@75.Red-79-145-0.dynamicIP.rima-tde.net *!*@37.247.49.224
[13:01:36] jhass: -bbbb *!*@gateway/web/freenode/ip.204.93.60.55 *!*@199-255-210-78.anchorfree.com *!*@*46.246.21.85 *!*@176.255.3.35
[13:01:38] jhass: -bbbb *!*@110-174-10-23.static.tpgi.com.au *!*@095-097-040-059.static.chello.nl *!*@117.117.230.47 *!*@175.19.43.5.rev.vodafone.pt
[13:01:40] jhass: -bbbb *!*@bali.pmcbali.com *!*@gateway/web/freenode/ip.50.47.92.27 *!*@gateway/web/freenode/ip.50.47.86.137 *!*@112.145.29.151
[13:01:42] jhass: -bbo *!*@50-0-145-228.dsl.static.sonic.net *!*02dc2bc0@*.2.220.43.192 jhass
[13:01:53] AndrewIsHere: has joined #RubyOnRails
[13:02:01] jhass: -bbbb *!*@gateway/web/freenode/ip.2.220.43.192 *!*@120.142.190.2 *!*@222.127.245.135 *!*@177.237.48.144
[13:02:03] jhass: -bbbb *!*@213.143.51.38 *!*@213.143.60.149 *!~cleres@84.78.18.51 *!*@84.78.23.146
[13:02:05] jhass: -bbbb *!*@213.143.61.124 *!*@84.78.24.247 *!~magunba@84.78.24.117 *!~magunba@84.78.23.156
[13:02:07] jhass: -bbbb *!*@213.143.60.139 *!*@122.155.138.106 *!*@110.76.147.33 *!~kniccle@121.127.12.242
[13:02:09] jhass: -bbbb *!~ali@115.167.66.222 *!*@15.Red-79-159-88.dynamicIP.rima-tde.net *!*@pool-173-63-161-177.nwrknj.fios.verizon.net *!*@172.56.30.93
[13:02:11] jhass: -bbbo *!~andy@cpc19-sutt4-2-0-cust102.19-1.cable.virginm.net *!*@gateway/web/irccloud.com/x-xewusjnxudblkqoh *!*@162.216.46.75 jhass
[13:02:47] Papierkorb: yuniorFromCuba: make sure to execute bundle/rake commands in a rbenv-enabled context. If your script is a bash script, you could probably just source the rbenv script or however rbenv exactly works
[13:03:22] yuniorFromCuba: let me see what i can do Papierkorb thanks
[13:05:56] jtong: has joined #RubyOnRails
[13:10:41] benlieb: has joined #RubyOnRails
[13:14:52] claypo: has joined #RubyOnRails
[13:20:35] ia9371: <jhass> anyway, even if you decide to ditch rails, if you want to become a programmer you should learn the MVC pattern and why a view doesn't send anything to a database
[13:20:55] ia9371: so a view has nothing to do with a database?
[13:21:12] ia9371: but it is the only thing that communicates with a database
[13:21:42] jhass: +q-o *!*@pool-74-98-166-154.nrflva.fios.verizon.net jhass
[13:21:47] jhass: there, I fixed it
[13:23:25] ia9371: has left #RubyOnRails: ()
[13:23:31] ia9371: has joined #RubyOnRails
[13:24:08] ia9371: has left #RubyOnRails: ()
[13:24:51] ia9371: has joined #RubyOnRails
[13:25:25] drptbl: has joined #RubyOnRails
[13:28:32] kh0d: has joined #RubyOnRails
[13:28:49] isberg: has joined #RubyOnRails
[13:36:14] l4v2: has joined #RubyOnRails
[13:37:39] ElFerna: has joined #RubyOnRails
[13:40:06] harfangk: has joined #RubyOnRails
[13:42:14] rogue_koder: has joined #RubyOnRails
[13:46:43] diegoviola: has joined #RubyOnRails
[13:52:04] rizenine: has joined #RubyOnRails
[13:53:44] pawnbox: has joined #RubyOnRails
[13:56:53] xall: has joined #RubyOnRails
[13:57:22] pawnbox: has joined #RubyOnRails
[13:59:09] xlegoman: has joined #RubyOnRails
[14:00:06] differentreality: has joined #RubyOnRails
[14:03:52] flashpoint9: has joined #RubyOnRails
[14:04:26] crystal77: has joined #RubyOnRails
[14:07:22] jtong: has joined #RubyOnRails
[14:11:23] HalcyonicStorm: has joined #RubyOnRails
[14:17:14] fmcgeough: has joined #RubyOnRails
[14:18:58] MAXIMUS: has joined #RubyOnRails
[14:23:43] Revolutioner__: has joined #RubyOnRails
[14:24:57] Revolutioner__: سمَـَّوُوُحخ ̷̴̐خ ̷̴̐خ ̷̴̐خ امارتيخ ̷̴̐خ
[14:28:59] doodlehaus: has joined #RubyOnRails
[14:30:14] rizenine: has joined #RubyOnRails
[14:31:27] Robtop__: horray, finally set up a production environment outside of heroku
[14:35:11] ekinmur: has joined #RubyOnRails
[14:37:14] srinidhi: has joined #RubyOnRails
[14:39:26] doublemalt_: has joined #RubyOnRails
[14:40:31] doodlehaus: has joined #RubyOnRails
[14:42:24] crystal77: has joined #RubyOnRails
[14:48:49] flashpoint9: has joined #RubyOnRails
[14:51:01] xall: has joined #RubyOnRails
[14:52:08] benlieb: has joined #RubyOnRails
[14:53:21] Oliphaunte: has joined #RubyOnRails
[14:54:58] flashpoint9: has joined #RubyOnRails
[14:56:06] pawnbox: has joined #RubyOnRails
[14:56:42] Oliphaunte: has joined #RubyOnRails
[14:57:39] apotry: has joined #RubyOnRails
[14:58:09] pawnbox: has joined #RubyOnRails
[14:59:06] rafaelflores: has joined #RubyOnRails
[15:01:23] Sasha_code: has joined #RubyOnRails
[15:02:18] AndrewIsHere: has joined #RubyOnRails
[15:04:47] adavia: has joined #RubyOnRails
[15:07:26] ur5us: has joined #RubyOnRails
[15:09:19] jtong: has joined #RubyOnRails
[15:11:18] benlieb: has joined #RubyOnRails
[15:12:36] pawnbox: has joined #RubyOnRails
[15:13:10] benlieb: has joined #RubyOnRails
[15:13:44] halcyonicstorm1: has joined #RubyOnRails
[15:16:25] claypo: has joined #RubyOnRails
[15:16:43] lacce: has joined #RubyOnRails
[15:20:13] bronson: has joined #RubyOnRails
[15:25:08] kh0d: has joined #RubyOnRails
[15:29:15] yaw: has joined #RubyOnRails
[15:36:04] srinidhi: has joined #RubyOnRails
[15:36:33] ych: has joined #RubyOnRails
[15:40:01] futilegames: has joined #RubyOnRails
[15:41:59] rafaelflores: has joined #RubyOnRails
[15:42:22] mchelen2: has joined #RubyOnRails
[15:42:34] mchelen2: i'm trying to change the display order of css files in a rails app. any idea where i should look for that?
[15:43:00] jhass: your layout?
[15:43:26] dr_summer: you require the files in a specific order in your manifest
[15:43:32] dr_summer: instead of requiring the whole tree
[15:44:03] l4v2: has joined #RubyOnRails
[15:45:18] xall: has joined #RubyOnRails
[15:47:48] Oliphaunte: has joined #RubyOnRails
[15:48:39] doodlehaus: has joined #RubyOnRails
[15:49:18] mchelen2: ok yeah, the layout currently says: <%= stylesheet_link_tag 'application', media: 'all' %>
[15:50:26] mchelen2: dr_summer: is that the best approach? whats happening is we cant override any of the bootstrap css because its being loaded last
[15:50:54] dr_summer: yeah, that's the best approach
[15:51:12] dr_summer: if you need control over ordering, that's the way to do it
[15:51:21] mchelen2: ok cool, thanks
[15:51:24] mchelen2: let me try that
[15:51:28] dr_summer: you can always require_tree specific sub folders
[15:51:36] dr_summer: if you don't care about the ordering there
[15:52:45] mchelen2: is the current stylesheet_link_tag just loading application.css.scss?
[15:53:12] mchelen2: then in application.css.scss there is a `*= require_tree .` at the top
[15:53:48] jhass: just put your bootstrap require before it?
[15:54:08] futilegames: has joined #RubyOnRails
[15:54:24] mchelen2: yeah i'm thinking that might work
[15:56:03] mchelen2: does this make sense? https://gist.github.com/mchelen/20005fcdb34d0f2168bb146e61ab3d43
[15:56:58] mchelen2: well that didn't work :D
[15:57:12] diegoviola: has joined #RubyOnRails
[15:57:30] mchelen2: oops i'm confusing my imports & require_trees
[15:58:35] diegoviola: has joined #RubyOnRails
[16:01:03] doodlehaus: has joined #RubyOnRails
[16:03:33] dstarh: has joined #RubyOnRails
[16:03:50] mchelen2: that's basically what i need to have happen though, the require_tree needs to go after the @import "bootstrap";
[16:04:27] benlieb: has joined #RubyOnRails
[16:06:36] mchelen2: oh i think i need to use require_self
[16:09:02] joelwallis: has joined #RubyOnRails
[16:10:09] jtong: has joined #RubyOnRails
[16:10:17] mchelen2: yup that worked!
[16:11:40] pontiki: has joined #RubyOnRails
[16:16:02] roamingdog: has joined #RubyOnRails
[16:18:10] kh0d: has joined #RubyOnRails
[16:26:51] banisterfiend: has joined #RubyOnRails
[16:27:05] netzfisch: has joined #RubyOnRails
[16:27:55] draig: has joined #RubyOnRails
[16:28:35] pawnbox: has joined #RubyOnRails
[16:31:48] doodlehaus: has joined #RubyOnRails
[16:36:08] doodlehaus: has joined #RubyOnRails
[16:38:40] dvinciguerra_: has joined #RubyOnRails
[16:39:25] workmad3: has joined #RubyOnRails
[16:39:33] xall: has joined #RubyOnRails
[16:42:44] Oliphaunte: has joined #RubyOnRails
[16:47:41] sumobob: has joined #RubyOnRails
[16:50:21] xall: has joined #RubyOnRails
[16:54:24] moeabdol1: has joined #RubyOnRails
[16:55:27] claypo: has joined #RubyOnRails
[16:56:24] cZk: has joined #RubyOnRails
[17:03:11] arup_r: has joined #RubyOnRails
[17:03:47] doodlehaus: has joined #RubyOnRails
[17:07:01] Amras0000: has joined #RubyOnRails
[17:11:15] wd40s: has joined #RubyOnRails
[17:11:55] jtong: has joined #RubyOnRails
[17:12:56] DoctorMonocular: has joined #RubyOnRails
[17:13:54] marr: has joined #RubyOnRails
[17:21:19] bronson: has joined #RubyOnRails
[17:21:21] andrecastelo: has joined #RubyOnRails
[17:24:18] rickmasta: has joined #RubyOnRails
[17:25:07] AndrewIsHere: has joined #RubyOnRails
[17:26:54] macsteps: has joined #RubyOnRails
[17:29:24] agit0: has joined #RubyOnRails
[17:30:21] claypo: has joined #RubyOnRails
[17:31:37] claypo: has joined #RubyOnRails
[17:31:38] Pazician: has joined #RubyOnRails
[17:31:57] lkx: has joined #RubyOnRails
[17:32:48] netzfisch: has joined #RubyOnRails
[17:43:20] macsteps: has joined #RubyOnRails
[17:46:08] apotry: has joined #RubyOnRails
[17:47:34] wd40s: has joined #RubyOnRails
[17:51:19] codelahoma: has joined #RubyOnRails
[17:55:11] dionysus69: has joined #RubyOnRails
[17:56:05] andrecastelo: guys I'm having a missing secret_key_base problem, but I've made sure that the variable SECRET_KEY_BASE is already exported
[17:56:13] andrecastelo: what could be the issue? this in production
[17:56:23] arup_r: has joined #RubyOnRails
[17:56:42] alfiemax: has joined #RubyOnRails
[18:00:51] k3rn31: has joined #RubyOnRails
[18:02:03] fox_mulder_cp: andrecastelo: export SOME=VALUE; rails c
[18:02:25] yfeldblum: has joined #RubyOnRails
[18:03:32] andrecastelo: fox_mulder_cp: why the rails c ?
[18:04:39] andrecastelo: fox_mulder_cp: same key, but passenger still complains about missing secret_key_base
[18:04:46] andrecastelo: this is a clean rails app btw
[18:07:23] pLaTo0n: has joined #RubyOnRails
[18:07:58] Oliphaunte: has joined #RubyOnRails
[18:08:30] doodlehaus: has joined #RubyOnRails
[18:09:21] bga57: has joined #RubyOnRails
[18:11:43] doublemalt_: has joined #RubyOnRails
[18:13:28] jtong: has joined #RubyOnRails
[18:14:34] DoctorMonocular: has joined #RubyOnRails
[18:16:03] bga57: has joined #RubyOnRails
[18:16:11] yawn: has joined #RubyOnRails
[18:17:04] Dimik: has joined #RubyOnRails
[18:19:16] Mirubiri: has joined #RubyOnRails
[18:19:51] roshanavand: has joined #RubyOnRails
[18:22:50] Axsuul: has joined #RubyOnRails
[18:23:49] Hobogrammer: has joined #RubyOnRails
[18:24:16] Hobogrammer: has joined #RubyOnRails
[18:24:27] rickmasta: has joined #RubyOnRails
[18:26:22] macsteps: has joined #RubyOnRails
[18:27:11] Mirubiri: has joined #RubyOnRails
[18:27:49] netzfisch: has joined #RubyOnRails
[18:28:45] ^5: has joined #RubyOnRails
[18:31:31] superlou: has joined #RubyOnRails
[18:35:17] fox_mulder_cp: somebody knows easy and pretty bootstrap themes, such as adminlte
[18:39:44] WhereIsMySpoon_: has joined #RubyOnRails
[18:42:17] doodlehaus: has joined #RubyOnRails
[18:43:04] Velizar: has joined #RubyOnRails
[18:43:56] differentreality: has joined #RubyOnRails
[18:43:58] _Stimpy: has joined #RubyOnRails
[18:44:21] _Stimpy: is there a way to limit the number of entries that can be made into a table, on the database level?
[18:44:37] AndrewIsHere: has joined #RubyOnRails
[18:45:09] fox_mulder_cp: _Stimpy: sql 'select * from table limit $units;'
[18:45:26] fox_mulder_cp: or see your DB manual
[18:45:50] fox_mulder_cp: _Stimpy: in controllers and views pagination used
[18:46:43] _Stimpy: for example if i have a classroom with only 20 seats, how would i get the limitation that only 20 people can be inserted into the that particular classroom
[18:46:47] _Stimpy: am i thinking wrong
[18:48:21] fox_mulder_cp: _Stimpy: Validations, as example
[18:48:59] fox_mulder_cp: scopes, and pundit policying
[18:49:40] _Stimpy: fox_mulder_cp: will look into it, thanks!
[18:49:53] fox_mulder_cp: as example - block 'new seat' when seat.count =>20
[18:50:14] _Stimpy: fox_mulder_cp: exactly what i mean
[18:50:43] fox_mulder_cp: _Stimpy: try use Pundit, with it auth mechanisms
[18:51:11] _Stimpy: fox_mulder_cp: ok
[18:51:29] fox_mulder_cp: <%= if policy(Seat).new? %><%= link_to new_seat_path %><% end %> ))
[18:52:17] rickmasta: has joined #RubyOnRails
[18:52:22] roamingdog: has joined #RubyOnRails
[18:52:50] xall: has joined #RubyOnRails
[18:56:37] xall: has joined #RubyOnRails
[18:56:41] cydrobolt: has joined #RubyOnRails
[18:56:41] cydrobolt: has joined #RubyOnRails
[18:56:52] futilegames: has joined #RubyOnRails
[19:00:00] ekinmur: has joined #RubyOnRails
[19:11:20] Oliphaunte: has joined #RubyOnRails
[19:13:24] bob_f: has joined #RubyOnRails
[19:13:24] DefV: has joined #RubyOnRails
[19:13:25] Depili: has joined #RubyOnRails
[19:13:25] gavit: has joined #RubyOnRails
[19:13:25] Papierkorb: has joined #RubyOnRails
[19:13:25] reaVer: has joined #RubyOnRails
[19:13:28] dustinm`: has joined #RubyOnRails
[19:13:32] gregf_: has joined #RubyOnRails
[19:13:32] Paradox: has joined #RubyOnRails
[19:13:32] elaptics`away: has joined #RubyOnRails
[19:13:32] \13k: has joined #RubyOnRails
[19:13:36] guacamole: has joined #RubyOnRails
[19:13:36] joeytwiddle: has joined #RubyOnRails
[19:13:36] samuelkadolph: has joined #RubyOnRails
[19:13:40] gremly: has joined #RubyOnRails
[19:13:40] tris: has joined #RubyOnRails
[19:13:41] Mia: has joined #RubyOnRails
[19:13:41] Mia: has joined #RubyOnRails
[19:13:41] adavia: has joined #RubyOnRails
[19:13:42] MEATCHICKEN: has joined #RubyOnRails
[19:13:43] xybre: has joined #RubyOnRails
[19:13:43] daffy_duck: has joined #RubyOnRails
[19:13:48] maxmanders: has joined #RubyOnRails
[19:13:56] Thai_: has joined #RubyOnRails
[19:13:57] djinni`: has joined #RubyOnRails
[19:14:23] ereslibre: has joined #RubyOnRails
[19:14:25] knight_: has joined #RubyOnRails
[19:14:30] KnownSyntax: has joined #RubyOnRails
[19:14:30] KnownSyntax: has joined #RubyOnRails
[19:14:53] jtong: has joined #RubyOnRails
[19:15:18] zel: has joined #RubyOnRails
[19:15:29] bool_: has joined #RubyOnRails
[19:15:49] dalbuschat: has joined #RubyOnRails
[19:16:09] Nuck: has joined #RubyOnRails
[19:16:13] benlieb: has joined #RubyOnRails
[19:17:06] arup_r: has joined #RubyOnRails
[19:22:50] flashpoint9: has joined #RubyOnRails
[19:23:38] hahuang65: has joined #RubyOnRails
[19:28:08] Jasaka: has joined #RubyOnRails
[19:28:42] sypheren: has joined #RubyOnRails
[19:29:24] flashpoint9: has joined #RubyOnRails
[19:36:39] GnuYawk: has joined #RubyOnRails
[19:39:00] GnuYawk: has left #RubyOnRails: ()
[19:39:43] GnuYawk: has joined #RubyOnRails
[19:40:49] pawnbox: has joined #RubyOnRails
[19:40:54] moeabdol1: has joined #RubyOnRails
[19:41:01] wd40s: has joined #RubyOnRails
[19:41:24] Amras0000: Er...no idea what's going on here
[19:41:46] Amras0000: MyModel.all.find_each do |c| works fine, right
[19:41:50] User458764: has joined #RubyOnRails
[19:41:54] reber: has joined #RubyOnRails
[19:41:59] Amras0000: MyModel.where().find_each do |c| doesn't
[19:42:09] arup_r: any error?
[19:42:17] Amras0000: unsupported: TrueClass
[19:42:29] User458764: has joined #RubyOnRails
[19:42:32] arup_r: !gist the code and error
[19:42:32] helpa: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
[19:42:43] Amras0000: actually, it might be an issue with my where
[19:42:56] arup_r: come back soon please!
[19:43:12] Amras0000: ok yeah, looks like I had garbage code in the where
[19:43:58] User458764: has joined #RubyOnRails
[19:44:40] Amras0000: speaking of which, how would I say MyModel.where(:items.size > 0) ?
[19:44:52] User458764: has joined #RubyOnRails
[19:45:07] Leepoff: has joined #RubyOnRails
[19:45:10] Amras0000: checking if there are any Items which reference MyModel, basically
[19:45:33] doodlehaus: has joined #RubyOnRails
[19:45:42] GnuYawk: has left #RubyOnRails: ()
[19:45:48] crystal77: has joined #RubyOnRails
[19:45:57] GnuYawk: has joined #RubyOnRails
[19:46:15] arup_r: MyModel.where("items.size > ?", 0)
[19:47:09] Amras0000: where items isn't a column in my db
[19:47:57] Amras0000: I'd like to know of all the MyModels for which an Item exists where Item.my_model_id is their id
[19:48:01] arup_r: Amras0000: ok, so you have to say very specifically
[19:48:01] Coldblackice: has joined #RubyOnRails
[19:48:27] arup_r: please put now actual code in place. vague is not helping anymore
[19:49:59] naftilos76: has joined #RubyOnRails
[19:51:39] AndrewIsHere: has joined #RubyOnRails
[19:53:35] Amras0000: http://pastebin.com/f93ieKV9 fair enough
[19:53:58] moeabdol2: has joined #RubyOnRails
[19:54:18] Amras0000: https://gist.github.com/anonymous/f9a2c82b2e6ee8d2b49cb3608c9f428f
[19:54:54] Amras0000: I mean, I could write out the sql for that, was just hoping there was a cleaner railsy solution
[19:54:57] futilegames: has joined #RubyOnRails
[19:55:34] Amras0000: oh, I can't edit that. Should be "do |c|" not 'do "c"' of course
[19:56:48] ur5us: has joined #RubyOnRails
[19:58:55] futilegames: has left #RubyOnRails: ()
[19:59:01] moeabdol3: has joined #RubyOnRails
[19:59:21] dionysus69: has joined #RubyOnRails
[20:03:16] Amras0000: aight, found the solution after some smarter googling
[20:03:29] Amras0000: apparently the answer was .joins
[20:03:34] Amras0000: will have to look into that
[20:06:51] Oliphaunte: has joined #RubyOnRails
[20:08:38] leea: has joined #RubyOnRails
[20:10:28] solars: has joined #RubyOnRails
[20:11:02] doodlehaus: has joined #RubyOnRails
[20:11:42] edwinvdgraaf: has joined #RubyOnRails
[20:16:25] jtong: has joined #RubyOnRails
[20:19:44] ekinmur: has joined #RubyOnRails
[20:26:24] roamingdog: has joined #RubyOnRails
[20:31:22] ur5us: has joined #RubyOnRails
[20:32:59] Mirubiri: has joined #RubyOnRails
[20:42:09] monoprotic: has joined #RubyOnRails
[20:42:09] monoprotic: has joined #RubyOnRails
[20:44:43] SuppliedRelic: has left #RubyOnRails: ()
[20:47:45] Cohedrin: has joined #RubyOnRails
[20:48:52] rafaelflores: has joined #RubyOnRails
[20:56:56] Markhor1991: has joined #RubyOnRails
[20:57:58] rafaelflores: has joined #RubyOnRails
[21:01:13] kevr: has joined #RubyOnRails
[21:02:17] doodlehaus: has joined #RubyOnRails
[21:03:48] sumobob: has joined #RubyOnRails
[21:04:41] GnuYawk: has joined #RubyOnRails
[21:05:28] jheathco: has joined #RubyOnRails
[21:10:29] rafaelflores: has joined #RubyOnRails
[21:12:27] Radar: GOOD MORNING
[21:12:40] Papierkorb: OOOHHHAAAYYOOOO
[21:13:58] lkx: Good evening all
[21:14:58] rakm: has joined #RubyOnRails
[21:15:45] AdamM7: has joined #RubyOnRails
[21:17:59] xall: has joined #RubyOnRails
[21:19:04] kevr: What's wrong with this? http://ix.io/14Oj/ruby
[21:19:23] kevr: where params[:query] is "signed_in"
[21:19:55] yaw: has joined #RubyOnRails
[21:20:58] rafaelflores: has joined #RubyOnRails
[21:21:05] jtong: has joined #RubyOnRails
[21:28:31] rafaelflores: has joined #RubyOnRails
[21:29:37] zacts: has joined #RubyOnRails
[21:34:39] Radar: params.require(:query)
[21:34:40] Radar: Seems strange
[21:35:57] Radar: I thought that was only used for hashes.
[21:36:04] Radar: well, where the key points to a hash
[21:39:32] Anchoaman: has joined #RubyOnRails
[21:39:59] DevMagpie: has joined #RubyOnRails
[21:40:30] Oliphaunte: has joined #RubyOnRails
[21:40:55] oystersauce8: has joined #RubyOnRails
[21:43:18] roamingdog: has joined #RubyOnRails
[21:44:47] cleopatra: has joined #RubyOnRails
[21:48:21] _Stimpy: has left #RubyOnRails: ()
[21:49:24] rafaelflores: has joined #RubyOnRails
[21:49:39] meoblast001: has joined #RubyOnRails
[21:50:52] mozzarella: has joined #RubyOnRails
[21:51:00] rafaelflores: has joined #RubyOnRails
[21:51:41] siaW: has joined #RubyOnRails
[21:52:18] apotry: has joined #RubyOnRails
[21:55:16] flashpoint9: has joined #RubyOnRails
[21:55:49] alfiemax: has joined #RubyOnRails
[21:57:47] nettoweb: has joined #RubyOnRails
[22:03:52] crystal77: has joined #RubyOnRails
[22:04:10] cd-rum: has joined #RubyOnRails
[22:04:24] mchelen2: has left #RubyOnRails: ()
[22:09:48] doodlehaus: has joined #RubyOnRails
[22:12:18] xall: has joined #RubyOnRails
[22:15:15] flashpoint9: has joined #RubyOnRails
[22:17:16] deur-_: has joined #RubyOnRails
[22:17:44] Cohedrin: has joined #RubyOnRails
[22:21:17] siaW: has left #RubyOnRails: ()
[22:21:55] jtong: has joined #RubyOnRails
[22:23:31] rickmasta: has joined #RubyOnRails
[22:31:24] chipotle: has joined #RubyOnRails
[22:34:38] dvinciguerra_: has joined #RubyOnRails
[22:43:50] kevr: has joined #RubyOnRails
[22:44:29] dgynn_: has joined #RubyOnRails
[22:45:51] rickmasta: has joined #RubyOnRails
[22:49:41] doodlehaus: has joined #RubyOnRails
[22:52:24] solars: has joined #RubyOnRails
[22:54:56] Oliphaunte: has joined #RubyOnRails
[22:55:21] EXCHGR: has joined #RubyOnRails
[22:58:04] Oliphaunte: has joined #RubyOnRails
[23:05:47] yfeldblum: has joined #RubyOnRails
[23:06:26] xall: has joined #RubyOnRails
[23:06:52] Axsuul: has joined #RubyOnRails
[23:08:36] wethu: has joined #RubyOnRails
[23:10:09] rafaelflores: has joined #RubyOnRails
[23:14:22] Oliphaunte: has joined #RubyOnRails
[23:15:43] baash05: has joined #RubyOnRails
[23:16:08] baash05: Good morning all :)
[23:16:11] kevr: morning homie
[23:18:04] baash05: I'm trying to figure out a funny rspec error.. No route matches... PITA I tell ya
[23:19:52] crystal77: has joined #RubyOnRails
[23:20:21] roamingdog: has joined #RubyOnRails
[23:23:21] jtong: has joined #RubyOnRails
[23:23:24] fryguy: baash05: show test and show `rake routes`
[23:24:05] bronson: has joined #RubyOnRails
[23:28:45] GnuYawk: has joined #RubyOnRails
[23:29:17] crystal77: has joined #RubyOnRails
[23:30:06] baash05: fryguy: I think that was enough..
[23:30:36] baash05: The route (while clearly in my routes.rb) is not in the routes.txt I produced.
[23:30:40] baash05: Interesting.
[23:35:30] quazimodo: has joined #RubyOnRails
[23:35:31] quazimod1: has joined #RubyOnRails
[23:36:42] xall: has joined #RubyOnRails
[23:39:48] one_zero: has joined #RubyOnRails
[23:41:39] baash05: No route matches {:action=>"accept_cancel", :controller=>"api/v2/tasks", :id=>"1"}
[23:41:40] baash05: accept_cancel_api_v2_task PUT /api/v2/tasks/:id/accept_cancel(.:format) api/v2/tasks/cancellations_controller#accept_cancel
[23:42:45] baash05: does that seem wrong?
[23:42:51] fryguy: baash05: show the test and show `rake routes`
[23:45:35] rickmasta: has joined #RubyOnRails
[23:46:29] leea: has joined #RubyOnRails
[23:46:43] roamingdog: has joined #RubyOnRails
[23:47:39] GnuYawk: has joined #RubyOnRails
[23:47:45] baash05: https://gist.github.com/baash05/f7fb8a048ef634b06f62f6b56f35714e
[23:47:57] kevr: has joined #RubyOnRails
[23:48:07] banisterfiend: has joined #RubyOnRails
[23:48:46] baash05: fryguy: There's my gist.
[23:49:10] fryguy: baash05: your route is pointing to the tasks/cancellations controller, not the tasks controller
[23:49:57] baash05: The problem is I want to still pass old tests, but I need to move cancellation to it's own controller.. (they've expanded functionality)
[23:50:30] baash05: I suppose I can't do that in controller test can I :(
[23:50:49] GnuYawk: has joined #RubyOnRails
[23:50:54] baash05: I'll have to move them to feature tests.
[23:52:09] baash05: I don't like moving large amounts of tests when I'm changing supporting code.
[23:52:31] flashpoint9: has joined #RubyOnRails
[23:53:42] doodlehaus: has joined #RubyOnRails
[23:55:03] dalbusch1t: has joined #RubyOnRails
[23:55:08] flashpoint9: has joined #RubyOnRails
[23:55:17] barhum2013: has joined #RubyOnRails