I am following a ruby on rails tutorial and I have the following got in a users view <% provide(:title, 'Sign up') %> just wondering what exactly that is doing?
I am following a ruby on rails tutorial and I have the following got
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should answer your question:
Examples
Perhaps you will use different css in you layout if no #content_for :right_column
Short answer:
In the Ruby on Rails tutorial the special rails function provide is used to set a different title on each page. Depending on which static_page you are on the title is set accordingly. Further explanation is given in 3.3.3 ("Embedded Ruby") in the Ruby on Rails tutorial book.