Thanks for responding to my question. I did not write the controller
properly. My bad. I did not have the else part.
Part of the learning process!!
@student = Student.new(@params[:student])
flash[:notice] = ‘Student was successfully created.’
redirect_to :action => ‘list’
@offices = Office.find_all
@programs = Program.find_all
@courses = Course.find_all
render :action => ‘new’
flash[‘notice’] = ‘Item could not be saved.’
redirect_to :action => ‘new’