Ruby On Rails Classroom image

Anil  Bist / Professional / 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
Anil  Bist

Skills    Ruby On Rails

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:-

I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a
Explore

 

  Students (0)