This Blog Post will demonstrate how to build a HTML file upload for images with Ruby on Rails and store the images on Amazon S3 Cloud Storage. I assume that you are familiar with Ruby on Rails and RubyGems. For the connection to Amazons S3 Storage System we will use the gem “aws-s3”. To useContinue reading “HTML Upload to Amazon S3 with Ruby on Rails”
I got this Exception today: uninitialized constant ::XPath The solution is not to use XPath alone. Use instead “REXML::XPath”.
The default HTTP libary in Ruby is pretty ugly. I don’t like it. I found HTTParty on rubygems and this is really easy to use. It is much better than the default HTTP API from ruby. Just add this to your Gemfile: gem ‘httparty’, ‘0.7.4’ With one line you can fetch a site via GET.Continue reading “HTTParty”
This command generates a Comment Model. rails generate model Comment commenter:string body:text post:references