Leonel *-* wrote:
> Now I have this at the form partial
> 

Hmm...  give this a whirl

appointments controller:

def new
  @appointment = Appointment.new
  @clients = Client.find(:all)
  respond_to do |format|
    format.html # new.html.erb
    format.xml  { render :xml => @appointment }
  end
end

views:

new.html.erb probably just says "render 'form'"?

_form.html.erb

<div class="field">
  <%= f.label :client_id %><br />
  <%= collection_select("appointment", "client_id", @clients, "id", 
"name", {:include_blank => true}) %> </div>

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to