Open hardbap opened 15 years ago
To add the static page "contact" to the site all you need to do is create a file /app/views/page/contact.html.erb. To link to the new page use the helper link_to_static:
link_to_static(:contact) => <a href="/site/contact">contact</a>
Or you can supply your own link text:
link_to_static(:contact, 'me') => <a href="site/contact">me</a>
the about page has already been added at app/views/page/about.html.erb. we just need some copy for it.
To add the static page "contact" to the site all you need to do is create a file /app/views/page/contact.html.erb. To link to the new page use the helper link_to_static:
Or you can supply your own link text: