Select error while creating it


#1

hey,

i get this error (local it works right), online it is fucked

Geotag:
<%= select "time_entry", "geotag_id", @geotags.collect {|g| [g.address1 + " (" + g.client.name + ")",g.id]} %>

@geotags = Geotag.find_all_by_firm_id(firm_id, :order =>“address1 ASC”)
@geotag_options = [[“All”,"%"]] + @geotags.collect
{|g| [g.address1 + “, " + g.city + " (” + g.client.name + “)” ,g.id]}

my error

You have a nil object when you didn’t expect it!
The error occured while evaluating nil.name

Extracted source (around line #7):

4: <%= select “time_entry”, “employee_id”, @employees.collect {|e|
[e.last_name + " " + e.first_name,e.id]} %>


5:
6:

Geotag:

7: <%= select “time_entry”, “geotag_id”, @geotags.collect {|g|
[g.address1 + “(” + g.client.name + “)”,g.id]} %>


8:
9:


10: Start time
(yyyy-mm-dd hh:mm:ss)