search for: project_manag

Displaying 8 results from an estimated 8 matches for "project_manag".

Did you mean: project_manager
2005 Feb 09
1
cant map foreign key in list view
Hi I have been struggling to get a foreign key in a list map to a readable value in a lookup table I have a list of projects and each project has a project_manager. Project.rb class Project < ActiveRecord::Base has_one :project_manager, :class_name => "Users", :foreign_key => "manager_id" end The association above sais that a project_manager is in fact just a User. BTW what is the technical term for the project_m...
2011 Jan 23
0
Bundle installs/Cannot run dbconsole
...bundler (1.0.7) Installing thor (0.14.6) Installing railties (3.0.3) Installing rails (3.0.3) Installing sqlite3 (1.3.3) with native extensions Installing sqlite3-ruby (1.3.3) Your bundle is complete! It was installed into ./sqlite3--with-sqlite3lib When I try running dbconsole I get Users/musdev/project_manager/sqlite3--with-sqlite3lib/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands/dbconsole.rb:94:in `exec'': Permission denied - /usr/lib/sqlite3 (Errno::EACCES) from /Users/musdev/project_manager/sqlite3--with-sqlite3lib/ruby/1.9.1/gems/railties-3.0.3/lib/rails/commands/dbconsole.rb:94:in `s...
2006 Jul 12
7
Failure in comparisons
...of trouble trying to figure out what''s going wrong here (partial template): <%= @project = Project.find(@the_id) if current_user.userid == @project.client hidden_field ''messages'', ''recipient'', ''value'' => @project.project_manager else hidden_field ''messages'', ''recipient'', ''value'' => @project.client end %> The current_user.userid method is as follows (from model user.rb): def userid "#{self.id}" end All the values I use there are corr...
2006 May 23
1
Validating a required relationship.
Hello, I''m not sure if I''m missing something blindingly obvious here. All the relationships that Rails comes with assume 0..n, yes? It''s not a strict 1 to 1 or 1 to n because it''s optional. My question is this - What is the best way to implement a required relationship? For example, if I require that a comment is made by a user (a user has many
2006 Mar 26
7
MVC Design
Hello I have been using LAMP for the last 6 years and i am now finally making the choice to move over to RoR. This MVC stuff is all very new to me. As i have no trouble understanding ruby code... or any code for that matter.. my challange comes in getting my head around the MVC stuff. Is there any demos articles that you guys have seen that takes a site or a business breif and explains where
2006 Jan 04
0
Multiple fields on table X linked to one field on table Y
...project has a Project Manager, and each project also has an Expert. Both fields are links to an ID from the Users table. However, neither of them is entitled "user_id." Is there a way to tell the Projects model to reference the Users table for both of these fields, the fields being "project_manager" and "expert" ? Thanks! _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2005 May 13
17
modeling...
I''ve tried tackling this many ways on my own and can''t find a good solution: Breaking it down to something simplier... Venue has one address Person has one address Address belongs to state Assuming I don''t want to do tables for venue_addresses and person_addresses. What is the best way to model this using rails... big thing here is i want to be able to reuse a
2007 Jan 21
35
Collection proxies need to be stubbed ?
Hi all ! I just started writing specs on a new project. I would just like to validate that this is the way you would write it. I know about mocks, stubs and expectations. I don''t think this is a problem for me. My question really boils down to: def index @projects = current_user.projects.active end My spec needs to return the proxy, no ? Here''s my code: context "A