Today I have create the template for my table that contains a Time field. When i try to insert the a new record i don''t see nothing on the time field. If the field is Date or DateTime all work. There is not an helper? How can solve this problem? Can you help me? Thanks Andrew
Andrew wrote:>Today I have create the template for my table that contains a Time field. When i >try to insert the a new record i don''t see nothing on the time field. >If the field is Date or DateTime all work. >There is not an helper? How can solve this problem? >Can you help me? > >Are you using a helper now? Can you send the relevant part of the view in question you are using? _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org lists.rubyonrails.org/mailman/listinfo/rails
The partial code in question is ------------ <p><label for="event_day">Day</label><br/> <%= date_select ''event'', ''day'' %></p> <p><label for="event_end_hour">Start hour</label><br/> </p> <p><label for="event_end_hour">End hour</label><br/> </p> ------------ It is generated in auto with the scaffold. Then i have try to use this command: ------------ <p><label for="event_end_hour">Start hour</label><br/> <%= select_hour (Time.now, :prefix => ''event'', :field_name => ''start_hour(1i)'') %> <%= select_minute (Time.now, :prefix => ''event'', :field_name => ''start_hour(2i)'', :minute_step => 10) %> ------------- but give me error this error: 1 error(s) on assignment of multiparameter attributes. Thanks.
I had a problem with this and if i remember, the values passed back as parameters where incomplete causing the SQL to be wrong. ( check your development log to see if that is the case ). If it is, I have a patch that will work for you. Andrew wrote:>The partial code in question is > >------------ ><p><label for="event_day">Day</label><br/> ><%= date_select ''event'', ''day'' %></p> ><p><label for="event_end_hour">Start hour</label><br/> ></p> ><p><label for="event_end_hour">End hour</label><br/> ></p> >------------ >It is generated in auto with the scaffold. > >Then i have try to use this command: >------------ ><p><label for="event_end_hour">Start hour</label><br/> ><%= select_hour (Time.now, :prefix => ''event'', :field_name => >''start_hour(1i)'') %> ><%= select_minute (Time.now, :prefix => ''event'', :field_name => >''start_hour(2i)'', :minute_step => 10) %> >------------- >but give me error this error: >1 error(s) on assignment of multiparameter attributes. > >Thanks. > > > > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org lists.rubyonrails.org/mailman/listinfo/rails
Sean T Allen <sean@...> writes:> > I had a problem with this and if i remember, > the values passed back as parameters where incomplete > causing the SQL to be wrong. > > ( check your development log to see if that is the case ). > > If it is, I have a patch that will work for you. > > Andrew wrote: >The problem is not in the query (i have check my development log), bat how rails read the parameters. It give me the error when the dispatch read the information. Thanks for your time.