0
我是網絡開發新手。我現在要用rails 3做一個應用程序。我不能在索引頁面顯示整個表格,因爲列數太多。我需要一種快速查看整個數據庫的方法。使用箭頭鍵瀏覽數據庫列?
我有如下表:
create_table "fields", :force => true do |t|
t.string "basin_name"
t.string "basin_type"
t.string "area"
t.string "prospect_name"
t.string "type_of_data_shore"
t.string "type_of_processing"
t.string "processing_agency_name"
t.string "seismic_investigation_number"
t.string "field_season"
t.string "block_name"
t.string "block_type"
t.string "sps_format"
t.string "input_media"
t.string "input_data_location"
t.integer "group_interval"
t.integer "shot_interval"
t.string "active_channels"
t.decimal "fold"
t.decimal "bin_size"
t.string "data_stage"
t.string "output_format"
t.string "output_media"
t.string "output_location"
t.integer "volume_of_data_size"
t.string "volume_of_data_dimensions"
t.string "volume_of_data_type"
t.date "date_of_start_of_processing"
t.date "date_of_completion_of_processing"
t.text "remarks"
t.text "problems_faced_and_solutions"
t.text "highlights_of_processing"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "custom_id"
end
反正是有從一個場的「秀」行動,另一隻使用左,右箭頭鍵導航?而列應該出現基於「custom_id」列(我不知道的JavaScript無論是:()
或有通過任何寶石做的更好的辦法?
謝謝。
感謝,而不是完整的答案,但讓我在正確的道路:) – viswa 2012-07-09 08:34:07
如果幫助我很高興的。添加了一些額外的信息。 – 2012-07-09 08:51:48