similar to: error using find() method "couldn''t find"

Displaying 20 results from an estimated 6000 matches similar to: "error using find() method "couldn''t find""

2006 Mar 28
8
Problem connecting with an SQL Server 2000 database
Hi, I?m working on a rails application that uses data from an existing ms sqlserver 2000 database. Unfortunately I can?t get the connection to work properly. I used http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServer to make the connection. - Inserted the ado.rb - Changed my database.yml to development: adapter: sqlserver database: database_name host:
2015 Jun 09
3
NetworkManager / wireless on latest Centos7 installs
Hello All, on the latest installs I've done, on 2 different types of Latitude laptops, with 3 different wireless cars, of Centos7 and Mate desktop, it looks to me like NetworkManager is nog managing wireless. When clicking the nm icon in the top right corner, I'm not seeing access points. Wifi seems enabled [root at localhost ~]# nmcli g STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW
2006 May 29
2
Memory-leak 1.2.7.1
Hi All, First off all, this is my first mail to this mailing-list, so if I am doing something wrong please tell me. And apologies for my english in advance, it's not my native language. Anyway, I have few machines running Asterisk 1.2.7.1. All machines but one are Gentoo (other one is Debian). The problem is that Asterisk keeps eating my memory. Just random (mostly at night) all my free
2005 Jun 30
2
Find by ID plus conditions -> ActiveRecord::RecordNotFound
Hi I''m trying to understand the AR find facilities, described here: http://api.rubyonrails.com/classes/ActiveRecord/Base.html#M000650 I have a list of ids that I want to retrieve, but have a condition that should restrict the list returned: return self.find( noteids, :conditions => [ "(private = 0 OR (private = 1 AND user_id = ?))", userid] ) According to the
2016 Mar 08
1
centos7+lightdm : no /almost no login screen
Hello All, slightly unrelated because lightdm = epel, I know. Still, maybe someone had the same issue. When using the last two kernels, some machines give me trouble when installing Centos7 and Mate One machine is basically an Asrock board, on this I get no login screen: description: Motherboard product: AD2550B-ITX vendor: ASRock *-display description: VGA compatible
2006 Jul 25
7
Problem running rake db:migrate
I''m having a great deal of trouble getting rake to run migrations on our staging server. Everything works fine on my dev box, but trying to run the following on staging results in errors. ----- > rake db:migrate (in /var/www/apps/acadtech2/app) rake aborted! Don''t know how to build task ''db:migrate'' (See full trace by running task with --trace) ---- The
2015 Jun 09
2
NetworkManager / wireless on latest Centos7 installs
Fred Smith wrote: > On Tue, Jun 09, 2015 at 11:51:46AM +0200, johan.vermeulen7 at telenet.be > wrote: >> Hello All, >> >> on the latest installs I've done, on 2 different types of Latitude >> laptops, with 3 different wireless cars, of Centos7 and Mate desktop, >> it looks to me like NetworkManager is nog managing wireless. >> When clicking the nm icon
2003 Dec 06
1
Diploma zonder studie op basis van EVC
[image001.gif] Diploma's en titels zonder studie op basis van eerder verworven competenties Geachte heer of mevrouw, Graag willen wij u attenderen op onze unieke dienstverlening. Wellicht dat er voor u mogelijkheden zijn om zonder studie op basis van eerder verworven competenties via een External Programme in het bezit te komen van een academische Bachelor, Master
2006 Apr 20
8
2 layouts per .rb page
Hi, Is this possible ive got layout "loggedout_layout", :only => [:login, :logout] but I also want to do somthing like layout "loggedin_layout", :except => [:login, :logout] When the second one is introduced it seems to cancel out the first request, any suggestions how to get around this? Scott -- Posted via http://www.ruby-forum.com/.
2013 Aug 25
2
logging location of tftpd-hpa
Hello, On my previous TFTP server I had logging. I did see all requests in logfiles. On my current TFTP server I have also added the options '-v -v -v', but nog logging. At least I can't find it them in /var/log/*/* Where does tftpd-hpa writes it's logging? Groeten Geert Stappers -- Leven en laten leven
2008 Feb 13
5
Example controller spec no worky?
I''m trying to spec a dead simple "show non-existent record should render 404" case, but it seems the RecordNotFound exception is making it impossible for some reason. #controller def show @event = Event.find(params[:id]) end #spec - pretty much straight from the rspec site before do Event.stub!(:find) get :show, :id => ''broken'' end #
2006 Apr 24
2
rails calendar system
Hi, Anyone got some tips on how to design some sort of datagrid/calendar where the columns define a resource and the rows define the date. In the corresponding cells are activities that match the resource and date, ... Thanks! Steven. -- Posted via http://www.ruby-forum.com/.
2006 Aug 17
2
find method not interpreting arguments correctly?
i''ve got a situtation where i''m trying to pass arguments from a method to find and AR is telling me that it can''t find the record where id=all here''s what i am attempting to do class Thing < ActiveRecord::Base belongs_to :x end class FlyingThing < Thing end class x < ActiveRecord::Base has_many :things do def that_fly(*args)
2006 May 06
6
assert_raises --> how does it work?
Hi, I have this code fragment: def test_delete_concept assert_not_nil Concept.find(concepts(:entreprise).id) get :delete_concept, {:concept_id => concepts(:entreprise).id} assert_raises :RecordNotFound, Concept.find(concepts(:entreprise).id) end basicaly, on the first line, I make sure that the concept exist in the DB. On the second line I delete the concept fron the DB.
2007 Dec 22
8
Rails 2.0 rescue_from
I am trying to use the new Rails 2.0 macro : rescue_from class PostsController < ApplicationController rescue_from ActiveRecord::RecordNotFound, :with => :deny_access ... def show @post = Post.find_by_id(params[:id]) raise ActiveRecord::RecordNotFound if @post.nil? #illegal access ..... end def deny_access respond_to do |format| format.html end end but the
2006 May 11
7
Rails in Dr. Dobbs Journal ?
Hi, I''ve read that Dr. Dobbs Journal''s last issue has a cover article about Rails titled "Ruby On Rails - Java''s Successor?". Can''t find anything about it in http://www.ddj.com Does someone have the paper edition and can confirm that, and tell how the article looks like, and so on. Thanks, -- Jean-Fran?ois. -- ? la renverse.
2006 Feb 14
6
[newb] Find vs Find :all question
I''m playing out with writing an online store. So far it has accounts, addressbooks, and orders, and those 3 are tied together with an customer ID. I also have orderDetails, which are associated to the order via an order number. See models below... When I do the following I can access the orderDetails information just fine: @order = Order.find(params[:id]) # i pass it a customer
2005 Aug 21
2
ActiveRecord::RecordNotFound
Is there a specific reason why AR doesn''t raise a RecordNotFound exception in any exception other than "find(id)"? It would seem to be more consistent with the unified find if all types of find would raise a RecordNotFound exception. jim jim-rhf1kIDhBaeB8E1WFlbJj6xOck334EZe@public.gmane.org
2014 Nov 26
1
Centos7 ds-389
Op 25-11-14 om 19:08 schreef Tris Hoar: > On 25/11/2014 16:52, Johan Vermeulen wrote: >> Hello All, >> >> I'm looking at setting up ds-389 on both Centos6.6 en Centos7, both >> minimal installs with >> epel repo enabled. >> >> When running yum search ds-389 on Centos7 I get only 3 packages, >> >> 389-ds-base >> 389-ds-base-devel
2006 Apr 28
2
Accessing fixtures from unit tests
I have set up some fixtures in test/fixtures/users.xml: # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html admin: id: 1 username: admin password: admin pbarry: id: 2 username: pbarry I have a unit test for my user model: require File.dirname(__FILE__) + ''/../test_helper'' class UserTest < Test::Unit::TestCase fixtures :users def