To Lecture Notes

IT 231 -- 9/14/15

Review Question

  1. Last week we completed the DocLevel controller for Problem 6 of the 9/9 Notes. Complete the Inline and External controllers, which contain page1 and page3, respectively. For the Inline controller, suppose that you forget to include the page1 view, typing
    > rails g controller Inline
    
    How can you add the page1 view after the fact? Ans:
    1. Physically add the file page1.html.erb to the folder Styles/app/views/inline.
    2. Add this method to the controller at Styles/app/controllers/inline_controller.rb:
      def page3
      
      end
      
    3. Add this line to the routes file at Styles/config/routes.rb:
      get 'inline/page1'
      

Project 1

Submitting Projects

The HTML5 Header

The meta Tag

Examples