Rails: URL/path with parameters

后端 未结 5 748
野性不改
野性不改 2021-02-03 18:47

I would like to produce a URL as

/swimming/students/get_times/2013-01-01/2013-02-02

from this route

get_class_swimming_students         


        
5条回答
  •  一整个雨季
    2021-02-03 19:03

    Try to use that

    get_class_swimming_students_path(:start_date => "2013-01-01", :end_date => "2013-02-02")
    

提交回复
热议问题