Ruby On Rails Classroom image

prateek  darmwal / 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
prateek  darmwal

Skills    Ruby On Rails

Qualifications :- High School - S.K.M. Sn. Sec. School, Haldwani, College/University - Graphic Era Hill University, Bhimtal,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:- I like to explore new technologies. I have skills in ruby on rails, php5, cakephp, jquery, javascript, html/css, java, c & c++. I love coding
Explore
 

  Students (0)