Tells you what techniques you are using that are out of fashion with the current Rails API.
This is not an endorsement by the Rails core team or a guarantee that your code will work correctly. It just tries to identify common problems.
Install as a Rails plugin:
./script/plugin install http://topfunky.net/svn/plugins/deprecated
Run the rake task:
rake deprecated
Messages will be printed to the screen:
--> @flash
!! Use flash[] instead !!
.........................
helpers/user_helper.rb: notice = @flash[:notice]
--> @params
!! Use params[] instead !!
..........................
views/articles/_search.rhtml: text_field_tag('search_text', @params[:search_text])
--> @session
!! Use session[] instead !!
...........................
controllers/user_controller.rb: User.find(@session[:user_id])
--> component
!! Use of components are frowned upon !!
........................................
helpers/articles_helper.rb: render_component :layout => false,
--> find_all
!! Use find(:all) instead !!
............................
controllers/articles_controller.rb: @articles = Article.find_all
--> find_first
!! Use find(:first) instead !!
..............................
controllers/articles_controller.rb: @article = Article.find_first
--> paginate
!! The default paginator is slow. Writing your own may be faster !!
...................................................................
controllers/articles_controller.rb: @article_pages, @articles = paginate :articles, :order => 'created_at DESC'