window. Name = "MyWindow"; window. Name = \"#{name}\";" end end Next, in your layo..." />

How do I set the name of a window in ROR?

You have to use JavaScript for this: script type="text/javascript"> window. Name = "MyWindow"; window. Name = \"#{name}\";" end end Next, in your layout file, add this line somewhere within the HTML head element: %= yield :window_name % Finally, in your view templates, simply add a line like this (can be anywhere you want) to output the correct JavaScript: % window_name 'MyWindow' %.

You have to use JavaScript for this: Of course you could easily package this up into a Rails helper method. For example, in app/helpers/application_helper. Rb add a new method: def window_name(name) content_for(:window_name) do "" end end Next, in your layout file, add this line somewhere within the HTML element: Finally, in your view templates, simply add a line like this (can be anywhere you want) to output the correct JavaScript.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions