Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render_list 應加上選項,使「本頁」的判斷也會依 GET 的參數 #1

Open
gugod opened this issue Aug 2, 2010 · 0 comments

Comments

@gugod
Copy link

gugod commented Aug 2, 2010

有時會需要在同一頁中時小選單(如 Tab)

使用方式如此例:

<%= render_list [
      link_to("一周", "?duration=week")
      link_to("一個月", "?duration=month"),
      link_to("三個月", "?duration=3month")
    ] %>

依原本的機制,這三個 link_to 會被判斷是同一頁。但應使他不被認為是同一頁。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant