add ActiveAdmin

This commit is contained in:
Lee Lawlor
2014-03-22 13:21:45 -04:00
parent f21dea069f
commit 156f4147ef
80 changed files with 912 additions and 241 deletions

View File

@ -0,0 +1,4 @@
<%= link_to 'List Email Addresses', admin_emails_path %>
<br><br>
<%= link_to 'List Users by Day (CSV)', admin_signups_path(:format => :csv) %>

View File

@ -0,0 +1,4 @@
<% @users.each do |u| %>
<%= u.email %><br>
<% end %>

View File

@ -0,0 +1,2 @@
<%= CSV.generate_line @csv_headers %><% @days.each do |day| %><% row = [] %><% @csv_headers.each do |attr| %><% row.push(day.to_json) %><% end %><%= CSV.generate_line(day).html_safe %><% end %>