Displaying 1 result from an estimated 1 matches for "vocabularioscontrol".
2009 Feb 13
0
THREE MODELS PROBLEM IN 'NEW' ACTION
...o|
libro.resources :lecciones do |leccion|
leccion.resources :vocabularios
end
end
map.connect '':controller/:action/:id''
map.connect '':controller/:action/:id.:format''
end
*************** my controllers *****************************
class VocabulariosController < ApplicationController
def new
@libro = Libro.find(params[:libro_id])
@leccion = @libro.lecciones.find(params[:leccion_id])
@vocabulario = @leccion.vocabularios.build(params[:vocabulario])
respond_to do |format|
format.html # new.html.erb
format.xml { render...