# RHTML Code is not properly working in I.E

**URL:** <https://rubytalk.org/t/rhtml-code-is-not-properly-working-in-i-e/36284>\
**Category:** ruby-talk\
**Created:** [20 March 2007 06:20 UTC](https://rubytalk.org/t/rhtml-code-is-not-properly-working-in-i-e/36284 "2007-03-20T06:20:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak\_Kumar\_Shivhar](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@Deepak\_Kumar\_Shivhar](https://rubytalk.org/u/Deepak_Kumar_Shivhar)\
**Post date:** [20 March 2007 06:20 UTC](https://rubytalk.org/t/rhtml-code-is-not-properly-working-in-i-e/36284/1 "2007-03-20T06:20:58Z")

</div>

Hello,

I have written the following code for designing the U.I. It is properly  
working in Mozilla Firefox but its not properly working in I.E.  
(Internet Explorer).

\<div id="maincontent"\>

\<h2\>Permission\</h2\>

\<%= start\_form\_tag ({:action =\> 'edit'},{:class =\> 'appform'}) %\>

&nbsp;&nbsp;\<div class="req"\>\<b\>\*\</b\>Required Information \</div\>

&nbsp;&nbsp;\<fieldset\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<%=error\_messages\_for("permission")%\>

&nbsp;&nbsp;&nbsp;&nbsp;\<h3\>Edit Permission\</h3\>

&nbsp;&nbsp;&nbsp;&nbsp;\<label for="name"\>\<b\>\<span class="req"\>\*\</span\>Controller\</b\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<input class="f-name" name="permission[controller]"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value="\<%= @permission.controller%\>"  
size="30" /\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</label\>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<label for="name"\>\<b\>\<span class="req"\>\*\</span\>Action\</b\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<input class="f-name" name="permission[action]"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value="\<%= @permission.action %\>"  
size="30" /\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</label\>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<label for="name"\>\<b\>Description\</b\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<textarea class="f-comments" "rows="10" cols="25"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name="permission[description]" \>\<%=  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@permission.description %\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</textarea\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</label\>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<div class="f-submit-wrap"\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<input type="submit" name="savebutton" value="Save" /\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</div\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</fieldset\>

\<%= end\_form\_tag %\>

\</div\>

May I know the reason ??

Can Anybody help me ??

Thanks in Advance  
Deepak

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Brian\_Candler](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Brian\_Candler](https://rubytalk.org/u/Brian_Candler)\
**Post date:** [20 March 2007 06:49 UTC](https://rubytalk.org/t/rhtml-code-is-not-properly-working-in-i-e/36284/2 "2007-03-20T06:49:31Z")

</div>

OK, I'll bite.

(1) Please note that "its [sic] not properly working" is a completely  
useless description of a problem. We cannot read minds. Unless you describe  
exactly what you \*see\*, nobody can help you. For more advice see  
[http://www.catb.org/~esr/faqs/smart-questions.html#intro](http://www.catb.org/~esr/faqs/smart-questions.html#intro)

In the case of page rendering problems, I'd suggest taking a screen  
snapshot, putting the image on a web server, and posting the URL.

(2) This question clearly has nothing to do with Ruby at all, because the  
embedded Ruby has all been stripped out by the time the page reaches the  
browser - it's just a page of HTML (which you will see if you select "view  
source" in your browser)

So this leaves two possible options:

(a) You wrote some HTML which works in IE but not Netscape - for example you  
might have used some browser-specific tags, or you might have forgotten to  
add some declaration at the top of the page to tell the browser what version  
of (x)html you are using. Hint: google for "IE quirks mode" and read  
carefully what you find.

In that case, please go to a HTML mailing list for advice on how to write  
your HTML in a way which is browser-independent.

(b) If the tag at fault is one which Rails generated, e.g. start\_form\_tag  
generates something which IE doesn't like, then you can raise your problem  
on the Rails google group. Again, you'll have to provide a description of  
exactly how the problem appears, show the raw .rhtml and the processed HTML  
output, and suggest why you think Rails is producing a faulty HTML tag (e.g.  
by editing the HTML manually to make the problem go away)

Regards,

Brian.

> **···**
>
> On Tue, Mar 20, 2007 at 03:20:58PM +0900, Deepak Kumar Shivhare wrote:
> 
> > I have written the following code for designing the U.I. It is properly  
> > working in Mozilla Firefox but its not properly working in I.E.  
> > (Internet Explorer).

---

<div class="post-metadata">

**Author:** ![Deepak\_Kumar\_Shivhar](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@Deepak\_Kumar\_Shivhar](https://rubytalk.org/u/Deepak_Kumar_Shivhar)\
**Post date:** [20 March 2007 06:55 UTC](https://rubytalk.org/t/rhtml-code-is-not-properly-working-in-i-e/36284/3 "2007-03-20T06:55:57Z")

</div>

Brian Candler wrote:

> OK, I'll bite.

OK, Thanks Brain

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Deepak\_Kumar\_Shivhar](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@Deepak\_Kumar\_Shivhar](https://rubytalk.org/u/Deepak_Kumar_Shivhar)\
**Post date:** [20 March 2007 06:56 UTC](https://rubytalk.org/t/rhtml-code-is-not-properly-working-in-i-e/36284/4 "2007-03-20T06:56:49Z")

</div>

Brian Candler wrote:

> OK, I'll bite.

OK, Thanks Brian.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
