0
controller.rb
@user = User.where(:id => params[:id]).take
html.erb
<a href="/home/layout02_03/<%[email protected]%>">
something
</a>
点击该标签,然后URL是 “/家/ layout02_03/3”如何使用Ruby on Rails的
3用户的ID隐藏 “ID” 的网址,
但我不”不想揭露说,“ID”
我怎么能做到这一点,我使用的是轨道
我会改变你的路线。 http://stackoverflow.com/questions/17066637/rails-routes-get-without-param-id –