search for: find_all_by_focus_id

Displaying 1 result from an estimated 1 matches for "find_all_by_focus_id".

2006 Mar 02
0
Help with this comparison and loop
...;, ''/kate/tick/admin/add_sub_focus'', {asynchronous:true, evalScripts:true, parameters:''focus_id=''+ value + ''&sf_id=2''})}) //]]> </script> All is good. Now in my controller I have: def add_sub_focus @sub_focuses = SubFocus.find_all_by_focus_id(@params["focus_id"]) @sf_id = @params["sf_id"] end My add_sub_focus.rhtml file: <% for sub_focus in @sub_focuses do -%> <% if #{sub_focus.id} != #{sf_id} %> <option value="<%= sub_focus.id %>"> <%=...