# RHTML Code is not properly working in I.E

**URL:** <https://www.ruby-forum.com/t/rhtml-code-is-not-properly-working-in-i-e/89407>\
**Category:** Ruby\
**Created:** [March 20, 2007, 7:20am UTC](https://www.ruby-forum.com/t/rhtml-code-is-not-properly-working-in-i-e/89407 "2007-03-20T07:20:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@deepak](https://www.ruby-forum.com/u/deepak)\
**Post date:** [March 20, 2007, 7:20am UTC](https://www.ruby-forum.com/t/rhtml-code-is-not-properly-working-in-i-e/89407/1 "2007-03-20T07:20:56Z")

</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).

## Permission

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

**\*** Required Information 
 \<%=error\_messages\_for("permission")%\>

```
<h3>Edit Permission</h3>

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

```

size=“30” /\>

```
      <label for="name"><b><span class="req">*</span>Action</b>
  <input class="f-name" name="permission[action]"
                           value="<%= @permission.action %>"

```

size=“30” /\>

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

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

```

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

May I know the reason ??

Can Anybody help me ??

Thanks in Advance  
Deepak

---

<div class="post-metadata">

**Author:** ![deepak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@deepak](https://www.ruby-forum.com/u/deepak)\
**Post date:** [March 20, 2007, 7:50am UTC](https://www.ruby-forum.com/t/rhtml-code-is-not-properly-working-in-i-e/89407/2 "2007-03-20T07:50:23Z")

</div>

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).

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.

---

<div class="post-metadata">

**Author:** ![deepak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@deepak](https://www.ruby-forum.com/u/deepak)\
**Post date:** [March 20, 2007, 7:55am UTC](https://www.ruby-forum.com/t/rhtml-code-is-not-properly-working-in-i-e/89407/3 "2007-03-20T07:55:48Z")

</div>

Brian C. wrote:

> OK, I’ll bite.

OK, Thanks Brain

---

<div class="post-metadata">

**Author:** ![deepak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@deepak](https://www.ruby-forum.com/u/deepak)\
**Post date:** [March 20, 2007, 7:56am UTC](https://www.ruby-forum.com/t/rhtml-code-is-not-properly-working-in-i-e/89407/4 "2007-03-20T07:56:48Z")

</div>

Brian C. wrote:

> OK, I’ll bite.

OK, Thanks Brian.
