# Link\_to\_remote and form\_tag

**URL:** <https://www.ruby-forum.com/t/link-to-remote-and-form-tag/119178>\
**Category:** Rails\
**Created:** [November 4, 2007, 12:47pm UTC](https://www.ruby-forum.com/t/link-to-remote-and-form-tag/119178 "2007-11-04T12:47:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e95f7d/32.png) [@zaid](https://www.ruby-forum.com/u/zaid)\
**Post date:** [November 4, 2007, 12:47pm UTC](https://www.ruby-forum.com/t/link-to-remote-and-form-tag/119178/1 "2007-11-04T12:47:44Z")

</div>

Hello

I have a web site with a feature that works perfectly. And I  
Raised included within another site in a layer.  
I am changing link\_to by link\_to\_remote, but rhtml loading  
After a link\_to\_remote shows anything but what is inside a  
form\_tag.

We must put something on the forms to display with ajax?

I tried to change the form

From:  
\<% = form\_tag: action =\> ‘list’: method =\> “get”%\>

A:  
\<% = form\_remote\_tag (: update =\> “m\_content”  
: Url =\> (: action =\> “list”))%\>

But the same thing happens to me …

This is the call:  
\<% = Link\_to\_remote (image\_tag ( “next.gif”)  
: Update =\> “m\_content”  
: Url =\> (: action =\> ‘list’))%\>

Thank you

---

<div class="post-metadata">

**Author:** ![zaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e95f7d/32.png) [@zaid](https://www.ruby-forum.com/u/zaid)\
**Post date:** [November 4, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/link-to-remote-and-form-tag/119178/2 "2007-11-04T12:59:49Z")

</div>

Davicín … schrieb:

> Hello
> 
> I have a web site with a feature that works perfectly. And I  
> Raised included within another site in a layer.  
> I am changing link\_to by link\_to\_remote, but rhtml loading  
> After a link\_to\_remote shows anything but what is inside a  
> form\_tag.
> 
> We must put something on the forms to display with ajax?

Did you include the javascript files?

\<%= javascript\_include\_tag(:all)%\>

---

<div class="post-metadata">

**Author:** ![zaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e95f7d/32.png) [@zaid](https://www.ruby-forum.com/u/zaid)\
**Post date:** [November 4, 2007, 1:18pm UTC](https://www.ruby-forum.com/t/link-to-remote-and-form-tag/119178/3 "2007-11-04T13:18:10Z")

</div>

> Did you include the javascript files?
> 
> \<%= javascript\_include\_tag(:all)%\>

I have included this  
\<%= javascript\_include\_tag :defaults %\>

---

<div class="post-metadata">

**Author:** ![zaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e95f7d/32.png) [@zaid](https://www.ruby-forum.com/u/zaid)\
**Post date:** [November 4, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/link-to-remote-and-form-tag/119178/4 "2007-11-04T16:11:12Z")

</div>

On Sun, 04 Nov 2007 12:47:44 +0100, Davicín … wrote:

> I tried to change the form  
> This is the call:  
> \<% = Link\_to\_remote (image\_tag ( “next.gif”)  
> : Update =\> “m\_content”  
> : Url =\> (: action =\> ‘list’))%\>

There’s no camelcasing of symbol names in rails. Everything is lowercase  
and underscore separated, nor is there a space separating the colon and  
the symbol name. :update not : Update, :url not : Url.

Steve

---

<div class="post-metadata">

**Author:** ![zaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e95f7d/32.png) [@zaid](https://www.ruby-forum.com/u/zaid)\
**Post date:** [November 4, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/link-to-remote-and-form-tag/119178/5 "2007-11-04T16:40:38Z")

</div>

Hello.

I do not know if that will affect all rhtml am updating layer m\_content.  
And these forms are within this layer …

Thanks again.

---

<div class="post-metadata">

**Author:** ![zaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e95f7d/32.png) [@zaid](https://www.ruby-forum.com/u/zaid)\
**Post date:** [November 4, 2007, 4:15pm UTC](https://www.ruby-forum.com/t/link-to-remote-and-form-tag/119178/6 "2007-11-04T16:15:08Z")

</div>

> There’s no camelcasing of symbol names in rails. Everything is lowercase  
> and underscore separated, nor is there a space separating the colon and  
> the symbol name. :update not : Update, :url not : Url.

Yes it has been a problem to copy and paste…

Now she is well and I still have the same problem ☹

From:  
\<% = form\_tag: action =\> ‘list’, :method =\> “get”%\>

A:  
\<% = form\_remote\_tag (:update =\> “m\_content”,  
:url =\> (:action =\> “list”))%\>

This is the call:  
\<% = Link\_to\_remote (image\_tag ( “next.gif”),  
:update =\> “m\_content”,  
:url =\> (:action =\> ‘list’))%\>

Thank you
