Learn how to strike a balance between flexibility and data integrity with a partial index and validations.
Need to do some HTML sanitization, but Rails ActionView Sanitize Helpers are not good enough? Read this post to learn how to do it with Loofah.
Re-use collection query logic within model instances to avoid duplication and get the best performance.
Running a separate query to count how many records are associated with another record is inefficient. Using a counter cache can save the day!
How do you manage queries when your Rails application isn’t the only thing reading your database?
Read this the next time you need to build a complicated form.
You don’t need a sophisticated caching mechanism to improve your application’s performance. All you need is a basic understanding of the HTTP specification.
Learn how to build a production ready Rack application without a framework like Rails or Sinatra.
Superglue creator Johny Ho answers a beginner’s questions about the new React+Rails framework.