Displaying 1 result from an estimated 1 matches for "selected_course".
2008 Aug 25
2
maths not working (can't get this)
...st 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_price = (@duration.to_i *
@selected_course.price_per_week) + @selected_course.registration_fee
# @course = Course.find(params[:id])
# @selected_course.discounted_price
@c...