Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用rails gem 上的面包屑。我想知道如何将参数传递给路径。像这样的东西:
add_breadcrumb "家", :my_path @my_parameter
我怎样才能做到这一点?
我认为在您的routes.rb中设置路径接受参数是最简单的,那么您不必担心传递它