--- deprecated version 38 Mon Oct 16 15:16:18 +0000 2006 +++ deprecated version 39 Tue Oct 17 04:52:28 +0000 2006 @@ -1,30 +1,34 @@ These things have all been deprecated. Some of them may not exist at all in Rails 2.0. You've been warned! @params Use params[] instead. @session Use session[] instead. @flash Use flash[] instead. @request Use request[] instead. @env Use env[] instead. find_all Use find(:all) instead. find_first Use find(:first) instead. render_partial Use render :partial instead. push_with_attributes Use has_many :through instead. Object#type Use Object#class instead. + content_for_layout + Use yield instead. + content_for_some_fragment + Use yield :some_fragment instead. These things are not technically deprecated, but stay away. components Use of components are frowned upon. paginate :model The default paginator is slow. Writing your own may be faster.
cheat sheets.
$ cheat deprecated( add new | see all )
- updated sheets

- cheat
- shoulda
- capistrano
- rpm
- string
- sqld4r
- cheat_el
- magit
- to_i
- bm
- rails_date_formats
- sequel
- dexagogo_form_validation
- git
- git_remote_branch
Advertisement