Hi you all,
I have a resource routed in routes.rb, such as
map.resources :queries
Every Query object has a string with words, and I want to operate on
each of these words ( each word will generate another object of type
Queryterm).
The thing is that I have the URL, let''s say /queries/123, and I want to
call the function (dunno if I''ll use the "edit" function or
some other)
which operates on each of its words in this way:
/queries/123/[function]/:[position],
where "function" is the "edit" function or some other I may
add with the
resource option :member, and :position is the position of the next word
I want to operate with (given the string with words of the query 123).
Question is, Can i have something like
map.resources :queries :member=> {:myfunction=>''get''}
but, adding the fact that I am going to pass it a :position
parameter????
If not, I can use map.connect as usual (or put the :position integer in
the session), but I would like to know if there is any resource-styled
way to do it.
Lots of thanks.
--
Posted via http://www.ruby-forum.com/.