infovore + activerecord   19

UNION with Active Record - The Pug Automatic
Turns out I really shouldn't have been messing with ARel: this seems more sane.
union  postgresql  sql  activerecord  ruby  rubyonrails 
february 2016 by infovore
jamis/bulk_insert
This was a good alternative to activerecord-import for me, so noting it down.
activerecord  gems  ruby  rails  jamisbuck 
january 2016 by infovore
7 Patterns to Refactor Fat ActiveRecord Models - Code Climate Blog
via @aanand, and because I forgot to bookmark this when I read it the first time. Good, straightforward points.
activerecord  rails  ruby  refactoring  software  development 
november 2012 by infovore
flyerhzm/bullet
"The Bullet gem is designed to help you increase your application’s performance by reducing the number of queries it makes. It will watch your queries while you develop your application and notify you when you should add eager loading (N+1 queries), when you’re using eager loading that isn’t necessary and when you should use counter cache."
activerecord  optimization  performance  rails  ruby 
august 2012 by infovore
Composite Primary Keys
Composite keys for Rails/ActiveRecord. Really does appear to work, too, which is nice.
activerecord  database  keys  composite  programming  rubyonrails  ruby 
july 2010 by infovore
has_many :bugs, :through => :rails: Active Record Query Interface 3.0
ARel looks brilliant, but blimey, those are some *big* changes to ActiveRecord. Pratik's post here is probably the most comprehensive I've seen, and well worth your time.
activerecord  arel  rails3  rails  ruby 
february 2010 by infovore
Ryan's Scraps: What's New in Edge Rails: Default Scoping
"It’s pretty common to want SQL queries against a particular table to always be sorted the same way, and is one of the reasons why I added the ordered scope to the utility scopes gem... Well now you can specify default ordering, and other scopes, in edge rails directly in your ActiveRecord model." Hurrah!
rails  scoping  activerecord  ruby 
november 2009 by infovore
Ryan's Scraps: What's New in Edge Rails: Dynamic Scope Methods
"With the recent addition of dynamic scopes, however, you now have a way to both quickly specify query logic and chain further conditions. The naming works in the same manner as dynamic finders and the chaining works in the same fashion as conventional named scopes." Ooh. New in Rails 2.3, and passed me by a little.
rails  activerecord  ruby  scoping 
november 2009 by infovore
Tableless models in Rails » code tunes
"If you’re developing an application in Ruby on Rails framework, there are many situations when you should consider using tableless models." Stub out the table, and you get the benefits of validations and typed attributes. Nifty.
rails  rubyonrails  ruby  activerecord 
august 2008 by infovore
Ryan's Scraps: What's New in Edge Rails: Has Finder Functionality
"It looks like Nick Kallen’s wildly popular has_finder plugin will be making its way into Rails 2.x in the form of named_scope" This is excellent news.
rails  rubyonrails  features  finders  activerecord 
april 2008 by infovore
nick - HasFinder -- It's Now Easier than ever to create complex, re-usable SQL queries
How I've not seen has_finder before I don't know. Looks very handy, and nice and succinct, too.
rails  plugins  rubyonrails  activerecord  finder 
december 2007 by infovore
Juixe TechKnow » Top 11 Rails Plugins
"I [decided] to write a list of the top Ruby on Rails plugins that I have found useful." A decent-enough selection, with a few I hadn't seen before.
rails  rubyonrails  ruby  plugins  activerecord 
december 2007 by infovore
Pivotal Blabs : CUDdly Models
"Better Rails Code through ...ActiveRecords with no public methods that have side-effects--other than Create, Update, and Destroy (CUD)." Ooh. This could be exactly what I need. Certainly worth a closer look, anyhow.
activerecord  ruby  rails  rubyonrails  plugin 
october 2007 by infovore
Pivotal Blabs : HasFinder -- It's Now Easier than ever to create complex, re-usable SQL queries
"HasFinder is an extension to ActiveRecord that makes it easier than ever to create custom find and count queries." Looks excellent. Might well be making use of this.
rails  activerecord  sql  plugin  finders 
september 2007 by infovore
Pivotal Blabs : Advanced Proxy Usage, Part I
Some good stuff on ActiveRecord proxy usage. I'm doing some of this already, but the advanced examples look really handy.
rails  proxy  activerecord  associations  rubyonrails  development 
august 2007 by infovore
I Don't Feel Like It, Why Don't You // RailsTips.org by John Nunemaker
The "delegate" method: "the User model says I don’t feel like dealing with the inbox method so why don’t you deal with it Action."
rubyonrails  rails  activerecord  tips  delegate 
january 2007 by infovore
Nested with_scope
Probably the clearest, most useful explanation of with_scope so far
rails  ruby  rubyonrails  activerecord  howto 
august 2006 by infovore
A Rails Feature You Should be Using: with_scope
Yes - I definitely should be using this. Will refactor some code to take account of it at the weekend. A really elegant construction.
activerecord  rubyonrails  rails  ruby  scope  development  tips 
july 2006 by infovore

Copy this bookmark:



description:


tags: