Skip to content

Instantly share code, notes, and snippets.

@kalabiyau
Created July 24, 2012 08:51
Show Gist options
  • Save kalabiyau/3168920 to your computer and use it in GitHub Desktop.
Save kalabiyau/3168920 to your computer and use it in GitHub Desktop.
-content_for :body do
%table#front_folders
[email protected]_groups_of(5, false).each do |group|
%tr
-group.each do |f|
%td
=link_to "", :remote => true, :fhref=>"#{refinery.documents_folder_path(f)}" do
.folder{:style=>get_random_grid}
%p=f.name
= render '/refinery/content_page'
-content_for :javascripts do
:coffeescript
$(document).ready ->
$('table#folders a').click () ->
console.log $(this)
false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment