This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
This is a smashup by Justin Richter of html.lang and ruby.lang | |
html.lang | |
Authors: Marco Barisione, Emanuele Aina | |
Copyright (C) 2005-2007 Marco Barisione <[email protected]> | |
Copyright (C) 2005-2007 Emanuele Aina | |
ruby.lang | |
Author: Archit Baweja <[email protected]> | |
Copyright (C) 2004 Archit Baweja <[email protected]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is neat. Here is my erb file. | |
<% content_for :sidebar do %> | |
<%= link_to 'New user', new_user_path %> | |
<% end %> | |
<h1>Listing users</h1> | |
<% @users.each do |user| %> | |
<% if user.sessions.size > 0 %> | |
<p class="logged_in"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.read_files_and_create_reports | |
@filenames = [] | |
pids = [] | |
dir = "public/txt_reports" | |
Dir.foreach(dir) do |entry| | |
if entry.include? ".txt" | |
@filenames << entry | |
end | |
end | |
do_work_concurrently(@filenames, dir, 2) |
NewerOlder