September 28, 2006

Learn something new... every 30 minutes

Re: (newbie) Why doesn't this line work?

Every time I work on my app. I feel like I learn something new about every 30 minutes...

this time it was that the :confirm parameter on :link_to (which pops up a confirmation box when you click a link), is an HTML option and thus needs syntax like

<%= link_to "delete", {:action => delete, :id => @item.id}, {:confirm => 'Are you sure?'} %>

Posted by rorym at September 28, 2006 7:32 PM
Comments
Post a comment









Remember personal info?