search for: club_name

Displaying 3 results from an estimated 3 matches for "club_name".

Did you mean: cli_name
2006 Mar 13
3
HABTM: two habtm''s between the same two tables
Imagine I want to track people, and the clubs that they belong to. table people with columns person_id, person_name table clubs with columns club_id, club_name And I have the association table: table clubs_people with columns person_id, club_id Now I know how to do this habtm between the two, in order to associate people with clubs that they belong to. However my application also needs a secondary association just like this: imagine I want to track...
2008 Mar 07
3
Boolean circles..
...trying to use the boolean type in the database. Migrations is no problem, it even converts the 0/1 values from my import CSV to false and true. However, I cannot make the :conditions part of a find work: Loading development environment (Rails 2.0.2) >> c = Club.find(1) => #<Club id: 1, club_name: "Ume\214 Kuniba kai", logo: nil, currently_active: 1, created_at: "2008-03-07 12:52:35", updated_at: "2008-03-07 12:52:35"> >> m = c.members.find(:first, :conditions => "is_active = 1") => nil >> m = c.members.find(:first, :conditions =&...
2008 Mar 07
2
Trouble using RESTful helper
...format| format.html # index.html.erb format.xml { render :xml => @members } end end I can use the same code from the console ok, so the models should be connected properly: >> m = Member.find(:first) => #<Member id: 1, ..... >> m.club => #<Club id: 1, club_name: ... What did I do wrong? Any ideas? /Fredrik -- "Give up learning, and put an end to your troubles." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this...