Letz Talk Ruby and Rails

This is about Ruby and of course Rails. So lets get onto Ruby on Rails wagon. These are some things that I keep using these days: To check for empty file field: @image = Image.create params[:image] unless params[:image][:file_data].kind_of? StringIO here params[:image][:file_data] is the hash for image to be loaded. If the file field is blank, […]

Read more "Letz Talk Ruby and Rails"