Im building an application in RoR. The client wants to put the main
content inside an iframe. By main content I mean, the contents which
gets displayed by the calling yield inside application.html.erb file.
Currently Im having this code
<%=yield%>
But what i want to do is something like this:
and Im not understanding where or how can I put the <%=yield %>.
Can anybody give me some idea on how to proceed from this point ?
Im building an application in RoR. The client wants to put the main
content inside an iframe. By main content I mean, the contents which
gets displayed by the calling yield inside application.html.erb file.
Why are you letting you’re client dictate technical design to you?
What’s your job if he’s making all the technical decisions?
Currently Im having this code
<%=yield%>
Using tables for layout is not looked upon very well in modern web
design.
But what i want to do is something like this:
iframes, although might be occasionally necessary, are also frowned upon
these days. If you don’t absolutely need one then DON’T use it! Use a
with the proper CSS overflow instead. Then your yield issues
becomes instantly irrelevant. You'll have a better design, and your
peers won't turn their noses up at you code.
Thanks for the reply Robert. I agree with your point, but the matter of
fact is I have to implement it that way. Any suggestion on how can i
solve this ?
Thanks,
Saurav
Robert W. wrote:
Saurav C. wrote:
Hi All,
Im building an application in RoR. The client wants to put the main
content inside an iframe. By main content I mean, the contents which
gets displayed by the calling yield inside application.html.erb file.
Why are you letting you’re client dictate technical design to you?
What’s your job if he’s making all the technical decisions?
Currently Im having this code
<%=yield%>
Using tables for layout is not looked upon very well in modern web
design.
But what i want to do is something like this:
iframes, although might be occasionally necessary, are also frowned upon
these days. If you don’t absolutely need one then DON’T use it! Use a
with the proper CSS overflow instead. Then your yield issues
becomes instantly irrelevant. You'll have a better design, and your
peers won't turn their noses up at you code.
Thanks for the reply Robert. I agree with your point, but the matter of
fact is I have to implement it that way. Any suggestion on how can i
solve this ?
Sorry. I haven’t ever thought about that since I wouldn’t consider doing
it. The iframe is going to act independent of your current request
context. Using <% yield %> is going to work within the current request
context as far as I understand it. Hopefully others will be able to
explain better.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.