[Rails] (no) new join table entry by collection_select

2011-02-17 Thread rogi
Hi there ../view/trainings: in my _form.html.erb I use a collection_select to get the id of a worker from Worker-table. %= collection_select(:worker, :id, @workers, :id, :first_name, options ={:prompt = Select a worker}, :class =worker) %/div The collection select shows correct, but

Re: [Rails] (no) new join table entry by collection_select

2011-02-17 Thread Colin Law
On 17 February 2011 15:42, rogi patrik.kel...@googlemail.com wrote: Hi there ../view/trainings: in my _form.html.erb I use a collection_select to get the id of a worker from Worker-table.        %= collection_select(:worker, :id, @workers, :id, :first_name, options ={:prompt = Select a