开发者

How to pass a link in select?

Case is I have to make a drop down in which i want link. for example

<%= link_to 'Edit', edit_user_path(user) %>,开发者_StackOverflow <%= link_to 'Show', edit_user_path(user) %>, <td><%= link_to 'Edit Contact', :action => :edit, :controller => :primary_contacts, :id => xyz %></td>.

Any help??


I think what you relly mean to ask is how to create a drop-down navigation menu -- right? There are many ways to do that, and most of them do not involve a select element. Usually, you would use CSS or JavaScript to show an absolute-positioned element containing your list of links when the user hovers over or clicks on the main element.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜