Browse Source

Final fixes for the day

development
Godwin 11 years ago
parent
commit
6435e99deb
  1. 4
      app/controllers/conferences_controller.rb
  2. 2
      app/views/conferences/show.html.haml

4
app/controllers/conferences_controller.rb

@ -177,7 +177,9 @@ class ConferencesController < ApplicationController
# Use callbacks to share common setup or constraints between actions. # Use callbacks to share common setup or constraints between actions.
def set_conference def set_conference
@conference = nil @conference = nil
if type = ConferenceType.find_by!(slug: params[:conference_type_slug] || 'bikebike') puts ' ---------------------- '
puts params
if type = ConferenceType.find_by!(slug: params[:conference_type] || params[:conference_type_slug] || 'bikebike')
if @conference = Conference.find_by!(slug: params[:conference_slug] || params[:slug], conference_type_id: type.id) if @conference = Conference.find_by!(slug: params[:conference_slug] || params[:slug], conference_type_id: type.id)
set_conference_registration set_conference_registration
end end

2
app/views/conferences/show.html.haml

@ -4,4 +4,4 @@
= tabs! = tabs!
%h2=('About '+@conference.title) %h2=('About '+@conference.title)
%p=@conference.info %p=@conference.info.html_safe
Loading…
Cancel
Save