similar to: checking Join data for nil before accessing

Displaying 20 results from an estimated 60000 matches similar to: "checking Join data for nil before accessing"

2006 May 15
2
RFC 3501 compliance issue: body-type-msg incorrect
Hi, I am using Dovecot 1.0 beta 7, moving to beta8 probably tomorrow. I am seeing a few RFC compliance issues with IMAP responses. I have an in-house IMAP client that caches IMAP data for a web mail system (it parses millions of IMAP interactions a day), and it reports whenever it gets a line that does not look RFC compliant. Unfortunately, users modify their mailboxes before I can get a copy
2006 Feb 07
2
Checking for nil in views
Hello, Is there a better way to do the following in a view? <td>Manufacturer <td><%= @equipment.manufacturer.name unless @equipment.manufacturer.nil? %> -- Posted via http://www.ruby-forum.com/.
2009 Sep 28
7
Basic Rails problem with has_many nil values and permalinks
Hi, I have a model property with has_many. I find the property and then I need to find the name of the building or the neighborhood that the property belongs to. The property is not always assigned a building or neighborhood. This becomes a problem when createing permalinks with permalink_fu. has_permalink [:neighborhood_name, :building_name, :address] The neighborhood name and building name
2009 Jul 29
6
Doubt in nil object with ajax
hi this is my htnl <html> <head> <%= javascript_include_tag :defaults %> </head> <body> <%= form_tag nil, { :id => ''search_form'' } %> <%= text_field ''recipe'', ''name'' %> <%= end_form_tag %> <div id="recipe"> </div> <%= observe_form :search_form, :frequency =>
2006 Apr 19
3
best way to check session for nil
Hello, What is the best way in rails to check a session hash value for nil ? I have a session hash called user (session[:user]) that sometimes I have to check for a certain variable like session[:user].email. however the following always results in an error if session[:user].email and I always have to do if session[:user] and session[:user].email Is there a cleaner way to do this then
2006 Aug 09
1
strange - params.nil? true in controller
Hi All I am trying to implement a functionality where a user clicks on "Back to Search Results" link he is taken to the search result screen. For this I am storing his search criteria (params object) in session. Here is my code ______________________________________________________________________________________________________________ *def* search
2006 Jul 06
2
Not accepting nil values in fields when CREATING a record
Hello, I have a question for you. In my application, I want to make sure that the database doesn''t have any NULLs in fields. I can''t use validates_presence_of, because it will puke if there''s an empty string ("") So... is there an EASY way to check if a list of fields is null? Right now, I''m doing: def validate() [...]
2006 Jul 30
1
Bug? find_by_id(nil) returns object just created
Tried to submit a ticket in Trac, but it reported an error... Doing a Model.find_by_id(nil) after creating an object of type Model returns that object -- and the next time, returns nil. It should always return nil. For example, Step 1. Create an object: >> Foo.create(:name => "bar") => #<Foo:0x2aaaac3ade20 @new_record=false,
2005 Feb 13
2
dovecot-stable: NIL from in envelope request
Using the latest dovecot-stable (20050213) with pine, I get an empty "from" header in my e-mails. This doesn't happen with 1.0.59-test, nor did it happen with the first dovecot-stable (20050131). A partial connection log is below: 1.0-test59: IMAP DEBUG 15:23:32 2/13: 00000007 FETCH 1:41 (UID ENVELOPE BODY.PEEK[HEADER.FIELDS (Newsgroups Content-MD5 Content-Disposition
2010 Apr 17
1
Nil.to_sym Problem
HI everyone, require some help! cannot figure out this error and how to fix it! Showing user/index.html.erb where line #59 raised: You have a nil object when you didn''t expect it! The error occurred while evaluating nil.to_sym Extracted source (around line #59): 56: <% end %> 57: </ol> 58: 59: <div id="hub">Blog: <%= link_to "(manage)",
2008 Oct 25
2
Update action | NoMethodError | nil.to_sym
Ok, totally no reason why I''m getting an error in this model update and no other. HELP! CONTROLLER: # GET /employees/1/edit def edit @employee = Employees.find(params[:id]) end VIEW: <h1>Edit Employee</h1> <div id="main-sub"> <%= error_messages_for :employees %> <% form_for(@employee) do |f| %> <table width="600"
2006 Aug 08
3
params object nil in controller action
Hi All I am trying to implement a Back to Search Results functionality, by storing the user''s search criteria (params) in session and then reusing those params instead of request params when user clicks on "Back to Search Results link". here is my code ________________________________________________________________________ def search if session[:incidentSearch].nil? or
2008 Apr 24
7
Please help. The error occurred while evaluating nil.name
Okay so heres my code which works fine, i''ll explain the problem below. <% for num in 1..-04Gazou6+pmm/bHYDwDEOA@public.gmane.org %> <table class="products" id="table1" cellspacing="2" cellpadding="3" border="3"> <tr> <td> <table width="25%"> <tr> <tr> <td><%=
2005 Nov 12
2
undefined method `protocol' for nil:NilClass
Hi! This may have been answered somewhere before, but my searches turned up nothing. I am developing a Rails app that generally works, but just generated a new controller ("list" controller), did not add anything, and when I go to http://localhost:3000/list/ I receive an error. It appears that the page was properly generated, but somewhere preparing the result raised this
2006 Apr 20
5
nil object when you didn''t expect it
Hi, I''m new to rails and finding it hard to figure out what this error is referring to. Can anyone help please?!! NoMethodError in Registeredphone#list Showing app/views/registeredphone/list.rhtml where line #24 raised: You have a nil object when you didn''t expect it! The error occured while evaluating nil.txtForename Extracted source (around line #24): 21:
2012 Dec 26
2
has value in a console but it's nil in my controller and my view?
I have this strange behavior and I don''t undertand why. Here is the thing: I have this record in my payment model: 1.9.3p286 :019 > u.payment.last Payment Load (0.3ms) SELECT "payments".* FROM "payments" WHERE "payments"."user_id" = 10 => [#<Payment id: 37, bank_name: "Mercantil", plan: "Plan Uno", date:
2006 Jul 02
2
nil.- what the heck...
Okay first off here''s the error: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.- Here''s the code in the model: def highest_bid @bid = nil @oldbid = 0 self.bids.each do |bid| if @bid == nil @bid = bid.max else if bid.max > @bid @oldbid,@bid =
2018 Nov 05
4
Event 0x2b1a5f270bd0 leaked (parent=(nil)): auth-client-connection.c:338
> On November 3, 2018 at 9:41 AM Mart Pirita <sysadmin at e-positive.ee> wrote: > > > Hi, > > > But this harmless is spamming logs, so how to disable it: > > grep auth-client-connection.c:338 maillog | wc -l > ?? 1259 If using something like rsyslog, it is trivial to filter out unwanted entries. michael > Aki Tuomi wrote: > > > On 03
2013 Sep 21
3
symlink creation using facter, but facter is nil at first run.
Hi all, I''m trying to find a better way to implement this, but I can''t think of. I have a jdk module that requires to create a symlink to whatever version is the one installed. Say I install jdk-6u35, it will create something like /usr/java/jdk_1.6.35. I would like to create a symlink /usr/java/jdk whose target would be /usr/java/jdk_1.6.35. The point here isn''t to ask
2006 Mar 17
3
Timestamps casted to nil?
Hi, for some reason, all timestamp fields with or without time zone in my Postgres tables seem to be casted to nil. From console: >> me = User.find(''PS12345'') => #<User:0x2379788 @attributes={"mtime"=>"01.03.2006 13:26:32.737166", "valid"=>"8", "valid_from"=>"01.03.1999 14:09:21 CET",