In Ruby on Rails, how do I format a date with the “th” suffix, as in, “Sun Oct 5th”?

I want to display dates in the format: short day of week, short month, day of month without leading zero but including “th”, “st”, “nd”, or “rd” suffix. For example, the day this question was asked would display “Thu Oct 2nd”. I’m using Ruby 1.8.7, and Time.strftime just doesn’t seem to do this. I’d prefer … Read more

Error installing libv8: ERROR: Failed to build gem native extension

I made a rails project with, rails new test_bootstrap. succeeded. moved to the project dir and added the gems gem “therubyracer” gem “less-rails” #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS gem “twitter-bootstrap-rails” and run bundle install after that, i have this error. Installing libv8 (3.16.14.3) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem … Read more