From: Rohit Coder Date: 2013-05-28T04:24:01+09:00 Subject: Re: How to show menu in application.html.erb on other pages? --_48b9d3d6-c833-4cb6-8637-5d90c83735a0_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I included that line you suggested. Below is the code of my content page: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <% content_for :stylesheets do %>
=20
<% end %> <% content_for :MainContent do %>
<% end %> <%=3D render :partial =3D> "layouts\application.html.erb" %> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Date: Tue=2C 28 May 2013 04:09:23 +0900 > From: hassan.schroeder@gmail.com > Subject: Re: How to show menu in application.html.erb on other pages? > To: ruby-talk@ruby-lang.org >=20 > On Mon=2C May 27=2C 2013 at 11:51 AM=2C Rohit Coder > wrote: > > Yes Schroeder=2C I referred Rails documentation but I am not able to so= lve my > > requirement. >=20 > Really? You haven't seen something like this? >=20 > > <%=3D render :partial =3D> 'layouts/banner' %> > <%=3D render :partial =3D> 'layouts/menubar' %> >=20 > <%=3D yield %> >=20 > >=20 > Because that's pretty much all you need... >=20 > --=20 > Hassan Schroeder ------------------------ hassan.schroeder@gmail.com > http://about.me/hassanschroeder > twitter: @hassan >=20 = --_48b9d3d6-c833-4cb6-8637-5d90c83735a0_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I included that line you suggest= ed. Below is the code of my content page:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
<=3B% content_for :stylesheets= do %>=3B
 =3B <=3Bdiv id=3D"divLogin">=3B
 =3B =3B=  =3B
 =3B <=3B/div>=3B
<=3B% end %>=3B

<=3B= % content_for :MainContent do %>=3B
 =3B <=3Bdiv id=3D"divMain"&= gt=3B

 =3B <=3B/div>=3B
<=3B% end %>=3B

<=3B= %=3D render :partial =3B =3D>=3B "layouts\application.html.erb" %>= =3B

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D

>=3B Date: Tue=2C 28 May 2013 04:09:23 +0900
>= =3B From: hassan.schroeder@gmail.com
>=3B Subject: Re: How to show men= u in application.html.erb on other pages?
>=3B To: ruby-talk@ruby-lang= .org
>=3B
>=3B On Mon=2C May 27=2C 2013 at 11:51 AM=2C Rohit Cod= er
>=3B <=3Bpassionate_programmer@hotmail.com>=3B wrote:
>=3B= >=3B Yes Schroeder=2C I referred Rails documentation but I am not able t= o solve my
>=3B >=3B requirement.
>=3B
>=3B Really? You h= aven't seen something like this?
>=3B
>=3B <=3Bbody>=3B
&= gt=3B <=3B%=3D render :partial =3D>=3B 'layouts/banner' %>=3B
&g= t=3B <=3B%=3D render :partial =3D>=3B 'layouts/menubar' %>=3B
&g= t=3B
>=3B <=3B%=3D yield %>=3B
>=3B
>=3B <=3B/body= >=3B
>=3B
>=3B Because that's pretty much all you need...
&= gt=3B
>=3B --
>=3B Hassan Schroeder ------------------------ ha= ssan.schroeder@gmail.com
>=3B http://about.me/hassanschroeder
>= =3B twitter: @hassan
>=3B
= --_48b9d3d6-c833-4cb6-8637-5d90c83735a0_--