So after a couple of days of trawling various forums, tutorials etc -
I’m
still no closer to doing what is seemingly something straightforward -
namely, have links on a Navbar populate a named yield with the contents
of
a partial. I’m probably missing something fundamental, but hey! I’ve
asked
this before, but I don’t think I worded the question too well, so
hopefully
this time I’ll do better!
My view as it stands is as follows:
<!DOCTYPE html>
<div class="container"> <ul class="nav navbar-nav"> <div class="container"> </script> </html>
In the <> above, I have tried a couple of ideas. Firstly:
P4 P4 Output
This simply rendered both “perforce” and “p4_output” partials one below
the
other, and clicking the navbar options had no effect.
So then I figured maybe something more like this was required:
<%= link_to "Perforce", {:action => 'renderp4'}, :remote => true %> <%= link_to "Perforce", {:action => 'renderp4_output'}, :remote => true %>
But at this point I came to a grinding halt, not knowing how what would
be
needed in my “renderp4” and “renderp4_output” actions so as to return
HTML
to my mainbody yield - if it is even possible?!?
Hopefully what I am trying to achieve is obvious - while I appreciate
and
acknowledge I am probably rather wide of the mark with my solution
currently, any guidance would be appreciated. As I say, I’ve hunted
around,
but just hit a brick wall!
Thanks 
