Fixes to splash page view&controller
This commit is contained in:
parent
047c1dd288
commit
65152f8753
8 changed files with 37 additions and 4 deletions
2
app/assets/javascripts/conference.js
Normal file
2
app/assets/javascripts/conference.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
// Place all the behaviors and hooks related to the matching controller here.
|
||||
// All this logic will automatically be available in application.js.
|
||||
3
app/assets/stylesheets/conference.css.scss
Normal file
3
app/assets/stylesheets/conference.css.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// Place all the styles related to the conference controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
class ConferenceController < ApplicationController
|
||||
def show
|
||||
@conference = Conference.find_by_title(params[:conference_id])
|
||||
@conference = Conference.find_by_title(params[:id])
|
||||
end
|
||||
end
|
||||
|
|
|
|||
2
app/helpers/conference_helper.rb
Normal file
2
app/helpers/conference_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
module ConferenceHelper
|
||||
end
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
= simple_format(conference.venue.description, class: 'lead')
|
||||
.col-md-2
|
||||
.btn-group-vertical
|
||||
= link_to "View Conference", conference_show_path(conference.title), :class => " btn btn-default"
|
||||
= link_to "View Conference", conference_path(conference.title), :class => " btn btn-default"
|
||||
- if conference.registration_open?
|
||||
- if conference.user_registered?(current_user)
|
||||
= link_to "Modify Registration", register_conference_path(conference.short_title), :class =>"btn btn-default"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue