I have a problem with accents inside of instance variables in rails 3
controller
class WelcomeController < ApplicationController
def index
@tutor="Uriel Hernández"
end
end
view
<h1>Bienvenido al curso de Ruby on Rails 3</h1>
<h2>Tutor: <%=@tutor %></h2>
<p>Esta es mi primera vista</p>
Browser
SyntaxError in WelcomeController#index
/home/fernando/codigofacilito/helloworld/hello_world/app/controllers/welcome_controller.rb:3: invalid multibyte char (US-ASCII)
/home/fernando/codigofacilito/helloworld/hello_world/app/controllers/welcome_controller.rb:3: invalid multibyte char (US-ASCII)
/home/fernando/codigofacilito/helloworld/hello_world/app/controllers/welcome_controller.rb:3: syntax error, unexpected $end, expecting keyword_end
@tutor="Uriel Hernández"
^
Rails.root: /home/fernando/codigofacilito/helloworld/hello_world