Paulsturgess - paulsturgess.co.uk - A blog about iOS dev with RubyMotion

Latest News:

Using Polymorphic urls and paths to create dynamic routes in Ruby on Rails 30 Nov -0001 | 12:00 am

Dynamic named routes in Ruby on Rails are really useful when you want to generate a url but you don't necessarily know which records it will be for. For example if have a controller action that is use...

Autocomplete text input using unobtrusive jQuery in Ruby on Rails 30 Nov -0001 | 12:00 am

Recently I needed to implement an autocomplete feature into a Ruby on Rails application so I thought I'd throw up the bare-bones of what I came up with as a simple example. Note that it written unobt...

Ruby on Rails to_sym ArgumentError: interning empty string on startup 30 Nov -0001 | 12:00 am

Recently when I deployed a Rails application onto the staging server I got a Passenger error page telling me the application wouldn't start. The full error was: Essentially it's saying you can't call...

How to remove a specific version of a gem file in a specific directory 30 Nov -0001 | 12:00 am

First find the path of the gem... Then to remove the gem...

ActiveRecord::StatementInvalid Mysql::Error: Duplicate entry in Ruby on Rails 30 Nov -0001 | 12:00 am

Sometimes users like to double click, sometimes requests just happen very, very, very close together. This can mean that Rails isn't quick enough to use the validations you have setup in your models t...

How to write a ruby gem 30 Nov -0001 | 12:00 am

Did you know you can use Bundler to create gems? This guide aptly named 'Developing a RubyGem using Bundler' is quite comprehensive and well worth a read. Additionally the guides on rubygems.org are...

Heroku H14 error (No Web Process running) 30 Nov -0001 | 12:00 am

Recently I had this problem even though heroku ps said everything was up and running and I had one web worker running. However, a quick turn it off and on again and everything was good: Heroku have ...

How to retry a specific queue of failed Resque jobs 30 Nov -0001 | 12:00 am

Resque has a very handy interface for managing the queue of jobs but it falls short when jobs fail. In order to only retry a specific queue drop onto the command line and run the following... Where ...

Installing Capistrano on Ruby 1.8.6 – Abort Trap error 30 Nov -0001 | 12:00 am

Occasionally when installing gems I'll get an abort trap failure message. Often I've found this means the version of Ruby isn't compatible with the gem. Sometimes I'll strike lucky and they'll be ano...

How to reset the primary key sequence for a table in Ruby on Rails 30 Nov -0001 | 12:00 am

Sometimes when importing data the primary key sequence can get messed up. I've come across this more often with PostgreSQL databases. Anyway, an easy way to reset the key in Rails is via:

Related Keywords:

jquery slidedown, jquery slideup, jquery text slider, rails pluralize, ruby truncate, jquery text slide, rails helpers, rails helper, rails sort_by, ajax search rails

Recently parsed news:

Recent searches: