search for: course_duration

Displaying 2 results from an estimated 2 matches for "course_duration".

2008 Aug 31
6
why's my course_duration being reset
Can''t get this?...I''m close I think, my calculation appears to be working, but.... when i access duration = <%= @enquiry.course_duration %><br> in my final view it''s blank.. course_duration is getting set to null but works for the calculation? controller.. ---------- class EnquiriesController < ApplicationController layout ''welcome'' before_filter :login_required, :except => [:new, :...
2008 Aug 25
2
maths not working (can't get this)
...rses render :layout => "welcome" end def price # if params[:id] # if params[:course[:id]] if params[:course][:id].empty? flash[:notice] = ''You must select a course.'' redirect_to :action => "index" else if params[:course][:course_duration].empty? flash[:notice] = ''You must select a duration.'' redirect_to :action => "index" else @time = Time.now # @selected_course = Course.find_by_id(params[:course][:id]) @duration = params[:course][:course_duration] # @total_p...