twitter gem and a partial added to embed tweets about a conference and new layout added for conference info screen
This commit is contained in:
parent
febd3451ad
commit
f29a15b8e4
11 changed files with 216 additions and 28 deletions
|
|
@ -179,14 +179,19 @@ module Admin
|
|||
@sponsors = @conference.sponsors
|
||||
@program = @conference.program
|
||||
@current_events = @conference.program.events.confirmed.select{ |event| event.is_current?}
|
||||
|
||||
@tweets = twitter_client.search_tweets(3, @conference.contact.social_tag)
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.js {render :action=>"conference_wide_screen.js.haml"}
|
||||
format.html{render layout: "conference_wide_screen"}
|
||||
format.js {render :action=> "conference_wide_screen.js.haml"}
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
# To create a twitter client
|
||||
def twitter_client
|
||||
@twitter_client ||= TwitterWrapper.new
|
||||
end
|
||||
|
||||
def conference_params
|
||||
params.require(:conference).permit(:title, :short_title, :description, :timezone,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue