Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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
    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
    thaniyarasu created the ticket at 10:09 AM

    class 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
    thaniyarasu created the ticket at 10:08 AM

    class 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...