A small fix

This commit is contained in:
Godwin 2014-07-06 20:15:07 -06:00
parent dd3caa1161
commit f11b40320d
3 changed files with 8 additions and 3 deletions

View File

@ -3,6 +3,7 @@ include ApplicationHelper
class PagesController < ApplicationController class PagesController < ApplicationController
def home def home
@conferences = Conference.all
@conference = Conference.find(:first, :order => "start_date DESC") @conference = Conference.find(:first, :order => "start_date DESC")
end end

View File

@ -1,8 +1,12 @@
- title 'Bike!Bike!' - title 'Bike!Bike!'
- has_no_content - has_no_content
- this_is_the_front_page - this_is_the_front_page
- if @conference /
= render 'conferences/header' = @conference.to_json.to_s
/
= @conferences.to_json.to_s
-# if @conference
-# = render 'conferences/header'
-#%section -#%section
-# .row -# .row

View File

@ -3,7 +3,7 @@ namespace :regenerate do
task conference_posters: :environment do task conference_posters: :environment do
Conference.all.each {|m| m.poster.recreate_versions!} Conference.all.each {|m| m.poster.recreate_versions!}
puts Conference.all.to_json.to_s #puts Conference.all.to_json.to_s
end end
task organization_avatars: :environment do task organization_avatars: :environment do