similar to: Question about setting field values for a belongs_to model

Displaying 20 results from an estimated 300 matches similar to: "Question about setting field values for a belongs_to model"

2007 Mar 26
2
Failure creating model in spec setup not reported?
Hi I''ve just tracked down a wierd error that AFAICT is caused by an error not being raised in the setup: context "An Asset" do setup do @provider = Provider.create(:name => "Provider1") @product = Product.new(:name => "Product1", :provider => @provider) @applicant = Applicant.new(:first_name =>
2010 Feb 12
2
for loop function output
Hello all, I am trying to run a simulation. the simulation presented below. > rep=5 > sr=.10 # selection ratio > pmin=.10 # minority ratio > nap=1000 # total number of applicant > nsle=sr*nap # number of ee selected > nb=nap*pmin # number of minority > nw=nap-nb # number of majority > mb=100 # mean minority > sb=15 # sd minority > mw=100 # mean majority > sw=15 #
2006 Jun 27
1
Help me, I stuck ..
I have three tables and is not allowed to change data scheme: CREATE TABLE `applicants` ( `id` int(10) unsigned NOT NULL auto_increment, `fullname` varchar(60) NOT NULL default '''', `address` varchar(60) NOT NULL default '''', PRIMARY KEY (`id`) ) ; CREATE TABLE `positions` ( `id` int(10) unsigned NOT NULL auto_increment, `position_name` varchar(30)
2010 Dec 02
0
Thinking Sphinx sorting problem
Hello all, I''m trying to get some records in my application to sort based on a SQL calculated value and am getting no records returned. I have checked and double checked and the query that TS is indexing is working out, but the problem is with the controller. Here is what I''m indexing: ---------------------------------------------------------- indexes
2008 Nov 04
3
Nester Resources, Routes and Class Inheritance
Ok here''s a quicky... but a goody :) We have models Company, Reference and Applicant... and References and Applicants just inherit from Company, and are basically companies with the type field set to reference... All companies can have a phone number associated with them, and phone number is a different model... I''m having trouble using the form_for method with a company that
2009 May 07
3
Add class to "form_for"
Hi, How can I add a class to a form generated thus: <% form_for :applicant, :url=> {:action => "index"} do |f| %> I tried: <% form_for :applicant, :url=> {:action => "index"}, :class => ''test'' do |f| %> but this didn''t work. Thanks for your help. -- Posted via http://www.ruby-forum.com/.
2014 Oct 01
2
JOB - PhD position: applying HPC in cancer research
Dear all, we have an exciting PhD position applying HPC to the analysis of large scale cancer datasets. The post will suit an applicant from a strong computational background who wishes to apply their knowledge to help develop a better understanding of the processes that control how tumours develop. Details below:- High Performance Computing applied to cancer research: Computational analysis of
2006 Aug 15
7
Programmer Needed For a Game Development Project
Programmer is responsible for writing Ruby on Rails code which will interact with both MySQL and PostgreSQL databases, Memcached, and paypal. Additional skills required are advanced Javascript, XHTML, and CSS knowledge. You will be working with other programmers to finish the project which is already in active development. Programmers with experience working on high traffic websites (5+ million
2005 Aug 04
0
Finding rows in table a with zero related rows in table b, part ii
OK. After a little more digging in MySQL''s manual on SubSelects, I''ve changed the finder_sql entry in my model declaration: class District < ActiveRecord::Base has_many :interviewers, :order => "lname, fname" has_many :applicants has_many :unassigned_applicants, :class_name => "Applicant", :finder_sql => "select a.* from
2006 Nov 04
3
role based authorization question
I am using the the authorization recipe outlined in Rails Recipes.Is it possible for one role, say ''admin'', to have access to every action on every controller without explicitly having to create a Right for each? I know this will not work as is, and to force it to do so would violate MVC, but is there some other way to accomplish having something like this in a controller:
2007 Feb 26
4
update_attributes and validations
I have a Person model. Person has_many lab_urls. The LabUrl model has a title and a url, which are both required. Now, I want to update a LabUrl object and stick some invalid data in there. And I want the person that has that invalid LabUrl to now be invalid, too. That doesn''t seem like too much to ask for. How can I do that? Right now, this is happening: >> me = Person.find(1)
2006 Aug 09
2
Rails job position in UK
We are an expanding IT company based in West Sussex, UK with a software department specialising in providing software solutions for Recruitment agencies. We are currently seeking a UK based Senior Software Developer to assist with the development of our software packages using Ruby on Rails. The position will be based mainly on development of our own software packages, but may include a
2012 Apr 02
5
[LLVMdev] Potential Google Summer of Code Applicant
Hi, my name is Patrick Edwards, and I'm currently a CS major at Kent State University. I have always been interested in doing work with compilers and LLVM seems to be a perfect fit for me to learn more over the summer, and also contribute to open-source projects at the same time. However, while browsing through the project ideas, the only ideas I found accessible were the code reduction and
2012 Mar 29
1
Data handling/optimum glm method.
Hi there, I am trying to fit a generalised linear model to some loan application and default data. The purpose of this is to eventually work out the probability an applicant will default. However, R seems to crash or die when I run "glm" on anything greater than a 5-way saturated model for my data. My first question: is the best way to fit a generalised linear model in R to fit the
2012 Apr 02
0
[LLVMdev] Potential Google Summer of Code Applicant
On 04/02/2012 05:41 AM, Patrick Edwards wrote: > Hi, my name is Patrick Edwards, and I'm currently a CS major at Kent > State University. I have always been interested in doing work with > compilers and LLVM seems to be a perfect fit for me to learn more over > the summer, and also contribute to open-source projects at the same > time. However, while browsing through the project
2002 Nov 18
2
The Xiph.org Foundation Needs You!
I am looking for someone to continue the Ogg Traffic tradition. Ogg Traffic is a weekly update and status report about what's happening with Ogg development as well as other related projects and interesting bits of news (Xiph, Speex, Icecast, etc.). Stan Seibert, who resurrected OT recently, is busy with Real Life activities that prevent him from writing an OT (http://www.vorbis.com/ot/)
2004 Nov 30
2
impute missing values in correlated variables: transcan?
I would like to impute missing data in a set of correlated variables (columns of a matrix). It looks like transcan() from Hmisc is roughly what I want. It says, "transcan automatically transforms continuous and categorical variables to have maximum correlation with the best linear combination of the other variables." And, "By default, transcan imputes NAs with "best
2012 Apr 02
2
[LLVMdev] Potential Google Summer of Code Applicant
+cfe-dev, +chandlerc On Mon, Apr 2, 2012 at 11:05 AM, Tobias Grosser <tobias at grosser.es> wrote: > On 04/02/2012 05:41 AM, Patrick Edwards wrote: >> >> Hi, my name is Patrick Edwards, and I'm currently a CS major at Kent >> State University. I have always been interested in doing work with >> compilers and LLVM seems to be a perfect fit for me to learn more
2010 Mar 08
1
application to mentor syrfr package development for Google Summer of Code 2010
Per http://rwiki.sciviews.org/doku.php?id=developers:projects:gsoc2010 -- and http://rwiki.sciviews.org/doku.php?id=developers:projects:gsoc2010:syrfr -- I am applying to mentor the "Symbolic Regression for R" (syrfr) package for the Google Summer of Code 2010. I propose the following test which an applicant would have to pass in order to qualify for the topic: 1. Describe each of the
2009 Aug 26
27
How to stop a user submitting the same data more than once.
I have a standard form built with rails, which a user to my site can use to submit data. Unfortunately one user just managed to submit exactly the the same data three times in a row. From the server logs it seems as though he didn''t use his back button and then resubmit everything. It looks more like he got a bit fed up waiting for the form to process and pressed the submit button three