> On 15 July 2010 16:27, anon_comp <
neocools...@gmail.com> wrote:
>
>
>
>
>
> > I am using datetime_select to get the date and time from the user to
> > execute a certain program (details unrelevant). What I need to do is
> > to take certain parts from datetime_select and manipulate/use them.
>
> > In my view
> > ----------------------------------------
> > <% form_for(@schtask) do |f| %>
> > <p>
> > Scheduled Time<br/>
> > <%=h f.datetime_select(:schtime, :prompt => {:month => 'Select
> > month', :day => 'Select day', :hour => 'Select hour', :minute =>
> > 'Select minute'}, :start_year => Time.now.year, :order =>
> > [:month, :day, :year, :hour, :minute], :minute_step => 5)%>
> > </p>
> > <p>
> > <%= f.submit 'Create' %>
> > </p>
> > <% end %>
>
> > My attempt to get the :day parameter from datetime_select in the
> > controller
> > -------------------------------------------------------------------------------------
I've looked in the log and the parameter passed is schtime(3i). I
reading the parenthese and 3i as part of schtime. I'll try
ruby_debug...