datamapper.org
DataMapper - Spotlight on... Composite Keys
http://datamapper.org/articles/spotlight_on_cpk.html
Spotlight on. Composite Keys. For those of us who have taken a course on database design in college or university, you may have run across a concept called 'Composite Primary Keys' (or sometimes 'Compound Keys' or 'Concatenated Keys', and abbreviated CPKs). It's usually right before you tackle JOINs and right after you fight with the "surrogate key" or "primary key" concept. You'd have a combination of. That would uniquely identify a row. Is an effort to overcome this limitation. Ruby, hello world ].
kl93.blogspot.com
dougsparling.org (kl93): February 2008
http://kl93.blogspot.com/2008_02_01_archive.html
Tech Tidbits - Ruby, Ruby On Rails, Merb, .Net, Javascript, jQuery, Ajax, CSS.and other random bits and pieces. Wednesday, February 27, 2008. JQuery Sortable with Ajax, PHP, and MySQL. I needed to create a sortable list that would save the order position of data items. I've been using jQuery more and more and decided to go with the Interface Elements. I found a blog entry titled jQuery Sortable Ajax PHP Integration. CREATE TABLE links (. Id int(10) NOT NULL auto increment,. Link url varchar(50) NOT NULL,.
javamate.net
Coffee, Code and Candor » Rails Tip: Primary Keys
http://javamate.net/2008/04/06/rails-tip-primary-keys
Coffee, Code and Candor. Tech talk with a dash of opinion and caffeine. Rails Tip: Primary Keys. Posted on Sunday, April 6, 2008 by javamate. Rails by default uses a system-generated primary key called “id” for all persisted objects. I personally like this (for the very reasons Dave Thomas outlines in the Rails book. On pp 286-287), but if you don’t, you can change it. Like Dave, I don’t recommend it, but here’s how if you must. Selfprimary key = "email". Be the first to comment on this post!
javamate.net
Coffee, Code and Candor » Rails
http://javamate.net/category/rails
Coffee, Code and Candor. Tech talk with a dash of opinion and caffeine. Posted on Saturday, March 21, 2009 by javamate. After reading what seems like a thousand blogs, reviewing this plugin after that plugin, I found a great post. Update on some things. Posted on Wednesday, July 2, 2008 by javamate. Grails -Dservlet.version=2.3 war. This requires, I think, at least version 1.0.1 of Grails. I did it with version 1.0.1 and 1.0.3. Of equal or more importance, though, is to se...Unfortunately I ran into othe...
javamate.net
Coffee, Code and Candor » javamate
http://javamate.net/author/admin
Coffee, Code and Candor. Tech talk with a dash of opinion and caffeine. Why I Don’t Celebrate Christmas. Posted on Tuesday, December 22, 2009 by javamate. Many people are often surprised to hear that some Christians do not celebrate Christmas. Being one who formerly celebrated Christmas (for the first 22 years of my life), I will presently set forth the reasons that I have renounced Christmas for the sake of anyone who cares to know. It takes diligent work, but it can be done. Turning to history then, le...
pixellatedvisions.com
Rails - Pixellated Visions
http://www.pixellatedvisions.com/Rails
Fixing MySQL and rubygem errors on a new rails 2.3.8 install. Anton Jenkins March 13, 2011. I’ve been setting up a new MacBook Pro using rvm and gemsets to make it super easy to flick between different versions of rails and ruby (thanks Steve for this very useful post. I was aware that MySQL could be a problem if you get your architectures wrong so it’s important to download the 64 bit version of MySQL and that your ruby is also 64 bit. You can check that by using the following commands:. Once that’...
pixellatedvisions.com
Getting rails to play with a legacy Oracle database - Pixellated Visions
http://www.pixellatedvisions.com/2009/06/08/getting-rails-to-play-with-a-legacy-oracle-database
Getting rails to play with a legacy Oracle database. Anton Jenkins June 08, 2009. Telling rails to use a different table and primary key. If we have a model named Student then rails convention dictates this model will map to a table called students and it will have a primary key called id. Well the real world isn’t always so accommodating. No problem…. Set table name :student. Set primary key :s stno. In this instance, the composite primary keys gem. Is your friend. Simply install…. And require in your.
pixellatedvisions.com
Oracle - Pixellated Visions
http://www.pixellatedvisions.com/Oracle
Fixing your oracle rails stack after upgrading to Snow Leopard. Anton Jenkins October 06, 2009. The latest upgrade to OS X. Has proved a little fiddly for users of ruby. Any ruby gem that contains native code needs reinstalling so that this code can be recompiled to 64bit. You might think after doing that you are done and dusted…. but don’t forget your OCI8. Library if you are using Oracle with your rails stack! Missing these required gems:. Now I’m assuming you installed the ruby OCI8. And perform those...