Link_to_remote and partial rendering

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?

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

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

thanks for your concerns