I am porting a Rails 2.8 application to Rails 3. Most of the things now work, and I slowly give up on kinks. The one behavior I found is perplexing, and I would like to understand what has changed behind the scenes. The following code snippet works in 2.x, but crashes in 3.0:
<% if @apps.nil? || @apps.empty? %> No rated applications. <% else ratingshidden = false @apps.each { |app| %> display app stuff etc....
to make it work in 3, I have to change the following:
<% if @apps.nil? || @apps.empty? %> No rated applications. <% else %> <% ratingshidden = false @apps.each { |app| %> display app stuff etc....
What has changed in rails to require this updated syntax?
ruby-on-rails
Joshua
source share