Page 1 of 1
[07:34:32] dazonic: I???m using git as a source for a gem, like github: ???daz/repo??????.. it???s not updating the source, just using an old version based on the version number. How do i force it to update, or delete the old one?
[07:57:18] dazonic: sevenseacat yep i ran bundle update gem_name, it???s still using the old version
[08:04:28] dazonic: thats the thing, it definitely isn???t, i???m getting no method errors on APIs i just added
[08:05:14] dazonic: i???ve run into it before??? if i manually clear out the old gem versions from my .rbenv dir, it works
[02:12:53] dazonic: spits out SQL (21.5ms) UPDATE "invoices" SET "flights_rate" = 95 WHERE "invoices"."id" = 53
[02:17:50] dazonic: haven???t even tested but obv thats it??? what an idiot??? irc is always last resort for me i hate asking for help lol
[08:56:46] dazonic: Payment model, amount column is a decimal??? why do I need to convert to array or risk getting whack values when I convert to float?
[03:11:21] dazonic: I???ve got Invoice belongs_to Client???.. How do I get all Clients who have at least one Invoice?
[03:19:45] dazonic: SELECT DISTINCT "clients".* FROM "clients" INNER JOIN "invoices" ON "invoices"."client_id" = "clients"."id"
[06:30:00] dazonic: anyone got ideas why my application.css is just spitting out the raw manifest, it's like sprockets isn't working at all? Rails 3.2.13
[06:32:09] dazonic: same with application.js it's just rendering the commented lines, not spitting out coffeescript
[06:33:34] dazonic: Radar: any ideas what to check? i updated sass-rails, sprockets, coffee-script… really baffled
[06:37:33] dazonic: radar:rhizome: yeah it def looks like a sprockets issues… Gemfile.lock says sprockets (~> 2.1.3)…… application.rb has config.assets.enabled = true…… i'm stumped
[02:11:23] dazonic: rails 3.2, my assets aren't being manifested, application.css is just spitting out the commented requires
[02:13:23] dazonic: i've ran into this before, i forget how i fixed it… assets is enabled, public/assets doesn't exist…. it's an old app and it was working last time i played with it
[01:30:21] dazonic: any SQL beasts know how to get distinct years from a column? rails 3.2 + postgres
[01:32:16] dazonic: Event.group('year(start_time)') throws this: ERROR: function year(timestamp without time zone) does not exist
[01:47:26] dazonic: i'm having some luck with this, fetching all years… i don't like it though…. Event.select("date_part('year', start_time)")
[02:05:42] dazonic: ACTION dunno if this is IRC protocol or not but I sussed out getting distinct years….. #datetime is stored as type timestamp in postgres, so you need to use date_part to get the year...
[08:38:51] dazonic: I've got an ResultObserver< ActiveRecord::Observer with an after_save action, it's not being triggered by @event << Result.new
[08:02:02] dazonic: I'm running about 5 rack apps and 5 rails apps, all relatively small with low traffic, and i keep spiking massive IO errors from Linode mailer…. nginx + unicorn
[08:00:16] dazonic: with jquery_ujs, how would i interrupt, or unbind an ajax event? this didn't work https://gist.github.com/7f63147e439ad4f25ed8
[08:03:33] dazonic: cheers universal, but i kind of need a custom confirm. I want to delete the row as the OK button is hit, not after the ajax callback in destroy.js.erb
[08:05:14] dazonic: sevenseacat i'm not too bothered if the delete fails, i've got the need for speed