1
MODIFIED QUESTION:
I have an application that has 2 tables: Curso
and Cargo
and a Third Table curso_cargo
that makes the HBTM
between them. I would like to know how to access a field of this table curso_cargo
, to include data in it by a text_field
?
I have an application that has 3 tables : Conhecimentos
, Cargo
and cursos_cargos
.
create_table :cargos do |t|
t.integer :id
t.string :nome
t.text :missao
t.text :atribuicoes
t.text :formacao
t.text :experiencia
t.references :setor
t.timestamps
end
create_table :conhecimentos do |t|
t.string :nome
t.timestamps
end
create_table :conhecimentos_responsabilidades, :id => false, :force => true do |t|
t.references :cargo
t.references :conhecimento
t.references :nivel
end
In this last table, I have a nivel_id field, which will keep an id of a level for each knowledge registered for that position. This field will be in one view
of positions, where it will be displayed what the existing knowledge and the level of it.
How to create the form
, indicating that that Cargo
, has a conhecimento
with the nível
x?
I modified the question because I had expressed myself incorrectly on the subject.
– Bruno Fonseca