« Back to channel list

#RubyOnRails - 09 April 2016

« Back 1 day Forward 1 day »
[00:01:32] jstransky: has joined #RubyOnRails
[00:01:37] one_zero: has joined #RubyOnRails
[00:02:15] jstransky: Is this valid erb syntax? <% @current_problem_attempt = ProblemAttempt.find_by_id(attempt.to_i) %>
[00:02:46] owenjones: has joined #RubyOnRails
[00:04:02] k1t: jstransky: that seems like something that shouldn't be happening in an ERB file, but I could be wrong.
[00:04:16] k1t: it should work though
[00:04:28] kadoppe: has joined #RubyOnRails
[00:04:33] jstransky: k1t: heh maybe. I’m still pretty new to ruby
[00:04:56] weaksauce: jesus mwlang
[00:05:07] weaksauce: that's a rough transition
[00:05:15] jstransky: This is inside a loop where I need to use a value to look up an object
[00:05:31] mwlang: weaksauce: yeah. throw in SQL Server 2005 for good measure. :-)
[00:05:40] ekinmur: has joined #RubyOnRails
[00:05:41] jstransky: then I read various properties of the result inside some conditions
[00:06:02] weaksauce: :D aside from pricing sqlserver and the related tooling is not terrible.
[00:06:03] sleungcy: has joined #RubyOnRails
[00:06:09] jstransky: I don’t want to look it up each time I refer to it so trying to record to a local variable.
[00:06:12] jstransky: Is that the right way?
[00:06:29] weaksauce: jstransky it looks like you are doing too much in the view
[00:06:53] jstransky: probably, the guy’s who structured this thing are pretty new as well :p
[00:07:05] jstransky: and we’re suffering from bad scope creep at this poing
[00:07:36] weaksauce: model should handle lots of logic for a domain object and the controller should get that info and pass it to the view to render
[00:08:08] weaksauce: if you are doing anything more than basic formatting logic in the view it's probably too much.
[00:08:29] pawnbox: has joined #RubyOnRails
[00:08:30] k1t: ^ i (and most others) would agree w/ weaksauce there
[00:09:29] petor: has joined #RubyOnRails
[00:10:40] baweaver: has joined #RubyOnRails
[00:11:21] stannard: has joined #RubyOnRails
[00:13:26] krz: has joined #RubyOnRails
[00:15:19] SeanLazer: has joined #RubyOnRails
[00:17:51] ensyde__: has joined #RubyOnRails
[00:19:19] greengriminal: has joined #RubyOnRails
[00:20:36] joaumg: has joined #RubyOnRails
[00:21:31] edwinvdgraaf: has joined #RubyOnRails
[00:23:33] wsk: has joined #RubyOnRails
[00:29:45] flashpoint9: has joined #RubyOnRails
[00:30:10] yfeldblum: has joined #RubyOnRails
[00:31:15] chipotle: has joined #RubyOnRails
[00:36:27] GregUK: has joined #RubyOnRails
[00:41:00] full_throttle: has joined #RubyOnRails
[00:41:04] full_throttle: is there a problem if you can run gem install sass but not sudo gem install sass
[00:43:43] eyeamaye: has joined #RubyOnRails
[00:44:44] weaksauce: well you shouldn't run sudo gem anything
[00:45:32] weaksauce: you shouldn't ever need to is why
[00:45:44] weaksauce: when are you running ruby as root?
[00:45:51] RegulationD: has joined #RubyOnRails
[00:46:37] t27duck: has joined #RubyOnRails
[00:47:22] DoctorMonocular: has joined #RubyOnRails
[00:50:42] t27duck: I'm embarrassed by asking this (senior developer with 7 years experience) .... foobar_url - when you pass in the "domain" option... If the user is currently at the "www." version of the domain and you pass into that method the "non-www version", does the string result in the "non-www version" ?
[00:51:11] joaumg: has joined #RubyOnRails
[00:51:34] t27duck: ie, user is currently at www.mydomain.com/foobar and you have a link_to with foobar_url(domain: 'mydomain.com')
[00:53:11] krz: has joined #RubyOnRails
[00:55:25] kadoppe: has joined #RubyOnRails
[00:55:35] weaksauce: full_throttle i'm pretty sure there is no good reason to run ruby as root unless you have some really odd scenario
[00:56:20] kies: has joined #RubyOnRails
[00:56:32] eyeamaye1: has joined #RubyOnRails
[00:56:41] andatche: has joined #RubyOnRails
[00:57:13] duncannz: can I make a devise based users table not require a unique email address? since many users share email addresess but they have their own membership numbers which I want them to log in with
[00:58:19] abolishme: has joined #RubyOnRails
[00:58:20] pawnbox: has joined #RubyOnRails
[00:58:44] manfrin: has joined #RubyOnRails
[01:02:37] workmad3: has joined #RubyOnRails
[01:06:16] jottr: has joined #RubyOnRails
[01:09:33] sudoubuntu: has joined #RubyOnRails
[01:11:44] jottr_: has joined #RubyOnRails
[01:17:53] ekinmur: has joined #RubyOnRails
[01:19:14] apotry: has joined #RubyOnRails
[01:20:08] jgt4: has joined #RubyOnRails
[01:21:09] kadoppe: has joined #RubyOnRails
[01:22:54] dblessing: has joined #RubyOnRails
[01:23:35] hxegon: has joined #RubyOnRails
[01:23:35] dblessing: Hey all. See a strange issue in Sidekiq with PG. All threads are stuck in `postgresql_adapter.rb:602:in `exec_prepared'`. Hoping maybe someone has run in to this before.
[01:23:58] workmad3: has joined #RubyOnRails
[01:25:56] rafaelfr_: has joined #RubyOnRails
[01:26:36] t27duck: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[01:27:30] Seeq: has left #RubyOnRails: ("Leaving")
[01:27:52] joaumg: has joined #RubyOnRails
[01:27:52] joaumg: has joined #RubyOnRails
[01:28:29] pawnbox: has joined #RubyOnRails
[01:29:32] Technodrome: has joined #RubyOnRails
[01:33:46] hxegon: has joined #RubyOnRails
[01:37:09] jenrzzz: has joined #RubyOnRails
[01:38:29] hxegon: has joined #RubyOnRails
[01:47:48] chagel: has joined #RubyOnRails
[01:49:42] sudoubuntu: has joined #RubyOnRails
[01:52:17] dblessing: has joined #RubyOnRails
[01:56:46] stannard: has joined #RubyOnRails
[01:57:02] jenrzzz: has joined #RubyOnRails
[01:57:02] jenrzzz: has joined #RubyOnRails
[01:58:09] pawnbox: has joined #RubyOnRails
[01:58:55] mices: has joined #RubyOnRails
[02:01:00] jtong: has joined #RubyOnRails
[02:03:05] Megamos: has joined #RubyOnRails
[02:05:35] ur5us: has joined #RubyOnRails
[02:06:11] freddymungo: has joined #RubyOnRails
[02:08:48] joaumg: has joined #RubyOnRails
[02:10:13] jorrin: has joined #RubyOnRails
[02:10:32] kadoppe: has joined #RubyOnRails
[02:10:38] petor: has joined #RubyOnRails
[02:16:24] akshat: has joined #RubyOnRails
[02:18:37] kadoppe: has joined #RubyOnRails
[02:18:54] qejk: has joined #RubyOnRails
[02:25:00] quazimodo: has joined #RubyOnRails
[02:28:03] pawnbox: has joined #RubyOnRails
[02:31:35] joshkovach: has joined #RubyOnRails
[02:32:19] RegulationD: has joined #RubyOnRails
[02:33:19] chipotle: has joined #RubyOnRails
[02:34:35] kies: has joined #RubyOnRails
[02:35:50] bronson: has joined #RubyOnRails
[02:38:54] _Tariq: has joined #RubyOnRails
[02:45:43] stardiviner: has joined #RubyOnRails
[02:53:26] k1t: has joined #RubyOnRails
[02:54:26] k1t: has joined #RubyOnRails
[02:55:49] sevenseacat: has joined #RubyOnRails
[02:56:17] baweaver: has joined #RubyOnRails
[02:58:55] Rubie: has joined #RubyOnRails
[03:02:09] Rubie: has joined #RubyOnRails
[03:06:53] barajasfab: has joined #RubyOnRails
[03:08:02] pawnbox: has joined #RubyOnRails
[03:09:26] eyeamaye1: does rails-api handle rendering json error messages originating from failed model validation differently than rails 4 does by default?
[03:10:55] CaffeineShot: has joined #RubyOnRails
[03:11:28] yfeldblum: has joined #RubyOnRails
[03:13:30] yfeldblum: has joined #RubyOnRails
[03:13:33] Sawbones: has joined #RubyOnRails
[03:15:15] braincrash: has joined #RubyOnRails
[03:18:14] kadoppe: has joined #RubyOnRails
[03:26:13] eyeamaye: has joined #RubyOnRails
[03:26:45] _djbkd: has joined #RubyOnRails
[03:28:19] AliasLStoRM: has joined #RubyOnRails
[03:30:30] eyeamaye1: has joined #RubyOnRails
[03:31:25] arBmind: has joined #RubyOnRails
[03:38:05] kadoppe: has joined #RubyOnRails
[03:38:56] kies: has joined #RubyOnRails
[03:38:57] qhp: has joined #RubyOnRails
[03:39:27] qhp: has joined #RubyOnRails
[03:40:58] HouseMD: has joined #RubyOnRails
[03:41:44] qhp: has joined #RubyOnRails
[03:45:58] nettoweb: has joined #RubyOnRails
[03:50:25] owenjones: has joined #RubyOnRails
[03:51:31] jgt4: has joined #RubyOnRails
[03:54:02] morenoh149: has joined #RubyOnRails
[03:56:57] edwinvdgraaf: has joined #RubyOnRails
[04:05:51] Technodrome: has joined #RubyOnRails
[04:06:39] rake_db_migrate: has joined #RubyOnRails
[04:09:46] HenriettaSalt: has joined #RubyOnRails
[04:10:33] _djbkd: has joined #RubyOnRails
[04:11:47] petor: has joined #RubyOnRails
[04:12:20] crameth: has joined #RubyOnRails
[04:15:38] mices: what do i have to do after adding new js.erb files to my views? anything?
[04:18:03] baweaver: has joined #RubyOnRails
[04:21:52] merida: has joined #RubyOnRails
[04:24:02] sudoubuntu: has joined #RubyOnRails
[04:24:34] gcoz: has joined #RubyOnRails
[04:26:03] srinidhi: has joined #RubyOnRails
[04:27:10] Rodya_: has joined #RubyOnRails
[04:29:11] gcoz: When using form objects how do I pass values back into the object I used for the new/create actions in the update/edit actions
[04:30:16] queequeg1: has joined #RubyOnRails
[04:30:54] Rodya_: has joined #RubyOnRails
[04:33:22] stardiviner: has joined #RubyOnRails
[04:36:47] bronson: has joined #RubyOnRails
[04:41:28] BinaryMaster: has joined #RubyOnRails
[04:42:41] Rodya_: has joined #RubyOnRails
[04:44:06] xilus: has joined #RubyOnRails
[04:46:43] rake_db_migrate: has joined #RubyOnRails
[04:48:40] BinaryMaster: Question: My company is going to be porting our Python flask application to Ruby and Rails, the application currently has Relational Data in MySQL but also store data in MongoDB is it possible to access both data stores in rails?
[04:50:18] chagel: has joined #RubyOnRails
[04:51:41] baash05: has joined #RubyOnRails
[04:55:08] baash05: Just wondering.. is there a way to add attributes for a serializer inside a module
[04:58:19] Ropeney: Binarymaster, it is possible; but will be fun
[04:59:31] BinaryMaster: ropeney, fun as in finding support for mongo or in some other way?
[04:59:52] Ropeney: mongo is well supported
[05:00:52] Ropeney: the gem you want is mongoid
[05:01:02] BinaryMaster: was just about to ask that :)
[05:02:05] pawnbox: has joined #RubyOnRails
[05:02:07] BinaryMaster: I have to say I love the documentation of ruby and the ruby libraries compared to python
[05:02:27] Ropeney: it is a good perk
[05:05:44] sp1rs: has joined #RubyOnRails
[05:17:06] BinaryMaster: Question: Not exactly rails related, but I'm using Rubymine and am coming from Pycharm where code completion is down just just hitting enter I find I have to press the down arrow first in rubymine to select something even if the first thing is what I want. Is there a way to make this work more like pycharm?
[05:18:44] pawnbox: has joined #RubyOnRails
[05:27:01] merida: has joined #RubyOnRails
[05:29:04] kadoppe: has joined #RubyOnRails
[05:29:59] Technodrome: has joined #RubyOnRails
[05:33:31] RegulationD: has joined #RubyOnRails
[05:36:19] Tempesta: has joined #RubyOnRails
[05:39:40] Sawbones: has joined #RubyOnRails
[05:42:26] merida: has joined #RubyOnRails
[05:45:05] edwinvdgraaf: has joined #RubyOnRails
[05:48:36] full_throttle: has joined #RubyOnRails
[05:50:32] pawnbox: has joined #RubyOnRails
[05:52:17] owenjones: has joined #RubyOnRails
[05:52:27] jgt4: has joined #RubyOnRails
[05:52:27] sp1rs: has joined #RubyOnRails
[06:02:36] jtong: has joined #RubyOnRails
[06:02:50] lxsameer: has joined #RubyOnRails
[06:03:33] kadoppe: has joined #RubyOnRails
[06:11:33] Sawbones: has joined #RubyOnRails
[06:11:35] njero: has joined #RubyOnRails
[06:12:56] petor: has joined #RubyOnRails
[06:13:20] tknz: has joined #RubyOnRails
[06:18:22] tildes: has joined #RubyOnRails
[06:26:26] nickenchuggets: has joined #RubyOnRails
[06:26:37] Macaveli: has joined #RubyOnRails
[06:33:28] Sawbones: has joined #RubyOnRails
[06:34:42] arup_r: has joined #RubyOnRails
[06:34:56] srinidhi: has joined #RubyOnRails
[06:35:08] dionysus69: has joined #RubyOnRails
[06:36:15] arup_r: I never worked on any Rails 3 project. Got couple of tasks in this 3.2 app. I wrote 3 classes and I want them to call from any where in App. Where should I put the class, so that it autoloads. I kept it in lib/ folder and it is throwing constant error.
[06:36:59] michael_mbp: I normally autoload whatever's in lib/ in the application.rb
[06:37:41] bronson: has joined #RubyOnRails
[06:37:46] michael_mbp: arup_r: config.autoload_paths += %W(#{ config.root }/lib)
[06:38:22] arup_r: ok. I kept in app/imports directory and it autoloads the class
[06:38:22] sp1rs: has joined #RubyOnRails
[06:38:39] michael_mbp: yeah, app/ is already setup for that in Rails.
[06:38:46] michael_mbp: (by default).
[06:38:48] arup_r: I will keep it there or in lib/ ..?
[06:38:56] arup_r: now I am confused.. haha
[06:39:07] michael_mbp: heh, well lib/imports won't hurt.
[06:41:04] arup_r: a giant Spree project. :) They have in application.rb a line config.autoload_paths += %W(#{config.root}/extras) # Custom directories with classes and modules you want to be autoloadable.
[06:41:10] czerasz2: has joined #RubyOnRails
[06:41:11] arup_r: so they want me to put there..
[06:41:24] arup_r: but directory doesn't exist. I have to create
[06:42:02] arup_r: anyway thanks michael_mbp
[06:42:11] michael_mbp: If I had a penny when some 'team member' with senority always had a conflicting opinion.
[06:42:16] michael_mbp: arup_r: AHH sorry, not about you mate :D
[06:42:26] arup_r: I understood :p
[06:42:41] michael_mbp: i.e. if you say /lib... there's ALWAYS be some cheeky 'know it all' with something else :p
[06:42:49] michael_mbp: ACTION facepalms
[06:42:55] michael_mbp: ...and the best part
[06:43:13] michael_mbp: it changes from team to team. And if the team if large enough, even (ha!) across members.
[06:43:49] michael_mbp: One of my last gigs, I ended up doing 'lead dev's opinion based development'. No kidding!
[06:44:42] michael_mbp: arup_r: that's my rant for the day :D
[06:45:19] petor: has joined #RubyOnRails
[06:45:26] diegoaguilar: has joined #RubyOnRails
[06:45:34] michael_mbp: o/ n_e_o. Anything to do with that Matrix fella or NEO in Singapore?
[06:45:59] edwinvdgraaf: has joined #RubyOnRails
[06:47:18] njero: arup_r: aren't u on a holiday?
[06:47:32] michael_mbp: I'm technically on a long holiday.
[06:47:39] michael_mbp: it's called 'got no work' :(
[06:47:46] njero: technically .. hm..
[06:47:49] arup_r: yeah.. I am.
[06:47:58] michael_mbp: So, I'm buulding something fun for my AWS Opswork stuff.
[06:48:16] michael_mbp: arup_r: nice!
[06:48:18] arup_r: but still working ..
[06:48:30] Sawbones: has joined #RubyOnRails
[06:48:52] michael_mbp: n_e_o: 2 months+ "holiday" now :o
[06:49:00] njero: michael_mbp: i tried for trying it then i ended up in elb :P
[06:49:42] pawnbox_: has joined #RubyOnRails
[06:49:50] michael_mbp: what's nice though is that I'm able to distract myself and get to those small projects I never had time for.
[06:50:26] michael_mbp: but that luxury has really gone long time ago, need some paid work ASAP.
[06:50:26] quazimodo: has joined #RubyOnRails
[06:50:41] michael_mbp: On the plus side, I may have a chunky project coming in this week.
[06:51:02] michael_mbp: hey arup_r how are you looking at taking some work on the side, I'll PM ya.
[06:51:44] Sawbones: has joined #RubyOnRails
[06:55:12] Palsson: has joined #RubyOnRails
[06:55:30] kadoppe: has joined #RubyOnRails
[06:57:23] djbkd: has joined #RubyOnRails
[07:02:02] emchamp-dt: has joined #RubyOnRails
[07:03:14] futilegames: has joined #RubyOnRails
[07:04:17] Rodya_: has joined #RubyOnRails
[07:05:25] sevenseacat: has joined #RubyOnRails
[07:06:08] jstransky: has joined #RubyOnRails
[07:06:28] petor: has joined #RubyOnRails
[07:07:59] Palsson: has joined #RubyOnRails
[07:14:04] eyeamaye: has joined #RubyOnRails
[07:14:13] marr: has joined #RubyOnRails
[07:23:30] Disavowed: has joined #RubyOnRails
[07:23:59] Disavowed: has joined #RubyOnRails
[07:27:10] akkmaxon: has joined #RubyOnRails
[07:33:04] Devalo: has joined #RubyOnRails
[07:34:08] bmf: has joined #RubyOnRails
[07:34:36] jero_: has joined #RubyOnRails
[07:35:46] Palsson: has joined #RubyOnRails
[07:36:38] reber: has joined #RubyOnRails
[07:38:45] jenrzzz: has joined #RubyOnRails
[07:39:21] sp1rs: has joined #RubyOnRails
[07:42:17] arup_r1: has joined #RubyOnRails
[07:42:27] baweaver: has joined #RubyOnRails
[07:51:51] Devalo: has joined #RubyOnRails
[07:52:41] Sawbones: has joined #RubyOnRails
[07:52:54] crameth: has joined #RubyOnRails
[07:54:15] Macaveli: has joined #RubyOnRails
[07:54:42] chagel: has joined #RubyOnRails
[07:57:33] petor: has joined #RubyOnRails
[08:03:09] darutoko: has joined #RubyOnRails
[08:04:38] Palsson: has joined #RubyOnRails
[08:05:13] Disavowed: has joined #RubyOnRails
[08:08:53] arup_r: has joined #RubyOnRails
[08:16:10] abolishme: has joined #RubyOnRails
[08:17:05] dannyguk: has joined #RubyOnRails
[08:18:21] kadoppe: has joined #RubyOnRails
[08:19:46] futilegames: has joined #RubyOnRails
[08:23:04] snowy: has joined #RubyOnRails
[08:26:17] apotry: has joined #RubyOnRails
[08:28:36] apotry: has joined #RubyOnRails
[08:29:38] armyriad: has joined #RubyOnRails
[08:29:44] shibly: has joined #RubyOnRails
[08:30:31] shibly: has left #RubyOnRails: ()
[08:30:54] newbieuser: has joined #RubyOnRails
[08:31:46] gusrub: has joined #RubyOnRails
[08:34:06] edwinvdgraaf: has joined #RubyOnRails
[08:35:56] snowy: has joined #RubyOnRails
[08:38:42] bronson: has joined #RubyOnRails
[08:39:57] shibly: has joined #RubyOnRails
[08:40:14] shibly: sevenseacat, Hi, how are you?
[08:40:37] sevenseacat: shibly: not bad, and yourself?
[08:40:46] shibly: Fine, thanks
[08:40:53] shibly: sevenseacat, What are you doing now?
[08:41:09] ur5us: has joined #RubyOnRails
[08:42:44] shibly: How many days does it take to become expert rails developer?
[08:42:59] sevenseacat: somewhere between 1 and 1 million.
[08:43:00] dgncn: has joined #RubyOnRails
[08:43:21] shibly: 1 day to become expert? How?
[08:44:48] edwinvdgraaf: has joined #RubyOnRails
[08:45:13] sevenseacat: shibly: it was more 'ask an unanswerable question, get a nonsensical answer'
[08:46:26] full_throttle: gem command not found =*(
[08:46:40] shibly: full_throttle, How did you install ruby?
[08:46:57] full_throttle: and then tried using apt because sass wasn't working
[08:47:02] full_throttle: sass command not found
[08:47:05] full_throttle: gem command not found
[08:47:19] full_throttle: i even tried installing it through apt which gave me ruby 1.9
[08:47:37] AzaToth: has joined #RubyOnRails
[08:47:38] full_throttle: and then sass was yelling at me telling me that 1.9 will be unsupported very soon
[08:48:03] full_throttle: so rvm compiles ruby-head (mri ruby) and gem doesn't work
[08:48:03] shibly: full_throttle, ruby -v , what does it return?
[08:48:22] full_throttle: commnd not found: ruby
[08:48:28] shibly: full_throttle, Ruby "ruby -v" on your terminal
[08:48:29] full_throttle: i think my real problem lies with zsh
[08:48:46] full_throttle: rvm is semi broken
[08:48:50] full_throttle: it says rvm is not a function
[08:48:53] sevenseacat: 1.9 hasnt been supported for a long time
[08:48:57] full_throttle: before it said that and i fixed it
[08:49:04] full_throttle: someting with a path
[08:49:09] full_throttle: and then i installed sass
[08:49:16] sevenseacat: full_throttle: !enternotspace
[08:49:16] helpa: full_throttle: The enter key should not be used as a space bar. Lines on IRC can be up to 400 characters long.
[08:49:16] full_throttle: i tried running sass and it said command not found
[08:49:51] full_throttle: well i am not using it as a space bar
[08:49:57] full_throttle: i am using it as a comma
[08:50:28] shibly: full_throttle, "type rvm | head -n 1" What does it return?
[08:50:39] sevenseacat: full_throttle: please follow directions.
[08:51:00] full_throttle: zsh: command not found: gem
[08:51:02] shibly: full_throttle, Have you followed this? https://rvm.io/rvm/install
[08:51:11] full_throttle: i think i know the answer
[08:51:35] full_throttle: i think i need to add the gem path to the .zshrc file
[08:52:03] shibly: full_throttle, Run this: "source ~/.rvm/scripts/rvm"
[08:53:32] dionysus69: has joined #RubyOnRails
[08:53:35] full_throttle: and now sass works
[08:53:38] full_throttle: thank you so much
[08:54:19] njero: why doesn't unauthorized status code add challenge head automatically? :(
[08:55:13] shibly: full_throttle, Which linux distribution are you using?
[08:55:53] njero: sevenseacat: I mean adding status: :unauthorized in render doesn't add auth challenge headers. Some android libs like volley rely on those rather than just status code
[08:55:59] full_throttle: lsb_release -a [1:55:44]
[08:55:59] full_throttle: No LSB modules are available.
[08:55:59] full_throttle: Distributor ID: LinuxMint
[08:56:00] full_throttle: Description: Linux Mint 17.3 Rosa
[08:56:02] full_throttle: Codename: rosa
[08:56:53] Disavowed: has joined #RubyOnRails
[09:00:30] shibly: has left #RubyOnRails: ("Leaving")
[09:02:47] drbayer: has joined #RubyOnRails
[09:03:09] lxsameer: has joined #RubyOnRails
[09:09:03] moeabdol1: has joined #RubyOnRails
[09:09:59] k1t: has joined #RubyOnRails
[09:12:19] chagel: has joined #RubyOnRails
[09:14:49] k1t: has joined #RubyOnRails
[09:15:17] petor: has joined #RubyOnRails
[09:16:45] arup_r: has joined #RubyOnRails
[09:19:36] baash05: Can one add attributes via meta coding?
[09:19:45] baash05: To a serializer?
[09:19:59] Begi: has joined #RubyOnRails
[09:21:56] dangerousdave: has joined #RubyOnRails
[09:22:34] agit0: has joined #RubyOnRails
[09:25:48] graft: has joined #RubyOnRails
[09:35:04] RegulationD: has joined #RubyOnRails
[09:36:52] mikecmpbll: has joined #RubyOnRails
[09:41:35] marr: has joined #RubyOnRails
[09:43:39] baweaver: has joined #RubyOnRails
[09:44:35] eyeamaye: has joined #RubyOnRails
[09:51:04] bmf: has joined #RubyOnRails
[09:54:34] krz: has joined #RubyOnRails
[09:55:08] sg19: has joined #RubyOnRails
[09:55:17] jgt4: has joined #RubyOnRails
[09:57:31] sg19: Hi. I am a beginner so my question might be very stupid. My problem is that I have a user model and I am using devise to handle authentication. I also have a form where the user can update some extra fields like name, phone etc. For that I am using validations. The problem comes when if the user wants to update the password, which is handled by dev
[09:57:31] sg19: ise. It starts running validations for phone, name etc. How can I handle this so that validations are not run when the user is updating the password.
[09:58:46] sthns: has joined #RubyOnRails
[10:01:57] tildes: has joined #RubyOnRails
[10:03:50] andywww: has joined #RubyOnRails
[10:05:19] yfeldblum: has joined #RubyOnRails
[10:05:34] naftilos76: has joined #RubyOnRails
[10:08:15] tbuehlmann: sg19: why shouldn't the validations for phone and name run when updating the user?
[10:09:08] sg19: So when a user requests password reset, she gets a link in mail and comes to password reset form which has nothing except password field. So while updating password user gets all the validation errors.
[10:10:46] theod: has joined #RubyOnRails
[10:11:10] njero: has joined #RubyOnRails
[10:11:10] Jasaka: has joined #RubyOnRails
[10:12:58] tbuehlmann: sg19: why is the user invalid in the first place? how's that possible?
[10:13:26] tbuehlmann: (there is an answer to your question, but I don't think it's the one I'd prefer)
[10:13:30] yfeldblum: has joined #RubyOnRails
[10:13:38] jottr_: has joined #RubyOnRails
[10:13:52] sevenseacat: i think ive flagged this as an issue on devise before
[10:14:24] sg19: @tbuehlmannL It is a two step signup you can say. The first step is controlled by devise where the user only has to enter email or passwrod. The next step comes after the user signs in
[10:16:13] sevenseacat: https://github.com/plataformatec/devise/pull/3046
[10:16:39] tildes: has joined #RubyOnRails
[10:16:50] sevenseacat: and https://github.com/plataformatec/devise/issues/3204
[10:16:56] tbuehlmann: okay, so either don't have validations for phone/name at all (likely not what you want), make them conditional or using a validation context
[10:16:57] sevenseacat: and theres a few more but you get the gist
[10:17:08] tbuehlmann: what sevenseacat says
[10:17:40] sevenseacat: bottom line: don't save records that are not valid
[10:17:57] Ropeney: has joined #RubyOnRails
[10:20:16] tbuehlmann: I haven't really played with saving/validation contexts, but I think this is as close as you can get to ecto's changesets in AR
[10:22:20] sg19: @sevenseacat: Yes it is the same issue. What did you do for this?
[10:22:37] sevenseacat: tbh i dont think i ended up fixing it
[10:22:47] sevenseacat: moved projects and left it :D
[10:23:13] andywww: has joined #RubyOnRails
[10:23:22] tbuehlmann: that's the spirit :)
[10:23:48] sg19: :( I am stuck. Should I do checking myself in controller which has all this updating of name, phone?
[10:24:38] myntcake: has joined #RubyOnRails
[10:24:42] Macaveli: has joined #RubyOnRails
[10:25:12] k1t: has joined #RubyOnRails
[10:25:46] sevenseacat: no - you should apply a validation context on the page where you update the name, phone number, etc. so that you can apply the extra set of validation rules
[10:26:06] sevenseacat: by default, they should not be required so that the password reset can work
[10:26:56] sevenseacat: and yeah, ecto does handle this kind of thing much more gracefully :)
[10:27:56] sg19: okay. thanks will look into it :)
[10:29:19] njero: isn't it something scary? http://www.securitytracker.com/id/1035122
[10:30:46] njero: seems solution is also mentioned :)
[10:31:02] sevenseacat: i'll take your word for it
[10:31:39] nodejunkie: has joined #RubyOnRails
[10:32:12] pawnbox: has joined #RubyOnRails
[10:34:41] tvw: has joined #RubyOnRails
[10:35:12] lxsameer: hey people, I want to use and AMD lib alongside the assets pipeline ( I just want to async load some of my assets ), any recommendation ?
[10:39:56] BinaryMaster: has joined #RubyOnRails
[10:42:37] kadoppe: has joined #RubyOnRails
[10:48:45] krz: has joined #RubyOnRails
[10:51:38] njero: Hey i have a doubt.. Following link says, some security fix on 3.2.22.2, 4.1.14.2, 4.2.5.2 http://www.securitytracker.com/id/1035122
[10:53:32] njero: will later released version of 4.2.6 secure?
[10:54:00] njero: issue says its found in Version(s): 3.2.x, 4.0.x, 4.1.x, 4.2.x
[10:54:54] njero: By the way I'm talking about rails versions and security :o
[10:55:18] sevenseacat: i didnt click your links, but it would be easy to check because it should link to the commits that fix it
[10:55:42] sevenseacat: though 4.2.5.2 is older than 4.2.6
[10:56:14] dblessing: has joined #RubyOnRails
[10:56:46] njero: sevenseacat: does that mean 4.2.6 contain all fixes for prev versions of 4.2.5.x ?
[10:56:52] sevenseacat: check and see
[10:57:16] njero: you mean to check changelog?
[10:57:20] totimkopf: ACTION cuddles sevenseacat's kitty
[10:58:08] sevenseacat: check the commit log, the changelog, the release notes, whatever would answer your question
[10:58:11] sevenseacat: get familiar with the code
[10:59:45] drptbl: has joined #RubyOnRails
[11:06:51] delgiudices: has joined #RubyOnRails
[11:07:00] t27duck: has joined #RubyOnRails
[11:07:11] njero: what does ANN of [ANN] Rails 4.2.6 and 4.1.15 have been released! means"? :>
[11:09:54] chagel: has joined #RubyOnRails
[11:09:54] stannard: has joined #RubyOnRails
[11:09:56] k1t: has joined #RubyOnRails
[11:10:02] t27duck: has left #RubyOnRails: ()
[11:11:52] michael_mbp: o/ n_e_o sevenseacat
[11:12:04] sevenseacat: michael_mbp: !guys
[11:12:04] helpa: michael_mbp: We're not all guys here - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[11:12:11] michael_mbp: Checkout my quick video https://youtu.be/Uq_juGlmmCE
[11:12:35] GodFather: has joined #RubyOnRails
[11:12:44] michael_mbp: Someone isn't happy :o
[11:13:18] michael_mbp: Lots of people use 'hey guys' and they don't mean anything negative by it.
[11:13:37] michael_mbp: Even during morning standups at offices, with ladies present.
[11:13:42] graft: has joined #RubyOnRails
[11:13:42] graft: has joined #RubyOnRails
[11:13:47] sevenseacat: good to know.
[11:14:02] sevenseacat: again, not everyone feels that way.
[11:14:29] totimkopf: guys, gals and djinn
[11:15:13] totimkopf: don't want to exclude the invisible rubyists either
[11:15:38] njero: michael_mbp: what's the link..
[11:16:02] Ropeney: eww morning standups
[11:16:04] michael_mbp: it's very rare that I come across someone who takes "hey guys" as offensive. Must be cultural differences? It was a common phrase even at Uni in the UK. I never heard a lady/girl go "hey, that's offensive". What do I know, I'm stuck at my PC all day long so :p
[11:16:15] michael_mbp: sevenseacat: appreciate your input.
[11:16:22] michael_mbp: n_e_o: of a gem I'm working on
[11:16:29] michael_mbp: I posted a quick demo.
[11:17:02] michael_mbp: ropeney: exactly, ugh.
[11:17:17] sevenseacat: no-one said 'offensive'. i said 'exclusionary'.
[11:17:21] michael_mbp: I do enjoy team-calls at the start of a work day.
[11:17:34] michael_mbp: sevenseacat: ah, gotcha.
[11:17:39] njero: michael_mbp: wokey.. let me check
[11:18:14] michael_mbp: n_e_o: let me know what you think.
[11:20:40] chipotle: has joined #RubyOnRails
[11:21:50] yfeldblum: has joined #RubyOnRails
[11:22:31] jottr_: has joined #RubyOnRails
[11:24:45] krz: has joined #RubyOnRails
[11:24:54] GodFather: has joined #RubyOnRails
[11:25:02] pawnbox: has joined #RubyOnRails
[11:31:46] drptbl: has joined #RubyOnRails
[11:42:53] delgiudices: has joined #RubyOnRails
[11:43:11] retro: has joined #RubyOnRails
[11:44:20] baweaver: has joined #RubyOnRails
[11:46:12] eyeamaye: has joined #RubyOnRails
[11:54:38] dblessing: has joined #RubyOnRails
[11:55:34] Sawbones: has joined #RubyOnRails
[11:57:27] Devalo: has joined #RubyOnRails
[11:57:49] sthns: has joined #RubyOnRails
[12:00:02] Devalo: has joined #RubyOnRails
[12:03:19] arup_r: has joined #RubyOnRails
[12:03:59] King_Rex: has joined #RubyOnRails
[12:12:07] krz: has joined #RubyOnRails
[12:13:10] Detch: has joined #RubyOnRails
[12:16:58] arup_r: Why rails runner not seeing my file? https://gist.github.com/aruprakshit/0d93873298afc7aa112f80ad760766a3
[12:18:02] sevenseacat: arup_r: does that error not say that `bin/rails` is what isnt found?
[12:18:03] pawnbox: has joined #RubyOnRails
[12:19:29] arup_r: ah it is rails 3 project.. yes it does say. I didn't follow it
[12:19:47] Devalo: has joined #RubyOnRails
[12:19:55] arup_r: I don't need `bin`
[12:22:06] tildes: has joined #RubyOnRails
[12:24:26] chipotle: has joined #RubyOnRails
[12:28:52] King_Rex: has joined #RubyOnRails
[12:29:40] sandelius: has joined #RubyOnRails
[12:32:55] GitGud: has joined #RubyOnRails
[12:33:25] GitGud: has joined #RubyOnRails
[12:33:50] sp1rs: has joined #RubyOnRails
[12:35:28] mices: has joined #RubyOnRails
[12:37:28] chipotle: has joined #RubyOnRails
[12:37:57] delgiudices: has joined #RubyOnRails
[12:40:27] bronson: has joined #RubyOnRails
[12:44:46] futilegames: has joined #RubyOnRails
[12:47:19] flashpoint9: has joined #RubyOnRails
[12:48:20] chipotle: has joined #RubyOnRails
[12:49:05] sadaf2605: has joined #RubyOnRails
[12:50:54] arup_r: I want to grab, all orders for last 1 hour from now. I wrote it like.. `Spree::Order.where(created_at: (1.hour.ago.in_time_zone..DateTime.now.in_time_zone))` .. Any better way to write the same considering timezone
[12:51:33] RegulationD: has joined #RubyOnRails
[12:52:52] sevenseacat: well there arent going to be any future orders, so it can just be a simple open-ended conditional
[12:53:06] sevenseacat: where created_at > 1 hour ago
[12:53:44] arup_r: thanks sevenseacat
[12:53:44] moeabdol2: has joined #RubyOnRails
[12:54:35] jottr: has joined #RubyOnRails
[12:55:05] kadoppe: has joined #RubyOnRails
[12:55:09] arup_r: it is I think >= not only >, right?
[12:55:56] sevenseacat: depends on what you want
[12:56:08] arup_r: ok. got you
[12:58:19] dannyguk: has joined #RubyOnRails
[12:59:20] Megamos: has joined #RubyOnRails
[13:01:23] kadoppe: has joined #RubyOnRails
[13:04:00] drbayer: has joined #RubyOnRails
[13:06:52] jottr: has joined #RubyOnRails
[13:07:36] zpe: has joined #RubyOnRails
[13:07:43] Sylario: has joined #RubyOnRails
[13:12:52] qejk: has joined #RubyOnRails
[13:13:51] arup_r: Another question... DateTime.now is saving a date with a fraction.. I don't want that.. which method to use? https://gist.github.com/aruprakshit/8c081f91c0f1f1a3533aa3ab0ab6c73a
[13:14:32] arup_r: it should save as Rails by default does, https://gist.github.com/aruprakshit/8c081f91c0f1f1a3533aa3ab0ab6c73a
[13:14:44] arup_r: ex. created_at: "2016-04-09 12:52:13"
[13:15:08] arup_r: but when I am saving it is coming like 2016-04-09 13:10:29.601047
[13:15:18] arup_r: s/coming/saving
[13:15:50] sevenseacat: i dont see the problem
[13:17:36] petor: has joined #RubyOnRails
[13:18:15] arup_r: you mean it should not be a problem if the date save with that fraction as my gist sample is showing?
[13:18:39] kadoppe: has joined #RubyOnRails
[13:23:50] jottr: has joined #RubyOnRails
[13:26:51] quazimodo: has joined #RubyOnRails
[13:29:28] Kerber0s: has joined #RubyOnRails
[13:30:27] jottr_: has joined #RubyOnRails
[13:30:47] kadoppe: has joined #RubyOnRails
[13:30:49] njero: has joined #RubyOnRails
[13:31:16] Kerber0s_: has joined #RubyOnRails
[13:32:21] delgiudices: has joined #RubyOnRails
[13:37:07] eyeamaye: has joined #RubyOnRails
[13:43:18] dannyguk: has joined #RubyOnRails
[13:44:33] pwnd_nsfw`: has joined #RubyOnRails
[13:45:24] yohle: has joined #RubyOnRails
[13:45:27] pawnbox: has joined #RubyOnRails
[13:45:31] baweaver: has joined #RubyOnRails
[13:52:12] aloneintheworld: has joined #RubyOnRails
[13:52:21] sadaf2606: has joined #RubyOnRails
[13:53:25] _Tariq: has joined #RubyOnRails
[13:59:34] ramfjord: has joined #RubyOnRails
[14:00:15] rake_db_migrate: has joined #RubyOnRails
[14:00:31] Detch: has joined #RubyOnRails
[14:01:13] xilus: has joined #RubyOnRails
[14:02:29] yohle: has joined #RubyOnRails
[14:04:49] Kerber0s: has joined #RubyOnRails
[14:05:12] King_Rex: has joined #RubyOnRails
[14:07:38] shinnya: has joined #RubyOnRails
[14:07:41] yohle: has joined #RubyOnRails
[14:09:55] yohle: has joined #RubyOnRails
[14:10:09] King_Rex: has joined #RubyOnRails
[14:10:17] dvinciguerra_: has joined #RubyOnRails
[14:12:01] owenjones: has joined #RubyOnRails
[14:12:10] Ropeney: has joined #RubyOnRails
[14:12:14] delgiudices: has joined #RubyOnRails
[14:12:26] Megamos: has joined #RubyOnRails
[14:14:04] ashleyw: has joined #RubyOnRails
[14:14:48] kadoppe: has joined #RubyOnRails
[14:16:13] _Tariq: has joined #RubyOnRails
[14:16:37] yohle: has joined #RubyOnRails
[14:21:00] arup_r1: has joined #RubyOnRails
[14:21:13] King_Rex: has joined #RubyOnRails
[14:24:57] Cohedrin: has joined #RubyOnRails
[14:27:52] d0nn1e: has joined #RubyOnRails
[14:31:59] flashpoint9: has joined #RubyOnRails
[14:35:01] arup_r: Say I want to get all the values of a record. I am doing like Person.first.attributes.values .. Any short method?
[14:35:35] rake_db_migrate: has joined #RubyOnRails
[14:35:51] _Tariq: has joined #RubyOnRails
[14:35:55] smathy: has joined #RubyOnRails
[14:37:34] Rubie: has joined #RubyOnRails
[14:40:36] blackhuey1: has joined #RubyOnRails
[14:41:02] blackhuey1: has left #RubyOnRails: ()
[14:41:36] delgiudices: has joined #RubyOnRails
[14:41:55] Ropeney: arup_r, I don't think theres a shorter method
[14:42:31] greengriminal: has joined #RubyOnRails
[14:44:23] rake_db__: has joined #RubyOnRails
[14:44:44] FooMunki: has joined #RubyOnRails
[14:45:26] fedexo: has joined #RubyOnRails
[14:45:29] sevenseacat: what meaning do the values have without knowing the attributes theyre attached to?
[14:45:44] sevenseacat: just out of curiosity
[14:46:35] Ropeney: I was thinking possibly exporting in a csv like format?
[14:48:55] akshat: has joined #RubyOnRails
[14:50:08] diegoaguilar: has joined #RubyOnRails
[14:54:09] smathy: Seems an xy question.
[14:56:42] enkristoffer: has joined #RubyOnRails
[15:01:06] adavia: has joined #RubyOnRails
[15:08:35] Sawbones: has joined #RubyOnRails
[15:10:13] Technodrome: has joined #RubyOnRails
[15:12:19] czerasz__: has joined #RubyOnRails
[15:13:35] arup_r: has joined #RubyOnRails
[15:14:12] ekinmur: has joined #RubyOnRails
[15:16:51] Macaveli: has joined #RubyOnRails
[15:17:23] chagel: has joined #RubyOnRails
[15:18:43] arup_r: ok Ropeney
[15:19:01] petor: has joined #RubyOnRails
[15:20:10] baash05: has left #RubyOnRails: ()
[15:24:18] flashpoint9: has joined #RubyOnRails
[15:24:43] PedramT: has joined #RubyOnRails
[15:25:45] PedramT_: has joined #RubyOnRails
[15:25:52] joaumg: has joined #RubyOnRails
[15:26:49] akshat: has joined #RubyOnRails
[15:27:46] dionysus69: has joined #RubyOnRails
[15:29:01] PedramT__: has joined #RubyOnRails
[15:31:38] pawnbox: has joined #RubyOnRails
[15:32:04] kadoppe: has joined #RubyOnRails
[15:34:34] rake_db_migrate: has joined #RubyOnRails
[15:36:41] Rubie: has joined #RubyOnRails
[15:37:06] aloneintheworld: has joined #RubyOnRails
[15:37:21] Rodya_: has joined #RubyOnRails
[15:38:05] RegulationD: has joined #RubyOnRails
[15:42:38] kadoppe: has joined #RubyOnRails
[15:43:23] Sawbones: has joined #RubyOnRails
[15:44:47] djbkd: has joined #RubyOnRails
[15:45:53] stannard: has joined #RubyOnRails
[15:46:27] sandelius: has joined #RubyOnRails
[15:47:19] baweaver: has joined #RubyOnRails
[15:49:25] xilus: has left #RubyOnRails: ("Ex-Chat")
[15:50:19] Sawbones: has joined #RubyOnRails
[15:54:02] Palsson: has joined #RubyOnRails
[15:54:56] Sawbones: has joined #RubyOnRails
[15:56:39] mikecmpbll: has joined #RubyOnRails
[15:58:10] Rodya_: has joined #RubyOnRails
[16:01:30] magikid: has joined #RubyOnRails
[16:01:53] aloneintheworld: has joined #RubyOnRails
[16:02:05] kadoppe: has joined #RubyOnRails
[16:02:30] jgt4: has joined #RubyOnRails
[16:03:51] stannard: has joined #RubyOnRails
[16:06:50] jtong: has joined #RubyOnRails
[16:11:28] sp1rs: has joined #RubyOnRails
[16:15:39] jinette: has joined #RubyOnRails
[16:16:01] jinette: has left #RubyOnRails: ()
[16:16:14] pawnbox: has joined #RubyOnRails
[16:16:42] netzfisch: has joined #RubyOnRails
[16:17:22] chrislotix: has joined #RubyOnRails
[16:17:34] chrislotix: I have users - workouts association and i have workouts - exercises association, i have nested workouts resource under users resource, now i want to create a proper route for exercise and workouts. Should i nest the exercise resource under workouts? Is it the right way to go about this?
[16:17:42] Rubie: has joined #RubyOnRails
[16:23:30] Macaveli: has joined #RubyOnRails
[16:23:52] emchamp-dt: has joined #RubyOnRails
[16:24:14] DoubleMalt: has joined #RubyOnRails
[16:24:19] Ropeney: chrislotix, depends, do you create excercises for the workout or create seperately and then assign to workouts?
[16:24:35] bmf: has joined #RubyOnRails
[16:25:11] chrislotix: Ropeney: I create exercises for the workout
[16:26:00] Ropeney: so no reusability of them? I'd nest under workouts then
[16:26:08] maxz: has joined #RubyOnRails
[16:27:29] sandelius: has joined #RubyOnRails
[16:27:47] Axy: has joined #RubyOnRails
[16:27:47] Axy: has joined #RubyOnRails
[16:28:12] merida: has joined #RubyOnRails
[16:28:13] moei: has joined #RubyOnRails
[16:28:23] cac: has joined #RubyOnRails
[16:28:28] moei: has joined #RubyOnRails
[16:28:55] Technodrome: has joined #RubyOnRails
[16:29:26] chrislotix: Ropeney: What do you mean by no reusability?
[16:30:26] Ropeney: I would imagine excercises should be predefined in a list of excercises and then you choose from them in workouts so you dont have multiple entries in the db for the same excercise
[16:30:43] Rodya_: has joined #RubyOnRails
[16:33:51] ctrlrsf: has joined #RubyOnRails
[16:37:09] Mia: has joined #RubyOnRails
[16:37:23] flopsec: has joined #RubyOnRails
[16:37:31] jfelchner: has joined #RubyOnRails
[16:39:19] merida: has joined #RubyOnRails
[16:42:11] bronson: has joined #RubyOnRails
[16:45:07] bmf: has joined #RubyOnRails
[16:46:52] Palsson: has joined #RubyOnRails
[16:48:49] Macaveli: has joined #RubyOnRails
[16:52:19] chrislotix: Ropeney: Good point, what's the good way to go about this? Prepopulated exercise table?
[16:53:43] someish: has joined #RubyOnRails
[16:53:44] Rubie: has joined #RubyOnRails
[16:55:09] Ropeney: chrislotix, I'd think so with a joining table that has reps, time etc (You could use enums if you didn't want your excercises too detailed)
[16:55:37] dionysus69: has joined #RubyOnRails
[16:55:56] Sawbones: has joined #RubyOnRails
[16:57:02] Technodrome: has joined #RubyOnRails
[16:57:48] chrislotix: Ropeney: Your suggestion seems much more appealing than my initial idea, thanks a lot.
[16:58:12] Ropeney: chrislotix, np good luck :D
[16:59:39] tildes: is it generally better to write up an issue, or make a pull request or both? (I think I found something unexpected, although easy to work around with change_column method, and I was thinking if this would be a good opportunity for myself to break the ice with contributing to OSS projects)
[16:59:50] RegulationD: has joined #RubyOnRails
[17:00:11] tildes: so the newbie question of course is how to go about it :)
[17:01:06] merida: has joined #RubyOnRails
[17:01:29] Ropeney: tildes, http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html might be a good start to read if you haven't
[17:03:01] chipotle: has joined #RubyOnRails
[17:03:01] mfoo: has joined #RubyOnRails
[17:05:22] tildes: Ropeney: looks comprehensive enough, thanks
[17:05:24] drbayer: has joined #RubyOnRails
[17:06:44] dhuck: has joined #RubyOnRails
[17:07:54] mfoo: Hi guys, I need some help. I'm setting up rails deployment with capistrano. After precompilation rails is serving me a 204 No Content for my application.css and a file containing two newline characters for JS, yet I can see the file on disk with the same name as the asset being sent back to me has the expected content. I've tried clearing my browser cache and I'm not sure what's going on.
[17:20:11] petor: has joined #RubyOnRails
[17:22:31] xcesariox: has joined #RubyOnRails
[17:25:23] _Tariq: has joined #RubyOnRails
[17:25:23] dhuck_: has joined #RubyOnRails
[17:26:16] blackmesa: has joined #RubyOnRails
[17:27:49] SloggerKhan1: has joined #RubyOnRails
[17:28:39] _Tariq: has joined #RubyOnRails
[17:30:10] srinidhi: has joined #RubyOnRails
[17:30:13] Sephyros: has joined #RubyOnRails
[17:30:39] _Tariq: has joined #RubyOnRails
[17:32:00] Rubie: has joined #RubyOnRails
[17:33:03] baweaver: has joined #RubyOnRails
[17:38:28] sandelius: has joined #RubyOnRails
[17:39:03] chouhoulis: has joined #RubyOnRails
[17:39:51] FooMunki: has joined #RubyOnRails
[17:40:21] yohle: has joined #RubyOnRails
[17:43:56] siaW: has joined #RubyOnRails
[17:44:17] PedramT: has joined #RubyOnRails
[17:48:45] baweaver: has joined #RubyOnRails
[17:48:48] smathy: has joined #RubyOnRails
[17:48:48] andrew9184: has joined #RubyOnRails
[17:48:58] arup_r1: has joined #RubyOnRails
[17:49:44] SeanM_: has joined #RubyOnRails
[17:50:03] solars: has joined #RubyOnRails
[17:50:31] Denart_: has joined #RubyOnRails
[17:55:17] AndChat52500: has joined #RubyOnRails
[18:01:01] Sephyros: what i need to do after install gem 'bootstrap-sass' and gem 'sass-rails', rename application.css to scss, write @import "bootstrap-sprockets";
[18:01:01] Sephyros: @import "bootstrap"; inside it AND restart server to make bootstrap work?
[18:01:59] Sephyros: maybe i forgot something, anyway i followed all steps in bootstrap tutorial
[18:02:38] graft: has joined #RubyOnRails
[18:03:08] _Tariq: has joined #RubyOnRails
[18:03:54] SeductiveError: Are you working with a full app or engine sephryos
[18:04:50] Sephyros: full app...
[18:05:25] akkmaxon: has joined #RubyOnRails
[18:06:29] tribals: has joined #RubyOnRails
[18:06:41] SeductiveError: What behavior/error are you receiving? Did you also remove the //require tree and . From app.scss?
[18:07:11] Sephyros: its simple dont get bootstrap
[18:07:19] Sephyros: no errors...
[18:08:31] eyeamaye: has joined #RubyOnRails
[18:08:59] Sephyros: i have code on cloud9
[18:09:18] Sephyros: but i can gist the files
[18:09:29] Sephyros: what files you need to look?
[18:09:30] netzfisch: has joined #RubyOnRails
[18:10:51] Sephyros: https://ide.c9.io/sephyros/truth-table
[18:11:02] arup_r: Sephyros: show it please inside a gist
[18:11:11] arup_r: application.scss
[18:11:41] Sephyros: @import "bootstrap-sprockets";
[18:11:41] Sephyros: @import "bootstrap";
[18:11:41] Sephyros: @import "main";
[18:11:50] Sephyros: 3 lines only
[18:12:06] tribals: i've a model named with two leading capital letters, so i added such acronym to inflectors like this: `ActiveSupport::Inflector.inflections { |inflect| inflect.acronym 'TWo' }`. It works fine for main rails app, but i also have an `Admin` railtie in which i trying to manage my two-capital letter name model. And in that railtie constant lookup fails. I tried to add inflection in railtie too, but this doesn't work.
[18:13:09] Rubie: has joined #RubyOnRails
[18:13:22] magikid: has joined #RubyOnRails
[18:14:45] arup_r: Sephyros: no idea about cloud9 .. does cloud9 need to do asset precompile?
[18:15:01] arup_r: The settings you have correct ..
[18:15:09] Sephyros: i got the same problem on RubyMine
[18:15:33] arup_r: I recently used https://github.com/aruprakshit/blog-post/blob/master/app/assets/stylesheets/application.scss and it worked like a charm. That is a new project..
[18:15:40] Sephyros: i dont know about this asset precompile, but i will search about and see if can help to solve my problem
[18:15:43] arup_r: so mostly empty
[18:15:59] arup_r: does it locally? not in cloud9
[18:16:10] arup_r: I don't know cloud9, how it works
[18:16:23] Sephyros: its locally
[18:16:30] SeductiveError: Arup_r it should work
[18:16:42] Sephyros: i tried cloud9 to see if the problem was here but no...
[18:16:47] Cohedrin: has joined #RubyOnRails
[18:16:54] gusrub: has joined #RubyOnRails
[18:16:55] SeductiveError: Sephyros you did bundle?
[18:17:00] Sephyros: just another question
[18:17:06] Sephyros: bundle install
[18:17:09] Sephyros: bundle update
[18:17:27] Sephyros: i need to download bootstrap stylesheet?
[18:17:41] Sephyros: and manuallyu put inside folder?
[18:17:57] SeductiveError: You shouldn't need to
[18:19:00] tribals: does anyone have any ideas about my problem?
[18:19:00] arup_r: seductiveerror: yes I said it should work,, I just said I have no idea about cloud9, if pre compilation. but OP cleared my confusion.. :)
[18:19:39] SeductiveError: Gonna clone and see if I can find anything
[18:20:31] _Tariq: has joined #RubyOnRails
[18:22:04] lightheaded: has joined #RubyOnRails
[18:25:35] SeductiveError: You were loading 'default' in your application.erb template
[18:25:45] SeductiveError: Change this to 'application'
[18:25:47] Sephyros: its "application"?
[18:26:11] Sephyros: damn i changed yesterday to use foundation but reverted to use bootstrap
[18:26:58] SeductiveError: Ahhh, I'm not sure how cloud9 does the console, but read the logs =)
[18:27:17] SeductiveError: It showed a bad path to /style sheets/default.js
[18:28:07] Sephyros: Thank you seductiveerror and arup_r!
[18:28:48] AndChat52500: has joined #RubyOnRails
[18:31:28] _Tariq: has joined #RubyOnRails
[18:33:58] AndChat|52500: has joined #RubyOnRails
[18:34:26] AndChat|52500: has joined #RubyOnRails
[18:35:09] AndChat-52500: has joined #RubyOnRails
[18:35:55] Technodrome: has joined #RubyOnRails
[18:36:11] merida: has joined #RubyOnRails
[18:36:13] blackmesa: has joined #RubyOnRails
[18:37:02] SeanM_: has joined #RubyOnRails
[18:37:12] AndChat-52500: has joined #RubyOnRails
[18:37:33] Begi: has joined #RubyOnRails
[18:40:17] mikecmpbll: has joined #RubyOnRails
[18:41:13] arup_r1: has joined #RubyOnRails
[18:42:17] kadoppe: has joined #RubyOnRails
[18:42:31] Cohedrin: is there a particular method that anyone would suggest for caching a particularly complicated query?
[18:42:37] Cohedrin: i.e. with lots of includes
[18:42:47] Cohedrin: but it also needs to be updated as close to real time as possible
[18:43:09] Cohedrin: it seems Rails.cache.fetch doesn't properly cache the includes queries, unless I'm just using it incorrectly
[18:43:30] arup_r: Cohedrin: show, how are you using it.
[18:44:46] Cohedrin: https://gist.github.com/Cohedrin/d133afea27478e4e096142bd8e87539a
[18:46:46] stannard: has joined #RubyOnRails
[18:47:40] tbuehlmann: you obviously don't want to cache the relation, but the results
[18:48:15] Cohedrin: ah yeah you know what
[18:48:17] Cohedrin: I'm a dumbass
[18:48:25] Cohedrin: I forgot to call .load on it
[18:48:35] tbuehlmann: or .to_a if an array is okay
[18:48:55] tbuehlmann: that's not an easy one, so.. :)
[18:49:33] Axy: has joined #RubyOnRails
[18:59:25] futilegames: has joined #RubyOnRails
[19:02:41] Dimik: has joined #RubyOnRails
[19:03:51] Begi: has joined #RubyOnRails
[19:05:53] aloneintheworld: has joined #RubyOnRails
[19:07:51] alex88: has joined #RubyOnRails
[19:07:52] Rubie: has joined #RubyOnRails
[19:09:15] kies: has joined #RubyOnRails
[19:09:25] flashpoint9: has joined #RubyOnRails
[19:09:51] stannard: has joined #RubyOnRails
[19:14:32] nodejunkie: has joined #RubyOnRails
[19:15:00] tildes: has joined #RubyOnRails
[19:18:57] chagel: has joined #RubyOnRails
[19:19:04] kadoppe: has joined #RubyOnRails
[19:19:38] stannard: has joined #RubyOnRails
[19:19:59] moeabdol3: has joined #RubyOnRails
[19:20:13] rake_db_migrate: has joined #RubyOnRails
[19:20:25] Mia: has joined #RubyOnRails
[19:20:25] Mia: has joined #RubyOnRails
[19:21:20] petor: has joined #RubyOnRails
[19:24:57] audy: has joined #RubyOnRails
[19:25:04] leftpad: has joined #RubyOnRails
[19:30:59] chipotle: has joined #RubyOnRails
[19:31:58] elgatorapido: has joined #RubyOnRails
[19:32:27] tribals: has joined #RubyOnRails
[19:33:50] greenride: has joined #RubyOnRails
[19:37:34] dblessing: has joined #RubyOnRails
[19:38:07] jetpack_joe: has joined #RubyOnRails
[19:46:14] rake_db_migrate: has joined #RubyOnRails
[19:50:57] jerohm: has joined #RubyOnRails
[19:51:00] PedramT: has joined #RubyOnRails
[19:51:54] nickenchuggets: has joined #RubyOnRails
[19:55:09] moeabdol4: has joined #RubyOnRails
[19:57:00] SeanM_: has joined #RubyOnRails
[20:00:48] jerohm: has joined #RubyOnRails
[20:00:52] Rubie: has joined #RubyOnRails
[20:01:36] chouhoulis: has joined #RubyOnRails
[20:03:49] yfeldblum: has joined #RubyOnRails
[20:06:04] aloneintheworld: has joined #RubyOnRails
[20:06:30] fedexo: has joined #RubyOnRails
[20:06:51] owenjones: has joined #RubyOnRails
[20:10:23] eyeamaye: has joined #RubyOnRails
[20:11:02] Denart_: is anybody here?
[20:13:52] djbkd: has joined #RubyOnRails
[20:14:15] ekinmur: has joined #RubyOnRails
[20:14:44] pawnbox: has joined #RubyOnRails
[20:17:06] cac: has joined #RubyOnRails
[20:18:41] tildes: has joined #RubyOnRails
[20:18:49] sdasd: has joined #RubyOnRails
[20:21:13] blackmesa: has joined #RubyOnRails
[20:23:32] diegoaguilar: has joined #RubyOnRails
[20:23:36] cac_: has joined #RubyOnRails
[20:24:05] rubyonrails558: has joined #RubyOnRails
[20:24:29] GnuYawk: has joined #RubyOnRails
[20:24:52] GnuYawk: has joined #RubyOnRails
[20:24:59] daveomcd: If I create an ajax autosaving feature for my form, will there be problems when someone starts a new record, and then i autosave it a minute later and the user is still under the #new action?
[20:25:35] daveomcd: just not sure if thats a good idea to do or not
[20:25:47] armyriad: has joined #RubyOnRails
[20:29:11] Sawbones: has joined #RubyOnRails
[20:31:22] PedramT_: has joined #RubyOnRails
[20:33:43] sergey_makagon: has joined #RubyOnRails
[20:34:08] lightheaded: has joined #RubyOnRails
[20:35:09] mices: has joined #RubyOnRails
[20:35:59] SeanM_: has joined #RubyOnRails
[20:39:49] navo: has joined #RubyOnRails
[20:41:12] jgt4: has joined #RubyOnRails
[20:42:10] cac: has joined #RubyOnRails
[20:44:01] bronson: has joined #RubyOnRails
[20:45:25] maxz: has joined #RubyOnRails
[20:48:39] Inside: has joined #RubyOnRails
[20:48:39] Inside: has joined #RubyOnRails
[20:48:59] baweaver: has joined #RubyOnRails
[20:49:27] darkxploit: has joined #RubyOnRails
[20:51:04] adlerdias: has joined #RubyOnRails
[20:51:07] Sawbones: has joined #RubyOnRails
[20:52:02] rake_db_migrate: has joined #RubyOnRails
[20:52:44] stannard: has joined #RubyOnRails
[20:54:16] metalic: has joined #RubyOnRails
[20:56:51] stannard: has joined #RubyOnRails
[20:58:27] JFlash: has joined #RubyOnRails
[20:59:19] JFlash: hi, I'm trying to learn RoR but it's hard!!
[20:59:46] JFlash: can someone help me understand what this little snippet of code is about?
[20:59:48] JFlash: http://pastie.org/10791559
[21:00:08] JFlash: reads like greek to my newbie eyes :_(
[21:00:49] JFlash: repasting it with some comments would be really, really helpful
[21:01:12] darkxploit: has joined #RubyOnRails
[21:01:41] zpe: has joined #RubyOnRails
[21:01:58] _Tariq: has joined #RubyOnRails
[21:09:14] JFlash: has left #RubyOnRails: ("Leaving")
[21:09:25] JFlash: has joined #RubyOnRails
[21:09:56] JFlash: ony other channels for #rails talk?
[21:10:09] JFlash: this one seems to be dead :_(
[21:10:39] JFlash: I tried the slack community but have yet to receive an access invide
[21:13:42] jstransky: has joined #RubyOnRails
[21:13:50] zpe: has joined #RubyOnRails
[21:15:58] adaedra: 10 minutes of activity, the channel is considered dead
[21:16:00] arup_r: nah.. not dead
[21:16:03] adaedra: inactivity*
[21:18:06] arup_r: JFlash: and I am the admin of the Slack Rails. pm me if you want me to onboard there real quick
[21:18:34] flashpoint9: has joined #RubyOnRails
[21:19:25] giantoctopus: has joined #RubyOnRails
[21:20:13] Denart_: has joined #RubyOnRails
[21:20:32] DoctorMonocular: has joined #RubyOnRails
[21:21:08] JFlash: arup_r, just did. sorry if I missed you for a second
[21:21:13] giantoctopus: has joined #RubyOnRails
[21:22:32] petor: has joined #RubyOnRails
[21:22:59] owenjones: has joined #RubyOnRails
[21:23:21] arup_r: JFlash done
[21:27:12] Devalo: has joined #RubyOnRails
[21:28:20] netzfisch: has joined #RubyOnRails
[21:31:54] valetudo: has joined #RubyOnRails
[21:32:21] valetudo: has joined #RubyOnRails
[21:34:05] stannard: has joined #RubyOnRails
[21:35:12] lightheaded: has joined #RubyOnRails
[21:38:59] jetpack_joe: has joined #RubyOnRails
[21:42:09] owenjones: has joined #RubyOnRails
[21:46:10] futilegames: has joined #RubyOnRails
[21:47:24] davee_: has joined #RubyOnRails
[21:50:19] marr: has joined #RubyOnRails
[21:54:56] JFlash: has joined #RubyOnRails
[21:55:25] Technodrome: has joined #RubyOnRails
[21:57:41] nickenchuggets: has joined #RubyOnRails
[21:58:24] netzfisch: has joined #RubyOnRails
[22:09:23] jtong: has joined #RubyOnRails
[22:10:08] shmilan: has joined #RubyOnRails
[22:12:35] greenhat-: It depends on a lot of factors, but take a look at the low level caching part of the rails guide - http://guides.rubyonrails.org/caching_with_rails.html#low-level-caching
[22:13:30] Devalo: has joined #RubyOnRails
[22:16:07] ekinmur: has joined #RubyOnRails
[22:16:40] pawnbox: has joined #RubyOnRails
[22:16:53] pawnbox: has joined #RubyOnRails
[22:17:29] SeanM_: has joined #RubyOnRails
[22:19:08] totimkopf: has left #RubyOnRails: ()
[22:19:16] dvinciguerra_: has joined #RubyOnRails
[22:20:39] chagel: has joined #RubyOnRails
[22:21:25] diegoviola: has joined #RubyOnRails
[22:22:33] baweaver: has joined #RubyOnRails
[22:26:12] rake_db_migrate: has joined #RubyOnRails
[22:27:16] barajasfab: has joined #RubyOnRails
[22:29:29] owenjones: has joined #RubyOnRails
[22:33:05] SeanM_: has joined #RubyOnRails
[22:33:07] pawnbox: has joined #RubyOnRails
[22:33:42] Denart_: RoR API Experiment watch live! https://www.livecoding.tv/edge_tor/
[22:35:59] lightheaded: has joined #RubyOnRails
[22:37:00] yfeldblum: has joined #RubyOnRails
[22:37:02] jhack: has joined #RubyOnRails
[22:37:46] siaw_: has joined #RubyOnRails
[22:40:13] johnflux: has joined #RubyOnRails
[22:41:23] stannard: has joined #RubyOnRails
[22:41:34] loglaunch: has joined #RubyOnRails
[22:44:44] Technodrome: has joined #RubyOnRails
[22:44:48] flashpoint9: has joined #RubyOnRails
[22:45:05] edwinvdgraaf: has joined #RubyOnRails
[22:48:11] SteenJobs: has joined #RubyOnRails
[22:48:16] shmilan: has joined #RubyOnRails
[22:55:15] Denart_: has joined #RubyOnRails
[23:00:16] Sawbones: has joined #RubyOnRails
[23:00:35] fernandomm: has joined #RubyOnRails
[23:04:52] Denart_: has joined #RubyOnRails
[23:08:04] drbayer: has joined #RubyOnRails
[23:09:05] ZerGabriel: has joined #RubyOnRails
[23:09:32] nettoweb: has joined #RubyOnRails
[23:13:34] JFlash: has joined #RubyOnRails
[23:14:50] diegoaguilar: has joined #RubyOnRails
[23:15:33] Technodrome: has joined #RubyOnRails
[23:18:30] GodFather: has joined #RubyOnRails
[23:19:12] Sawbones: has joined #RubyOnRails
[23:19:30] fernandomm: has joined #RubyOnRails
[23:22:50] rake_db_migrate: has joined #RubyOnRails
[23:23:23] TheGreatGudsby: has joined #RubyOnRails
[23:23:36] SteenJobs: has joined #RubyOnRails
[23:23:39] petor: has joined #RubyOnRails
[23:37:19] emchamp-dt: has joined #RubyOnRails
[23:37:45] lightheaded: has joined #RubyOnRails
[23:41:50] akshat: has joined #RubyOnRails
[23:47:22] ur5us: has joined #RubyOnRails
[23:50:27] joshkovach: has joined #RubyOnRails
[23:54:02] Cohedrin_: has joined #RubyOnRails
[23:58:00] Devalo: has joined #RubyOnRails
[23:59:48] Cohedrin: has joined #RubyOnRails