Displaying 19 results from an estimated 19 matches similar to: "search action/ in different groups"
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 help me
2006 Jul 03
6
help!
Hi,
i''m fairly new to ruby on rails, and i know the question at hand may
seem simple 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
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,
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
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
2011 Jun 07
1
Foreman 0.3 released
I''m pleased to announce the release of Foreman 0.3
Download from:
Source: http://theforeman.org/attachments/download/237/foreman-0.3.tar.bz2
RPM: http://yum.theforeman.org/stable/RPMS/foreman-0.3-1.noarch.rpm
It is recommended to upgrade your foreman smart proxy to the latest version
as well.
Highlights of this release include:
SearchingAn extensive rewrite of the search system was
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 Jan 03
0
has_and_belongs_to_many include problem
hey,
i have users who are in groups, and i have a search form, where i can search on
group, user lastname, and user firstname.
All this is also with pagination.
these are my models
class User < ActiveRecord::Base
has_and_belongs_to_many :groups
end
class Group < ActiveRecord::Base
has_and_belongs_to_many :users
end
in my controller i do this
THIS works (but in need pagination)
@users2
2005 Dec 15
3
How to delete a record
hey,
i my database i have users and groups, each user can get in different groups
my db structure:
table groups: id, name, basegroup, firm_id
table users: id, firstname, lastname, email
table groups_users: group_id, user_id
my relation is a many to many:
class Group < ActiveRecord::Base
has_and_belongs_to_many :users
end
class User < ActiveRecord::Base
has_and_belongs_to_many
2006 Sep 05
0
rake craziness with Migrate as a dependency
Hi everyone,
For one of our projects we have a need to deploy and maintain a demo.
As a result I''ve attempted to setup a set of rake tasks for the job.
My goal is have one rake task called "deploy_demo" which purges the
database, migrates to the current schema, and loads the db from a set
of fixture files in a specified location.
I''ve written two new tasks the perform
2006 Feb 12
6
habtm doesn''t save old IDs
I''m sure I''m not getting something. I have Users, and I have Groups.
Each User has_and_belongs_to_many :groups and each Group
has_and_belongs_to_many :users.
When I add a user, I want to apply a bunch of groups (like tags) to the
user (manually, without acts_as_taggable).
Here''s User#create:
@user = User.new(params[:user])
@user.groups =
2009 Jul 07
2
documentation of DAHDI dial options
Hi!
I am searching for the description of the available dialstrin options
for the DAHDI channel (and also other channel types).
I am not looking for outdated voip-info links, but for the authoritative
source, e.g. something like "core show application Dial"
Does such thing exists?
thanks
Klaus
2005 Dec 14
0
how to get these records in has_and_belongs_to_many relation
hey,
i my database i have users and groups, each user can get in different groups
my db structure:
table groups: id, name, basegroup, firm_id
table users: id, firstname, lastname, email
table groups_users: group_id, users_id
my relation is a many to many:
class Group < ActiveRecord::Base
has_and_belongs_to_many :users
end
class User < ActiveRecord::Base
has_and_belongs_to_many
2006 Jul 03
9
checkboxes
in the mean time i am using a checkbox like this :
<input type="checkbox" name="var[car]" <%= var.car ? ''checked'' : ''''
unless @var == nil %> />
but i am sure there is something better than this in rails like
<%= checkbox_tag ''var'', ''car'', :checked => true %>
but this is not
2007 Nov 24
12
orphan habtm rows
HI,
i use models User and Groups connected with many to many association, so
i have users table, groups and groups_users.
lets say i create one user and one group. next i add a group to user. so
now my table groups_users has one entry i.e.
group_id | user_id
_________|________
1 | 1
ok, when i delete both my group and user, above entry is not deleted,
thus leaving alone without
2006 Jul 10
4
find()
Can some1 help me on syntax with the find() function.
I''m trying to pull up a table record, called chart, that has a
particular field specified.
ie
chart has a field called record_id, which i know. How can i find the
record that contains chart.record_id.
something like chart = Chart.find(:conditions => "record_id = :id")
this gives me an error. I''m passing
2006 Jul 04
4
Please help me
Hi all,
I''m getting the list of my projects in the page. But i want to get
the list according the month, i.e., if i select july in the drop down
then i should get the
list of projects done in the month of july..
Please reply..
Regards,
Harish
--
Posted via http://www.ruby-forum.com/.
2006 Jul 18
5
Newbie RoR question
I am currently working on a small database project to track company
assets. Right now my Database consists of 3 tables. 1 for the
equipment, 1 for the users info, and 1 for the type of equipment.
I have all 3 databases working on a model test site using RoR. Where i
am having trouble is getting the databases to talk together. I can''t
find this answer anywhere else.
My main table
2006 Jun 28
7
caching objects
Hi,
i just wanted to say my sorries in advance (sorrie/sorry/sorri)...i have
just started learning about the subject of caching, but unfortunately
haven''t effictively managed to implement what i had learned.
obviously it''s possible to cache a whole page, or action with the
caches_page :x or caches_action :y methods, but for some reason it
hasn''t really worked with