Archive for the ‘RubyOnRails’ Category

JavaScript files that are served to the user should be compressed and minified, and ideally everything packed into ONE big file. You can do this with some rails plugins (not tested so far), or using the “manual” way of compressing it yourself.  (or download a compressed file
I worked with YUI Compressor on compressing [...]

BigOldRailsTemplate

20, Oct 2009

Playing around with BigOldRailsTemplate.
There are (in the full sense of the word) many gems that I didn’t know about.
What templates do you use for rails dev?

Stumbled on another essential tool for rails development, taps!
Let you sync your server database with the local one with a breeze!
On the server:
taps server mysql://root@localhost/mydb tmpuser tmppass
On the client:
taps pull mysql://root@localhost/mydb http://tmpuser:tmppass@slicehost-box:5000
This can be done vice-versa, much better than a mysqldump! And it works even with different databases!

Today I experimented with a few friends how well Rails runs on Google’s App Engine.
App Engine for itself works with python and java, rails works via jruby.
The conditions are great, and for small apps googles engine is free.
But there are several drawbacks. BigTable, googles database does NOT WORK with ActiveRecord. I believe AR is one [...]

Got an strange error:
 invalid value for Integer "09"
What did I do? (…)Integer(somestring)(…) where somestring was something between 01-99.
Turns out that an leading zero tells ruby that this is octal. Hell, I don’t have any octal stuff in my web app.
Solution: Do it the ruby way, use .to_i – even cleaner, and no octal nonsense [...]


top

Switch to our mobile site