thaniyarasu
Developer · Not a member
thaniyarasu's latest activity
Wednesday, March 25 2009
2336
association_ids is not updated when all options are unselect
was updated
in Ruby on Rails
-
thaniyarasu commented at 10:11 AM<%Role.find(:all,:select=>"id,name").each do |role|%> <%=check_box_tag name="user[role_ids][]",role.id,@user.role_ids.include?(role.id)%><%=role.name%> <%end%>
-
thaniyarasu created the ticket at 10:09 AMclass User < AR has_many_belongs_to :roles end
in User model Edit view
<%Role.find(:all,:select=>"id,name").each do |role|%> <%=check_box_tag name="user[role_id...
2335
association_ids is not updated when all options are unselect
was created
in Ruby on Rails
-
thaniyarasu created the ticket at 10:08 AMclass User < AR has_many_belongs_to :roles end
in User model Edit view
<%Role.find(:all,:select=>"id,name").each do |role|%> <%=check_box_tag name="user[role_id...