I've been n00bing with some Ruby on Rails and the first thing I wanted to try out was doing an each through an array / hash (I'm a bit confused about the Ruby terms atm).
In test_controller.rb I've got:
class TestController < ApplicationController
def index
@People = ['Daniel','Chris','Pål']
end
end
In test/index.html.erb I've got:
<h1>Test#index</h1>
<ul>
<% @People.each do |person| %>
<li><%= person %></li>
<% end %>
</ul>
This apparently causes an error, and I get the We're sorry, but something went wrong.-message.
But if I change the third element to something without Æ/Ø/Å e.g. "Pal" instead of "Pål", then everything works fine!
Does anyone know why this is happening?
I'm using RubyMine 4.5 with UTF-8