Hi Bryan, that's exactly what I want to do. Looking in Internet I can include a calendar picker in my code, but when i try to do the same, keep the start date in default value it didn't work? Do you know where I can find some docs with help about this? This is my new code: Start_date: <hjq-datepicker name="start_date" dateFormat="yy-mm-dd" / ><br></br>
Thank you for your help, Too much appreciate On 7 abr, 10:25, Javier V <[email protected]> wrote: > Hi Bryan, that's exactly what I want to do. > Looking in Internet I can include a calendar picker in my code, but > when i try to do the same, keep the start date in default value it > didn't work? > Do you know where I can find some docs with help about this? > > Thank you for your help, Too much appreciate > > On 6 abr, 10:03, Bryan Larsen <[email protected]> wrote: > > > > > > > > > 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 > > > athttp://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.
