<div> <label for="category" class="label_left">Kategorie</label> <% @selected_category Category.find(:first, :select => "name, id", :conditions => ["id = ?", params[''category_id'']]) %> <% @all_categories = Category.find(:all, :order => ''id'').collect {|c| ([c.name, c.id])} %> <select name=''edition[category_id]'' id=''category'' class=''fieldStyle'' tabindex=''3''> <%= options_for_select(@all_categories, @selected_category.name) %> </select> </div> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---