public Method

Base.to_param

Allows ActiveResource objects to be used as parameters in ActionPack URL generation.

Source Code

# File active_resource/base.rb, line 569
def to_param
  id && id.to_s
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.