# How to give an id to form

**URL:** <https://www.ruby-forum.com/t/how-to-give-an-id-to-form/78645>\
**Category:** Rails\
**Created:** [December 7, 2006, 4:01pm UTC](https://www.ruby-forum.com/t/how-to-give-an-id-to-form/78645 "2006-12-07T16:01:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [December 7, 2006, 4:01pm UTC](https://www.ruby-forum.com/t/how-to-give-an-id-to-form/78645/1 "2006-12-07T16:01:09Z")

</div>

Using remote\_form\_for is there a way to give the form an id ?

using :html =\> {:id =\> 'formname"} throws a parsing error.

???  
TIA  
Stuart

–

> **[Dark ambient](https://en.wikipedia.org/wiki/Dark_ambient)**
>
> Dark ambient (referred to as ambient industrial especially in the 1980s) is a genre of post-industrial music that features an ominous, dark droning and often gloomy, monumental or catacombal atmosphere, partially with discordant overtones. It shows similarities with ambient music, a genre that has been cited as a main influence by many dark ambient artists, both conceptually and compositionally. Although mostly electronically generated, dark ambient also includes the sampling of hand-pla 
> The te...

---

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [December 7, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/how-to-give-an-id-to-form/78645/2 "2006-12-07T18:46:07Z")

</div>

Hi Stuart,

Dark A. wrote:

> using :html =\> {:id =\> 'formname"} throws a  
> parsing error.

This might not be it at all, but it jumped out at me that you’ve got  
mismatched quote types above.

hth,  
Bill

---

<div class="post-metadata">

**Author:** ![zanoni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e99b99/32.png) [@zanoni](https://www.ruby-forum.com/u/zanoni)\
**Post date:** [December 7, 2006, 10:07pm UTC](https://www.ruby-forum.com/t/how-to-give-an-id-to-form/78645/3 "2006-12-07T22:07:08Z")

</div>

Bill, yeah , no it wasn’t the mismatched quotes, it was the dead comma  
in  
line 2 ;).  
Sorry, and thanks for helping.

Stuart

On 12/7/06, Bill W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> mismatched quote types above.
> 
> hth,  
> Bill
> 
> >

–

> **[Dark ambient](https://en.wikipedia.org/wiki/Dark_ambient)**
>
> Dark ambient (referred to as ambient industrial especially in the 1980s) is a genre of post-industrial music that features an ominous, dark droning and often gloomy, monumental or catacombal atmosphere, partially with discordant overtones. It shows similarities with ambient music, a genre that has been cited as a main influence by many dark ambient artists, both conceptually and compositionally. Although mostly electronically generated, dark ambient also includes the sampling of hand-pla 
> The te...
