For example, I want to click a button or a link, then without leaving
the page, i want the content of a
the link1 I want the content1 to show up inside the
I made it possible by using:
<%= render :partial => “icons”, :collection => @packages, :locals => {
:@icon_name => “-add-black-” } %>
( Passing a string to the render partial… )
But how do you call a “render :partial …” using a link or a button…
In the Agile Web D. with Rails book, the shopping cart is made
using i think a “component”… but I heard that components have a big
performance drop…
So my question is whats the best way?
- Using a link that then activates a render :partial?
- Using a component?
- Other?