SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Evangelist Pixelateur's Avatar
    Join Date
    Feb 2006
    Location
    Hamburg, Germany
    Posts
    593
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Passing a parameter via URL

    Hi there,

    I want to pass a parameter with a method invoked from an .rthml file. How can I do that?

    The method is called list_by(category) and is located in an ordinary .rhtml page. The category parameter changes depending on the context. But it can never be invoked because URLs can't display brackets. Do you get what I mean? Can anybody help?

  2. #2
    SitePoint Guru Majglow's Avatar
    Join Date
    Aug 1999
    Location
    B-Town
    Posts
    645
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you mean something like:

    Code:
    url_for(:param => list_by(category)
    I'm not sure what you mean.
    Ohai!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •