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 show | |
@textbook = Textbook.find(params[:id]) | |
@this_user = User.find_by_id(session[:user_id]) | |
@textbook.user_textbook_statuses.each do |attribute| | |
@map = Map.new(:to_location_id => attribute.user.location_id, from_location_id: | |
@this_user.location_id) | |
@from_address = @map.from_location.as_json(:only => [:latitude, :longitude]) |
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
/* | |
* This is a manifest file that'll be compiled into application.css, which will include all the files | |
* listed below. | |
* | |
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, | |
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. | |
* | |
* You're free to add application-wide styles to this file and they'll appear at the top of the | |
* compiled file, but it's generally better to create a new file per style scope. | |
* |
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 show | |
@textbook = Textbook.find(params[:id]) | |
@this_user = User.find_by_id(session[:user_id]) | |
@textbook.user_textbook_statuses.each do |attribute| | |
@map = Map.new(:to_location_id => attribute.user.location_id, :from_location_id => | |
@this_user.location_id) | |
@from_address = @map.from_location.as_json(:only => [:latitude, :longitude]) | |
@to_address = @map.to_location.as_json(:only => [:latitude, :longitude]) |
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 show | |
@map = Map.find(params[:id]) | |
loc_one = @map.to_location_id.as_json(:only => [:latitude, :longitude]) | |
loc_two = @map.from_location_id.as_json(:only => [:latitude, :longitude]) | |
dave_loc = [ loc_one, loc_two] | |
dave_loc = dave_loc.map do |marker| | |
{ lng: marker['longitude'], lat: marker['latitude'] } | |
end | |
map = [ dave_loc ] | |
@mapz = map.to_json |
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 show | |
@map = Map.find(params[:id]) | |
loc_one = @map.from_location_id.as_json(:only => [:latitude, :longitude]) | |
loc_two = @map.to_location_id.as_json(:only => [:latitude, :longitude]) | |
dave_loc = [ loc_one, loc_two ] | |
dave_loc = dave_loc.map do |marker| | |
{ lng: marker['longitude'], lat: marker['latitude'] } | |
end | |
map = [ dave_loc ] | |
@mapz = map.to_json |
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
<ul id="markers_list"> | |
<%= gmaps({ | |
"map_options" => { "auto_zoom" => true }, | |
"markers" => { "data" => @markers, "options" => { "draggable" => true} } | |
}) | |
%> | |
</ul> | |
#if I just have "zoom" and change the value it does not change anything. |
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
source "http://rubygems.org" | |
gem "rails", "3.0.7" | |
gem "active_hash" | |
gem "dynamic_form" | |
gem "formtastic" | |
gem "geocoder", ">= 1.0.1" | |
gem "humanizer" | |
gem 'httparty' |
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
//the text should initially be hidden, then when you click the link, it should show the text. | |
//weird thing is: for another section of the website, it works just fine. Thoughts? | |
//this is the one that works fine: | |
$("#about.faq .question h3 a").click(function(event){ | |
event.preventDefault(); | |
$(this).parents(".question").children(".answer").slideToggle(100); | |
$(this).toggleClass("active"); |
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
= render :partial => "shared/sidebar_nav" | |
#about.static | |
.page-header | |
%h1 Bulk Buying | |
%section.content | |
%p.cursive Give the Gift of Choice! | |
%p CouponTrade now offers access to over 300 nationally recognized gift card brands. We have established direct relationships with key distributors to ensure that you receive maximum discounts. | |
%p If you're looking to upload Daily Deals and Gift Cards by the boatload, just give one of our listing representatives a shout and we'll walk you through the process. | |
%p.bold |
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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="static/bulk_order_form_style.scss" /> | |
</head> | |
<body> | |
<div class="container"> | |
...content |
OlderNewer