Page 1 of 2 | Next »
[20:27:16] fp-: hey guys... anyone here using multitenancy have advice on how to allow the user to edit the settings for the tenant
[22:40:00] fp-: Rails 5 is doing some kind of really strange caching of a module/concern I have that sets a default scope based on Thread.current. Does anyone have any advice of where I can investigate? It's like it's caching the module for some reason and calling the default_scope regardless of whether it should (based on presence of account_id in Thread.current)
[22:49:53] fp-: i keep tweaking things and it just seems that default_scope within a Concern is just not working
[23:18:24] fp-: ok it looks like in Rails 5, you have to define default scopes as def self.default_scope
[04:31:56] fp-: is there a way to make it so that when you generate a route via link_to [@account, @invoice] it would automatically call [@account.company, @invoice] instead?
[07:08:21] fp-: is there anyone who can tell me why local_time (github.com/basecamp/local_time) keeps giving me time that's 4 hours in the future?
[07:08:59] fp-: is there anyone who can tell me why local_time (github.com/basecamp/local_time) keeps giving me time that's 4 hours in the future?
[07:12:11] fp-: anytime I render e.g. @payment.created_at i have the correct time, however when I use Basecamp's local_time, it's always throwing me 4 hours ahead
[06:56:39] fp-: I'm looking for a best practice for selecting records belonging to a polymorphic association
[00:00:38] fp-: maybe I was doing it wrong, but I researched for hours and just couldn't get autoloading and development reloading working
[00:01:35] fp-: it was just a royal pain in the ass trying to make edits to them while developing the rest of the app
[00:04:04] fp-: the basic structure of my API libraries is basically a base class that includes a lot of ActiveModel functionality
[00:15:20] fp-: my API client libraries I've written are basically modeled after ActiveResource, but instead of parsing nice XML and following REST, it deals with these 2 web services' APIs and parses their data
[00:16:30] fp-: but the models are pretty fat with a lot of custom logic for create/update/destroy/all/etc.
[23:27:53] fp-: my app relies heavily on 2 API services and my lib directory has gotten pretty darn big... is there a better folder naming idea for these api clients?
[23:58:55] fp-: i spent the better part of yesterday trying to figure out how to make them gems while developing in rails
[08:57:08] fp-: I have code that was working perfeclty fine on Rails 4.1, and now I'm getting StatementInvalid errors
[11:27:54] fp-: i can't seem to figure out why ActiveRecord is trying to find associated records of an object when they don't exist
[11:30:01] fp-: I'm doing something like Company.includes(:president, :vice_president, :secretary).all and if the Company doesn't have a VicePresident or Secretary, when I'm looping through @companies and calling company.secretary or company.vice_president, AR is doing another query/lookup to try to find the VP / Secretary
[05:23:01] fp-: i'm trying to build a small app similar to 37signals' Highrise in functionality, but more industry specific. Anyhow, poking around their API, it looks like they are using single table inheritance from a "parties" table with Company and Person < Party
[05:23:59] fp-: where I'm confused is how they're returning "name" on a company record, but "first_name" and "last_name" on a person record, via the /parties.xml api
[01:19:54] fp-: I apologize if this has been asked already, but does anyone know how to get webrick to accept incoming connections on Yosemite? I just upgraded and it???s not working.
[20:34:18] fp-: is there a way to do this yet? Recording.where(recordable: company).or(Recording.where(recordable: company.member_ids))
[20:35:31] fp-: I didn???t want to have to write the SQL because Company is STI, so recordable_type IN (???Company???, ???Client???, ???Reseller???)
[20:40:14] fp-: where(arel_table[:recordable]).eq(company).or(arel_table[:recordable]).in(company.member_ids)
[18:23:05] fp-: hey guys, I???m trying to run ???rails server??? from my app directory and it???s not detecting I have an app there
[18:26:32] fp-: and I???ve been getting this since upgrading to 4.1 ???bin/rails:6: warning: already initialized constant APP_PATH"
[17:35:29] fp-: hey guys??? ever since Rails 4.1, I have two models that no longer work because of their class names. One is called Task, the other Status
[22:49:08] fp-: it just seems that because the model is named Status, Rails doesn???t seem to like it
[22:53:37] fp-: yeah it just seems that Rails 4.1 does not like the use of a model named Status or Task, at least in my app??? I guess I can try creating a blank app and seeing if it???s still there.
[06:30:03] fp-: rvanlieshout: the only thing I left was the validates_presence_of line and it still does this stack level too deep error
[01:10:44] fp-: hey guys, I have a Company model, and Client < Company. In my ClientsController, I can pull just Clients just fine, but I'm wondering if I want to use the base class (Company) to store businesses that haven't become customers yet, how can I filter out the Clients?
[03:36:27] fp-: i'm kinda having a conundrum where i'm having to choose between better software design vs efficiency
[08:40:18] fp-: i usually saw something more like User < ActiveRecord::Base, Person < User, Agent < User, etc.