Month: February 2012
-
Web Development Blog
Hey All, Just another Australian web development blog I’ve come across, it’s not entirely about rails but definitely worth a look if you get the time: Cameron Stitt – Just another Web Developer blog Let me know what you think.
-
undefined method `merge’ for 5:Fixnum – Hidden Field
Just a quick post on an error I ran into today while using hidden fields: undefined method `merge’ for 5:Fixnum 27: 28: ‘button’ %> 29: 30: 31: 32: Thankfully this is an easy fix, simply amend your code as follows: ‘button’ %> @upload.product_id %> And that’s all there is to it, let me know if…
-
Not Recognised by the ‘identify’ command – Paperclip
Just a quick post on another problem I ran into while setting up PaperClip. When attempting to submit a form WITHOUT an image I received the following error message: Assets asset /tmp/stream20120218-22611-dgnkr-0.exe is not recognized by the ‘identify’ command. Apparently the most common cause of this issue is one of two things: #1: You don’t…
-
PaperClip Issues – Ruby on Rails
I finally decided to replace all my existing code to handle images with Paperclip. I was following the screencast by Emerson Lackey, #134 Paperclip, however I ran into a couple of issues. Thankfully they were all very easily fixed, and probably wouldn’t have occurred at all if I’d simply watched the whole screencast instead of…
-
ERROR: column “category” does not exist
I’ve recently switched from SQLite3 to PostGreSQL and came across the following error this morning: my_app_development=> select category from codes; ERROR: column “category” does not exist LINE 1: select category from codes; The following post solved the issues in one sentence: http://archives.postgresql.org/pgsql-novice/2007-01/msg00032.php Yes. In postgres, unquoted column and table names are converted to lower case.…
-
Creating Postcode Based Locations – Rails
My goal for today was to populate a record with all of the Australian postcodes and their corresponding suburb and state descriptions. To do this I had to complete the following: 1: Download the postcode/location csv 2: Create new model to contain locations 3: Create a script to import a csv 4: Run the script…