Skip to content

Commit

Permalink
updated usage information to remove colon from time_select
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Amoyal authored and Anthony Amoyal committed Apr 24, 2009
1 parent 91de197 commit 5b0e9c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README
Expand Up @@ -17,7 +17,9 @@ USAGE:

To create the time select:

<%= time_select "event", "time", { :default => Time.now.change(:hour => 21), :simple_time_select => true, :minute_interval => 20 } %>
<%= time_select "event", "time", { :default => Time.now.change(:hour => 21), :simple_time_select => true, :minute_interval => 20, :time_separator => "" } %>

Don't forget to include the time_separator option. Otherwise you will get an extra colon outside of the select field.

When the time is submitted, you will have the value in params on the controller side as shown below:

Expand Down

0 comments on commit 5b0e9c2

Please sign in to comment.