SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Passing a parameter via URL
-
Jul 27, 2006, 12:53 #1
- Join Date
- Feb 2006
- Location
- Hamburg, Germany
- Posts
- 593
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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?
-
Jul 27, 2006, 22:55 #2
Do you mean something like:
Code:url_for(:param => list_by(category)
Ohai!
Bookmarks