| Web Development >> Ruby On Rails |
Using with_scope
| Language : | English | Quality : | High | Has Audio : | true | Source : | Other | Media : | QuickTime |
| Learn how to use with_scope - a very powerful method which will allow your custom find methods to accept any find options. Just like magic! |
Tags: Ruby On Rails, Ruby, Web Development, [SUGGEST A TAG]
Resources referenced in this screencast
|
Articles Realted to this Topic |
[SUGGEST A ARTICLE] |
|
Using with_scope to refactor Rails finder methods. I have come across a great way of refactoring finder methods, yet still maintaining the flexibilty of the built in ActiveRecord finder methods. First I'll show an inflexible way of refactoring a simple finder. I was calling the following method from several places in my controller |
|
Top 10 Ruby on Rails performance tips The performance of Ruby on Rails is influenced by many factors, particularly the configuration of your deployment server(s). However the application code can make a big difference and determine whether your site is slow or highly responsive. This short article is about some of the tips and best coding practices to improve performances in Rails only, and won’t attempt to cover the server configuration improvements for the various deployments options |