Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Aleks's Profile

GitHub User: aleks

Site: http://twitter.com/aleksm_

Comments by Aleks

Avatar

I just read a 37signals post on their caching technique in Basecamp Next and came here for some informations about partial-caching etc.

I think David explains very well, how you can use a technique like this very smart, to get fast responses: http://37signals.com/svn/posts/3112-how-basecamp-next-got-to-be-so-damn-fast-without-using-much-client-side-ui

Avatar

Wouldn't that be a good way to call an external API?

So you could easily switch between a internal Database or external datastorage.

How do you call external APIs?

Avatar

Does someone of you use this gem and has custom validations in a model?

I have something like this, but ActiveAdmin ignores it.

ruby
validate :validate_me

def validate_me
  self.errors[:base] << "My error message" if my_validation(self.id) == true
end