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 index | |
respond_to do |format| | |
format.text do | |
headers["Content-Type"] = "text/plain" | |
headers["Content-disposition"] = 'attachment; filename="users.txt"' | |
erroneous_call_to_proc = false | |
self.response_body = proc { |response, output| | |
unless erroneous_call_to_proc | |
User.find_each do |u| | |
output.write "#{u.name} #{u.email}\n" |
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
# encoding: utf-8 | |
# http://www.sebgrosjean.com/en/news/2012/1 | |
require 'csv' # adds a .to_csv method to Array instances | |
class Array | |
BOM = "\xEF\xBB\xBF" #Byte Order Mark UTF-8 | |
alias old_to_csv to_csv #keep reference to original to_csv method |
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
<footer role="contentinfo"> | |
<div class="footer-top"> | |
<div class="footer-container"> | |
<div class="footer-col-first"> | |
<h5>Our Services</h5> | |
<ul class="footer-list"> | |
<li>Urgent Care</li> | |
<li>Well Care</li> | |
<li>Physicals</li> | |
<li>Health Tests</li> |
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
name = urgentteam | |
description = Hi im urgentteam based on mothership - you should really rename me :) | |
screenshot = screenshot.png | |
engine = phptemplate | |
core = 7.x | |
php = 5.2 | |
base theme = mothership | |
;-------------- F E A T U R E S ------------- | |
features[] = logo |
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
<?php | |
//kpr(get_defined_vars()); | |
//kpr($theme_hook_suggestions); | |
//template naming | |
//page--[CONTENT TYPE].tpl.php | |
?> | |
<?php if( theme_get_setting('mothership_poorthemers_helper') ){ ?> | |
<!-- page.tpl.php--> | |
<?php } ?> |
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
<?php | |
//kpr(get_defined_vars()); | |
//kpr($theme_hook_suggestions); | |
//template naming | |
//page--[CONTENT TYPE].tpl.php | |
?> | |
<?php if( theme_get_setting('mothership_poorthemers_helper') ){ ?> | |
<!-- page.tpl.php--> | |
<?php } ?> |