specifying separate layouts within controllers and methods
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>My Website - <%= @title %></title>
|
||||
</head>
|
||||
<head>
|
||||
<title>My Website - <%= @title %></title>
|
||||
</head>
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
|
9
cookbook/015/hodgepodge/app/views/layouts/bar.html.erb
Normal file
9
cookbook/015/hodgepodge/app/views/layouts/bar.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>BAR :: My Website - <%= @title %></title>
|
||||
</head>
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
9
cookbook/015/hodgepodge/app/views/layouts/count.html.erb
Normal file
9
cookbook/015/hodgepodge/app/views/layouts/count.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>COUNT :: My Website - <%= @title %></title>
|
||||
</head>
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user