# Link\_to\_remote and partial rendering

**URL:** <https://www.ruby-forum.com/t/link-to-remote-and-partial-rendering/179998>\
**Category:** Rails\
**Created:** [December 9, 2009, 2:16pm UTC](https://www.ruby-forum.com/t/link-to-remote-and-partial-rendering/179998 "2009-12-09T14:16:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elvenwhite](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c2a13f/32.png) [@elvenwhite](https://www.ruby-forum.com/u/elvenwhite)\
**Post date:** [December 9, 2009, 2:16pm UTC](https://www.ruby-forum.com/t/link-to-remote-and-partial-rendering/179998/1 "2009-12-09T14:16:38Z")

</div>

hello,

I’m trying to make my link\_to\_remote to render a partial in a

.

my view code follows:

\<%= link\_to\_remote “Show”, :url =\> {:controller  
=\> “cards”, :action =\> “show\_preview”}, :update =\>  
“preview”,  
:method =\> ‘get’ %\>

I also have

 in my view code.

and in case of my controller :

def show\_preview

```
render :partial => 'card_preview', :update => 'preview'

```

end

but the problem is, the link does nothing: it anchors me to # page, but  
nothing changed. what’s the problem?

---

<div class="post-metadata">

**Author:** ![elvenwhite](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c2a13f/32.png) [@elvenwhite](https://www.ruby-forum.com/u/elvenwhite)\
**Post date:** [December 10, 2009, 5:10am UTC](https://www.ruby-forum.com/t/link-to-remote-and-partial-rendering/179998/2 "2009-12-10T05:10:01Z")

</div>

Hi Jongdae Han

> ```
> render :partial => 'card_preview', :update => 'preview'
> 
> ```

One thing is what are you trying to do with :update here. And please  
tell what is there in card\_preview partial?

Sijo

---

<div class="post-metadata">

**Author:** ![elvenwhite](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c2a13f/32.png) [@elvenwhite](https://www.ruby-forum.com/u/elvenwhite)\
**Post date:** [December 10, 2009, 10:30am UTC](https://www.ruby-forum.com/t/link-to-remote-and-partial-rendering/179998/3 "2009-12-10T10:30:56Z")

</div>

Problems solved via quoting :controller and :action with single  
quotation.  
can’t understand why yet tho… 🙂

thanks for your concerns
