Skip to content

Instantly share code, notes, and snippets.

View oseifrimpong's full-sized avatar
🎯
Focus

Obed Osei Frimpong oseifrimpong

🎯
Focus
View GitHub Profile
require 'adwords_api'
class LoginController < ApplicationController
skip_before_filter :authenticate
GOOGLE_LOGOUT_URL = 'https://www.google.com/accounts/Logout'
def prompt()
api = get_adwords_api()
AdwordsOnRails::Application.routes.draw do
# The priority is based upon order of creation:
# first created -> highest priority.
get 'login/prompt'
get 'login/callback'
get 'login/logout'
class HomeController < ApplicationController
def index()
@selected_account = selected_account
end
end
app/controllers/targeting_controller.rb:8:in `show'
actionpack (3.2.15) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.15) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.15) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.15) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.2.15) lib/active_support/callbacks.rb:425:in `_run__2958441726183771221__process_action__3009639004342221532__callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.15) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.15) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.15) lib/abstract_controller/callbacks.rb:17:in `process_action'
1) User Pages signup page
Failure/Error: it { should have_selector('title', text: full_title('Sign up'))}
expected #has_selector?("title", {:text=>"Ruby on Rails Tutorial Sample App | Sign up"}) to return true, got false
# ./spec/requests/user_pages_spec.rb:12:in `block (3 levels) in <top (required)>'
2) Static pages Home page it should behave like all static pages
Failure/Error: it { should have_selector('title', content: full_title(page_title)) }
ArgumentError:
invalid keys :content, should be one of :text, :visible, :between, :count, :maximum, :minimum
Shared Example Group: "all static pages" called from ./spec/requests/static_pages_spec.rb:18
@oseifrimpong
oseifrimpong / gist:7546578
Created November 19, 2013 14:57
Error after running "gem install rails"
ERROR: While executing gem ... (OpenSSL::SSL::SSLError)
SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: wrong version number
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.1'
#Use PostgreSQL
group :production do
gem 'pg', '0.17.0'
end
<header class = "navbar navbar-fixed-top">
<div class = "navbar-inner">
<div class ="container">
<%= link_to "SCUTISU", scut_home_path, id: "logo" %>
<nav>
<ul class ="nav pull-right">
<li><%= link_to "Home", scut_home_path %></li>
<li><%= link_to "About Us", scut_aboutus_path %></li>
<li><%= link_to "Contact Us", scut_contactus_path %></li>
<li><%= link_to "Sign in", "#" %></li>
<h2>Sign up</h2>
<!--<% resource.profile || resource.build_profile %> -->
<% resource.build_profile %>
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
<%= devise_error_messages! %>
<div class="field">
<%= f.label :email %><br />
<%= f.email_field :email, autofocus: true %>
http://www.oreilly.com/data/free/files/2014-data-science-salary-survey.pdf
http://www.oreilly.com/data/free/files/2015-data-science-salary-survey.pdf
http://www.oreilly.com/data/free/files/Data_Analytics_in_Sports.pdf
http://www.oreilly.com/data/free/files/advancing-procurement-analytics.pdf
http://www.oreilly.com/data/free/files/ai-and-medicine.pdf
http://www.oreilly.com/data/free/files/analyzing-data-in-the-internet-of-things.pdf
http://www.oreilly.com/data/free/files/analyzing-the-analyzers.pdf
http://www.oreilly.com/data/free/files/architecting-data-lakes.pdf
http://www.oreilly.com/data/free/files/being-a-data-skeptic.pdf
http://www.oreilly.com/data/free/files/big-data-analytics-emerging-architecture.pdf