Skip to content
Browse files

link_to instruction

  • Loading branch information...
1 parent 5282cb6 commit 13bb9c75611938f3f1a6636ddcd1e270ee8fc1fd @croaky croaky committed Jul 24, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.markdown
View
4 README.markdown
@@ -23,6 +23,10 @@ Write your static pages and put them in the RAILS_ROOT/app/views/pages directory
mkdir app/views/pages
touch app/views/pages/about.html.erb
+After putting something interesting there, you can link to it from anywhere in your app with:
+
+ link_to "About", page_path("about")
+
Bam.
Override

0 comments on commit 13bb9c7

Please sign in to comment.
Something went wrong with that request. Please try again.