Advertisement
Advertisement
| 06.09.2008 at 05:26AM PDT, ID: 23468764 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: |
# migration
create_table "events", :force => true do |t|
t.string "name", :limit => 255
t.text "synopsis"
t.date "date"
t.time "start_time"
t.time "end_time"
t.boolean "open_end", :default => false
end
# _event_form.html.erb partial
#....
start time: <%= time_select :event, :start_time %>
end time: <%= time_select :event, :end_time %>
#....
# log on save, I selected "18:00" and "22:30"
"start_time(1i)"=>"2008", "start_time(2i)"=>"6", "start_time(3i)"=>"9", "start_time(4i)"=>"18", "start_time(5i)"=>"00", "end_time(1i)"=>"2008", , "end_time(2i)"=>"6", "end_time(3i)"=>"9", "end_time(4i)"=>"22", "end_time(5i)"=>"30"
# results in mysql
mysql> select start_time , end_time from events where start_time is not null ;
+------------+----------+
| start_time | end_time |
+------------+----------+
| 09:18:00 | 09:22:30 |
|