I had given like
Java<%=check_box_tag “employees”, “skills[]”, “Java” %>
Rails<%=check_box_tag “employees”, “skills[]”, “Rails” %>
C<%=check_box_tag “employees”, “skills[]”, “C” %>
since it belongs to the “employee” object. So both the checkboxes (Java
and Rails) are selected in the “new” page.
In the controller, I had given
@employees = Employees.new(@params[‘employees’])
@employees.save
Also in the DB, I am having a table called as “employees” and in that
“skills” is a column.
Is it possible in DB to have a single column “skills” for multiple
checkboxes
(Java, Rails and C)
Could you please suggest what needs to be done.