Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

link_to instruction

  • Loading branch information...
commit 13bb9c75611938f3f1a6636ddcd1e270ee8fc1fd 1 parent 5282cb6
@croaky croaky authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.