search for: peoples

Displaying 20 results from an estimated 65477 matches for "peoples".

Did you mean: people
2005 Mar 04
3
optimization
Ok, so, I''ve written my first app in rails. It''s pretty nifty. Only one problem. Slower 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
2008 Dec 31
1
resource api docs not working for me
Hi, ruby 1.8.4, rails 2.2.2, mongrel 1.5.1, win xp I read in the docs that this : map.resources :articles do |article| article.resources :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
2007 Feb 09
20
Hello Everyone
I have a bit of a problem with installation. 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/
2010 Nov 30
4
Cucumber+Capybara rails 3 issue (Don't know where exactly)
When I''m executing cucumber tests, I noticed that sometimes rails app (in test env.) getting several the same requests (GET or POST) usually around 3, and it doesn''t render anything with empty HTTP status code. Have anyone met something similar to that issue? here is some example of log file: Started POST "/account" for 127.0.0.1 at 2010-11-30 22:34:17 +0200
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
2011 Jul 25
5
Arel quiz: complex queries with associations
I have a real-world application with some complex queries that I want to convert to Arel (as part of an upgrade to Rails 3.1). So that I can understand what I''m doing before I flail around in my real app, I wrote a little sample app (just the models) with some similar associations -- one table joined with itself and more tables that join to another table, so there are some queries that
2006 Oct 31
5
Odd behaviour of removing 'nothing' from an array or data frame
...ely, 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) #3 peoples.heights = peopl...
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
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
2006 Jun 28
0
ActiveResource (was: 1.1.3 available.)
2006/6/28, Paul Barry <mail@paulbarry.com>: > Where can I find info about the "CRUD/resource-based features" that will be > in 1.2.0? In blogs. Especially about Railsconf and DHH''s keynotes. In trunk : http://dev.rubyonrails.org/browser/trunk/activeresource In DHH slides : Transcription of some slides from DHH''s talk at RubyKaigi 2006 (I suppose it must
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]}
2006 May 16
1
:conditions on has_one realationship
Hi there, I''m currently building a membership application and I want to be able to select, not just all the memberships, but the most current membership from the database on a per user basis. I have linked the tables as shown:- class Membership < ActiveRecord::Base belongs_to :payment belongs_to :person end class Person < ActiveRecord::Base has_many :memberships
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 would like to display a custom image for that guy. How can I do
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
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
I''m sure there''s something right under my nose that I''m missing. I have two 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
2002 May 19
1
exclude vs include
My understanding of the man page description of --exclude vs. --include is that the list of these is kept in order, and file names are searched against these parameters in that order for the first that 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
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
2009 Jan 04
2
Another attempt for a Team page
Hi all, I've updated our Team page a bit, 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