skip to main | skip to sidebar

The Journey of Two Blind Devs

We are two developers on the journey to discovering Ruby on Rails. On the way, we hope to learn lots and track our findings. By the end, we hope to be enlightened.

Thursday, October 23, 2008

Named Routes: Anchor

If you're using named routes and want to add an anchor to your automatically generated URL, there's a very simple way to do it:

products_path(:anchor => 'my_anchor')

It's that simple!


W
Posted by Two Blind Devs at 6:16 PM
Labels: REST, Solutions, Views, W

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Labels

  • ActiveRecord
  • Controllers
  • CSS
  • Database
  • Debugging
  • Deployment
  • Dislikes
  • Gedit
  • Git
  • IE Sucks
  • Introduction
  • J
  • JavaScript
  • Likes
  • linux
  • Miscellaneous
  • Plugins
  • Prototype
  • RadRails
  • Rails 2.0
  • REST
  • Ruby
  • Setup
  • Solutions
  • Testing
  • TwoBlindFish
  • Views
  • VMWare
  • W

Links We Like

  • Aptana Documentation Wiki
  • assert* functions
  • Named Routes
  • Prototype API
  • Railscasts
  • RESTful Cheatsheet
  • RestWiki
  • RoR API
  • RoR RESTful Development
  • Script.aculo.us
  • Y Combinator

Blog Archive

  • ▼  2008 (119)
    • ►  December (1)
    • ►  November (2)
    • ▼  October (7)
      • CSS Design
      • Named Routes: Anchor
      • Being Lean
      • Interesting Ideas
      • Textarea: Preserving Whitespace
      • Ruby: Time made easy
      • VMware Server: Adding a USB
    • ►  September (25)
    • ►  August (1)
    • ►  July (5)
    • ►  June (3)
    • ►  May (14)
    • ►  April (11)
    • ►  March (12)
    • ►  February (23)
    • ►  January (15)
  • ►  2007 (29)
    • ►  December (6)
    • ►  November (5)
    • ►  October (18)