Ruby On Rails, params lost after redirect -
i have page user pays fees, , on submit gets redirected same page showing payment done. i'm passing id on redirect, lost causing error. here controller action: def pay_all_fees @target_action='pay_all_fees' @target_controller='parent_wise_fee_payments' if params[:id].present? id = params[:id] else id = 4 end @students=student.find_all_by_sibling_id(guardian.find(id).ward_id) @guardian = guardian.find(id) @students.each |student| fetch_all_fees end if request.post? status=true multifeestransaction.transaction multi_fees_transaction= multifeestransaction.create(params[:multi_fees_transaction]) begin finance_transactions=financetransaction.create!(params[:transactions].values) rescue exception => e status=false end if status , (multi_fees_transaction.valid? && finance_transactions.all?(&:vali...