I'm doing a restful refactoring of my site. Let's say I have a link_to
an index action. My url would something like: orders_url. What if I
wanted to filter that index to show only open orders (or any other
parameter). Can I pass an additional parameter with these new restful
urls? If so, I can't figure out how to construct my link_to. Do I need
to specify something in my route?
I’m doing a restful refactoring of my site. Let’s say I have a link_to
an index action. My url would something like: orders_url. What if I
wanted to filter that index to show only open orders (or any other
parameter). Can I pass an additional parameter with these new restful
urls? If so, I can’t figure out how to construct my link_to. Do I need
Thanks Jeremy. That answered my question. Unfortunately in trying to
make it simple and in doing some many iterations I got away from my
real question.
My problem is I'm actually using a link_to_remote and I'm trying to
pass two parameters. the problem is that rails is inserting an amp;amp;
in the paramaters.