search for: habtam

Displaying 7 results from an estimated 7 matches for "habtam".

2006 Jul 03
6
help!
...e at first, but i''m getting really caught up in trying to understand this and the docs aren''t giving me answer. i actually thought i knew how the sql commands work (like :include, :conditions, :etc) but obviously, i don''t. there are three models M1, M2, M3 joined by a habtam relashinship of M1 has_and_belongs_to_many M2 M2 has_and_belongs_to_many M1 M2 has_and_belongs_to_many M3 M3 has_and_belongs_to_many M2 and a MyController which is the backbone of the site. (although i haven''t specified exactly {model :M1} or something like that in the controller, but...
2006 Jul 02
2
searchbar help!
Hi all, i am after hours unfold of trying to implement a searchbar in a table with a habtam relashinship, but alas ! with no success... i was hoping some kind gentle mind can help me through these diffucult times; i have now reached the point where out of sheer annoyance, i cannot see myself getting anywhere nearer to the target, and was hopefully hoping one of you out there could hel...
2006 Jun 19
0
logingenerator multiple select
hi, ..i''ve just finished installing the login generator and acl system from http://wiki.rubyonrails.com/rails/pages/LoginGeneratorACLSystem (sql sctructure of a habtam relationship of roles//users, roles//permissions and so, being able to asign roles[with the associated permissions]to the users..) anyway, now i need to implement associating the correct permissions for the correct role in the view, and so after scaffoling, i''ve got: -------- def ne...
2006 Jun 29
1
search action/ in different groups
Hi all, thanks in advance for those who''ll take the time to help out... i have a list of users who are connected with a habtam relashinship to a set of groups (joint table of groups_users) and now am trying to implement a search operation that will go through all of the records of the users and output user results according to what group was chosen at the searchbar, and the text input(of the searchbar) basicly, it wou...
2006 Jul 10
9
ROR questions
Hi, ? I''m a Ruby on Rails newbie.? I''ve been tasked with building our office''s first ROR application, and I am the only one working on it, so I am muddling through with a couple of books...? Moving along slowly but need some discussion time with some people who KNOW it and can maybe offer some answers to questions I haven''t found in my books. ? First - what is
2006 Jun 29
7
sql question for rails
Hi, i was hoping someone could help me out with a small yet quite time-boggling task...i have a two tables users, groups joined in as a habtam relashinship (has and belongs to many) and i need to select from the mydb (mysql if it matters) users out of the User model, in accordance with TWO groups in one rails opperation to improve performance...basicly, say i have ten groups and ten users, and i wanted to take out seven(or whatever) o...
2006 Jul 02
18
JOIN conditions
Hi, how can I get Rails to generate SQL queries with conditions in the JOIN clause? What I would want is: SELECT * FROM people p LEFT OUTER JOIN jobs j (p.job_id = j.id AND j.salary > 9999999) I tried People.find(:all, :include => ''jobs'', :conditions => ''jobs.salary > 9999999'') but that generates SELECT * FROM people p LEFT OUTER