Ruby/rails/titleを追加
ナビゲーションに移動
検索に移動
actionごとにtitleを変更
app/views/layouts/application.html.erb
<title><%= !@title.nil? ? @title + " | application1" : "application1" %></title>
test_controller.rb
def index @title = "action1" end
app/views/layouts/application.html.erb
<title><%= !@title.nil? ? @title + " | application1" : "application1" %></title>
test_controller.rb
def index @title = "action1" end
|
|