Displaying 2 results from an estimated 2 matches for "dishkuvek".
2006 Apr 25
6
Searching over multiple MySQL tables
I am racking my brain over this, probably because I only know very
simple mysql functions.
Basically I''ve got a few tables, ex:
Albums (id,name,band_id); Bands (id,name,label_id), and Label (id,name)
I want to search through both album.name, band.name, and label.name
throwing all results into a variable, with no redundant info.
I think what I need to be doing is setting up some
2007 Nov 21
3
update_attribute weirdness in edge
If I am changing a boolean value, no matter what approach I take, I
get the same results:
lets say table "users" has an "enabled" field that is boolean:
user = User.find(1)
user.enabled.toggle
NoMethodError: undefined method `toggle'' for false:FalseClass
user = User.find(1)
toggle(user.enabled)
NoMethodError: undefined method `toggle'' for