session[:logged_in] = true
a = [32, 54, 33] print "***#{a[3]}***\n" Ans: ****** a[3] returns nil because 3 is not a legal index (the legal indices are 0, 1, and 2). When nil is printed, nothing happens, so there is nothing between the first three stars and the second three.
rails g migration AddGenderToStudents gender:string
rails g migration RemoveGpaFromStudents gpa:float
validates :cust_name, :presence => true validates :price, :numericality => true
<% if @student.errors.any? %> <h2>These errors prohibited this student from being saved.</h2> <ul> <% @student.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> <% end %>