Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

« Newer Snippets
Older Snippets »
3 total  XML / RSS feed 

Link to Remote Tag

Tag for creating ajax callback links

<%= link_to_remote( "click here",
                         :update => "specific_div_block",
                         :url =>{ :action => :action_name }) %>

Link Tag

Basic rails link tag

<%= link_to 'Link Name', { :action => 'action_name', :id => 0 }, :confirm => 'Are you sure?', :post => true %>

pop window desde un link

// esta es una forma muy buena de hacer un pop up desde un link

<a href="http://google.com/" onclick="window.open(this.href, 'popupwindow', 
  'width=400,height=300,scrollbars,resizable'); 
  return false;"
>
« Newer Snippets
Older Snippets »
3 total  XML / RSS feed