Skip to content

Instantly share code, notes, and snippets.

@ryankbales
Last active August 29, 2015 14:09
Show Gist options
  • Save ryankbales/25d272a521ad996eee7a to your computer and use it in GitHub Desktop.
Save ryankbales/25d272a521ad996eee7a to your computer and use it in GitHub Desktop.
Changes to look out for with new code in core and core template paths.
#Deprecated in Rails 3.1
<% form_tag %> #note the different erb tags below
<% form_for %> #this is only in regards to the form tag helpers
request.request_uri
#New syntax for 3.1 upgrade
<%= form_tag %> #3.1 requires the erb tags with the '=', or the evaluate and render tags for form helpers.
<%= form_for %>
request.url #this is backwards compatible, request.request_uri will not work in 3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment