The best solution to this warning: Giving a path to render :action is deprecated.

I for one welcome this change and deprecation warning. It means that you should stop using this:

render :action => :index

And, if necessary, you should start using this:

render :index

The code is simpler and prettier. Don’t use render :template, unless you really need to.

If you use vim, you can use this search and replace string:

:%s/render :action => /render /g
This entry was posted in open source, programming, Ruby programming, web programming and tagged , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam protection by WP Captcha-Free