app/views/layouts/application.html.erb
<title><%= !@title.nil? ? @title : "Typetoon" %></title>
test_controller.rb
def index @title = "title1" end