# Newbie question

**URL:** <https://www.ruby-forum.com/t/newbie-question/119343>\
**Category:** Rails\
**Created:** [November 6, 2007, 9:47am UTC](https://www.ruby-forum.com/t/newbie-question/119343 "2007-11-06T09:47:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [November 6, 2007, 9:47am UTC](https://www.ruby-forum.com/t/newbie-question/119343/1 "2007-11-06T09:47:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [November 6, 2007, 1:41pm UTC](https://www.ruby-forum.com/t/newbie-question/119343/2 "2007-11-06T13:41:43Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![remco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@remco](https://www.ruby-forum.com/u/remco)\
**Post date:** [November 6, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/newbie-question/119343/3 "2007-11-06T14:38:00Z")

</div>

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
