Browse Source

A small fix

development
Godwin 11 years ago
parent
commit
f11b40320d
  1. 1
      app/controllers/pages_controller.rb
  2. 8
      app/views/pages/home.html.haml
  3. 2
      lib/tasks/regenerate.rake

1
app/controllers/pages_controller.rb

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

8
app/views/pages/home.html.haml

@ -1,8 +1,12 @@
- title 'Bike!Bike!'
- has_no_content
- 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
-# .row

2
lib/tasks/regenerate.rake

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

Loading…
Cancel
Save