Ruby On Rails Classroom image

Neha  Jaggi / 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
Neha  Jaggi

Skills    Ruby On Rails

Qualifications :- High School - , College/University - Graphic Era Hill University, Dehradun, College/University - ,
Location :-Dehradun,Dehradun,UTTARAKHAND,India
Description:-

Experienced Software Developer with a demonstrated history of working in the Information Technology and services industry. Skilled in Web Technologies (Ruby on Rails, PostgreSQL, php, Laravel and AJAX). 


Explore
 

  Students (0)