Okay I got it to work with the form submit and everything is searching 
and submitting fine.

However, I have a question regarding the url links and submits and 
default behavior.  This might be an easy question for most so I 
apologize in advance.

I have a main table in my index along with 2 search forms.

One search form basically allows a search of team names within the 
database.
One search form allows a search for all data within distinct specific 
date ranges.
The default table view shows all data compiled for the current week.

So, using the default table view if I go to my site the url is going to 
be something like:

localhost.com/page

If I use the search for teams the link is going to be:

localhost.com/page?search=NameOfTeam

If I use the search for dates the link is going to be:

localhost.com/page?on_compiled=2009-06-30

as an example of todays dates...

Now, that's all fine and dandy and they work, but since I use pagination 
and sort table views, that functionality defaults back to the root url.

For instance, I pull todays date and get:

localhost.com/page?on_compiled=2009-06-30

and then click ASC sort button next to a team..

localhost.com/page

and the special date criteria is gone.

I would like to implement this particular page so that all search forms 
and default behavior is similar...

localhost.com/page?search=nil&compiled_on=2009-06-30&sort=ASC

etc...

I know how to do this in PHP but not with rails.  I'm just looking for 
some pointers..
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to