As an update to a previous post about Mr Correcter, the Twitter spelling bot here is a post about how I managed to find and geolocate so many offenders. Quick update; Mr Correcter was a script that searched Twitter for 2x common spelling mistakes (beleive and acommodate) and replied back to the tweeter reminding them… Read more »
Posts Categorized: Ruby
How to upgrade manual installation of Ruby on Linux
I had a server with a manual installation (local compilation -> ./configure && make; make install) of Ruby v1.9.2 and I needed to upgrade this to v1.9.3 – How did I do this? Technically I didn’t… it worked out to be too much hassle long term to upgrade the manual installation on a production… Read more »
The Twitter account – Mr Correcter
Update [29 July 2012]: Twitter disabled the @Mr_Correcter account Not sure if anyone complained or automated analysis of the account’s posting history (many replies) flagged it up as annoying. Probably best for everyone all round. I created the Twitter account @Mr_Correcter as a development exercise and funny test… little did I know I would start… Read more »
Integrate Rails app and PHP on Apache
Here is one method of how to integrate a Ruby on Rails application and a PHP application or even just static HTML using Apache webserver. One reason for doing this could be (in this website’s case) that your main website application is Rails but you want to use WordPress or another technology of blog or… Read more »
Rails: Dynamic page titles
Here is how I have been creating dynamic page titles, page descriptions, etc (anything you want really) using Rails. In app_root/app/helpers/application_helper.rb create the following method # Format and return a title on a per-page basis def display_title base_title = “mysite.com” if @title.nil? base_title else “#{@title} – #{base_title}” end end Then in the action… Read more »
Website upgrade 2011
< 17 December 2011: This website, robertomurray.co.uk was PHP and running (slowly) on a shared hosting server. > 17 December 2011 The website is now on a new server and the site is mainly Ruby on Rails Switchover OK, here there are two major changes; 1) Migrating to new server and 2) re-written using Rails,… Read more »
Rails: fix ActiveAdmin CSS over-riding problem
For some reason the ActiveAdmin gem, a great administration framework for rails apps, has its own CSS files loaded for ALL other views (only trying in dev env). Quite annoying and will over-ride your styles. To fix I have just moved the app/assets/stylesheets/active_admin.css.scss to vendor/assets/stylesheets/active_admin.css.scss – It is only loaded when required then. This example… Read more »