similar to: Delete has_many_and_belongs_to_many relation

Displaying 20 results from an estimated 2000 matches similar to: "Delete has_many_and_belongs_to_many relation"

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"
2006 Jul 31
2
ambiguous column name in has_many :through
In my application model I have three classes: Accounts, Projects, and Items class Accounts < ActiveRecord::Base has_many :items, :through => :projects, :source => :items has_many :late_items, :class_name => ''Item'', :through => :projects, :conditions => [''due_on < ?'', Time.now], :source => :items end class Projects <
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 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 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 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
2012 Jun 12
4
replacing NA for zero
Dear R users, I have a very basic query, but was unable to find a proper anwser. I have the following data.frame x y 2 0.12 3 0.25 4 0.11 6 0.16 7 0.20 and, due to further calculations, I need the data to be stored as x y 1 0 2 0.12 3 0.25 4 0.11 5 0 6 0.16 7 0.20 8 0 How do
2004 Sep 16
3
newbie needs help using R as solver
Greetings I'm a total newbie in R and I'm trying to make a comparisson of Excel and R in the fields of: - optimisation modeling (using solver) - decision trees - simulation modeling as described in Winston, Wayne L.: Practical Management Science. for optimisation modeling in Excel I would normaly use solver. In R however I can't seem to be able to find the solution. I've
2013 Sep 22
3
Booting legacy Linux kernel in EFI mode
Hello, My question is quite straightforward, still I couldn't find an anwser on the interweb. Is it possible to boot the Linux kernels I used to boot in legacy mode, but now in EFI mode? I mean, I would like to keep all my PXE settings with my menus and kernels and stuff, but now boot them in PXE-EFI mode. I've been able to boot on syslinux.efi and keep my config files, but when I try
2001 Nov 14
2
SuSE Linux 7.3 and Windows Networking
Dear sir or madam, i've got a problem connecting a Linux machine with a Windows Me internet and file share. This problem i didn't got it with SuSE 7.2. From SuSE told me that have been some changes on SAMBA from 7.2 to 7.3. I'd like to ask you if some one could help me. I am looking forward for your anwser. Yours faithfuly, Bill Giannakopoulos P.S. I can see the Win PCs but i
2006 May 07
6
Challenging SQL for you...
Gents, My heads been out of the sql game for too long (or it''s simply too early). I''m trying to extend the acts_as_taggable plugin (note: not gem) so that you can specify a list of tags you''re interested in, and the plugin will return only those items that are tagged with *all* these tags. The plugin uses primarily two tables: tags, to keep all the various tag
2004 Aug 06
3
[Fwd: Icecast2 and ices]
I got this offlist from someone on the list. This is abuse and should be punished. This didn't anwser my post and was directed to me off-list without invitation. All it was was a promotion. -----Forwarded Message----- From: Dave St John <groups@mediacast1.com> To: drew@drewb.com Subject: Icecast2 and ices Date: 22 Aug 2003 19:22:17 -0600 Hello Drew, saw your post on the xiph list
2006 Aug 17
3
Use collection_select
I use the following code in my view: <%= collection_select(''datedata'', ''date'', @allDate, :id, :date) %> It''s show me the date of all entries in the database (Dropdown menu). Additional, I wrote a helper method "showDate" in the application_helper.rb! How can I use this method in the collection_select for every date entry? thanks
2002 Aug 01
1
question about .journal ....
Hello; sorry for this mail perhaps, but I am new in linux experience. I have a disk in ext2 format and this disk has been totally deleted by the rm command. Then the server crashed and I had to restart it. This filesystem was not clear and I run fsck.ext2 to solve bad blocks. I noticed the file .journal appeared on the root filesystem and I am asking how is it possible on linux to recover
2006 Oct 30
1
removing syslinux files from windose
Hi I've searched the archives and was not able to find an anwser. I have unzipped syslinux into my C: drive instead of putting it into its own directory. Being cautious I do not want to delete all matching files/directories in the syslinux zip file that match in the C: drive. Afraid that syslinux might have overwritten some with a syslinux version. I do not have a clue. Can someone tell me
2008 May 12
1
Installerproblem
Hello Wine community, I tried to install a programm called Helium Music Manager. The installer tries during the installation to register some files, here the error messages of the installer: Unable to register WMAManagerManaged. Code 2 Unable to register Interop.PortableDeviceApiLib.dll Code 2 Unable to register Interop.PortableDeviceTypesLib.dll Code 2 Unable to register IntermediaMTPLibrary.dll
2003 Feb 05
1
Swat not run
Hi Community, It isn't just !!! Help me ! I make inqueries here and nobody anwser me. My problem is: When I try to access the SWAT, it return the following message: 400 Server Error chdir failed - the server is not configured correctly Why the browser shows this message? I need to have some entry on smb.conf to run the SWAT? Thank you ! ___