search for: pregunta_id

Displaying 1 result from an estimated 1 matches for "pregunta_id".

2009 Mar 14
2
Pobrem with REST routes
...t at all sorry if mu english is not the best. I have this models: Encuesta->titulo and description are string. Encuesta has_many :preguntas Preguntas-> texto is string, encuesta_id and orden are integer. Pregunta belongs_to :encuesta and has_many :soluciones Soluciones-> texto is string, pregunta_id and orden are integer. Soluciones belongs_to :pregunta Routes: map.resources :encuestas do |encuesta| map.resources :preguntas do |pregunta| pregunta.resources :solucions end end I can create preguntas for encuestas. But in the index view of preguntas I have this code: <%= link_t...