Displaying 1 result from an estimated 1 matches for "tullt".
Did you mean:
bullt
2005 Oct 15
1
Partials and controllers
Newbie question:
From a _form.rhtml file I have:
<%= render(:partial => ''item'', :collection => @items) %>
In _item.rhtml I have:
<% @tullt = h(item.body) %>
<%= @itemdb = Group.find(:all,
:conditions => "id = ''#{@tullt}''").map {|u| [u.name] }
%>
<%= @tullt %
I think it would be better to put this code in a controller for this
partial. I made the following item_c...