« Back to channel list

#RubyOnRails - 15 November 2015

« Back 1 day Forward 1 day »
[00:00:10] dmarr: but i bet there is a solution
[00:00:50] matthewd: Can you add a blob column, then UPDATE SET myblob = BINARY mytextthatactuallycontainsbinarydata ?
[00:02:18] towski_: has joined #RubyOnRails
[00:03:58] cashnguns: has joined #RubyOnRails
[00:04:48] owenjones: has joined #RubyOnRails
[00:05:14] mwlang: just saw something really odd. Set up a Rails 4.2 + Passenger + Nginx on HTTPS. Hit the root page of the Rails app just fine, but couldn???t hit any of the other routes. Got 404 and nothing was showing up in the production.log file to even indicate the request was passed from nginx to rails. Browser refresh, nginx restarts, etc. did not change anything. Then I stopped nginx, refreshed browser and got connection failed. Then I start
[00:05:15] mwlang: nginx back and refreshed browser and now everything???s working like a charm.
[00:05:19] djbkd: has joined #RubyOnRails
[00:05:22] mwlang: what gives?
[00:05:41] mwlang: I???ve never seen a home page load, yet no other pages on the site load before.
[00:06:14] mwlang: maybe Ubuntu 15 and Nginx 1.8 still have some wrinkles to iron out?
[00:07:07] dmarr: matthewd: giving that a shot
[00:07:26] dmarr: thinking that paperclip is getting more optionable
[00:07:46] dmarr: as that takes care of the generator for that model/schema right?
[00:07:48] pydave6367: has joined #RubyOnRails
[00:08:05] dmarr: like whats the syntax for just creating a field/table with a binary column?
[00:09:06] annlewis: has joined #RubyOnRails
[00:10:32] matthewd: In a migration? t.binary
[00:10:56] techandy1: has joined #RubyOnRails
[00:11:04] techandy1: Hi everybody
[00:11:23] techandy1: I am having an issue on a friends computer installing ruby on rails
[00:11:59] doodlehaus: has joined #RubyOnRails
[00:12:19] mwlang: techandy1: reformat the HD and reinstall the OS. :-)
[00:12:45] jhass: reinstall a better OS rather
[00:12:54] techandy1: I am following this guide http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you// but when I get to compiling ossl_ssl.c this shits itself?
[00:13:06] jhass: ah, ubuntu 15.10 I guess?
[00:13:20] techandy1: mwlang unless your going to be helpful don't talk
[00:13:29] techandy1: linux mint 17.2
[00:13:36] fryguy: techandy1: show a log
[00:13:46] mwlang: jhass: yes on both counts
[00:14:25] jhass: d'uh, somebody knows if ruby-install has a patch option?
[00:14:30] chipotle: has joined #RubyOnRails
[00:15:45] jhass: techandy1: please still confirm the real error, but my bet so far is that ruby-install -p wget https://github.com/ruby/ruby/commit/801e1fe46d83c856844ba18ae4751478c59af0d1.diff ruby 2.2.3 will fix it
[00:15:53] jhass: er, sans the wget
[00:17:23] dmarr: matthewd: when I try to update the BLOB field -> [UPDATE - 0 row(s), 0.003 secs] [Error Code: 1406, SQL State: 22001] Data truncation: Data too long for column 'pic' at row 1
[00:17:28] techandy1: I am following http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you// guide. I haven't had issues with it before today. But when I run ruby-install ruby 2.2.3 it compiles until it goes to "compiling ossl_ssl.c ?
[00:17:37] dmarr: That was using the statement: UPDATE attachment SET pic = BINARY filedata;
[00:17:55] fryguy: techandy1: again. show a lot.
[00:18:10] jhass: techandy1: why are you repeating your question with open follow ups and things to try pending?
[00:18:12] matthewd: dmarr: That.. sounds like an error you can solve.
[00:18:29] techandy1: ossl_ssl.c:141:27: error: 'SSLv3_method' undeclared here (not in a function) ......
[00:18:56] fryguy: techandy1: the full log
[00:19:11] jhass: techandy1: see above
[00:19:21] jhass: you need that patch
[00:19:33] rgrmatt: has joined #RubyOnRails
[00:20:12] dmarr: matthewd: the MEDIUMTEXT column I am pulling from is 16777215
[00:20:22] dmarr: the BLOB that was created is 65535
[00:20:57] trosborn: has joined #RubyOnRails
[00:21:26] jhass: dmarr: t.binary :foo, limit: nnnn
[00:21:33] Scripore: has joined #RubyOnRails
[00:21:44] dmarr: I used add_column :attachment, :pic, :binary
[00:21:58] dmarr: not sure how to convert the syntax you just suggested
[00:21:59] jhass: add limit: there then, that works too
[00:22:18] techandy1: Here is my log: http://pastebin.com/fUrYRjwx
[00:22:30] jhass: techandy1: why are you ignoring me?
[00:23:16] techandy1: i'm doing the log for you jhass
[00:23:22] Intii: has joined #RubyOnRails
[00:23:40] jhass: as said ruby-install -p https://github.com/ruby/ruby/commit/801e1fe46d83c856844ba18ae4751478c59af0d1.diff ruby 2.2.3 should fix it
[00:24:15] Intii: Hi all! If I'm using the Apartment gem for multi-tenancy (which by default creates a new schema in PSQL for each tenant), what would be the best way to create a administration panel to oversee the whole app?
[00:24:45] dmarr: matthewd: heck yeah that worked
[00:24:53] dmarr: jhass: ++
[00:26:45] techandy1: Here is my problem: http://pastie.org/10557425
[00:26:46] smathy: has joined #RubyOnRails
[00:28:13] Jasaka: has joined #RubyOnRails
[00:28:26] jhass: Radar: might want to update your debian based distro guides with applying https://github.com/ruby/ruby/commit/801e1fe46d83c856844ba18ae4751478c59af0d1.diff as patch, since they started to disable sslv3 in the latest openssl package apparently
[00:28:41] rgrmatt: has joined #RubyOnRails
[00:30:57] dideler: has joined #RubyOnRails
[00:37:33] Megamos: has joined #RubyOnRails
[00:37:43] mary5030: has joined #RubyOnRails
[00:37:52] techandy1: how can I fix my issue?
[00:40:25] benlieb: has joined #RubyOnRails
[00:41:04] rickmasta: has joined #RubyOnRails
[00:41:04] matthewd: Intii: That seems rather anathema to such strictly separated multi-tenancy, to me
[00:44:49] jhass: techandy1: I already suggested something, twice
[00:45:12] Intii: matthewd: What would you recommend?
[00:47:03] matthewd: Intii: I don't know what forces pushed to towards Apartment to begin with... it's always seemed to me like something one would only consider (or even find / know exists) with some form of regulatory requirement
[00:47:04] renews: has joined #RubyOnRails
[00:47:29] Intii: I don't have to use Apartment at all. If there is an alternative, I'm willing to look into it
[00:49:52] Haydos_: has left #RubyOnRails: ()
[00:50:48] Intii: Do you have any recommendations?
[00:51:25] matthewd: An object with associations to the other objects ??\_(???)_/??
[00:53:07] njero: has joined #RubyOnRails
[00:54:45] pimpin: has joined #RubyOnRails
[00:57:49] techandy1: @jhass, what was your suggestion? I was away from keyboard
[00:58:06] jhass: as said ruby-install -p https://github.com/ruby/ruby/commit/801e1fe46d83c856844ba18ae4751478c59af0d1.diff ruby 2.2.3 should fix it
[01:04:02] IrishGringo: has joined #RubyOnRails
[01:05:05] yoongkang: has joined #RubyOnRails
[01:07:32] techandy1: @jhass, thank you for your help. I am running that command now.
[01:09:52] iamse7en: has joined #RubyOnRails
[01:10:15] annlewis: has joined #RubyOnRails
[01:11:26] asianMike: has joined #RubyOnRails
[01:17:51] owenjones: has joined #RubyOnRails
[01:20:10] rgtk: has joined #RubyOnRails
[01:21:46] bruno-: has joined #RubyOnRails
[01:23:13] bruce_lee: has joined #RubyOnRails
[01:23:43] ruid: has joined #RubyOnRails
[01:26:09] chipotle: has joined #RubyOnRails
[01:27:14] tuelz: has joined #RubyOnRails
[01:28:41] roxtrongo: has joined #RubyOnRails
[01:29:31] one_zero: has joined #RubyOnRails
[01:29:36] seank_: has joined #RubyOnRails
[01:30:54] AntiSpamMeta: has joined #RubyOnRails
[01:31:30] Pazician: has joined #RubyOnRails
[01:32:43] Kedare: has joined #RubyOnRails
[01:35:58] beingjohnm: I need the user to be able to upload an image (associated with a record) and have it resized and then both the original and the resized version be uplaaded to S3. Seems like there are a lot of ways to do that but wanted to see if anybody had any pointers
[01:36:26] shibabu: has joined #RubyOnRails
[01:39:08] framling: has joined #RubyOnRails
[01:39:13] asianMike: has joined #RubyOnRails
[01:40:41] htmldrum: has joined #RubyOnRails
[01:41:19] Haydos: has joined #RubyOnRails
[01:49:27] vedu: has joined #RubyOnRails
[01:56:31] tuelz: has joined #RubyOnRails
[01:58:57] benlieb: has joined #RubyOnRails
[02:01:31] TheMonster: has joined #RubyOnRails
[02:05:29] alfie_max15: has joined #RubyOnRails
[02:07:46] Tref: has joined #RubyOnRails
[02:09:31] FailBit: has joined #RubyOnRails
[02:10:23] FailBit: https://i.imgur.com/xetR1mm.png
[02:10:38] FailBit: ITT we get faster when more people access
[02:10:47] alfie_max15: has left #RubyOnRails: ("Ex-Chat")
[02:11:02] annlewis: has joined #RubyOnRails
[02:15:37] _3by8: has joined #RubyOnRails
[02:17:14] _3by8: new_resource_path(id) doesn't seem to work. That normal or am I missing something?
[02:18:06] sankaber: has joined #RubyOnRails
[02:18:38] gambl0re: has joined #RubyOnRails
[02:19:03] FailBit: well, because new_ paths don't expect to be passed a resource
[02:19:10] FailBit: they are going to build one
[02:19:19] _3by8: That's what I thought.
[02:19:40] _3by8: How can I pass a parameter? Isn't there some sort of a hash I can pass to link_to?
[02:20:25] FailBit: foo_bar_path(param_name: value)
[02:21:07] darrencauthon: has joined #RubyOnRails
[02:22:04] FailBit: here's a tip
[02:22:28] FailBit: if you have a resource helper, _always_ use the hash syntax to add URL parameters
[02:22:51] _3by8: Even if it's the edit_resource_path?
[02:22:55] Pazician: has joined #RubyOnRails
[02:23:01] FailBit: if you don't, you will get unexpected behavior and open up yourself to URL hijacking
[02:23:15] FailBit: edit_resource_path presumably doesn't take query params
[02:23:21] FailBit: it uses route params tho
[02:24:10] bruno-: has joined #RubyOnRails
[02:25:32] rgrmatt: has joined #RubyOnRails
[02:30:26] rickmasta: has joined #RubyOnRails
[02:30:31] seank_: has joined #RubyOnRails
[02:30:40] Or1on: has joined #RubyOnRails
[02:30:40] Or1on: has joined #RubyOnRails
[02:31:38] DrShoggoth: has joined #RubyOnRails
[02:31:53] twilling: has joined #RubyOnRails
[02:37:18] sdwrage: has joined #RubyOnRails
[02:41:51] renews: has joined #RubyOnRails
[02:43:18] vigintas: has joined #RubyOnRails
[02:44:36] koprom: has joined #RubyOnRails
[02:45:29] iateadonut: has joined #RubyOnRails
[02:45:30] Oog: has joined #RubyOnRails
[02:49:58] yoongkang: has joined #RubyOnRails
[02:50:48] pimpin: has joined #RubyOnRails
[02:52:44] simplyianm: has joined #RubyOnRails
[02:54:38] mary5030: has joined #RubyOnRails
[02:57:42] rickmasta: has joined #RubyOnRails
[03:00:32] SteveC: has joined #RubyOnRails
[03:01:32] sdwrage: has joined #RubyOnRails
[03:03:16] Coldblackice: has joined #RubyOnRails
[03:03:36] georgedrummond: has joined #RubyOnRails
[03:04:21] georgedrummond: has joined #RubyOnRails
[03:05:59] owenjones: has joined #RubyOnRails
[03:07:21] uri: has joined #RubyOnRails
[03:11:46] annlewis: has joined #RubyOnRails
[03:16:44] njero: has joined #RubyOnRails
[03:17:45] maxz: has joined #RubyOnRails
[03:19:22] twilling: has joined #RubyOnRails
[03:19:53] georgedrummond: has left #RubyOnRails: ()
[03:20:49] rgrmatt: has joined #RubyOnRails
[03:21:00] rgtk: has joined #RubyOnRails
[03:21:20] georgedrummond: has joined #RubyOnRails
[03:23:32] georgedr_: has joined #RubyOnRails
[03:23:39] sdwrage: has joined #RubyOnRails
[03:24:46] bruno-: has joined #RubyOnRails
[03:26:36] krramos: has joined #RubyOnRails
[03:27:06] krramos: has left #RubyOnRails: ()
[03:27:23] K_r3aPeR: has joined #RubyOnRails
[03:29:51] gusrub: has joined #RubyOnRails
[03:29:57] georgedrummond: has joined #RubyOnRails
[03:31:05] seank_: has joined #RubyOnRails
[03:34:00] sdwrage: has joined #RubyOnRails
[03:34:16] viiralvx: has joined #RubyOnRails
[03:37:01] shibabu: has joined #RubyOnRails
[03:37:07] blackhuey: has joined #RubyOnRails
[03:42:21] georgedrummond: has joined #RubyOnRails
[03:42:34] renews: has joined #RubyOnRails
[03:42:57] georgedrummond: has joined #RubyOnRails
[03:43:29] vigintas: has joined #RubyOnRails
[03:49:31] crdpink2: has joined #RubyOnRails
[03:57:03] chipotle: has joined #RubyOnRails
[03:57:08] darrencauthon: has joined #RubyOnRails
[04:00:11] x-light: has joined #RubyOnRails
[04:00:31] darrenca_: has joined #RubyOnRails
[04:00:34] renews: has joined #RubyOnRails
[04:01:48] benlieb: has joined #RubyOnRails
[04:01:56] nertzy: has joined #RubyOnRails
[04:07:23] dmarr: why is the write operation not covered here http://ruby-doc.org/core-2.2.3/File.html
[04:07:26] gentlemaverick: has joined #RubyOnRails
[04:07:54] dmarr: as in File.open(a.filename, 'w') { |file| file.write(a.pic) }
[04:08:03] owenjones: has joined #RubyOnRails
[04:09:55] atomical: has joined #RubyOnRails
[04:09:56] maxz: has joined #RubyOnRails
[04:10:02] chadhs: has joined #RubyOnRails
[04:10:27] viiralvx: has joined #RubyOnRails
[04:11:56] baweaver: has joined #RubyOnRails
[04:12:13] FailBit: dmarr: http://ruby-doc.org/core-2.2.3/IO.html#method-c-write
[04:12:26] pawnbox: has joined #RubyOnRails
[04:12:43] annlewis: has joined #RubyOnRails
[04:14:08] FailBit: er, http://ruby-doc.org/core-2.2.3/IO.html#method-i-write
[04:14:12] FailBit: that's the one
[04:16:07] hello29: has joined #RubyOnRails
[04:16:47] braincrash: has joined #RubyOnRails
[04:17:53] hello29: if i have a rails app hosted on a linux server, and I run a native linux bash command from that rails app, will the command execute regardless of the end user's operating system?
[04:18:26] dmarr: Thanks FailBit
[04:18:36] _3by8: hello29: if the app is generating the command then yes
[04:18:49] _3by8: hello29: it will execute on the machine that the code is being hosted on.
[04:19:33] FailBit: hello29: no, it will be totally dependent on the OS
[04:19:46] FailBit: luckily for you, the amount of rails users on windows is very small
[04:19:55] FailBit: and not many projects even work with it
[04:20:12] threeminutemonta: has joined #RubyOnRails
[04:20:18] hello29: @failbit so if i am running xdotool or something the end user would need that on their computer in order for it to work?
[04:20:43] FailBit: why would you use xdotool?
[04:20:53] FailBit: the server shouldn't have to run xwin
[04:21:05] Axsuul: has joined #RubyOnRails
[04:21:49] braincra-: has joined #RubyOnRails
[04:22:11] hello29: @FailBit not sure what you mean
[04:22:35] FailBit: xdotool is a tool for getting information about X windows
[04:22:56] hello29: @Failbit Im using it to generate key events
[04:23:16] FailBit: hello29: the server is running X windows?
[04:23:18] hello29: I need to generate key events that cant be done via javascript or the server etc
[04:23:39] FailBit: yes, but it's running Xorg?
[04:23:57] SteenJobs: has joined #RubyOnRails
[04:24:18] FailBit: are you trying to generate key events on the client?
[04:24:55] FailBit: you can't do that
[04:25:04] FailBit: for so many reasons
[04:25:27] hello29: ive got it working for me, but im testing it on a computer that has xdotool installed
[04:25:43] FailBit: because it's your computer
[04:25:55] FailBit: DISPLAY= rails s
[04:26:01] FailBit: it will break when you test it
[04:26:41] bruno-: has joined #RubyOnRails
[04:26:41] FailBit: (or whatever appserver you use, puma unicorn etc)
[04:26:52] hello29: so theres no way to generate key events from a client via bash?
[04:27:06] Tinyyy: has joined #RubyOnRails
[04:27:29] FailBit: you can't make the client OS do things from the server
[04:28:02] FailBit: (you can't even assume the client OS will be able to do anything, for that matter)
[04:29:10] IrishGringo: has joined #RubyOnRails
[04:29:20] hello29: what if i try and execute it from javascript?
[04:29:28] hello29: i.e but the bash script in javascript
[04:29:51] FailBit: because you can't
[04:30:45] FailBit: browsers don't run bash, javascript doesn't allow for system calls, and chances are the majority of clients you have won't have bash installed anyways
[04:31:19] FailBit: you literally pose an impossible task. if you want to control the client events, write a desktop app.
[04:31:50] seank_: has joined #RubyOnRails
[04:31:58] seorc: has joined #RubyOnRails
[04:33:42] nertzy: has joined #RubyOnRails
[04:35:24] pawnbox: has joined #RubyOnRails
[04:35:48] rickmasta: has joined #RubyOnRails
[04:38:32] shibabu: has joined #RubyOnRails
[04:42:44] SteenJobs_: has joined #RubyOnRails
[04:43:40] dopie: How can I have the user fill out a form than it posts to the controller and then it posts to a website url?
[04:43:53] rclanan_: has joined #RubyOnRails
[04:44:16] vigintas: has joined #RubyOnRails
[04:45:30] sdwrage: has joined #RubyOnRails
[04:45:56] knight_: has joined #RubyOnRails
[04:45:56] nygrenh: has joined #RubyOnRails
[04:46:49] reaVer: has joined #RubyOnRails
[04:47:15] insu: has joined #RubyOnRails
[04:47:16] OmegaA: has joined #RubyOnRails
[04:47:22] sunya7a: has joined #RubyOnRails
[04:47:28] shapeshifter: has joined #RubyOnRails
[04:47:32] rhizome: has joined #RubyOnRails
[04:47:43] northfurr: has joined #RubyOnRails
[04:48:32] pawnbox: has joined #RubyOnRails
[04:49:54] fluchtreflex: has joined #RubyOnRails
[04:49:54] fluchtreflex: has joined #RubyOnRails
[04:50:26] Haydos: has joined #RubyOnRails
[04:52:04] makenoise: has joined #RubyOnRails
[04:52:32] pimpin: has joined #RubyOnRails
[04:52:33] koprom: has joined #RubyOnRails
[04:52:47] arthurnn: has joined #RubyOnRails
[04:53:15] dmarr: FailBit: I'm trying to write out binary data from my table into a file
[04:56:54] youngbaks: has joined #RubyOnRails
[04:57:38] gusrub: has joined #RubyOnRails
[05:04:33] null__: has joined #RubyOnRails
[05:04:33] null__: has joined #RubyOnRails
[05:04:36] wethu: has joined #RubyOnRails
[05:08:16] cookiez: has joined #RubyOnRails
[05:10:42] simplyianm: has joined #RubyOnRails
[05:10:53] nertzy: has joined #RubyOnRails
[05:11:12] fredrickdorn: has joined #RubyOnRails
[05:12:16] coderhut: has joined #RubyOnRails
[05:13:02] baweaver: has joined #RubyOnRails
[05:13:19] annlewis: has joined #RubyOnRails
[05:15:41] richipargo: has joined #RubyOnRails
[05:20:57] wa_r_ch_i__ld1: has joined #RubyOnRails
[05:21:02] fredrickdorn_: has joined #RubyOnRails
[05:21:25] wa_r_ch_i__ld1: Is there any way to trigger a key event for an end user on a hosted Rails app?
[05:21:36] rgtk: has joined #RubyOnRails
[05:22:00] maxz: has joined #RubyOnRails
[05:22:56] The_Phoenix: has joined #RubyOnRails
[05:23:23] fedexo: has joined #RubyOnRails
[05:24:56] Metalstar: has joined #RubyOnRails
[05:26:05] makenoise: has joined #RubyOnRails
[05:26:47] bruno-: has joined #RubyOnRails
[05:30:32] quazimodo: has joined #RubyOnRails
[05:32:40] seank_: has joined #RubyOnRails
[05:33:43] superlou: has joined #RubyOnRails
[05:33:49] Metalstar: has joined #RubyOnRails
[05:36:55] Metalstar: Is anybody here?
[05:37:12] Metalstar: I need help with a RoR for file serving.
[05:38:05] Metalstar: The "Content-disposition" tag of the header becomes "ntent-disposition".
[05:38:28] Metalstar: No idea why!
[05:38:32] Metalstar: Anybody here?
[05:39:06] Meow-J: has joined #RubyOnRails
[05:43:59] pydave6367: has joined #RubyOnRails
[05:45:28] Metalstar: Ruby on Rails app for file serving. The "Content-disposition" tag of the header becomes "ntent-disposition". Need help!
[05:46:12] fredrickdorn_: has joined #RubyOnRails
[05:46:45] vigintas: has joined #RubyOnRails
[05:46:50] Metalstar: Ruby on Rails app for file serving. The "Content-disposition" tag of the header becomes "ntent-disposition". Need help!
[05:47:52] fredrickdorn: has joined #RubyOnRails
[05:48:08] Metalstar: Ruby on Rails app for file serving. The "Content-disposition" tag of the header becomes "ntent-disposition". Need help!
[05:48:44] rubyonrailed: has joined #RubyOnRails
[05:50:15] renews: has joined #RubyOnRails
[05:50:47] Metalstar: Ruby on Rails app for file serving. The "Content-disposition" tag of the header becomes "ntent-disposition". Need help!
[05:52:12] SteveC: has joined #RubyOnRails
[05:56:56] stardiviner: has joined #RubyOnRails
[05:57:58] stardiviner: has joined #RubyOnRails
[05:58:29] Creeves: has joined #RubyOnRails
[05:58:53] stardiviner: has joined #RubyOnRails
[05:59:16] _3by8: Can you upload the code to pastebin or something?
[06:00:45] stardiviner: has joined #RubyOnRails
[06:00:49] Metalstar: I''m uploading multiple files.
[06:01:32] Metalstar: It uploads the first file, the next file gives an error in tag_multipart_encoding
[06:01:48] Metalstar: Ex: ntent-Disposition: form-data; name="fileUpload[]"; filename="tmp1.txt" Content-Type: text/plain Content-Transfer-Encoding: binary
[06:01:51] stardiviner: has joined #RubyOnRails
[06:01:53] Metalstar: Due to this.
[06:02:50] baweaver: has joined #RubyOnRails
[06:02:59] stardiviner: has joined #RubyOnRails
[06:03:57] stardiviner: has joined #RubyOnRails
[06:04:54] stardiviner: has joined #RubyOnRails
[06:05:31] Metalstar: http://pastebin.com/ARXZcaC6
[06:05:48] stardiviner: has joined #RubyOnRails
[06:06:08] Metalstar: This paste contains info about what happens when a single file is uploaded.
[06:06:22] Metalstar: I added some "puts" to view the sequence/data flow.
[06:06:44] stardiviner: has joined #RubyOnRails
[06:07:24] Metalstar: Same, when it doesn't work with 2 files being uploaded.
[06:07:25] Metalstar: http://pastebin.com/zMGJbGWp
[06:07:41] stardiviner: has joined #RubyOnRails
[06:09:05] stardiviner: has joined #RubyOnRails
[06:10:00] stardiviner: has joined #RubyOnRails
[06:11:00] stardiviner: has joined #RubyOnRails
[06:12:29] Metalstar: Any takers?
[06:13:32] stardiviner: has joined #RubyOnRails
[06:13:53] Tref: has joined #RubyOnRails
[06:13:58] Cervajz_: has joined #RubyOnRails
[06:14:05] annlewis: has joined #RubyOnRails
[06:14:41] stardiviner: has joined #RubyOnRails
[06:16:07] stardiviner: has joined #RubyOnRails
[06:16:37] Cervajz__: has joined #RubyOnRails
[06:17:30] stardiviner: has joined #RubyOnRails
[06:18:29] stardiviner: has joined #RubyOnRails
[06:19:32] stardiviner: has joined #RubyOnRails
[06:19:56] htmldrum: has joined #RubyOnRails
[06:20:24] wa_r_ch_i__ld1: has joined #RubyOnRails
[06:20:58] skullcrasher: has joined #RubyOnRails
[06:23:25] sar1nk: has joined #RubyOnRails
[06:27:46] xcesariox: has joined #RubyOnRails
[06:28:02] bruno-: has joined #RubyOnRails
[06:30:46] trosborn: has joined #RubyOnRails
[06:33:22] seank_: has joined #RubyOnRails
[06:40:43] shibabu: has joined #RubyOnRails
[06:41:22] htmldrum: has joined #RubyOnRails
[06:44:07] owenjones: has joined #RubyOnRails
[06:48:00] Cervajz_: has joined #RubyOnRails
[06:48:06] makenoise: has joined #RubyOnRails
[06:52:17] rickmasta: has joined #RubyOnRails
[07:03:27] djellemah: has joined #RubyOnRails
[07:06:07] makenoise: has joined #RubyOnRails
[07:06:10] freezevee: has joined #RubyOnRails
[07:06:14] yardenbar: has joined #RubyOnRails
[07:10:40] Yomero2: has joined #RubyOnRails
[07:14:31] xcesariox: has joined #RubyOnRails
[07:14:51] annlewis: has joined #RubyOnRails
[07:22:33] rgtk: has joined #RubyOnRails
[07:28:33] x-light: has joined #RubyOnRails
[07:34:07] seank_: has joined #RubyOnRails
[07:34:54] vigintas: has joined #RubyOnRails
[07:39:11] renews: has joined #RubyOnRails
[07:39:16] srinidhi: has joined #RubyOnRails
[07:41:00] zvive: has joined #RubyOnRails
[07:43:47] sdwrage: has joined #RubyOnRails
[07:44:08] tom_ilsinszki: has joined #RubyOnRails
[07:45:30] User458764: has joined #RubyOnRails
[07:51:13] darutoko: has joined #RubyOnRails
[07:51:42] wildlander: has joined #RubyOnRails
[07:52:43] sdwrage: has joined #RubyOnRails
[07:53:35] nonmadden: has joined #RubyOnRails
[07:56:11] chayon: has joined #RubyOnRails
[07:58:14] sbhatore: has joined #RubyOnRails
[07:58:17] chayon: has joined #RubyOnRails
[08:00:53] rubyonrailed: has joined #RubyOnRails
[08:01:22] chayon: has joined #RubyOnRails
[08:03:53] chayon: Hi guys. Can I have a quick help?
[08:04:15] bruce_lee: has joined #RubyOnRails
[08:04:58] chayon: How should I override the validation error message? for example: validates_presence_of :name, message: "Location Can't be blank."
[08:05:19] chayon: this gives me "Name Location Can't be blank."
[08:05:33] lxsameer: has joined #RubyOnRails
[08:05:39] chayon: I want "Location Can't be blank :("
[08:05:43] chayon: It's urgent
[08:07:58] chayon: got it guys
[08:09:01] tom_ilsinszki: hey! I'm trying to understand how routing works for assets. I'm able to access this file: app/assets/javascripts/sample_file.png using either this url in my browser: "/assetssample_file.png" or this url "/assets/sample_file.png". Both of the urls work fine, but I'm not sure why. Can someone please help me out? (I'm using rails 4.1.7)
[08:15:06] futilegames: has joined #RubyOnRails
[08:15:38] annlewis: has joined #RubyOnRails
[08:18:34] antgel: has joined #RubyOnRails
[08:29:20] bruno-: has joined #RubyOnRails
[08:30:34] zvive: I'm setting up a migration that belongs to a student on student_id in the table, but which actually points at users.id --- would I just to t.references :student, index: true, than add_foreign_key :student, :users, column: user_id ?
[08:32:26] dopie: anyone here use cloud66?
[08:32:55] bePolite: has joined #RubyOnRails
[08:34:59] seank_: has joined #RubyOnRails
[08:35:47] vigintas: has joined #RubyOnRails
[08:36:43] nickenchuggets: has joined #RubyOnRails
[08:36:43] nickenchuggets: has joined #RubyOnRails
[08:39:36] Tref: has joined #RubyOnRails
[08:41:30] MartinElvar: has joined #RubyOnRails
[08:42:20] SteenJobs: has joined #RubyOnRails
[08:42:53] urkle: has joined #RubyOnRails
[08:43:24] nonmadden: has joined #RubyOnRails
[08:43:47] beast: has joined #RubyOnRails
[08:43:52] shibabu: has joined #RubyOnRails
[08:48:44] nonmadden: has joined #RubyOnRails
[08:50:24] rromanchuk: has joined #RubyOnRails
[08:51:29] nonmadden: has joined #RubyOnRails
[08:52:14] arup_r: has joined #RubyOnRails
[08:57:33] nonmadden: has joined #RubyOnRails
[08:59:52] aevitas: has joined #RubyOnRails
[08:59:53] arup_r: I am using Kaminari gem. I set default per as 9 from initializers https://github.com/amatsuda/kaminari#general-configuration-options . But no data is being displayed in view. If I inspect @users.count it is saying `9`.
[08:59:58] arup_r: What could be the issue ?
[09:00:44] trosborn: has joined #RubyOnRails
[09:01:23] blackmesa: has joined #RubyOnRails
[09:04:04] marr: has joined #RubyOnRails
[09:04:31] arup_r: I only see 1 2 3 4 .. this
[09:05:19] freezeve1: has joined #RubyOnRails
[09:06:19] Mia: has joined #RubyOnRails
[09:06:19] Mia: has joined #RubyOnRails
[09:07:28] arup_r: nvm, I fixed it
[09:09:47] blackmesa: has joined #RubyOnRails
[09:09:53] annlewis: has joined #RubyOnRails
[09:17:08] pydave6367: has joined #RubyOnRails
[09:17:27] moeabdol: has joined #RubyOnRails
[09:18:54] yoongkang: has joined #RubyOnRails
[09:19:21] dici: has joined #RubyOnRails
[09:22:13] pawnbox: has joined #RubyOnRails
[09:22:14] bruno-_: has joined #RubyOnRails
[09:22:14] treaki: has joined #RubyOnRails
[09:23:24] rgtk: has joined #RubyOnRails
[09:25:20] bmalum: has joined #RubyOnRails
[09:27:57] renews: has joined #RubyOnRails
[09:33:35] zvive: this is more of a logic question.. but say you have users... and you have teachers, students, parents, and children that all are users.. I currently have a self-referential thing setup matching teachers/students, and parents/children - but wouldn't it be more 'dry' or make sense to just create a relationship with maybe a main_id sub_id type (parent, teacher) where the sub would then be a child or student depending on type?
[09:33:55] pawnbox_: has joined #RubyOnRails
[09:34:41] framlinqp: has joined #RubyOnRails
[09:34:54] blackmesa: has joined #RubyOnRails
[09:35:11] lapide_viridi: has joined #RubyOnRails
[09:35:46] seank_: has joined #RubyOnRails
[09:37:44] vigintas: has joined #RubyOnRails
[09:41:48] acti0nman: has joined #RubyOnRails
[09:43:22] mices: error running `gem install debugger` https://gist.github.com/mices/6e63ae0bb07c9de34d43
[09:44:55] tbuehlmann: mices: what have you tried so far?
[09:46:43] shibabu: has joined #RubyOnRails
[09:47:57] mices: presently trying to locate the path to the file mkmf.log
[09:47:59] zvive: debugger is not compatible with Ruby 2.0 or greater...what version of ruby are you running?
[09:48:26] mices: so just take it out of my Gemfile? don't need it?
[09:49:25] Pazician: has joined #RubyOnRails
[09:49:45] zvive: https://github.com/cldwalker/debugger -- you can replace with byebug it's only needed if you're using it for debugging in the code.. really. Are you upgrading an older app to rails 4/ruby2? Or creating a new rails app?
[09:51:10] mices: exactly, i had a problem with my app (devise reconfirmable option wasn't compatibile with my ruby 1.9.1) so i upgraded ruby
[09:53:04] zvive: try commenting out that line, and run: bundle
[09:56:48] mices: yea everything's good now
[10:00:39] renews: has joined #RubyOnRails
[10:00:53] Axsuul: has joined #RubyOnRails
[10:02:01] antgel: has joined #RubyOnRails
[10:02:11] gavit: anyone here familiar with word coordinates and such? I have a polygon in wgs84zone21N, and I would like to calculate length of vertices and the area, would a normal math calculation work, or do I have to consider some kind of skewed mapping since the world is no longer flat (stupid scientists!)
[10:06:04] chipotle: has joined #RubyOnRails
[10:09:50] pawnbox: has joined #RubyOnRails
[10:11:03] dopie: with 4234355432|1852196545 how can I tell regular expression to check only if the right side of the | is correct?
[10:12:34] tbuehlmann: dopie, what's "correct"? and is splitting on '|' and taking the last match maybe enough?
[10:13:47] dopie: yeah totally bonked that question
[10:14:01] dopie: i want to select everything on the right of the pipe
[10:14:14] pawnbox: has joined #RubyOnRails
[10:14:57] annlewis: has joined #RubyOnRails
[10:15:06] acti0nman: has joined #RubyOnRails
[10:16:24] dopie: \d selects the digits
[10:16:54] htmldrum: has joined #RubyOnRails
[10:20:16] Spami: has joined #RubyOnRails
[10:20:44] arup_r: dopie: "4234355432|1852196545"[/(\d+)|/]
[10:22:23] bruno-: has joined #RubyOnRails
[10:34:02] glennt: has joined #RubyOnRails
[10:34:31] roxtrongo: has joined #RubyOnRails
[10:34:58] Scripore: has joined #RubyOnRails
[10:35:29] skakri`: has left #RubyOnRails: ()
[10:35:57] eml: has joined #RubyOnRails
[10:36:17] seank_: has joined #RubyOnRails
[10:38:21] Megamos: has joined #RubyOnRails
[10:38:26] vigintas: has joined #RubyOnRails
[10:39:56] alhimik45: has joined #RubyOnRails
[10:40:52] alhimik45: Hi, how to change column id type from integer to uuid and not break foreign key constraints?
[10:42:47] antgel: has joined #RubyOnRails
[10:45:17] mozzarella: has joined #RubyOnRails
[10:46:05] qejk: has joined #RubyOnRails
[10:46:51] DoubleMalt: has joined #RubyOnRails
[10:50:29] trosborn: has joined #RubyOnRails
[10:53:03] gavit: alhimik45: http://stackoverflow.com/questions/31861621/how-to-migrate-from-using-one-foreign-key-to-another-in-activerecord
[10:55:57] MartinElvar: has joined #RubyOnRails
[10:57:28] njero: has joined #RubyOnRails
[10:58:05] pawnbox: has joined #RubyOnRails
[10:59:12] ruurd: has joined #RubyOnRails
[10:59:16] Megamos: has joined #RubyOnRails
[11:01:26] Axsuul: has joined #RubyOnRails
[11:01:44] stamina: has joined #RubyOnRails
[11:02:54] purplexed-: has joined #RubyOnRails
[11:05:50] FooMunki: has joined #RubyOnRails
[11:05:57] nonmadden: has joined #RubyOnRails
[11:07:45] Dbugger: has joined #RubyOnRails
[11:11:03] ruurd: has joined #RubyOnRails
[11:12:46] youngbaks: has joined #RubyOnRails
[11:15:46] annlewis: has joined #RubyOnRails
[11:23:14] qejk: has joined #RubyOnRails
[11:23:40] bruno-: has joined #RubyOnRails
[11:24:22] rgtk: has joined #RubyOnRails
[11:26:21] sevenseacat: has joined #RubyOnRails
[11:31:37] Megamos: has joined #RubyOnRails
[11:37:12] seank_: has joined #RubyOnRails
[11:39:15] vigintas: has joined #RubyOnRails
[11:41:23] User458764: has joined #RubyOnRails
[11:42:00] johnflux: has joined #RubyOnRails
[11:42:00] johnflux: has joined #RubyOnRails
[11:43:52] rgtk: has joined #RubyOnRails
[11:45:57] youngbaks: has joined #RubyOnRails
[11:49:12] renews: has joined #RubyOnRails
[11:49:36] l1meon: has joined #RubyOnRails
[11:50:01] shibabu: has joined #RubyOnRails
[11:50:44] netzfisch: has joined #RubyOnRails
[11:51:11] clonesig: has joined #RubyOnRails
[11:52:55] tom_lowndes: has joined #RubyOnRails
[11:55:14] djellemah: has joined #RubyOnRails
[11:59:35] Megamos: has joined #RubyOnRails
[11:59:54] moeabdol: has joined #RubyOnRails
[12:00:18] l1meon: Hello, have a question, how to better structure the controllers if for example I have a gamescontroller that have 3 different type of games(small,medium,large) and these types have just a few methods in common the rest logic is different. How to structure them to a more rails way?
[12:00:18] l1meon: it will be ok like this?
[12:00:18] l1meon: /controllers
[12:00:18] l1meon: games_controller
[12:00:19] l1meon: small_game_controller
[12:00:19] l1meon: medium_game_controller
[12:00:19] l1meon: large_game_controller
[12:03:19] trosborn: has joined #RubyOnRails
[12:04:56] nertzy: has joined #RubyOnRails
[12:06:32] youngbaks: has joined #RubyOnRails
[12:07:09] baweaver: has joined #RubyOnRails
[12:07:47] roshanavand: has joined #RubyOnRails
[12:11:04] vigintas: has joined #RubyOnRails
[12:11:23] AzaToth: has joined #RubyOnRails
[12:12:23] ruurd: has joined #RubyOnRails
[12:14:52] alhimik45: gavit: thanks!
[12:16:30] annlewis: has joined #RubyOnRails
[12:19:06] Spami: has joined #RubyOnRails
[12:24:09] bruno-: has joined #RubyOnRails
[12:30:28] trosborn: has joined #RubyOnRails
[12:30:52] youngbaks: has joined #RubyOnRails
[12:32:52] zpe: has joined #RubyOnRails
[12:34:13] sameerynho: has joined #RubyOnRails
[12:36:09] jxs_: has joined #RubyOnRails
[12:37:11] ruurd: has joined #RubyOnRails
[12:37:53] seank_: has joined #RubyOnRails
[12:40:13] bruno-_: has joined #RubyOnRails
[12:45:03] darrencauthon: has joined #RubyOnRails
[12:46:06] ruurd: has joined #RubyOnRails
[12:46:15] seank_: has joined #RubyOnRails
[12:48:07] pawnbox: has joined #RubyOnRails
[12:49:19] roshanavand: has joined #RubyOnRails
[12:49:51] benhuda: has joined #RubyOnRails
[12:50:56] ruurd: has joined #RubyOnRails
[12:54:34] Megamos: has joined #RubyOnRails
[12:56:51] nomadicoder: has joined #RubyOnRails
[12:57:19] renews: has joined #RubyOnRails
[12:58:23] acti0nman: has joined #RubyOnRails
[12:59:10] roxtrongo: has joined #RubyOnRails
[12:59:34] banister: has joined #RubyOnRails
[13:02:55] Megamos: has joined #RubyOnRails
[13:07:46] roshanavand: has joined #RubyOnRails
[13:07:52] jensljungblad: has joined #RubyOnRails
[13:07:54] baweaver: has joined #RubyOnRails
[13:08:25] arup_r: l1meon: That is perfect structure. See this: https://github.com/plataformatec/devise/tree/master/app/controllers
[13:10:49] Megamos: has joined #RubyOnRails
[13:16:39] aevitas: has joined #RubyOnRails
[13:17:17] annlewis: has joined #RubyOnRails
[13:19:01] allcentury: has joined #RubyOnRails
[13:19:21] ruid: has joined #RubyOnRails
[13:20:39] ruurd: has joined #RubyOnRails
[13:24:24] maxz: has joined #RubyOnRails
[13:32:01] annlewis: has joined #RubyOnRails
[13:32:52] User458764: has joined #RubyOnRails
[13:34:44] superlou: has joined #RubyOnRails
[13:35:38] bmalum: has joined #RubyOnRails
[13:37:06] roxtrongo: has joined #RubyOnRails
[13:37:48] roxtrongo: has joined #RubyOnRails
[13:39:55] Megamos: has joined #RubyOnRails
[13:40:17] Megamos: has joined #RubyOnRails
[13:40:55] moeabdol: has joined #RubyOnRails
[13:42:07] dtordable: has joined #RubyOnRails
[13:43:07] moeabdol: has joined #RubyOnRails
[13:43:43] shibabu: has joined #RubyOnRails
[13:45:09] roshanavand: has joined #RubyOnRails
[13:52:10] roxtrongo: has joined #RubyOnRails
[13:52:50] roxtrongo: has joined #RubyOnRails
[13:54:28] doodlehaus: has joined #RubyOnRails
[13:55:20] Scripore: has joined #RubyOnRails
[13:55:21] quazimodo: has joined #RubyOnRails
[13:55:38] pwnd_nfsw: has joined #RubyOnRails
[13:56:35] rgrmatt: has joined #RubyOnRails
[14:01:43] oktapodi: has joined #RubyOnRails
[14:03:08] gambl0re: has joined #RubyOnRails
[14:05:20] navo: has joined #RubyOnRails
[14:06:58] Megamos: has joined #RubyOnRails
[14:08:11] roshanavand: has joined #RubyOnRails
[14:08:47] baweaver: has joined #RubyOnRails
[14:09:39] maxz: has joined #RubyOnRails
[14:10:21] yoongkang: has joined #RubyOnRails
[14:10:46] mices: i upgraded to ruby 2.2.1 but `rails` commands at the console fail with /usr/bin/env: ruby1.9.1: No such file or directory
[14:12:09] beingjohnm: mices: are you using rbenv?
[14:12:46] Scripore: has joined #RubyOnRails
[14:14:58] Meow-J: has joined #RubyOnRails
[14:15:30] bruno-: has joined #RubyOnRails
[14:15:44] joeytwiddle: has joined #RubyOnRails
[14:15:48] beingjohnm: does a model have to relate to a database table? I'm trying to build a timeline composed of events from other models so I don't need any databse backing up my Timeline model.
[14:16:49] atomical: has joined #RubyOnRails
[14:18:10] Holma89: has joined #RubyOnRails
[14:18:37] pawnbox: has joined #RubyOnRails
[14:18:40] Cervajz_: has joined #RubyOnRails
[14:18:47] Dbugger: beingjohnm, try "rails g controller"
[14:18:55] Dbugger: or "rails g model"
[14:19:41] njero: has joined #RubyOnRails
[14:19:43] matthewd: beingjohnm: An AR::Base does, but it's perfectly normal to have non-AR classes in app/models/
[14:19:51] owenjones: has joined #RubyOnRails
[14:19:58] IrishGringo: has joined #RubyOnRails
[14:20:52] Cervajz__: has joined #RubyOnRails
[14:22:05] renews: has joined #RubyOnRails
[14:22:17] beingjohnm: matthewd: thanks. wasn't sure if I was trying to do something I shouldn't.
[14:24:51] ruurd: has joined #RubyOnRails
[14:27:35] bruno-_: has joined #RubyOnRails
[14:28:01] simplyianm: has joined #RubyOnRails
[14:28:08] Encapsulation: has joined #RubyOnRails
[14:28:09] Pazician: has joined #RubyOnRails
[14:31:18] mices: beingjohnm: yes
[14:33:46] vaguelyNothere: has joined #RubyOnRails
[14:35:22] pawnbox: has joined #RubyOnRails
[14:37:17] mices: where is the script that starts rails
[14:38:35] annlewis: has joined #RubyOnRails
[14:39:07] pawnbox: has joined #RubyOnRails
[14:41:55] Ergo: has joined #RubyOnRails
[14:45:51] bmalum: has joined #RubyOnRails
[14:46:35] Scripore: has joined #RubyOnRails
[14:49:06] smathy: has joined #RubyOnRails
[14:50:21] daivyk: has joined #RubyOnRails
[14:50:40] sankaber: has joined #RubyOnRails
[14:52:42] Megamos: has joined #RubyOnRails
[14:53:02] s2013: has joined #RubyOnRails
[14:57:23] aevitas: has joined #RubyOnRails
[14:58:32] Pazician: has joined #RubyOnRails
[14:58:52] pawnbox: has joined #RubyOnRails
[15:02:11] dtordable: why I clone my git repo with my rails app and it just not work?
[15:03:36] treaki: has joined #RubyOnRails
[15:04:08] pawnbox: has joined #RubyOnRails
[15:04:36] FailBit: that doesn't mean anything to me
[15:04:48] FailBit: it doesn't explain what's not working, nor does it explain your circumstances well
[15:05:49] dtordable: rake dont show anything
[15:06:26] pawnbox: has joined #RubyOnRails
[15:07:00] FailBit: rake in what context?
[15:07:06] FailBit: are you in your source tree?
[15:07:20] roshanavand: has joined #RubyOnRails
[15:07:50] dtordable: rails server work|s
[15:08:21] dtordable: let me check things
[15:09:26] FailBit: ... do you have a rakefile?
[15:09:26] baweaver: has joined #RubyOnRails
[15:11:53] dtordable: 1yeah, FailBit
[15:12:09] Axsuul: has joined #RubyOnRails
[15:12:51] treaki: has joined #RubyOnRails
[15:13:15] yottanami: has joined #RubyOnRails
[15:14:14] yottanami: I need to use an oauth2 API that is created by Grape and doorkeeper. Is there any gem as client?
[15:17:35] dtordable: FailBit: running the exec of bin/ directory dont run but calling rake from the shell makes an option
[15:19:09] futilegames: has joined #RubyOnRails
[15:19:33] dtordable: but after tring seems not to work (rails g command)
[15:21:21] Holma89: has joined #RubyOnRails
[15:21:59] adavia: has joined #RubyOnRails
[15:23:44] youngbaks: has joined #RubyOnRails
[15:23:47] dtordable: FailBit: how do I get a verbose way to get a life? :)
[15:24:01] FailBit: rails g life --verbose
[15:24:33] FailBit: alternatively, you can find them in the supermarket at the end of the frozen foods section, by the ice cream
[15:24:46] FailBit: read all directions before acquiring
[15:25:12] arBmind: has joined #RubyOnRails
[15:26:12] mghaig: has joined #RubyOnRails
[15:27:32] nickenchuggets: has joined #RubyOnRails
[15:27:32] nickenchuggets: has joined #RubyOnRails
[15:27:40] dtordable: so whats the problem then?
[15:30:18] darrencauthon: has joined #RubyOnRails
[15:31:59] vnk: has joined #RubyOnRails
[15:33:22] vnk: has joined #RubyOnRails
[15:39:23] annlewis: has joined #RubyOnRails
[15:40:01] s2013: trying to figure out if there is a way to achieve this with one query.. we have a leads table and we have an applicaiton table.. leads are assigned a salesperson so what i want to do is find all the applications and find the sales person that was assigned to the lead based on the emails.. process is someone submits a lead -> salesperson isassigned -> the lead becomes an application if they purchase
[15:43:30] lipoqil: has joined #RubyOnRails
[15:44:39] iateadonut: has joined #RubyOnRails
[15:45:57] vnk: anyone got minute to help me with understunding really small ruby code? 10 lines or so. I got pretty much everything expect one small part.
[15:49:32] vnk: FailBit: here is code http://pastebin.com/paT3ECp5
[15:50:15] vnk: here is that code on pastie http://pastie.org/10558511 :)
[15:50:23] FailBit: I can already see a problem with it
[15:50:36] vnk: hm? actually code should work fine?
[15:50:40] FailBit: in your #description method you call puts instead of returning the string
[15:50:51] FailBit: puts returns nil
[15:51:17] vnk: ohh.. lol, I didnt know that. thanks for that
[15:51:34] vnk: but that is not problem, I dont understund one part of code. Which one? part where we make new language
[15:51:35] elaptics: vnk: what's your question?
[15:51:44] vnk: ruby = Language.new("Ruby", "Yukihiro Matsumoto")
[15:52:05] FailBit: you're creating a new Language object
[15:52:11] vnk: obviously "Ruby" is stored as @name, and "Yukihiro Matsumoto" as @creator
[15:52:31] vnk: yeah, but how ruby know how to store it?
[15:52:38] vnk: I just dont get it.. if we take some method for example
[15:52:45] FailBit: because @instance_variables are nil by default
[15:52:55] matthewd: vnk: Your initialize method; new calls initialize
[15:53:01] FailBit: if you open up irb/pry and type @______ you will get nil
[15:53:36] vnk: matthewd: but if I change initialize to xxx for example, it will still work.
[15:53:47] FailBit: no, it won't
[15:53:58] FailBit: it will complain about wrong nubmer of arguments
[15:54:54] vnk: I just tested it, changed def initialize(name, creator) to def xxx(name, creator)
[15:56:08] FailBit: /tmp/execpad-5ad87bc0b56d/source-5ad87bc0b56d:12:in `initialize': wrong number of arguments (2 for 0) (ArgumentError)
[15:56:12] matthewd: Then you're not editing the file you're running
[15:56:28] elaptics: vnk: how are you editing and running the file?
[15:56:57] FailBit: https://eval.in/private/dfe670be2dbf21
[15:57:55] SteveC: has joined #RubyOnRails
[15:58:12] vnk: I used codeacademy guys on start, now I saved that code in lol.rb, runed it from terminal and it doesnt work ohh :D
[15:58:50] vnk: so in ruby we make initiliazer for class buy making method that is called extactly initialize, correct?
[16:00:16] vnk: thanks a lot.. ehh, I cannot belive that I was this confused only bescause of shitty codeacademy comapiler
[16:02:26] arup_r: has joined #RubyOnRails
[16:03:53] nertzy: has joined #RubyOnRails
[16:04:24] cgfbee: has joined #RubyOnRails
[16:04:36] johnflux: has joined #RubyOnRails
[16:05:17] mghaig: has joined #RubyOnRails
[16:05:25] riotjones: has joined #RubyOnRails
[16:06:26] User458764: has joined #RubyOnRails
[16:07:51] naftilos76: has joined #RubyOnRails
[16:09:18] sonOfRa: has joined #RubyOnRails
[16:10:20] baweaver: has joined #RubyOnRails
[16:10:51] Tref: has joined #RubyOnRails
[16:14:23] IrishGringo: has joined #RubyOnRails
[16:15:39] renews: has joined #RubyOnRails
[16:19:22] zpe: has joined #RubyOnRails
[16:19:57] mghaig: has joined #RubyOnRails
[16:21:00] Axsuul: has joined #RubyOnRails
[16:22:01] acti0nman: has joined #RubyOnRails
[16:22:11] sdwrage: has joined #RubyOnRails
[16:23:00] srinidhi1: has joined #RubyOnRails
[16:28:12] ruid: has joined #RubyOnRails
[16:28:14] meoblast001: has joined #RubyOnRails
[16:31:41] benhuda: has joined #RubyOnRails
[16:37:15] guacjack: has joined #RubyOnRails
[16:38:01] guacjack: hello, just got a quick question, on here https://github.com/mackenziechild/blog/blob/master/app/views/posts/show.html.erb on ln 14, Im a bit mystified on how it manages to render multiple partials, there are one or more comments on a post, but how does Rails know to render the comment partial?
[16:38:55] smathy: has joined #RubyOnRails
[16:39:26] FailBit: it sees that @post.comments is a collection
[16:39:37] FailBit: and triggers the render_collection behavior
[16:39:46] FailBit: which does implicit partial lookup for each object, and then renders
[16:40:07] annlewis: has joined #RubyOnRails
[16:40:17] FailBit: also, EW TABS.
[16:41:00] guacjack: FailBit: its not my project, just something im trying to reproduce, thank you for the quick reply :D
[16:41:23] FailBit: it's the same way render(@model) works, except for an array
[16:41:26] elaptics: guacjack: there's plenty of info in the docs here http://api.rubyonrails.org/classes/ActionView/PartialRenderer.html
[16:41:37] guacjack: Im quite a beginner, when you say "implicit" does that mean, it does it by itself without my "explicitly" having to tell it to?
[16:42:41] FailBit: it figures out that the partial path for comments is views/comments/_comment
[16:42:50] FailBit: just from knowing that it is a class of type Comment
[16:43:19] guacjack: I'm working as a junior developer at the minute mainly in Ruby but using Sinatra at work so thought I'd give Rails a go this weekend
[16:43:23] guacjack: im enjoying it :D
[16:43:40] guacjack: Many people have said its way too late to learn Rails though :/
[16:44:24] FailBit: rails keeps getting better
[16:44:56] FailBit: (except for ActiveRecord which is a gigantic pile of shit, but enough said on that)
[16:45:00] guacjack: They said its had its time, suppose people like to hate.
[16:45:25] guacjack: I quite like it though
[16:45:26] elaptics: too many devs like the new, shiny :D
[16:45:31] guacjack: You guys work as Ruby developers?
[16:45:42] FailBit: if you ever see someone who asks if you want to work on a node.js project, RUN.
[16:45:51] helpa: node.js? no.js, but thanks anyways.
[16:46:19] guacjack: cool, I was a front end javascript developer in my previous job for a year, and the company i joined offered to train me up in Ruby so thought may as well give it a go
[16:46:57] FailBit: node is like "lol callbacks" and then it's just callbacks
[16:48:49] pimpin: has joined #RubyOnRails
[16:49:09] Fire-Dragon-DoL: has joined #RubyOnRails
[16:49:57] Palsson: has joined #RubyOnRails
[16:57:17] Pazician: has joined #RubyOnRails
[16:58:35] bmalum: has joined #RubyOnRails
[17:06:12] riotjones: has joined #RubyOnRails
[17:07:29] Z00t: has joined #RubyOnRails
[17:08:14] Z00t: has joined #RubyOnRails
[17:09:24] roxtrongo: has joined #RubyOnRails
[17:11:16] Axsuul: has joined #RubyOnRails
[17:11:16] ewnd9: has joined #RubyOnRails
[17:11:44] FailBit: someone should bump the topic
[17:11:45] FailBit: 4.2.5 is out
[17:12:15] baweaver: has joined #RubyOnRails
[17:13:46] sinkensabe: has joined #RubyOnRails
[17:16:03] guacjack: has joined #RubyOnRails
[17:16:25] yoongkang: has joined #RubyOnRails
[17:19:49] SteveC: has joined #RubyOnRails
[17:21:13] treaki: has joined #RubyOnRails
[17:22:27] Scripore: has joined #RubyOnRails
[17:26:15] dopie: has joined #RubyOnRails
[17:27:13] owenjones: has joined #RubyOnRails
[17:30:04] rgtk: has joined #RubyOnRails
[17:34:41] bbrowning: has joined #RubyOnRails
[17:38:02] Scripore: has joined #RubyOnRails
[17:38:13] yardenbar: has joined #RubyOnRails
[17:38:52] beingjohnm: I'm using this (http://railscasts.com/episodes/219-active-model?language=en&view=asciicast) to create a model that doesn't save data in the database. However it seems I can't use the all method (Foo.all) without ActiveRecord::Base? Is that the case? Having trouble Googling this question.
[17:40:55] annlewis: has joined #RubyOnRails
[17:42:11] m3_del: has joined #RubyOnRails
[17:42:20] jhass: beingjohnm: yes, where would you expect active model to fetch the instances/data from?
[17:43:17] northfurr: has joined #RubyOnRails
[17:44:17] beingjohnm: jhass: I'm populating the data in the controller
[17:44:32] jhass: that's not what I'm getting at
[17:44:37] chipotle: has joined #RubyOnRails
[17:44:51] beingjohnm: jhass: I thought I could maybe add this to the model "include ActiveRecord::Scoping::Named::ClassMethods" to use the .all method but that is giving me a scope error.
[17:44:53] jhass: beingjohnm: if you were the author of active model, how would you implement .all?
[17:45:15] futilegames: has joined #RubyOnRails
[17:45:35] beingjohnm: jhass: that question is way over my head :)
[17:46:00] jhass: beingjohnm: think about it, it will answer your question
[17:46:32] aevitas: has joined #RubyOnRails
[17:47:18] beingjohnm: In my mind (perhaps incorrectly) I don't see why a model would need to be tied to a database. I think a record could exist in memory just as well as on disk.
[17:47:27] aevitas: has joined #RubyOnRails
[17:48:21] jhass: so you would keep all model instances ever created around forever?
[17:48:39] treaki: has joined #RubyOnRails
[17:49:43] beingjohnm: jhass: until the page finishes loading
[17:49:49] jhass: also keep in mind that active model is not a database, it's not even an ORM
[17:50:00] zpe: has joined #RubyOnRails
[17:50:21] jhass: beingjohnm: well, that's a condition that might fit you in your current situation, but is it useful as a generalization?
[17:50:42] jhass: what objective arguments are there for that behavior, not using your current problem as a base?
[17:51:07] mghaig: has joined #RubyOnRails
[17:51:38] tildes: has joined #RubyOnRails
[17:51:55] beingjohnm: jhass: populating the model in memory is quicker than populating from disk I guess
[17:52:10] jhass: anyway, what active model does is providing common logic for defining value objects, classes that describe some data and consistency rules inside it, and may tie some business logic to it
[17:52:23] jhass: it's not defining relationships, that part is still in active record
[17:52:29] mrtomme: has joined #RubyOnRails
[17:52:32] jhass: it's not defining persistence of any kind
[17:52:57] jhass: if you so will it's a more elaborate version of Ruby's standard library Struct class
[17:53:34] jhass: beingjohnm: I meant clearing the in memory database at the end of each request
[17:54:16] beingjohnm: This is going over my head but I'm very much still learning so that is okay
[17:55:34] ruurd: has joined #RubyOnRails
[17:56:04] ruid: has joined #RubyOnRails
[17:56:27] beingjohnm: I've got a series of events that come from other models so nothing needs to be saved to disk. I'm creating one record for each in my Timeline controller. Then I need to go to the Timeline index view and print them out.
[17:57:03] jhass: so keep an array of them or whatever
[17:58:30] beingjohnm: jhass: that was my original thought but then lose some of the benefits of activerecord. Also, doesn't seem very Rails-y.
[17:58:44] jhass: active model isn't active record
[17:58:58] jhass: it's not meant to emulate any of its behavior
[17:59:13] jhass: it's an extraction of some logic that might be useful outside of active record
[17:59:25] jhass: that's specifically not the persistence and relationship part
[18:00:15] Prkl8r: has joined #RubyOnRails
[18:01:59] annlewis: has joined #RubyOnRails
[18:04:34] shibabu: has joined #RubyOnRails
[18:07:06] benhuda: has joined #RubyOnRails
[18:07:46] allcentury: has joined #RubyOnRails
[18:08:39] rromanch_: has joined #RubyOnRails
[18:09:30] fedexo: has joined #RubyOnRails
[18:09:41] viiralvx: has joined #RubyOnRails
[18:10:00] owenjones: has joined #RubyOnRails
[18:10:41] zpe: has joined #RubyOnRails
[18:11:54] vigintas: has joined #RubyOnRails
[18:13:01] baweaver: has joined #RubyOnRails
[18:14:40] roxtrongo: has joined #RubyOnRails
[18:16:06] rickmasta: has joined #RubyOnRails
[18:18:08] rubyonrails305: has joined #RubyOnRails
[18:18:14] dmarr: if i have a :binary field in my db, how would I write that to disk?
[18:18:50] dragonkh: has joined #RubyOnRails
[18:19:19] ruurd: has joined #RubyOnRails
[18:19:37] dmarr: I am trying this https://gist.github.com/marr/373211bcff0aac7f565c
[18:20:43] dmarr: that is in my AttachmentsController#index and I have resources :attachments in routes.rb, yet the method doesn't seem to run when I hit that route
[18:21:01] rubyonrails693: has joined #RubyOnRails
[18:21:59] mices: has joined #RubyOnRails
[18:22:31] mikecmpbll: has joined #RubyOnRails
[18:23:10] mices: what file do i have to edit so i don't have to type `source ~/.rvm/scripts/rvm` every time i open a new shell
[18:23:58] northfurr: has joined #RubyOnRails
[18:24:44] darrencauthon: has joined #RubyOnRails
[18:25:20] capin: mices: .bash_profile would be a good place to start ;)
[18:27:07] dviola: has joined #RubyOnRails
[18:28:38] dmarr: ok, getting somewhere.. although now when i try to write: file.write(a.pic)
[18:28:47] dmarr: I get "\xFF" from ASCII-8BIT to UTF-8
[18:28:51] Pazician: has joined #RubyOnRails
[18:30:10] jhass: dmarr: please don't paraphrase error messages
[18:30:42] mices: capin: https://gist.github.com/mices/9fa26d32d4f78e0d2664
[18:30:53] jhass: dmarr: you weren't on windows, right?
[18:31:02] dtordable: has joined #RubyOnRails
[18:32:12] dmarr: jhass: thats literally the entire message
[18:32:13] FailBit: you should use 'wb' mode for writing
[18:32:14] dmarr: not on win
[18:32:17] FailBit: *writinb binary
[18:32:33] jhass: dmarr: I don't believe that
[18:32:35] dmarr: Encoding::UndefinedConversionError ("\xFF" from ASCII-8BIT to UTF-8):
[18:32:44] dmarr: it didn't show in the web console
[18:32:47] FailBit: http://linux.die.net/man/3/fopen
[18:32:57] jhass: well, open the file with binary encoding nonetheless
[18:33:24] jhass: File.open(.., encoding: "binary") or shorter, File.write(a.filename, a.filedata, encoding: "binary")
[18:33:27] flip_digits: has joined #RubyOnRails
[18:33:35] jhass: binary is an alias for ASCII-8BIT btw
[18:34:39] dmarr: is ok i'll give that a shot
[18:36:09] jhass: that looks like it might be nicer as a rake task btw
[18:36:09] dtordable: has joined #RubyOnRails
[18:38:16] dmarr: jhass: yeah good thinking
[18:38:47] dmarr: taht tweak with the encoding worked, btw.. ty for that
[18:39:46] matthewd: > not on win
[18:39:51] matthewd: ??\_(?????????)_/??
[18:40:49] dmarr: matthewd: jhass asked if i was on win
[18:41:48] Axsuul: has joined #RubyOnRails
[18:41:50] matthewd: dmarr: Ah, right, sorry... I misread that as a reply to "you should use 'wb' mode for writing"
[18:42:49] northfurr: has joined #RubyOnRails
[18:45:42] northfurr: has joined #RubyOnRails
[18:46:42] FailBit: >using win
[18:49:10] squiercaster: has joined #RubyOnRails
[18:49:13] northfurr: has joined #RubyOnRails
[18:51:09] twilling: has joined #RubyOnRails
[18:51:11] tildes: has left #RubyOnRails: ()
[18:51:25] tildes: has joined #RubyOnRails
[18:51:46] northfurr: has joined #RubyOnRails
[18:52:28] drd: has joined #RubyOnRails
[18:53:39] tildes: any exemplary public rails projects one could look at, to learn good style and practices?
[18:54:04] ruurd: has joined #RubyOnRails
[18:54:11] northfurr: has joined #RubyOnRails
[18:54:27] user1138: has joined #RubyOnRails
[18:54:32] rgtk: has joined #RubyOnRails
[18:55:13] Pazician: has joined #RubyOnRails
[18:56:04] atmosx: has joined #RubyOnRails
[18:56:44] stannard: has joined #RubyOnRails
[18:57:19] northfurr: has joined #RubyOnRails
[18:57:26] dmarr: what kind of thing are you looking to do tildes?
[18:58:56] raunicolae: has joined #RubyOnRails
[18:59:46] northfurr: has joined #RubyOnRails
[19:01:31] Coldblackice: has joined #RubyOnRails
[19:02:24] viiralvx: has joined #RubyOnRails
[19:02:43] tildes: dmarr: I'd be interested in anything out of the most obvious "rails 101" scope. good structure / set of tests, well organized assets, good overall design within mvc framework, nice interfaces / APIs... anything worth looking at :)
[19:02:45] annlewis: has joined #RubyOnRails
[19:03:27] pimpin: has joined #RubyOnRails
[19:04:35] dikaio: has joined #RubyOnRails
[19:05:52] mirageglobe: has joined #RubyOnRails
[19:07:06] tildes: dmarr: I've been looking at mhartl's railstutorial, which already has many useful things for me. I think variety is helpful however, so any recommendations are welcome
[19:07:59] shibabu: has joined #RubyOnRails
[19:10:48] defsdoor: has joined #RubyOnRails
[19:11:35] zpe: has joined #RubyOnRails
[19:11:42] User458764: has joined #RubyOnRails
[19:11:52] mirageglobe: has joined #RubyOnRails
[19:12:42] Papierkorb: tildes: there are a bunch of big OSS rails projects out there, though I can't tell you if they have a "good code quality" or w/e.
[19:13:03] Papierkorb: tildes: Redmine (Bug tracker, project management tool) and Spree (Online shop) come to mind
[19:13:25] Papierkorb: tildes: Refinery (CMS)
[19:13:46] baweaver: has joined #RubyOnRails
[19:14:50] mirageglobe: has left #RubyOnRails: ()
[19:14:54] mirageglobe: has joined #RubyOnRails
[19:15:10] nettoweb: has joined #RubyOnRails
[19:15:35] youngbaks: has joined #RubyOnRails
[19:15:40] Tref: has joined #RubyOnRails
[19:16:53] mirageglobe: sorry quick question. is there any quick ways to list current methods/controllers?
[19:17:08] yoongkang: has joined #RubyOnRails
[19:17:10] Axsuul: has joined #RubyOnRails
[19:17:23] dtordable: has joined #RubyOnRails
[19:17:28] Papierkorb: mirageglobe: what do you mean with 'methods/controllers'? Available paths / URLs ?
[19:17:28] htmldrum: has joined #RubyOnRails
[19:17:40] tildes: Papierkorb: I think Redmine looks quite interesting, thanks for the tip!
[19:17:59] hello9: has joined #RubyOnRails
[19:18:29] mirageglobe: I was wondering that rails allows you to create/delete controllers etc.. does it have a "ls" function or something?
[19:18:47] atmosx: mirageglobe: rake routes ?
[19:19:00] Papierkorb: mirageglobe: well, there is always "$ ls app/controllers", or "$ bin/rake routes"
[19:19:37] hello9: what is the difference between changing a key_prefix and namespacing the connection in redis? (i have this in my redis_config hash, do i need something else to namespace for multi-tenancy)
[19:19:38] hello9: :key_prefix => "#{ENV["RAILS"]}_cache_" }
[19:20:21] solars: has joined #RubyOnRails
[19:20:29] ruid: has joined #RubyOnRails
[19:21:50] twilling: has joined #RubyOnRails
[19:24:42] Scripore: has joined #RubyOnRails
[19:24:45] chipotle: has joined #RubyOnRails
[19:25:56] darrencauthon: has joined #RubyOnRails
[19:26:15] mirageglobe: @Papierkorb thanks for this. I thought theres a built in management tool to see whats there
[19:26:39] apotry: has joined #RubyOnRails
[19:27:38] stannard: has joined #RubyOnRails
[19:28:54] Cervajz_: has joined #RubyOnRails
[19:30:12] viiralvx: has joined #RubyOnRails
[19:31:28] Megamos: has joined #RubyOnRails
[19:32:58] Cache_Money: has joined #RubyOnRails
[19:33:31] nertzy: has joined #RubyOnRails
[19:36:34] annlewis: has joined #RubyOnRails
[19:38:31] DrShoggoth: has joined #RubyOnRails
[19:41:50] erbesharat: has joined #RubyOnRails
[19:44:04] allcentury: has joined #RubyOnRails
[19:44:52] tildes: mirageglobe: to see whats there, you would look under app/controllers, then you might want to look into config/routes.rb. if there are controller tests, perhaps run them first with formatted output. of course readme's and documentation can be helpful too
[19:45:08] northfurr: has joined #RubyOnRails
[19:49:25] x-light: has joined #RubyOnRails
[19:52:01] Z00t: has joined #RubyOnRails
[19:52:45] lalalaaa: has joined #RubyOnRails
[19:53:04] ur5us: has joined #RubyOnRails
[19:53:38] vigintas: has joined #RubyOnRails
[19:54:35] TheNet: has joined #RubyOnRails
[19:55:02] goodcodeguy: has joined #RubyOnRails
[19:55:28] northfurr: has joined #RubyOnRails
[20:04:18] freezevee: has joined #RubyOnRails
[20:05:58] Papierkorb: I have the actions #like and #unlike in my ArticlesController. I bound DELETE /like to #unlike. What would you think be the most reasonable HTTP verb for the #like action, residing under the same path? PUT?
[20:07:49] tubbo: i would have a LikesController that is nested under the :articles resource, then you can just POST /article/1/likes and DELETE /article/1/likes/2
[20:08:15] tubbo: maybe it could be a singular resource so you don't have to specify an id in the route
[20:08:55] rhizome: gonna need it somewhere
[20:09:26] naftilos76: has joined #RubyOnRails
[20:09:27] daivyk: has joined #RubyOnRails
[20:10:36] Siyo: has joined #RubyOnRails
[20:10:36] Siyo: has joined #RubyOnRails
[20:12:15] Papierkorb: The 'likes' aren't their own model
[20:12:19] mghaig: has joined #RubyOnRails
[20:12:21] zpe: has joined #RubyOnRails
[20:12:23] northfurr: has joined #RubyOnRails
[20:12:38] shiru: has joined #RubyOnRails
[20:14:12] squiercaster: has joined #RubyOnRails
[20:14:26] shibabu: has joined #RubyOnRails
[20:14:29] baweaver: has joined #RubyOnRails
[20:14:58] tbuehlmann: Papierkorb, no problem, resources don't have to be backed by a model
[20:15:48] Papierkorb: tbuehlmann: too complicated by using an extra controller. the controller actions are three lines each. I think I could get it down to two. one, if I could omit the render nothing: true.
[20:16:41] twilling: has joined #RubyOnRails
[20:21:24] rhizome: read up on the history of KLOC
[20:22:36] rgtk: has joined #RubyOnRails
[20:22:51] mghaig: has joined #RubyOnRails
[20:22:56] northfurr: has joined #RubyOnRails
[20:27:04] darrencauthon: has joined #RubyOnRails
[20:27:49] pepe: has joined #RubyOnRails
[20:28:57] FooMunki: has joined #RubyOnRails
[20:29:58] mices: if i wanna link_to destroy_admin_session_path do i have to specify the method, DELETE
[20:30:25] yoongkang: has joined #RubyOnRails
[20:30:30] uri: has joined #RubyOnRails
[20:30:31] mices: because rails complains no route matches get ...
[20:31:51] tbuehlmann: mices: omit the "destroy_" and declare that link having `method: :delete`
[20:32:23] mices: so then the helper's no good? :(
[20:33:03] mices: if a helper in routes doesn't work verbatim that's kind of bad right?
[20:33:32] tbuehlmann: the route doesn't include "destroy", check $ rake routes
[20:33:42] northfurr: has joined #RubyOnRails
[20:34:45] pepe: has joined #RubyOnRails
[20:35:17] rhizome: mices: use button_to and style it as a link
[20:35:57] adac: has joined #RubyOnRails
[20:36:08] mices: rhizome: ty
[20:36:20] mices: tbuehlmann: https://gist.github.com/mices/8ff3412bc60d66b0ff2e
[20:37:20] annlewis: has joined #RubyOnRails
[20:37:36] tbuehlmann: talking about devise, the route differs a little from what `resources` gives you
[20:37:37] MartinElvar: has joined #RubyOnRails
[20:37:55] tbuehlmann: but it's all written there. use the route helper and method: :delete
[20:39:23] mices: route helper minus the prepended destroy
[20:39:42] tbuehlmann: no, keep that
[20:40:00] mices: ok i feel better now
[20:43:22] User458764: has joined #RubyOnRails
[20:45:41] dtordable: enough for RoR today
[20:45:56] mghaig: has joined #RubyOnRails
[20:46:16] dtordable: I'm happy with today's work
[20:51:13] acti0nman: has joined #RubyOnRails
[20:54:31] mices: with devise can i stil administrate a table under it's own namespace, meaning adminstrating the admins table
[20:54:55] cornerma1: has joined #RubyOnRails
[20:55:12] renews: has joined #RubyOnRails
[20:57:19] Radar: GOOD MORNING
[21:01:50] otherj: has joined #RubyOnRails
[21:04:45] tildes: has joined #RubyOnRails
[21:07:34] baweaver: has joined #RubyOnRails
[21:07:48] dviola: has joined #RubyOnRails
[21:09:45] draig: has joined #RubyOnRails
[21:10:03] northfurr: has joined #RubyOnRails
[21:10:17] 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")
[21:10:30] Palsson: has joined #RubyOnRails
[21:11:22] Tref: has joined #RubyOnRails
[21:13:03] zpe: has joined #RubyOnRails
[21:13:29] meoblast001: has joined #RubyOnRails
[21:14:15] dmarr: Sup RADAR
[21:16:20] nickenchuggets: has joined #RubyOnRails
[21:16:28] CodingWolf: has joined #RubyOnRails
[21:16:58] makenoise: has joined #RubyOnRails
[21:18:59] rclanan: has joined #RubyOnRails
[21:20:03] someish: has joined #RubyOnRails
[21:22:30] dbnoch: has joined #RubyOnRails
[21:27:20] owenjones: has joined #RubyOnRails
[21:27:48] darrencauthon: has joined #RubyOnRails
[21:30:03] rickmasta: has joined #RubyOnRails
[21:33:10] sinkensabe: has joined #RubyOnRails
[21:33:24] m3_del: has joined #RubyOnRails
[21:33:42] rikkipitt: has joined #RubyOnRails
[21:36:26] broman: has joined #RubyOnRails
[21:37:25] broman: can someone please help me? I just generated the scaffold and the NEW action gives me "undefined method `chaves_index_path' for #<#<Class:0x0000000474a0f0>:0x000000047487f0>"... I'm using rails 3.2 .. any thoughts?
[21:38:05] annlewis: has joined #RubyOnRails
[21:40:38] FailBit: that's an eigenclass
[21:41:08] FailBit: broman: try `rake routes`
[21:41:21] FailBit: do you see chaves_index listed?
[21:41:36] rhizome: broman: do you have the scaffold command line you ran?
[21:47:00] chipotle: has joined #RubyOnRails
[21:48:15] broman: sorry the delay
[21:48:28] Sceko: has joined #RubyOnRails
[21:48:34] Sceko: has joined #RubyOnRails
[21:48:42] broman: FailBit, this line is wrong: <%= form_for @chafe do |f| %>... rake routes brings me that route
[21:48:53] VeryBewitching: has joined #RubyOnRails
[21:48:59] broman: rhizome, rails g scaffold Chaves nome:string
[21:49:33] pydave6367: has joined #RubyOnRails
[21:49:39] rhizome: do your routes say "chaves" or "chafes"?
[21:50:29] broman: rhizome, both
[21:50:38] framlinqp: has left #RubyOnRails: ()
[21:51:01] rhizome: ok. if chaves is plural and the scaffold is describing a model, it should be singular
[21:51:07] benlieb: has joined #RubyOnRails
[21:51:24] broman: rhizome, it generated the wrong code from the beginning?
[21:51:34] rhizome: you fed it bad data
[21:51:56] rhizome: rails g scaffold Chafe...
[21:52:00] renews: has joined #RubyOnRails
[21:52:10] rhizome: rails destroy scaffold Chaves
[21:53:05] rhizome: probably run them the other way around
[21:53:14] broman: trying.. now getting devise error
[21:54:42] sinkensabe: has joined #RubyOnRails
[21:54:42] Tref: has joined #RubyOnRails
[21:55:15] adavia: is faye the best option for real time implementation?
[21:57:09] broman: rhizome, thank you! :)
[21:57:28] hnanon: has joined #RubyOnRails
[21:57:52] hnanon: Can I rename an app as I'm cloning it?
[21:58:27] rhizome: maybe. i think it's probably easier than it used to be, but why?
[21:59:28] hnanon: I have an app that I plan on using as a template for other apps...
[21:59:53] hnanon: I want to just clone it and continue from there, developing the new app.
[21:59:55] rhizome: have you considered using app templates?
[22:00:38] hnanon: Yeah, I have...but I thought cloning via git would be faster and simpler at this point.
[22:01:23] rakm: has joined #RubyOnRails
[22:01:32] rhizome: maybe a combination of app template and engine
[22:02:06] broman: I'm trying to build an application with login (devise) and i need to implement roles... but i need to create these roles dynamically giving it a name and the permissions it can execute... i was trying to use Cancan... but is there any other kind of alternative to better accomplish that I'm searching for?
[22:03:20] roxtrongo: has joined #RubyOnRails
[22:04:29] shibabu: has joined #RubyOnRails
[22:05:01] smathy: has joined #RubyOnRails
[22:06:06] Oog: has joined #RubyOnRails
[22:06:53] rhizome: cancancan or pundit
[22:07:04] Oog: https://gist.github.com/anonymous/f46c3f44bebfcdd18ec2 - #<ActiveRecord::AssociationTypeMismatch: CreditCard(#70246936046640) expected, got CreditCard(#70246833160000) ideas...?
[22:07:13] htmldrum: has joined #RubyOnRails
[22:07:30] rhizome: they are different objects
[22:07:48] rhizome: or classes?
[22:08:26] Oog: actually restarting the server fixed it. i think it was some caching problem
[22:08:36] rhizome: yeah, dunno
[22:08:46] rossvz: has joined #RubyOnRails
[22:11:13] smathy: has joined #RubyOnRails
[22:11:31] dtordable: change the topic
[22:11:47] dtordable: I'm in 4.2.5
[22:14:12] moeabdol: has joined #RubyOnRails
[22:14:34] pydave6367: has joined #RubyOnRails
[22:16:02] owenjones: has joined #RubyOnRails
[22:16:22] viiralvx: has joined #RubyOnRails
[22:17:09] chipotle: has joined #RubyOnRails
[22:19:01] duncannz: has joined #RubyOnRails
[22:20:03] ewnd9: has joined #RubyOnRails
[22:20:03] duncannz: has joined #RubyOnRails
[22:20:59] duncannz: has joined #RubyOnRails
[22:25:28] mices: has joined #RubyOnRails
[22:25:28] Megamos: has joined #RubyOnRails
[22:25:54] mices: Radar: is forem designed to be used with devise?
[22:26:10] Radar: mices: Look in the readme for mentions of devise. I think it's in there
[22:26:13] Radar: dtordable: is there a blog post yet?
[22:26:32] Radar: Yes, there is.
[22:27:03] Megamos: has joined #RubyOnRails
[22:28:34] darrencauthon: has joined #RubyOnRails
[22:30:05] superlou: has joined #RubyOnRails
[22:30:58] m3_del: has joined #RubyOnRails
[22:32:29] makenoise: has joined #RubyOnRails
[22:33:04] makenoise: has joined #RubyOnRails
[22:35:14] quazimodo: has joined #RubyOnRails
[22:35:51] parus_: has left #RubyOnRails: ()
[22:36:16] krramos: has joined #RubyOnRails
[22:37:37] shibabu: has joined #RubyOnRails
[22:38:53] annlewis: has joined #RubyOnRails
[22:49:04] Megamos: has joined #RubyOnRails
[22:49:38] owenjones: has joined #RubyOnRails
[22:52:17] htmldrum: has joined #RubyOnRails
[22:53:36] chipotle: has joined #RubyOnRails
[22:53:49] krramos: has joined #RubyOnRails
[22:55:13] krramos: has left #RubyOnRails: ()
[22:55:22] K_r3aPeR: has joined #RubyOnRails
[22:55:38] user1138: has joined #RubyOnRails
[22:56:09] Fire-Dragon-DoL: has joined #RubyOnRails
[22:56:32] lacrymology: has joined #RubyOnRails
[22:57:36] Radar: Done with free OSS work. glhf.
[22:58:58] rgtk: has joined #RubyOnRails
[23:00:25] smathy: has joined #RubyOnRails
[23:01:50] zpe: has joined #RubyOnRails
[23:04:12] private-butts: has joined #RubyOnRails
[23:04:24] roxtrongo: has joined #RubyOnRails
[23:05:32] quazimodo: has joined #RubyOnRails
[23:07:39] matt_d: hi private-butts
[23:07:48] mghaig: has joined #RubyOnRails
[23:09:38] davidmst: has joined #RubyOnRails
[23:11:40] davidmst: Hey everyone, I'm currently trying to implement API versioning in my rails project and I'd like to be able to route to namespaced controllers depending on the major version... this is fairly straightforward, *however* I'd also like to be able to route any requests for anything above the current version to a specific controller and anything below a specific version to another controller
[23:12:11] rhizome: davidmst: maybe look at routing constraints
[23:12:17] davidmst: I know I can match those additional conditions using constraints
[23:12:29] aevitas: has joined #RubyOnRails
[23:12:36] davidmst: But if I have nested resources, I'd like to be able to route everything to say, "FutureVersionController"
[23:12:57] davidmst: Rather than "FutureVersion/Users", "FutureVersion/UserRoles"
[23:13:44] davidmst: Is there any way to catch all valid routes without a scope and redirect them or have them use utilise a specific controller?
[23:14:14] rhizome: sure, put it last in routes.rb
[23:15:06] davidmst: Presumably you mean something like... scope(...) do; resource :users, controller: blah; etc; end;
[23:16:01] private-butts: So I created a join table using rails generate create_join_table and now it's stuck and I can't remove it rails destroy didn't work
[23:16:27] private-butts: Sorry, it's stuck in my schema.rb I should have said
[23:16:51] private-butts: I'm new at rails, so it's probably something stupid
[23:17:00] rhizome: rake db:rollback
[23:17:49] private-butts: It's still there...
[23:18:28] Radar: private-butts: show us schema.rb please
[23:18:40] davidmst: @private-butts, try rake db:schema:dump
[23:18:54] exadeci: has joined #RubyOnRails
[23:19:06] user1138: has joined #RubyOnRails
[23:19:14] rickmasta: has joined #RubyOnRails
[23:19:27] private-butts: here's my schema: https://gist.github.com/71b2a0378796b17f32bb.git
[23:19:47] private-butts: it keeps coming back every time I migrate
[23:19:50] davidmst: Otherwise do rake db:drop; rake db:create; rake db:migrate
[23:20:16] davidmst: Have you manually gone into the db/migrations directory to delete the migration?
[23:20:32] private-butts: Yeah, it's not there, so I probably did that
[23:21:06] private-butts: I'm sorry, I've got to let the dog out, I'll be back in a bit
[23:22:40] rgrmatt: has joined #RubyOnRails
[23:24:05] dwt_dev: has joined #RubyOnRails
[23:24:45] Radar: That link doesn't work for me.
[23:25:53] owenjones: has joined #RubyOnRails
[23:27:39] brennovich: has joined #RubyOnRails
[23:28:23] m3_del: has joined #RubyOnRails
[23:29:15] VeryBewitching: https://gist.github.com/anonymous/71b2a0378796b17f32bb
[23:29:21] darrencauthon: has joined #RubyOnRails
[23:31:08] surrealanalysis: has joined #RubyOnRails
[23:32:08] StaticVoid: I've disabled a field on my form. It makes the background grey-ish, but it is not dark enough. I can't figure out what CSS class drives this. Using bootstrap ssas.
[23:33:13] davidmst: @StaticVoid - Right click, inspect element
[23:33:33] davidmst: And in the "Styles" pane, it should have a breakdown of the classes applying to the element
[23:34:38] nothing_: has joined #RubyOnRails
[23:34:43] owenjones: has joined #RubyOnRails
[23:36:11] StaticVoid: davidmst: Thx - it confirms that it uses the 'field' class, but: I tried various things before, and found out that somehow it also uses the 'input' class
[23:36:33] StaticVoid: but it appears that is done automatically in the 'form_for'logic
[23:37:17] StaticVoid: I hope that makes sense? Is it possible to have it use a custom 'input' css class?
[23:37:34] StaticVoid: Or should I just not use 'form_for' and just list it all out manually ?
[23:37:45] matt_d: StaticVoid: For text fields, etc?
[23:38:26] d5sx43: has joined #RubyOnRails
[23:39:38] annlewis: has joined #RubyOnRails
[23:40:01] StaticVoid: matt_d: yes, there is one field that should be disabled/readOnly and that one I want to use a different css/format
[23:40:11] StaticVoid: https://gist.github.com/RobvanB/1c7bdf633f30c7f02808#file-gistfile1-txt
[23:40:12] northfurr: has joined #RubyOnRails
[23:40:17] Radar: StaticVoid: html: { class: "foo" } at the end of it
[23:40:33] Radar: Might not need the html wrapping. I can never remember.
[23:40:50] fedexo: has joined #RubyOnRails
[23:41:05] StaticVoid: Radar: let me try that
[23:42:49] private-butts: Alright, I'm back, sorry about the link, I gave you the clone url by accident
[23:44:38] Radar: private-butts: I have no idea what to make of that link.
[23:44:45] private-butts: https://gist.github.com/anonymous/2791450dad018bec15c6
[23:44:46] Radar: All I see is a bunch of tables and no data about how you got there.
[23:44:55] private-butts: that's my schema file
[23:45:19] private-butts: I just want to know where to stop db:migrate from recreating my join tables
[23:45:34] private-butts: they don't exist anywhere in my project, but migrate keeps making them
[23:45:35] annlewis: has joined #RubyOnRails
[23:45:41] private-butts: even at VERSION 0
[23:47:49] davidmst: Can you show us your migration files, PB?
[23:48:17] nothing_: has left #RubyOnRails: ()
[23:49:15] private-butts: Hell, I have the whole project in a public repo, do you want that instead?
[23:49:39] alex88: has joined #RubyOnRails
[23:50:15] private-butts: https://github.com/fluteamahoot/PCSheets
[23:50:16] nya: has joined #RubyOnRails
[23:50:55] private-butts: here's the migrations directly: https://github.com/fluteamahoot/PCSheets/tree/master/db/migrate
[23:51:24] EminenceHC: has joined #RubyOnRails
[23:51:28] davidmst: Which are the table(s) that are joined together when you don't want them to be?
[23:53:26] private-butts: Art with ages, race, and chr_class
[23:53:26] StaticVoid: Radar: That worked! As long as I specify it in the css file with a 'dot' : ".inputdisabled". Thx!
[23:53:40] Radar: Why are your columns having first letter uppercased?
[23:53:44] Radar: That is not the Ruby way, private-butts.
[23:54:08] private-butts: Again, first non-tutorial project
[23:54:23] private-butts: Also, first time using Ruby
[23:55:52] IrishGringo: has joined #RubyOnRails
[23:55:55] djbkd: has joined #RubyOnRails
[23:56:31] private-butts: *fixed the naming convention
[23:57:56] trosborn: has joined #RubyOnRails
[23:58:18] SteenJobs: has joined #RubyOnRails
[23:58:19] private-butts: I'm thinking just recreate the project
[23:58:40] private-butts: Because I have spent way to much time fixing this
[23:58:49] private-butts: *failing to fix
[23:58:57] davidmst: Try deleting the schema.rb file and then doing a new migration, perhaps?
[23:59:21] davidmst: The good thing about trying to fix something, even if you're spending a lot of time, is you get debugging skills that are helpful in the future
[23:59:29] davidmst: You know where to look, where not to look, etc.
[23:59:40] allcentu1: has joined #RubyOnRails
[23:59:43] davidmst: So if something similar happens again, you'll hopefully be more equipped to figure it out