Ruby On Rails Classroom image

Pooja  Negi / Student / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3 | 4 | 5|Last
Lessons:-Rails-Flavored Ruby

Now that we have a helper, we can use it to simplify our layout by replacing

<title>  Ruby on Rails Tutorial Sample App |  <%=  yield  (:title)  %>  </title>

with

<title>  <%=  full title( yield ( :title ))  %> </title> 

as seen in Listing 4.3. 

 

To put our helper to work, we can eliminate the unnecessary word ‘‘Home’’ from the Home page, allowing it to revert to the base title. We do this by first updating our
test with the code in Listing 4.4, which updates the previous title test and adds one to test for the absence of the custom ’Home’ string in the title.

 
 
 
image
Pooja   Negi

Skills    Ruby On Rails

Qualifications :- High School - SSN high school, College/University - HNBGU, College/University - SRHU,
Location :-Ranipokhari,Rishikesh,Uttarakhand,India
Description:- Student
Explore
 

  Students (0)