Hi there,
I my edit-user-page i have the following code and this works fine.
Kwalificaties
<% for education in Education.find(:all) %>But now want to display it not in the checkbox but in a normal
(no-edit-mode)
remco
Hi there,
I my edit-user-page i have the following code and this works fine.
But now want to display it not in the checkbox but in a normal
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 -
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs