similar to: ambiguous column name in has_many :through

Displaying 20 results from an estimated 600 matches similar to: "ambiguous column name in has_many :through"

2006 Jul 28
4
add one month or one year to a date
Hi, I need to be able to add one month or in some cases on eyear to a Date. Does anyone know of any easy ways of doing this? thanks scott -- Posted via http://www.ruby-forum.com/.
2006 May 02
5
listing parents from child conditon
Hi, How can I grab all parents in a table, depending on a condition in the children table ? Fx. def list @projects = Project.find(:all) end will find all projects in my table. Now let''s say I want show a similar list, for all open projects.. I define an open project, as all lines (Line has belongs_to :Project) that do not yet have a closed_at timestamp set. So basically, I want
2006 Jul 28
2
Delete has_many_and_belongs_to_many relation
Hi there, Just a simple question I guess, but I am unable to find an anwser... How to delete a hmabtm relation? Any help will be appreciated :) Thanks, Fabrice. -- Posted via http://www.ruby-forum.com/.
2006 Aug 12
5
In place editing on a list - not passing ID through
I want to do in-place edits on a list of data, but I''m having trouble getting the ID passed through to the controller. I use this in my view to create the field: <% for frame in @frames %> ... <%= in_place_editor_field :frame, :price %> <% end %> and this produces the following in my output: <span class="in_place_editor_field"
2005 Nov 20
1
mySQL 5.0 upgrade - incompatible DateTime format?
I''ve upgraded to mySQL 5.0, and it''s gone pretty smoothly except that on DateTime.now doesn''t seem to return a value that mySQL likes any more, as seen in the following exception: Incorrect datetime value: ''2005-11-20T15:33:12-0800'' for column ''logged_at'' at row 1: UPDATE notes SET `due_on` = ''2005-11-20'',
2006 Jul 27
7
''remember me'' using cookies
I''m about to implement this, and I''m thinking of storing the user''s id and their hashed password in the cookie after a successful authentication. can any see an obvious security issue with this? I know the method is vulnerable to cookie theft but am i missing anything? thanks alan
2006 Jul 31
7
Problem with routes when I move the app to a different machine
Hi all: I have an application that runs great on my macbook pro, however, when I move the app to the production linux box, all routes fail except for the one I set up as the default: map.connect '':controller/:action/:id'', :controller => "Employee", :action => "status" I made sure the shebang line in dispatch.* was set to be OS independent
2006 Jul 31
2
RJS: hide element problem
Hi, I am trying to hide a "intro" text shown to user the first time after he has made a search, in the website with RJS/Prototype "hide". I get the following error: RJS Error: Type Error: element has no properties. The text I would like to hide is in a div called "intro" and in my RJS I tried: - page.hide[:intro] as well as - page.hide ''intro''
2006 Jul 27
2
Creating multiple objects from form data
I''m in the process of creating a sign up form for an online application. The form collects account info, company info, and then info for an administrative user. The method looks like this: def create @account = Account.create!(params[:account]) @company = @account.companies.create!(params[:company]) @user = @company.users.create!(params[:user]) end However, this inevitably fails
2006 Aug 01
1
Getting nil when you want "" (a blank string)
This has got to be something obvious that I am missing... I have a remote form that has one value that is passed back to the server from a text field. The form has a set of parameters passed to the :url key called search_params. When the field is empty and the form is submitted, I get :my_val => "" as expected when I examine the log. All is well with the world. I need call that
2006 Jul 28
2
change url based on account name
Hi, Is this possible Can I specify a url ie http://localhost/AccountName/:contorller/:action/:id Where AccountName is should be a userName, which will lookup a siteId in the database? Whats the best way of going about this, is there somthing in the routes.rb file I can change to get the account name into a variable? Thanks for your help jon -- Posted via http://www.ruby-forum.com/.
2006 Jan 30
5
Action Mailer woes
Hi gang, Im having my first stab at ActionMailer and not having any luck. Perhaps someone could help me out. I generated a a mailer called ItemMailer - its purpose is to take some information that I''ve already gathered in a ToDo list form and to mail it out to the person who is nominated for the task In environment.rb I have; ActionMailer::Base.server_settings = { :address =>
2006 Jul 28
6
STRFTIME() why is it not defined
I am trying to take the input from a field in wich the user enters a date, and formatting it to my time format if params[:gotcha] != '''' gotc = params[:date].to_a gotc.strftime("%m/%d/%y") end Yet I get this error: NoMethodError in AddController#add undefined method `strftime? for ["00000"] What''s wrong. I''m positive this method is
2006 Aug 10
6
Getting started w/ Ruby on Rails
Hi, I would like to get started with RoR, since it seems to be a terriffic platform for Webdevelopment. However, I''m unsure what "level" you need to be on in terms of programming to get started? Best regards, Gustav -- Posted via http://www.ruby-forum.com/.
2015 Sep 21
3
New software based on libvirt
Hello, I'm introducing to you the decentralized cloud Cherrypop. Combining libvirt and LizardFS (as of now) it becomes a cloud completely without masters. Thus, any node is sufficient for the cloud to be up and therefore no wasted resources and no single point of failure. It's still pretty crude software but will work with some tinkering. Hope you try it and like it! For more
2013 Feb 17
3
Select components of a list
Hi Gustav, Try this: lapply(1:length(models),function(i) lapply(models[[i]],function(x) summary(x)$coef[2,]))[[1]] #1st list component [[1]] #??? Estimate?? Std. Error????? z value???? Pr(>|z|) # pm10 #5.999185e-04 1.486195e-04 4.036606e+00 5.423004e-05 #[[2]] #??? Estimate?? Std. Error????? z value???? Pr(>|z|) #ozone #0.0010117294 0.0003792739 2.6675428048 0.0076408155 #[[3]] #???
2006 Mar 14
3
Check whether externam URL is valid?
Hey, I have users entering URLs into my app, is there anyway in which I can check to see if the URLs actually point to something before saving the user input? Maybe a kind of ''ping''-action that returns true on success? (btw: does anyone of a tentative release date for Rails1.1? I''ve been slobbering all over my RailsRecipes book and I can''t wait! Also, Scott
2019 Jan 13
2
Samba 4 users - UID/GID - or how to migrate
Hello, I try to migrate my old SAMBA Installation to a new Installation. SAMBA is running. But my Windows users can see the shares but cannot open Files. My old Installation /etc/samba/smb.con ...        workgroup = DUCK         server string = %h server (Samba, Ubuntu)         interfaces = eth0 192.168.1.200/255.255.255.0 localhost         bind interfaces only = Yes         security =
2005 Nov 24
1
Autocompleting combobox: fact or fiction?
Hey, I''ve got a script.aculo.us autocompleting textfield that works wonderfully, but how do I make the value of the selected option submit with the form...for that matter, do autocompleting textboxes have ''option'' tags, or is what I want to do simply impossible 8[ Thanks, Gustav gustav-Y7mMFpLgOV2wB/GGPSRsq0B+6BGkLq7r@public.gmane.org -- Posted via
2001 Sep 25
2
problems with msdfs
We did some tests with msdfs on HP/UX with samba version 2.2.1.a and we found a strange problem. We create a msdfs root on a HP/UX system with samba version 2.2.1.a and create a link in it to an HP/UX system with samba version 2.0.7. We mapped the link in the msdfs root on a NT4 system to drive F. The share contains the source of samba and in explorer we went to :