Here's is my permissions controller for DEF UPDATE:
def update
@permission = Permission.where(:user_id=> params[:permission][:user_id] ).where(:project_id=> params[:permission][:project_id]).first
respond_to do |format|
if @permission.update_attributes( params[:role_id] )
format.js { render :layout => false }
else
format.js { render :layout => false }
end
end
Form Post Header utf8:✓ _method:put authenticity_token:17rvYJmq7167 ktDBXZgDnopH3QY/Tb5a3K0jtcTjrU= permission%5Brole_id%5D:3 permission%5Buser_id%5D:11 permission%5Bproject_id%5D:3
No errors here, but the role_id is not being updated? Ideas? Thanks