Erol Fornoles wrote:
> On Oct 10, 1:54�pm, Jay Pangmi <[EMAIL PROTECTED]>
> wrote:
>> <p>
>> � <label for="camp location">Campgrounds</label><br/>
>> � <%=select "camp", "id", @resultset %>
>> </p>
> 
> Where is the partial rendered? And when should it be rendered? I don't
> see it in your main view.

The file below is the partial which gets rendered in the <div> whose id 
is "campsites_list" in the view inside the <%form_for%> ... <%end%>. 
observe_field is observing the combo box with id :great_walks which is 
the first combo box in the view and updates the combo box inside the 
<%form_for%>..<%end%> inside <div> and this <div> is getting updated 
with the following partial file:

_campsites.rhtml
--------------------------------------------------------------------------------
<p>
  <label for="camp location">Campgrounds</label><br/>
  <%=select "camp", "id", @resultset %>
</p>
--------------------------------------------------------------------------------

thanks...

-- 
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 [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