Ruby On Rails Classroom image

Anil  Bist / Professional / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2|
Lessons:-Layout Links

The application code parallels the addition of the About page in Section 3.2.2: first we update the routes (Listing 5.17), then we add a contact action to the StaticPages controller (Listing 5.18), and finally we create a Contact view (Listing 5.19).

 

Listing 5.17 Adding a route for the Contact page.
config/routes.rb

                                     

 

 

Listing 5.18 Adding an action for the Contact page.
app/controllers/static_pages_controller.rb

 

                                     

 

Listing 5.19 The view for the Contact page.
app/views/static_pages/contact.html.erb

 

                      

 

Now make sure that the tests pass:


$ bundle exec rspec spec/requests/static pages spec.rb
 
 
 
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)