« Back to channel list

#RubyOnRails - 04 August 2017

« Back 1 day Forward 1 day »
[00:02:34] ornerymoose: has joined #RubyOnRails
[00:02:36] jhfisc: has joined #RubyOnRails
[00:04:17] DenSchub: has joined #RubyOnRails
[00:04:29] SuperTux88: has joined #RubyOnRails
[00:04:34] Waithamai: has joined #RubyOnRails
[00:04:47] kt: has joined #RubyOnRails
[00:05:01] DenSchub: hey - developing a rails5 application with an api, wondering about api versioning. what's the best way to establish some kind of versioning?
[00:06:58] fugee: has joined #RubyOnRails
[00:16:41] ornerymoose: has joined #RubyOnRails
[00:17:56] jhfisc: has joined #RubyOnRails
[00:19:54] kaeks: has joined #RubyOnRails
[00:21:31] fugee: jquery datetimepicker pops up when i click in the field but after it closes on a selection the fields still unpopulated (blank)
[00:22:13] fugee: since this defies logic there must be an error in my code =D
[00:23:55] uksio: has joined #RubyOnRails
[00:24:59] kt: has joined #RubyOnRails
[00:31:30] jhfisc: has joined #RubyOnRails
[00:31:38] bronson: has joined #RubyOnRails
[00:36:55] kt: has joined #RubyOnRails
[00:48:09] jhfisc: has joined #RubyOnRails
[00:48:28] sevenseacat: has joined #RubyOnRails
[00:49:00] ornerymoose: has joined #RubyOnRails
[00:54:10] jhfisc: has joined #RubyOnRails
[00:57:13] kt: has joined #RubyOnRails
[01:00:01] jhfisc: has joined #RubyOnRails
[01:02:18] umaaji: has joined #RubyOnRails
[01:04:01] RahulT: has joined #RubyOnRails
[01:04:42] brent__: has joined #RubyOnRails
[01:10:12] cagomez: has joined #RubyOnRails
[01:12:13] kt: has joined #RubyOnRails
[01:13:19] ornerymoose: has joined #RubyOnRails
[01:13:35] cam27: has joined #RubyOnRails
[01:15:33] irishfromua: has joined #RubyOnRails
[01:22:49] kt: has joined #RubyOnRails
[01:26:51] jhfisc: has joined #RubyOnRails
[01:27:27] cam27: has joined #RubyOnRails
[01:33:11] jhfisc: has joined #RubyOnRails
[01:36:52] clouder`grr: has joined #RubyOnRails
[01:37:04] ornerymoose: has joined #RubyOnRails
[01:39:48] lessless: has joined #RubyOnRails
[01:39:51] jhfisc: has joined #RubyOnRails
[01:44:11] havenwood: DenSchub: here's some discussion along those lines that might be interesting if you haven't read it yet: https://github.com/json-api/json-api/issues/406
[01:45:39] DenSchub: i'm talking specifically about the implementation aspect
[01:46:13] DenSchub: namespaces seems hacky because of issues with sharing classes between versions, and there does not seem to be a clear "best practise" on the rails side of things
[01:46:23] DenSchub: is still still the case?
[01:47:17] kt: has joined #RubyOnRails
[01:50:06] havenwood: DenSchub: here's an interesting take on it combining vnd accept header and scope namespace: https://scotch.io/tutorials/build-a-restful-json-api-with-rails-5-part-three
[01:50:13] my123: has joined #RubyOnRails
[01:52:21] DenSchub: yeah, and if we go down the chain we quickly get to a point where we want to version the serializers as well, because that makes sense, and you run into issues like https://github.com/rails-api/active_model_serializers/issues/1442
[01:53:06] DenSchub: that... feels wrong to me
[01:54:37] nahtnam: has joined #RubyOnRails
[01:59:48] kt: has joined #RubyOnRails
[02:01:36] RahulT: has joined #RubyOnRails
[02:01:49] ornerymoose: has joined #RubyOnRails
[02:09:53] ornerymoose: has joined #RubyOnRails
[02:10:22] kt: has joined #RubyOnRails
[02:10:49] ornerymoose: has joined #RubyOnRails
[02:13:27] jamal7: has joined #RubyOnRails
[02:13:41] cam27: has joined #RubyOnRails
[02:17:21] jhfisc: has joined #RubyOnRails
[02:21:09] segy_: has joined #RubyOnRails
[02:23:54] Jameser: has joined #RubyOnRails
[02:25:28] kt: has joined #RubyOnRails
[02:27:04] jamal7: has joined #RubyOnRails
[02:27:13] jhfisc: has joined #RubyOnRails
[02:31:54] cam27: has joined #RubyOnRails
[02:32:19] bronson: has joined #RubyOnRails
[02:33:14] muzik: has joined #RubyOnRails
[02:36:12] jhfisc: has joined #RubyOnRails
[02:42:23] jhfisc: has joined #RubyOnRails
[02:48:04] fugee: has joined #RubyOnRails
[02:49:56] sunrunner20: has joined #RubyOnRails
[02:50:00] fugee: i'm having a problem with jquery datetimepicker and i saw a post recommending to require jquery-ui instead of jquery2 if i'm gonna use jquery datetimepicker and to also put the gem in my Gemfile I'm presently using jquery datetimepicker without the gem in my Gemfile just with require jquery2 makes it available
[02:50:33] mices: my memory may be wrong
[02:50:42] mices: about the gemfile
[02:51:02] mices: actually not a post on the jquery-ui datetimepicker page
[02:51:52] mices: my problem is it doesn't populate the field it leaves it blank, if it launched datetimepicker when i clicked in the field i take that to mean there's no error in my code
[02:52:27] duderonomy: has joined #RubyOnRails
[02:52:48] ornerymoose: has joined #RubyOnRails
[02:53:26] RahulT: has joined #RubyOnRails
[02:57:11] jhfisc: has joined #RubyOnRails
[02:58:03] cam27: has joined #RubyOnRails
[03:02:44] jhfisc: has joined #RubyOnRails
[03:06:45] kt: has joined #RubyOnRails
[03:07:51] jhfisc: has joined #RubyOnRails
[03:12:34] ornerymoose: has joined #RubyOnRails
[03:21:11] jhfisc: has joined #RubyOnRails
[03:26:22] RahulT: has joined #RubyOnRails
[03:27:10] jhfisc: has joined #RubyOnRails
[03:30:29] quirkycoders: has joined #RubyOnRails
[03:33:03] jhfisc: has joined #RubyOnRails
[03:34:51] RahulT: has joined #RubyOnRails
[03:35:16] kt: has joined #RubyOnRails
[03:35:21] RahulT: has joined #RubyOnRails
[03:38:24] ornerymoose: has joined #RubyOnRails
[03:40:37] sunrunner20: has joined #RubyOnRails
[03:45:07] jhfisc: has joined #RubyOnRails
[03:46:45] gusrub: has joined #RubyOnRails
[03:47:38] kt: has joined #RubyOnRails
[03:52:02] jhfisc: has joined #RubyOnRails
[04:01:21] ornerymoose: has joined #RubyOnRails
[04:02:54] segy_: has joined #RubyOnRails
[04:02:58] jhfisc: has joined #RubyOnRails
[04:07:25] segy: has joined #RubyOnRails
[04:09:14] jhfisc: has joined #RubyOnRails
[04:09:18] RahulT: has joined #RubyOnRails
[04:11:38] segy_: has joined #RubyOnRails
[04:13:13] kt: has joined #RubyOnRails
[04:15:32] segy: has joined #RubyOnRails
[04:17:23] segy-: has joined #RubyOnRails
[04:19:49] segy_: has joined #RubyOnRails
[04:21:12] jhfisc: has joined #RubyOnRails
[04:21:47] segy: has joined #RubyOnRails
[04:25:47] segy_: has joined #RubyOnRails
[04:25:56] kt: has joined #RubyOnRails
[04:27:10] segy-: has joined #RubyOnRails
[04:31:28] segy_: has joined #RubyOnRails
[04:32:45] jhfisc: has joined #RubyOnRails
[04:33:47] bronson: has joined #RubyOnRails
[04:39:47] jhfisc: has joined #RubyOnRails
[04:41:06] kt: has joined #RubyOnRails
[04:47:00] quazimodo: has joined #RubyOnRails
[04:56:59] kt: has joined #RubyOnRails
[05:01:51] duderonomy: has joined #RubyOnRails
[05:02:26] ornerymoose: has joined #RubyOnRails
[05:05:02] ImmoveableOne: has joined #RubyOnRails
[05:10:20] kt: has joined #RubyOnRails
[05:10:45] ImmoveableOne: Hello, I have a bit of a unique problem. I want to process and save(to a file) the parameters to every method call I make in rails, be it in a library, helper controller or model. Is there a universal method filter or some such I can use?
[05:13:44] muzik: has joined #RubyOnRails
[05:16:42] jhfisc: has joined #RubyOnRails
[05:20:20] kt: has joined #RubyOnRails
[05:24:26] RahulT: has joined #RubyOnRails
[05:29:48] cam27: has joined #RubyOnRails
[05:33:27] RahulT: has joined #RubyOnRails
[05:34:45] bronson: has joined #RubyOnRails
[05:37:47] kt: has joined #RubyOnRails
[05:40:13] conta: has joined #RubyOnRails
[05:44:59] cam27: has joined #RubyOnRails
[05:50:20] kt: has joined #RubyOnRails
[05:51:52] RahulT: has joined #RubyOnRails
[05:54:53] RahulT: has joined #RubyOnRails
[06:07:45] jhfisc: has joined #RubyOnRails
[06:12:38] jhfisc: has joined #RubyOnRails
[06:17:14] cam27: has joined #RubyOnRails
[06:17:41] jhfisc: has joined #RubyOnRails
[06:20:31] jhfisc: has joined #RubyOnRails
[06:25:44] srinidhi: has joined #RubyOnRails
[06:25:58] jhfisc: has joined #RubyOnRails
[06:28:58] conta: has joined #RubyOnRails
[06:32:57] jhfisc: has joined #RubyOnRails
[06:35:17] bronson: has joined #RubyOnRails
[06:36:06] jhfisc: has joined #RubyOnRails
[06:36:54] RahulT: has joined #RubyOnRails
[06:39:09] kt: has joined #RubyOnRails
[06:39:48] ImmoveableOne: Hello, I want to process and save(to a file) the parameters to every method call I make in rails, be it in a library, helper controller or model. Is there a universal method filter or some such I can use?
[06:42:40] quirkycoders: has joined #RubyOnRails
[06:42:46] b0mbnet: has joined #RubyOnRails
[06:47:21] foreman-n00b: has joined #RubyOnRails
[06:48:48] dionysus69: has joined #RubyOnRails
[06:51:54] foreman-n00b: Hello, all! Greetings. I have some questions about `Rack::MethodOverride#call`. I googled around and have a fair idea about what's going on, but still have a few follow up questions. I jumped into this rabbit-hole because of NewRelic that told me `Rack::MethodOverride#call` consumes like 137000 ms, which is 84% of the POST call. It also accepts a tarfile anywhere between 100-250 MB. Would that be a reason that I am seeing it consume so much
[06:51:54] foreman-n00b: time, because it waits for the POST request to complete and see if there are any methods in the POST call that should override the Rack methods?
[06:54:13] kt: has joined #RubyOnRails
[06:57:29] michael_mbp: I'm looking for advice on managing Unicorn workers, especially in terms of running a large number.
[06:58:14] michael_mbp: Reason being, on a 32GB RAM compute instance (for example), easily 80 workers if not more could be run (using only ~18GB of RAM, so there's a lot more headroom).
[07:00:30] michael_mbp: However, this translates to 80x Postgres connections. This absolutely hammers the DB.
[07:02:45] cam27: has joined #RubyOnRails
[07:03:21] jhfisc: has joined #RubyOnRails
[07:17:04] quazimodo: has joined #RubyOnRails
[07:19:48] jhfisc: has joined #RubyOnRails
[07:26:39] quazimodo: has joined #RubyOnRails
[07:29:24] kt: has joined #RubyOnRails
[07:31:12] jhfisc: has joined #RubyOnRails
[07:32:26] arBmind: has joined #RubyOnRails
[07:34:06] srinidhi: has joined #RubyOnRails
[07:36:08] bronson: has joined #RubyOnRails
[07:37:11] jhfisc: has joined #RubyOnRails
[07:39:46] urkle: has joined #RubyOnRails
[07:41:22] chandru_in: has joined #RubyOnRails
[07:42:20] chandru_in: When using active record, is it possible to specify the schema for each query. For example, I have a users table under N different schema, and I need to choose the schema based on a request parameter.
[07:44:27] jhfisc: has joined #RubyOnRails
[07:45:56] cam27: has joined #RubyOnRails
[07:52:14] kt: has joined #RubyOnRails
[07:58:19] defsdoor: has joined #RubyOnRails
[08:02:23] mikecmpbll: has joined #RubyOnRails
[08:06:33] francuz: has joined #RubyOnRails
[08:12:04] marr: has joined #RubyOnRails
[08:13:23] jhfisc: has joined #RubyOnRails
[08:16:44] quazimodo: has joined #RubyOnRails
[08:17:31] apparition: has joined #RubyOnRails
[08:18:17] cam27: has joined #RubyOnRails
[08:21:29] kt: has joined #RubyOnRails
[08:23:46] Ergo: has joined #RubyOnRails
[08:29:06] ndr0s: has joined #RubyOnRails
[08:30:23] kt: has joined #RubyOnRails
[08:31:44] jhfisc: has joined #RubyOnRails
[08:32:46] AzaToth: has joined #RubyOnRails
[08:32:52] dustinm`: has joined #RubyOnRails
[08:33:54] TvL2386: hey guys, I've started a rails 5 project and I'm not interested in locales. However now I'm implementing a Mailer, the subject is set by config/locales/en.yml. Is there anyway to get around this?
[08:37:05] bronson: has joined #RubyOnRails
[08:38:01] jhfisc: has joined #RubyOnRails
[08:41:48] TvL2386: nah maybe not -_-
[08:41:54] jhfisc: has joined #RubyOnRails
[08:43:58] mikecmpbll: has joined #RubyOnRails
[08:44:03] TvL2386: I just did `rails g mailer Bla my_action` and from the console I run `Bla.new.my_action`.... I'm getting:
[08:44:06] TvL2386: NoMethodError: undefined method `empty?' for nil:NilClass
[08:44:08] TvL2386: from /home/tom/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/actionview-5.1.3/lib/action_view/lookup_context.rb:206:in `normalize_name'
[08:44:52] urkle: has joined #RubyOnRails
[08:47:12] jhfisc: has joined #RubyOnRails
[08:54:30] quirkycoders: has joined #RubyOnRails
[08:55:05] kt: has joined #RubyOnRails
[09:11:12] arBmind: has joined #RubyOnRails
[09:13:26] srinidhi: has joined #RubyOnRails
[09:17:12] jhfisc: has joined #RubyOnRails
[09:20:55] cagomez: has joined #RubyOnRails
[09:25:03] jhfisc: has joined #RubyOnRails
[09:36:09] ayonkhan: has joined #RubyOnRails
[09:37:03] mtkd: has joined #RubyOnRails
[09:38:40] bronson: has joined #RubyOnRails
[09:39:11] jhfisc: has joined #RubyOnRails
[09:45:02] atrius: has joined #RubyOnRails
[09:45:10] jhfisc: has joined #RubyOnRails
[09:48:41] kt: has joined #RubyOnRails
[09:51:54] cagomez: has joined #RubyOnRails
[09:55:15] jhfisc: has joined #RubyOnRails
[10:01:06] xpl0iter: has joined #RubyOnRails
[10:02:21] xpl0iter: Hi I am trying to do user.update(user_params) this works. But when I try to update with duplicate data for a unique column, it rolls back. Now user.errors.messages is empty. So how do I get this error?
[10:03:35] conta: has joined #RubyOnRails
[10:05:00] tbuehlmann_: xpl0iter: do you have a validation for this?
[10:05:15] jhfisc: has joined #RubyOnRails
[10:05:46] xpl0iter: tbuehlmann_: this model has several validations, but the field I am trying to update doesn't have a validation.
[10:06:29] tbuehlmann_: rails doesn't add errors for database constraints, only for "soft" validations from your model. so just add a validation in your model
[10:07:46] cagomez: has joined #RubyOnRails
[10:07:55] xpl0iter: tbuehlmann_: oh ok. So I have to add validation for uniqueness in this case, right?
[10:09:54] jhfisc: has joined #RubyOnRails
[10:13:05] atrius: has joined #RubyOnRails
[10:33:22] ur5us: has joined #RubyOnRails
[10:34:18] jhfisc: has joined #RubyOnRails
[10:38:31] cagomez: has joined #RubyOnRails
[10:39:10] universa1: has joined #RubyOnRails
[10:39:29] bronson: has joined #RubyOnRails
[10:40:09] jhfisc: has joined #RubyOnRails
[10:43:02] jhfisc: has joined #RubyOnRails
[10:47:56] ams__: has joined #RubyOnRails
[10:49:12] jhfisc: has joined #RubyOnRails
[10:54:22] cagomez: has joined #RubyOnRails
[10:55:12] jhfisc: has joined #RubyOnRails
[11:05:05] jhfisc: has joined #RubyOnRails
[11:11:34] high_fiver: has joined #RubyOnRails
[11:12:36] Trynemjoel: has joined #RubyOnRails
[11:20:44] kapil___: has joined #RubyOnRails
[11:36:47] jhfisc: has joined #RubyOnRails
[11:39:15] ornerymoose: has joined #RubyOnRails
[11:40:28] bronson: has joined #RubyOnRails
[11:50:09] Pumukel: has joined #RubyOnRails
[11:52:18] quazimodo: has joined #RubyOnRails
[11:53:11] andrew9184: has left #RubyOnRails: ()
[11:56:08] cagomez: has joined #RubyOnRails
[11:57:22] quazimodo: has joined #RubyOnRails
[12:04:46] jhfisc: has joined #RubyOnRails
[12:04:54] apparition47: has joined #RubyOnRails
[12:10:56] ornerymoose: has joined #RubyOnRails
[12:12:24] jhfisc: has joined #RubyOnRails
[12:15:08] ornerymoose_: has joined #RubyOnRails
[12:16:36] cagomez: has joined #RubyOnRails
[12:24:24] jhfisc: has joined #RubyOnRails
[12:25:55] szymon: has joined #RubyOnRails
[12:27:53] Guest30814: is someone who can help me or give me a good example to export csv file model with assosiation
[12:28:37] xpl0iter: Hi I am using 2checkout sandbox to try out implementing a payment page. Now the issues is after the 2checkout payment is complete, it returns something to my application. Now if the page is refreshed the db data gets duplicated. How to avoid this?
[12:31:11] jhfisc: has joined #RubyOnRails
[12:32:36] krmela: has joined #RubyOnRails
[12:33:44] krmela: good friday evening exist something with oppositive function Offer.find_by day: day).any?
[12:34:31] krmela: i thinked it is none? but that returns me in rails 5.1.3 undefined function
[12:35:40] GodFather: has joined #RubyOnRails
[12:38:38] muzik: has joined #RubyOnRails
[12:42:25] ImmoveableOne: has joined #RubyOnRails
[12:43:11] jhfisc: has joined #RubyOnRails
[12:49:07] jhfisc: has joined #RubyOnRails
[12:51:19] Tempesta: has joined #RubyOnRails
[12:57:59] jhfisc: has joined #RubyOnRails
[13:02:40] segy_: has joined #RubyOnRails
[13:07:23] jhfisc: has joined #RubyOnRails
[13:12:38] jhfisc: has joined #RubyOnRails
[13:17:11] jhfisc: has joined #RubyOnRails
[13:22:00] jhfisc: has joined #RubyOnRails
[13:34:08] ur5us: has joined #RubyOnRails
[13:38:02] jhfisc: has joined #RubyOnRails
[13:41:32] bronson: has joined #RubyOnRails
[13:49:04] jhfisc: has joined #RubyOnRails
[13:50:06] DTZUZO: has joined #RubyOnRails
[13:55:37] jhfisc: has joined #RubyOnRails
[14:06:15] jhfisc: has joined #RubyOnRails
[14:10:01] mustmodify: has joined #RubyOnRails
[14:10:34] mustmodify: I have the weirdest issue. An app in production runs fine for long periods... sometimes a week, sometimes a month. it is used lightly, but daily.
[14:12:01] mustmodify: And then it'll start up with "comparison of Date with ActiveSupport::TimeWithZone"
[14:12:32] mustmodify: for something like `@employee.ident_expiration_date && @employee.ident_expiration_date < 3.months.from_now`
[14:21:23] segy_: has joined #RubyOnRails
[14:21:40] chouhoulis: has joined #RubyOnRails
[14:22:28] quirkycoders: has joined #RubyOnRails
[14:23:47] muzik: has joined #RubyOnRails
[14:28:29] pro777: Radar: Thanks for the tip.
[14:29:29] dblessing: has joined #RubyOnRails
[14:33:12] jhfisc: has joined #RubyOnRails
[14:38:30] faraco: has joined #RubyOnRails
[14:40:15] jhfisc: has joined #RubyOnRails
[14:40:41] faraco: Hi guys, I have a question. I have a dilemma on using either cms or mvc/mvt/etc web framework. I did a simple blogging app with mvc framework, which I found almost useless compared to time I spent can be used on setting up cms say Wordpress for blogging. I'm not sure what is the exact applications that is suited to build on mvc framework?
[14:44:43] quirkycoders: has joined #RubyOnRails
[14:46:16] jhfisc: has joined #RubyOnRails
[14:47:03] pro777: faraco: Have you ever built anything with Sinatra?
[14:47:29] [Butch]: has joined #RubyOnRails
[14:47:54] faraco: I didn't with rails, but I did with Perl's Mojolicious::Lite which is inspired by Sinatra and also PHP's Lumen for simple micro services.
[14:48:15] faraco: with sinatra*
[14:48:37] pro777: I guess for me, if I think the controller logic would fit in one file, then Sinatra is great. Otherwise I'd go with Rails. Having said that, it depends on the type of problem you are trying to solve.
[14:49:06] pro777: WordPress can be clunky, but you'd be hard pressed to write a better blogging platform from scratch in Rails in a reasonable amount of time.
[14:50:07] Ryzokuken: has joined #RubyOnRails
[14:51:15] TvL2386: hey guys! I'm following these docs: http://guides.rubyonrails.org/action_mailer_basics.html. I'm doing `attachments.inline['logo.png'] = File.read(Rails.root.join('app','assets','images','logo.png'))` then in my haml mail view I'm using it: `= image_tag(attachments.inline['logo.png'])`. For some reason when I try to send the email, I'm getting:
[14:51:20] TvL2386: ActionView::Template::Error: The asset "Content-Type: image/png\r\nConten..........$LONG_BASE64_ENCODED_BLOB........." is not present in the asset pipeline.
[14:51:54] TvL2386: I'm not sure what that means
[14:52:22] TvL2386: forgot .url
[14:52:55] chouhoulis: has joined #RubyOnRails
[14:55:02] jhfisc: has joined #RubyOnRails
[14:57:08] faraco: Pro777: Hmm, maybe my question clarified enough. Maybe what I want to ask is, what is the most probably suited type of applications to be built with mvc framework (beside social app)?
[14:59:26] pro777: faraco: I think Rails excels are making rapid prototypes of reasonably complicated apps which can be hardened to a production version without a herculean effort. Right now I'm working at a company where our main app is Rails. It's a financial company similar in some respects to the paypal button works.
[14:59:28] guacamole: has joined #RubyOnRails
[14:59:47] pro777: So the domain logic is pretty complicated, but the code is organized in such a way that it's pretty easy to maintain and customize.
[15:01:01] faraco: I see, now I can get the picture why people use MVC, like making a payment gateway or some sort. Thanks1
[15:01:19] faraco: and of course, plethora of others too.
[15:07:18] guacamole: has joined #RubyOnRails
[15:07:31] michael_mbp: That's a good point Pro777. That 'organisation' (or convention over configuration nature) of Rails also _generally_ makes it easier for new comers to a project to easily re-familiarise themselves with a code-base they've never seen before, well usually.
[15:08:04] jhfisc: has joined #RubyOnRails
[15:08:07] michael_mbp: ^^ only depends on how far a team sticks to the 'usual Rails' way, and there's a lot of reasons not to as well.
[15:13:02] guacamole: has joined #RubyOnRails
[15:13:19] jhfisc: has joined #RubyOnRails
[15:16:13] jhfisc: has joined #RubyOnRails
[15:16:54] guacamole: has joined #RubyOnRails
[15:20:32] guacamole: has joined #RubyOnRails
[15:23:42] guacamole: has joined #RubyOnRails
[15:31:09] jhfisc: has joined #RubyOnRails
[15:42:08] bronson: has joined #RubyOnRails
[15:42:28] DoctorMonocular: has joined #RubyOnRails
[15:45:11] jhfisc: has joined #RubyOnRails
[15:47:00] brent__: has joined #RubyOnRails
[15:50:07] moeabdol: has joined #RubyOnRails
[15:54:41] desiph3r: has joined #RubyOnRails
[15:59:14] jhfisc: has joined #RubyOnRails
[16:00:48] conta: has joined #RubyOnRails
[16:06:02] cam27: has joined #RubyOnRails
[16:18:25] gusrub: has joined #RubyOnRails
[16:21:09] szymon: has joined #RubyOnRails
[16:22:27] jhfisc: has joined #RubyOnRails
[16:23:41] ImmoveableOne: has joined #RubyOnRails
[16:28:29] cagomez: has joined #RubyOnRails
[16:35:12] jhfisc: has joined #RubyOnRails
[16:35:54] dviola: has joined #RubyOnRails
[16:39:34] Inoperable: has joined #RubyOnRails
[16:45:06] conta: has joined #RubyOnRails
[16:45:36] mikecmpbll: has joined #RubyOnRails
[16:55:33] mostlybadfly: has joined #RubyOnRails
[16:56:54] cagomez_: has joined #RubyOnRails
[16:57:00] cam27: Looking to add a plugin for code suggestions (intellisense) in vim. Should I want a Rails or a Ruby Plugin?
[16:57:55] dblessing: has joined #RubyOnRails
[17:00:49] irishfromua: has joined #RubyOnRails
[17:01:37] gusrub: has joined #RubyOnRails
[17:02:14] banisterfiend: has joined #RubyOnRails
[17:02:53] one_zero: has joined #RubyOnRails
[17:05:07] jhfisc: has joined #RubyOnRails
[17:08:17] IsoLinCHiP: Hi. I am trying to track a capistrano error when it runs rake assests:precompile in production. I am getting 'Sass::SyntaxError: Invalid CSS after "/": expected identifier, was "/* line 1, /srv..."' as an error but no corresponding filename. Any ideas how I could get said filename?
[17:09:43] jhfisc: has joined #RubyOnRails
[17:10:51] vcarl: has joined #RubyOnRails
[17:12:38] sunya7a: hi, Is it possible to create a dropdown or radio button form element that allows a write in on an answer choice...sort of like a follow up field?
[17:12:43] Criten: has joined #RubyOnRails
[17:12:51] Criten: Hi ya'lll
[17:13:43] Inoperable: has joined #RubyOnRails
[17:13:58] jon31: has joined #RubyOnRails
[17:14:09] jon31: why do people prefer rbenv over rvm in a production server env?
[17:15:48] jhfisc: has joined #RubyOnRails
[17:16:07] vcarl: is there a way to use a default value iff the supplied value fails validation? we're importing data from a third party and are getting a handful of bad values where an empty string would be acceptable
[17:16:44] Criten: vcarl: you could have a custom validation that doesnt put any errors in the array
[17:16:50] vcarl: so i'd like to use the provided value if it validates fine, but if it doesn't i want to use an empty string
[17:17:19] Criten: thats not really a validation then :P
[17:17:30] Criten: I guess it is...
[17:17:41] vcarl: validation+ :P
[17:17:51] maryo: has joined #RubyOnRails
[17:18:00] Criten: But yeah, define a block for it and just do your validation + default manually in there
[17:18:03] vcarl: the data we're getting back is weirdly shaped or i'd just do that logic where we save it
[17:18:14] vcarl: okay thanks, i'll look into it
[17:18:31] Criten: You could also transform it before even putting it in the model
[17:18:38] mustmodify: has left #RubyOnRails: ()
[17:19:02] Criten: Where are the default PG datamodel validations?
[17:19:37] Criten: Rails sticks in a error into .valid? if a mac_address isnt the right format
[17:24:47] dviola: has joined #RubyOnRails
[17:25:20] Ryzokuken: has joined #RubyOnRails
[17:25:35] cagomez: has joined #RubyOnRails
[17:27:04] Ryzokuken: has joined #RubyOnRails
[17:31:42] duderonomy: has joined #RubyOnRails
[17:35:24] jhfisc: has joined #RubyOnRails
[17:37:49] cagomez: has joined #RubyOnRails
[17:40:51] jhfisc: has joined #RubyOnRails
[17:43:29] bronson: has joined #RubyOnRails
[17:47:11] jhfisc: has joined #RubyOnRails
[17:54:01] mtkd: has joined #RubyOnRails
[17:59:49] mikecmpbll: has joined #RubyOnRails
[18:01:19] jhfisc: has joined #RubyOnRails
[18:07:07] guacamole: has joined #RubyOnRails
[18:12:19] weaksauce: has joined #RubyOnRails
[18:13:48] Criten: nvm with my question. I was being dumb.
[18:15:45] jhfisc: has joined #RubyOnRails
[18:18:21] maryo: has joined #RubyOnRails
[18:18:54] dionysus69: has joined #RubyOnRails
[18:21:11] jhfisc: has joined #RubyOnRails
[18:27:12] jhfisc: has joined #RubyOnRails
[18:29:05] mtkd: has joined #RubyOnRails
[18:32:30] clamstar: has joined #RubyOnRails
[18:36:30] jhfisc: has joined #RubyOnRails
[18:40:49] moeabdol: has joined #RubyOnRails
[18:41:56] jhfisc: has joined #RubyOnRails
[18:44:28] bronson: has joined #RubyOnRails
[18:46:57] Ryzokuken: has joined #RubyOnRails
[18:47:16] jhfisc: has joined #RubyOnRails
[19:03:14] jhfisc: has joined #RubyOnRails
[19:03:33] cagomez: has joined #RubyOnRails
[19:08:19] jhfisc: has joined #RubyOnRails
[19:13:39] jhfisc: has joined #RubyOnRails
[19:14:14] nahtnam: has joined #RubyOnRails
[19:18:04] gusrub: has joined #RubyOnRails
[19:19:51] banisterfiend: has joined #RubyOnRails
[19:21:57] jhfisc: has joined #RubyOnRails
[19:24:12] cagomez: has joined #RubyOnRails
[19:26:44] jhfisc: has joined #RubyOnRails
[19:35:32] guacamole: has joined #RubyOnRails
[19:36:17] lexileo: has joined #RubyOnRails
[19:38:38] jhfisc: has joined #RubyOnRails
[19:40:22] srinidhi: has joined #RubyOnRails
[19:45:11] bronson: has joined #RubyOnRails
[19:49:15] jhfisc: has joined #RubyOnRails
[19:52:50] ijustcount: has joined #RubyOnRails
[19:58:35] rakm: has joined #RubyOnRails
[20:00:11] ResidentBiscuit: has joined #RubyOnRails
[20:09:34] banisterfiend: has joined #RubyOnRails
[20:09:57] cagomez: has joined #RubyOnRails
[20:14:38] FastJack: has joined #RubyOnRails
[20:19:17] cagomez: has joined #RubyOnRails
[20:21:15] dionysus69: has joined #RubyOnRails
[20:22:32] ResidentBiscuit: has joined #RubyOnRails
[20:32:16] cagomez: has joined #RubyOnRails
[20:42:00] jhfisc: has joined #RubyOnRails
[20:46:08] bronson: has joined #RubyOnRails
[20:47:12] jhfisc: has joined #RubyOnRails
[20:52:28] francuz: has joined #RubyOnRails
[20:53:52] jhfisc: has joined #RubyOnRails
[20:56:33] arBmind: has joined #RubyOnRails
[20:57:42] francuz: hello everyone, I have a model Client, a join model Registraion, and a model Session. I would like to do something like "@clients = Client.where(sessions doesn't include Session)" what would be the cleanest way to do this? (now I made a "@cleanedClients = [ ]" and a double foreach to populate this variable, but it looks horrible)
[20:59:48] jhfisc: has joined #RubyOnRails
[21:00:54] Frem: has joined #RubyOnRails
[21:03:21] quirkycoders: has joined #RubyOnRails
[21:05:21] jhfisc: has joined #RubyOnRails
[21:08:12] jhfisc: has joined #RubyOnRails
[21:16:17] jhfisc: has joined #RubyOnRails
[21:34:25] jhfisc: has joined #RubyOnRails
[21:44:07] ornerymoose: has joined #RubyOnRails
[21:46:14] jhfisc: has joined #RubyOnRails
[21:47:24] bronson: has joined #RubyOnRails
[21:50:36] chrisgopher: has joined #RubyOnRails
[21:52:39] jhfisc: has joined #RubyOnRails
[22:02:59] jhfisc: has joined #RubyOnRails
[22:08:59] jhfisc: has joined #RubyOnRails
[22:20:52] ornerymoose: has joined #RubyOnRails
[22:23:41] jhfisc: has joined #RubyOnRails
[22:29:10] ornerymoose: has joined #RubyOnRails
[22:33:09] guacamole: has joined #RubyOnRails
[22:36:58] KeyJoo: has joined #RubyOnRails
[22:48:07] bronson: has joined #RubyOnRails
[22:48:14] dviola: has joined #RubyOnRails
[22:50:13] lxsameer: has joined #RubyOnRails
[22:50:57] ornerymoose: has joined #RubyOnRails
[22:57:44] ornerymoose: has joined #RubyOnRails
[22:59:55] gambl0re: has joined #RubyOnRails
[23:05:37] brent__: has joined #RubyOnRails
[23:10:28] bronson: has joined #RubyOnRails
[23:13:57] ornerymoose: has joined #RubyOnRails
[23:16:14] jhfisc: has joined #RubyOnRails
[23:21:52] jhfisc: has joined #RubyOnRails
[23:25:50] quirkycoders: has joined #RubyOnRails
[23:37:26] nahtnam: has joined #RubyOnRails
[23:45:11] jhfisc: has joined #RubyOnRails
[23:49:33] mostlybadfly: has joined #RubyOnRails
[23:50:09] jhfisc: has joined #RubyOnRails