Rails中***_url与***_path区别
path是相对路径
url是绝对路径
model为复数的会对应到action=>index, 为单数时需要传递id参数并对应到action=>show
如对于user而言:
users_url # => http://localhost:3000/users
users_path # => /users
user_path(1) # => /users/1
user_url(1) # => http://localhost:3000/users/1