Posts Tagged ‘rails 3’
Ways to force your Rails application to use SSL and the HTTPS protocol.
The advent of Object#returning first, and Object#tap consequently, quickly lead to a very common and elegant pattern in the Rails community to scope a variable to a block in your template code. Here’s a simple .erb file. <% “Simone”.tap |string| %> Hello, <%= string %>. <% end %> Once executed, in Rails 2.3 the template [...]
How to fix the DEPRECATION WARNING: You are using the old router DSL which will be removed in Rails 3.1.
The goal of this article is to feature a list of tips and changes you can already introduce in your Rails 2 application to anticipate the migration and make your code more compatible with Rails 3.