This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def index | |
if params[:commit] == 'Filter' | |
@title = params[:title] | |
title = @title.present? ? @title : nil | |
@type = params[:type] | |
type = @type.present? ? @type.gsub(/\s+/, '') : nil | |
@speaker = params[:speaker] | |
speaker = @speaker.present? ? @speaker : nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>VetGovPartner</title> | |
<link href="/assets/application.css" media="screen" rel="stylesheet" type="text/css" /> | |
<link href="/assets/token-input.css" media="screen" rel="stylesheet" type="text/css" /> | |
<script src="/assets/application.js" type="text/javascript"></script> | |
<script src="/assets/jquery-ui.js" type="text/javascript"></script> | |
<script src="/assets/autocomplete-rails.js" type="text/javascript"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# acts_as_gmappable # commented out original gmaps4rails code to compare | |
acts_as_gmappable :check_process => false | |
def gmaps4rails_address | |
self.address | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%# commented out original gmaps4rails code to compare %> | |
<%#= gmaps4rails(@json) %> | |
<%= gmaps( | |
:markers => { :data => @json }, | |
:map_options => { :auto_adjust => true, # :auto_adjust map to center on location | |
:auto_zoom => false, # :auto_zoom defaults to full zoom in, set to false to utilize :zoom | |
:zoom => 15 } # :zoom 0 is fully zoomed out (world view), 21 is fully zoomed in (street view) | |
) %> |