Hi,

I am getting
undefined method `map' for #<UserJob:0x7f42671ae1a8>
with the code below. I've looked everywhere and I don't get what I am
doing wrong

Controller:
@user_jobs = UserJob.find_by_user_id(current_user.id)

View:
<% form_remote_for(@user_project, :complete =>
'editObjectDialog.close()') do |f| %>
  <%= f.error_messages %>
  <% if @user_jobs %>
  <p>
    <%= f.label :user_job %><br />
    <%= collection_select :user_project :user_job_id,
@user_jobs, :id, :title %>
  </p>
  <% end %>
<% end %>

Thanks for your help

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to