The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Using routes inside Radius tags

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Matthew Bass

Posts: 468
Nickname: pelargir
Registered: Dec, 2005

Jared Richardson and Matthew Bass are independent software consultants
Using routes inside Radius tags Posted: Nov 11, 2008 12:30 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Matthew Bass.
Original Post: Using routes inside Radius tags
Feed Title: Pelargir
Feed URL: http://feeds.feedburner.com/pelargir/
Feed Description: Musings on software and life from Matthew Bass. Regular posts on new web products, tips and tricks, etc.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Matthew Bass
Latest Posts From Pelargir

Advertisement
I’m in the middle of developing a Radiant extension for Terralien. Radius is the tagging language for Radiant, and today I figured out how to use a route from inside a custom tag class. A typical Radius tag class might look like this: module AwesomeTags   include Radiant::Taggable     tag "session:logout" do |tag|     "<a href='/session/logout'>Logout</a>"   end end You can see that the hard-coded URL isn’t [...]

Read: Using routes inside Radius tags

Topic: Little Known Ways to Ruby Mastery by Jonathan Conway Previous Topic   Next Topic Topic: RubyConf 2008 Wrap-Up

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use