Add this to your header:
<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ />
Add this to your header:
<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ />
Just a quick ref. If you have a string that matches a class name in your app, you can use that string to interact with that model. Here’s how:
string = “User”
string.constantize OR Kernel.const_get(string) – the former only works in rails (as it’s part of ActiveSupport::Inflector)
I noticed a few oddities with heroku and run rake db:migrate. Here are a few things i did to get it working:
* I moved to the Cedar stack. Without this, I struggled to get rake db:migrate to work
heroku create --stack cedar
* I now face the issue that heroku is reporting “no such file to load — pg”. Can’t install that locally as Lion’s screwed up my ruby header files so gem fails to install. Bored, so will leave this for now. Will report back as i find a solution, and the will to dig.
Update 21st April 2012:
The “old way” detailed below failed to install all dependencies on later versions of OS X. So, here’s the best way to install ImageMagick on OS X:
Head over to https://github.com/maddox/magick-installer and follow the instructions
The old way:
cd ~/src #or whereever
git clone git://github.com/masterkain/ImageMagick-sl.git
cd ImageMagick-sl
sh install_im.sh
At one point, it runs a command usingĀ sudo, so it will ask for your password. After the script has finished, ImageMagick will be installed. Now, to install the RMagick gem…
sudo gem install rmagick
My academic learning focus has been a bit off recently, what with the amount of work i’ve had on. But, no excuses – my quest to grasp the academic history of agile delivery is taking steps forward, with my digging into DSDM. I’ve decided to focus on DSDM due to its UK-centricity, which I feel will have the greatest short term impact. I’ll get to SCRUM, XP, RUP, et al when i get to them.
I started the quest ages ago and have progressed it, but more in practice than in reading. Now’s the time for the reading to pick up again…