Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7995597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:27:42+00:00 2026-06-04T14:27:42+00:00

select tag:- <%=select_tag names,options_from_collection_for_select(@users,id,name,@user.id)%> Right now my dropdown looks like this:- john matt sara

  • 0

select tag:-

<%=select_tag "names",options_from_collection_for_select(@users,"id","name",@user.id)%>

Right now my dropdown looks like this:-

john
matt
sara

But I want to have it like:-

 john edit
 matt edit
 sara  edit

Where “edit” is the link which can edit a particular user.But I am not able to put a link into select_tag.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T14:27:44+00:00Added an answer on June 4, 2026 at 2:27 pm

    There’s no way to do this in Rails out of the box – this is rather uncommon task. Yet I see two options here:

    1. use solutions like this;
    2. find yourself a suitable jQuery plugin like this. Most of them will turn the select tag into divs, which can be further customized.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a select_tag like this: <%= select_tag User Groups, options_from_collection_for_select(@user_groups, id, name) %>
following is the code of my select tag <%= select_tag assignee#{cnt}, options_from_collection_for_select(@arr,tmp=id,name , default_selection),
I have the following select list. <%= select_tag(:editlevel,options_from_collection_for_select(Level.all, :id, :name)) %> When the user
Im trying to define a select tag in my view. My view looks like
I have this select_tag using Rails 3 <%= select_tag :area_id, options_from_collection_for_select(@areas.sort_by(&:name)), {:onChange => remote_function(:with
Summary: I have passed the name of the id select tag into an Array.
<script type=text/javascript> $(document).ready(function() { //select all the a tag with name equal to modal
<select name="select"> </select> I want to populate the above tag with values from database.
I have array of select tag. <select id='uniqueID' name=status> <option value=1>Present</option> <option value=2>Absent</option> </select>
Suppose I have a dropdown (select tag) with 3 values. Our first option has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.