search for: peopl

Displaying 20 results from an estimated 65670 matches for "peopl".

Did you mean: people
2005 Mar 04
3
optimization
...r than you could possibly comprehend. Processing PersonController#show (for 67.138.254.231 at Thu Mar 03 21:04:16 Eastern Standard Time 2005) Parameters: {:id=>"1", :controller=>"person", :action=>"show"} [4;35mPerson Load (0.219000) [0;37mSELECT * FROM people WHERE id = ''1'' LIMIT 1 [4;33mPerson Columns (0.203000) [1;37mSHOW FIELDS FROM people Rendering person/show within layouts/xhtml11common [4;35mAccount Load (0.203000) [0;37mSELECT * FROM accounts WHERE service_id = 6 AND person_id = 1 LIMIT 1 [4;33mAccount Columns (0.234...
2008 Dec 31
1
resource api docs not working for me
...:comments end should result in this lot: article_comments_url(@article) article_comment_url(@article, @comment) article_comments_url(:article_id => @article) article_comment_url(:article_id => @article, :id => @comment) So when I did my own idea of the above : map.resource :people,:singular=>:person do |person| person.resources :invitations; end I was surprised to find no method such as person_invitations (with or without the :singular=>true): all the methods are pluralised for people. And for those methods that do exist none take the person id, even the index metho...
2007 Feb 09
20
Hello Everyone
...nstallation. I installed wxX11 in my linux box. I compiled the demos and all the demos, save dbbrowse, work. I think I have a functional wx. Now I''m trying to install wxRuby from source, since I have a 64 bit machine. I only have permission to my home directory so my installation is : /usr/people/stevenq/Applications/wxX11/ /usr/people/stevenq/Applications/share/swig/ /usr/people/stevenq/Applications/ruby/lib/ruby/site_ruby/1.8/rake I added rake to my path and I''m getting: [DING!]carburetor: /usr/people/stevenq/src/wxruby2-preview-0.0.38/ 78$ rake (in /home/stevenq/src/wxruby2-p...
2010 Nov 30
4
Cucumber+Capybara rails 3 issue (Don't know where exactly)
...1 and private_messages.user_status = ''unread''))) SQL (0.5ms) SELECT COUNT(*) AS count_id FROM "private_messages" WHERE ("private_messages".user_id = 1061 AND (message_type = ''draft'')) SQL (0.6ms) BEGIN Person Load (0.9ms) SELECT "people"."id", "people"."first", "people"."last", "people"."entity_id", "people"."user_id" FROM "people" WHERE ("people".user_id = 1061) LIMIT 1 UserRole Load (6.1ms) SELECT DISTINCT &quot...
2006 Mar 30
3
Model.find(:all) where Model.association has more then 0 items?
Hi everyone, I have a Department model that has_many people. How do I go about finding all departments with more than 0 people? Department.find(:all, :conditions => Department.people.size > 0) That, of course, doesn''t work, but it was as close as I could come. Thanks! Sean
2006 Jan 02
5
DB Modelling the Rails way - Opinions??
Hi, I''m trying to figure the most efficient way to model the following. I can think of at least two ways to relate the tables but from a client/server perspective! I''m wondering how to best (and elegantly)relate them from an AR perspective. A project has many people, A person can work on many projects at any time, A project has many roles, A role is performed by a person, A person may perform multiple roles, An organisation has many people, An organisation is a stakeholder (God, I hate that word - makes me feel like Dracula surrounded!)in one or more project...
2011 Jul 25
5
Arel quiz: complex queries with associations
...good docs that cover these kind of use case. Please feel free to point me to some if they exist. My sample app has a person, which has many tweets. Every person speaks a language and may tweet in their own language or a different language, so there''s a language table associated with both people and tweets. Also, people have followers and may be followed by other people (stored in the same table, of course). I posted the app on github with some seed data if anyone wants to try it in the console: git clone git://github.com/ultrasaurus/twitter_like_example_app.git sample_app cd sample_app...
2006 Oct 31
5
Odd behaviour of removing 'nothing' from an array or data frame
...Let x = 1:10. Then intuitively, to me at least, the command x[-integer(0)] should leave x untouched. However the actual output under R2.4.0 is integer(0). A slightly more involved example demonstrates why I think this behaviour is back to front. First we define a data frame, in this case some people, with their heights. peoples.heights = data.frame(names = c("Alice", "Bob", "Carol"), heights = c(1.67, 1.85, 175)) To make sure the heights are sensible, we define a filter out impossibly tall people. dubious.records = which(peoples.heights$heights > 2.5)...
2009 Feb 13
1
error with make
Hi, I am trying to compile the R-dev version on a unix Suse machine and got errors. Would someone be able to help me determine what to do to fix these errors: make[1]: Entering directory `/lustre/people/schaffer/R-devel/m4' make[1]: Nothing to be done for `R'. make[1]: Leaving directory `/lustre/people/schaffer/R-devel/m4' make[1]: Entering directory `/lustre/people/schaffer/R-devel/tools' make[1]: Nothing to be done for `R'. make[1]: Leaving directory `/lustre/people/schaffer...
2006 Jul 31
0
Rest and Mime Types
Been thinking about something lately and wanted to hear what others thought. After watching the video[1] of DHH with the slides[2] I really liked some of the ideas presented. Many people have noted the ugliness of needing secondary actions since HTTP actions do not cover the full range of CRUDness (i.e. the "GET /people;new" and "GET /people/1;edit"). Also the need for occasional actions that fall outside the standard CRUD ("POST /people/1;closed"...
2006 Jun 28
0
ActiveResource (was: 1.1.3 available.)
...GET | POST | PUT | DELETE | |------------------------------------- | find | create | update | destroy | |------------------------------------- | SELECT | INSERT | UPDATE | DELETE | -------------------------------------- ---- slide C -------------------------------------------- POST /people/create GET /people/show/1 POST /people/update/1 POST /people/destroy/1 ---- slide D -------------------------------------------- class PeopleController < ActionController::Base def index @people = Person.find :all respond_to do |format| format.html # renders index.rhtml...
2006 Jun 02
4
Creating an array of params
I''ve got a bunch of text fields that I''d like to access as an array. The code looks like this: <%= text_field_tag "people[0][entry]" %> <%= text_field_tag "people[1][entry]" %> <%= text_field_tag "people[2][entry]" %> So when I submit the form, I''d like to be able to use it like params[:people].each {|p| p[:entry]} However when I submit it, it can''t build th...
2006 May 16
1
:conditions on has_one realationship
...:memberships has_one :active_membership, :class_name => ''Membership'', :order => ''enddate DESC'', :conditions => ''memberships.id is not null and memberships.enddate > now()'' end As I understand it I should be able to do a @people = Person.find :all, :include => :active_membership in my controller and it should find any records from the table people that have an active membership in table memberships. As far as I can tell this should generate this SQL:- SELECT people.`id` AS t0_r0, people.`firstname` AS t0_r1,...
2006 Jan 04
5
check if a file exists?
Hello all! I have a list of people on a page, and some of this people have pictures of them stored on the web server. So I have an image tag like this on my page: <%= image_tag "/images/people/" + person.pers_id.to_s + ".jpg" %> But not all have a picture, so if the file for pers_id=1899 does not exist, i...
2002 Mar 07
3
ldap problems
Hello, I am doing a samba pdc with ldap. When I try to login to the domain, or access some shares I get this in my ldap logs: Mar 7 16:46:16 localhost slapd[3588]: conn=25 op=4 SRCH base="ou=People,dc=test,dc=org" scope=1 filter="(&(objectClass=posixAccount)(uid=DOMAIN\5CTD))" Mar 7 16:46:16 localhost slapd[3588]: conn=25 op=4 SEARCH RESULT tag=101 err=0 text= My domain/workgroup is "DOMAIN" and the username is "td". What is up with this? The client...
2006 Jul 13
6
Render partial questions
Hello, what is the preferred way to do this... I have 2 controllers. Each has an index action. Now I want to include the rendered index view from TwoController in the index view of OneController. But a render :partial doesn''t execute the TwoController index action which sets variables for its index view. So maybe you can give me a short example how to do it. Thank you Markus
2005 Dec 27
3
Trouble combining :has_many, :finder_sql and :conditions to create a sub-search
...tables with two parallel one-to-many relationships. I wish to use the :finder_sql parameter to essentially ''or'' the two foreign keys. What isn''t working for me is performing a ''sub-search''. Let''s say the tables are "stores" and "people," and the relationships are called "works_for" and "shops_at." I want to have a single "has_many" relationship that encompasses the people who visit a store. Something like: class Store < ActiveRecord::Base has_many :people, :dependen...
2002 May 19
1
exclude vs include
...matches and that one makes the decision. It doesn't seem to be working exactly as expected. But there is a factor involved that's making it unclear, which is whether or not *'s should be appended or not. In the following I am trying to have only selected subdirectories from the "people" directory included, and all other subdirectories from there not included. The problem is, I either get _all_ the "people" trees, or none. I've tried all the possible ways to append to each name, trying nothing, "/", "/*", and "/**". Also, I'...
2009 Apr 06
5
the 5.2 loaders
Just looking around at log files and other places, I noticed today that there are still a lot of people installing and downloading 5.2. While a large number of installs would be since people already have the 5.2 media - thats fine, however, new downloads for 5.2 media today makes little sense ( to me ) - so whats going on here ? What can we do in order to better, faster, more visibly communicate...
2009 Jan 04
2
Another attempt for a Team page
...added a table for everyone already there. Now I still don't like the fact that we have the distinction between the Core members (whatever that means) and the others. Some have a @centos.org email address, we could use that as a distinction ? I do think we need to make that page exclusive to people that have some sort of responsibility, and not to every wiki contributor per se. The only problem is where do we draw the line ? Some people have been valuable at events, others have been valuable at the Wiki and Forums. Some are crucial to the project as a whole, others could become crucial...