Displaying 1 result from an estimated 1 matches for "policy_count".
2010 Mar 02
1
Redirect issue
...e suggest on this issue.
Code:
def delete_company
#------------
if params[:id] and params[:id1]
@policy = PolicySetting.find_by_id(params[:id])
@policyinfo = PolicySetting.find_by_id(params[:id1])
@policy_name = @policy.policy_name
if !(@policyinfo.nil?)
@policy_count = PolicySetting.find(:all, :conditions =>
{:policy_name => @policy_name, :policy_type =>
''C''})
if @policy_count.length > 1
if params[:id].to_i == params[:id1].to_i
if @policyinfo.destroy...