Fork me on GitHub
Toggle navigation
Rails Best Practices
Contributing
Contact Us
Use model association
19 Jul 2010
Wen-Tien Chang
Use model association to avoid assigning reference in controller.
Read More
Tags
controller
model
Move finder to named_scope
14 Jul 2010
Wen-Tien Chang
Complex finders in controller make application hard to maintain. Move them into the model as named_scope can make the controller simple and the complex find logics are all in models.
Read More
Tags
rails2
controller
model
« Previous
Tags
DRY
I18n
RESTful
active_record
assets
background job
bundler
cache
capistrano
collection
comment
config
controller
convention
css sprite
cucumber
deployment
exception
gem
helper
javascript
mailer
migration
model
naming
observer
params
partial
performance
plugin
query
rails
rails2
refactor
render
rescue
route
rspec
search
security
system administration
tab
task
timezone
upload
version control
view
whitespace