Re: [Rails] RAILS SAVE IDS

2013-05-15 Thread Colin Law
On 14 May 2013 23:59, cristhian Campoverde li...@ruby-forum.com wrote: I think, my method create is wrong in controller MALLA I want to save the ids selected in the view malla from the controller MALLA. def create params[:malla][:level][:subject_ids] What is the above line of code

[Rails] RAILS SAVE IDS

2013-05-14 Thread cristhian Campoverde
I think, my method create is wrong in controller MALLA I want to save the ids selected in the view malla from the controller MALLA. def create params[:malla][:level][:subject_ids] @malla = Malla.new(params[:subject_ids][:level][:malla]) if @malla.save redirect_to