It appears that your form is a filter of some kind, correct? In other words, your form goes to the same URL as the action you're showing.
If so, you can do something like: <%= date_select :start_date, :default => params[:start_date] || Date.new(2012,4,8) %> A more Hobo-like construction would be: <input with="¶ms[:start_date] || Date.new(2012,4,8)" name="start_date"/> I hope that works for you -- I'm not sure that I completely understood your question. Bryan On Thu, Apr 5, 2012 at 1:07 PM, Javier V <[email protected]> wrote: > Hi everybody, maybe it's an easy problem but i don't know how to keep > the data that an user fill in a form an then press submit. This is my > code and I'm trying to preserve the date fields from the form to > display they after the consult is showed > > <collection: replace> > <form action="&object_url(Some)" method="GET"> > Shift: <%= date_select "", ' ' %><br></br> > End: <%= date_select " ", '' %><br></br> > <label for="query">Event</label> > <input type="text" name="query" value="#{@query}" /> > <submit label="Search" /> > </form> > <table-plus fields="MY FIELDS"> > </table-plus> > </collection:> > > Thankyou. > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" 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/hobousers?hl=en. > -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
