Hi all,
I’m using a selection-list / dropdown-list to choose an element in a
number
of grouped elements. Is there a way of passing an element_id to the form
AND
using the HTTP-‘get’-method? I found that the <% start_tag %> has a
:method-switch as an option, but it passes the arguments on like
“/controller/action/?action=1”. I would need something like
“/controller/action/1”
Can you help?
My guess is you’ll have trouble getting a form to submit with a url like
that. Forms submit there data as key/value pairs usually.
But, something like /controller/action/?id=1 isn’t really a problem, you
can still access params[:id].
I’m not sure that really answers your question … can you make it a bit
clearer?
-Jonny.
Timo Pick wrote:
Hi all,
I’m using a selection-list / dropdown-list to choose an element in a
number
of grouped elements. Is there a way of passing an element_id to the form
AND
using the HTTP-‘get’-method? I found that the <% start_tag %> has a
:method-switch as an option, but it passes the arguments on like
“/controller/action/?action=1”. I would need something like
“/controller/action/1”
Can you help?
You solved it. I became just too used to the pretty-url thing, that i
ignored the fact that its already working as a conventional url.
thanks.