Newbie question

Hi there,

I my edit-user-page i have the following code and this works fine.

Kwalificaties

<% for education in Education.find(:all) %>
<%= check_box_tag "user[education_ids][]", education.id, @user.educations.include?(education) %> <%= education.name%> <% end %>

But now want to display it not in the checkbox but in a normal

  • tag.
    (no-edit-mode)

    remco

  • Remco S. wrote:

    Hi there,

    I my edit-user-page i have the following code and this works fine.

    Kwalificaties

    <% for education in Education.find(:all) %>
    <%= check_box_tag "user[education_ids][]", education.id, @user.educations.include?(education) %> <%= education.name%> <% end %>

    But now want to display it not in the checkbox but in a normal

  • tag.
    (no-edit-mode)

    remco

  • Do you just want a list of @user.educations? if so then this should
    suffice -

      <% for education in Education.find(:all) %>
    • <%= education.name%>
    • <% end %>

    Is that what you meant?

    Max W. wrote:

    Remco S. wrote:

    Hi there,

    I my edit-user-page i have the following code and this works fine.

    Kwalificaties

    <% for education in Education.find(:all) %>
    <%= check_box_tag "user[education_ids][]", education.id, @user.educations.include?(education) %> <%= education.name%> <% end %>

    But now want to display it not in the checkbox but in a normal

  • tag.
    (no-edit-mode)

    remco

  • Do you just want a list of @user.educations? if so then this should
    suffice -

      <% for education in Education.find(:all) %>
    • <%= education.name%>
    • <% end %>

    Is that what you meant?

    Nopeā€¦

    I want a list of the items that are selected in the edit-page by the
    user.

    remco