<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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to