Posts Tagged ‘rails’

Open source is wide open: Calling RAKE tasks

Tuesday, December 15th, 2009

Open source is wide open: Calling RAKE tasks.

Good to know.

Fix for Windows + Rails 2.2 + Mysql 5.1 = error

Friday, September 25th, 2009

If you get this error : Mysql::Error: query: not connected: or one just like it, it’s because you need an older DLL.. Which I just happen to have found, because I needed to fix this problem too!
libmySQL.dll

Enjoy.

Rails parameters tutorial

Monday, September 14th, 2009

http://www.spacevatican.org/2008/7/18/parametrised-to-the-max

Ruby on Rails + Sybase

Friday, July 31st, 2009

Caveat: This adapter may only work with the enterprise edition of Sybase (i.e. Sybase ASE) not with SQLAnywhere (Sybase ASA)

gem install activerecord-sybase-adapter -s http://gems.rubyonrails.org

ActiveRecord::Base.establish_connection(
:adapter => “sybase”,
:database => “test”,
:host => “www.yourdbserver.com”,
:username => “kevin”,
:password => “test”)

Play!

www.learningrails.com tutorial – screencast 14, in_place_editing

Thursday, April 23rd, 2009

You’ll notice, if you follow those screencasts (around now, anyway, as the plugin’s code is likely to change, or maybe the screencasts themselves) that when you add in_place_editing, you suddenly get broken HTML..

The fix is thankfully easy!

vendors > plugins > in_place_editing > lib > in_place_macros_helper.rb
Line 79:
tag = content_tag(tag_options.delete(:tag), h(instance_tag.value(instance_tag.object)), tag_options)

Change to :
tag = content_tag(tag_options.delete(:tag), instance_tag.value(instance_tag.object), tag_options)

And you’re set!