Final fixes for the day
This commit is contained in:
parent
cb44f3d53b
commit
6435e99deb
@ -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
|
||||||
|
@ -4,4 +4,4 @@
|
|||||||
= tabs!
|
= tabs!
|
||||||
|
|
||||||
%h2=('About '+@conference.title)
|
%h2=('About '+@conference.title)
|
||||||
%p=@conference.info
|
%p=@conference.info.html_safe
|
Loading…
x
Reference in New Issue
Block a user