- Implement header and footer partials for better layout - Create a full_title helper method for dynamic page titles - Update application layout to use new header and footer - Add typography styles for improved text presentation These changes enhance the overall structure of the application by introducing reusable header and footer components, which improves maintainability. The full_title helper method allows for dynamic titles across different pages, providing a consistent user experience. Additionally, typography styles have been added to improve readability and aesthetics.
11 lines
219 B
Ruby
11 lines
219 B
Ruby
module ApplicationHelper
|
|
def full_title(page_title = '')
|
|
base_title = "Ruby on Rails Tutorial Sample App"
|
|
if page_title.empty?
|
|
base_title
|
|
else
|
|
page_title + " | " + base_title
|
|
end
|
|
end
|
|
end
|