From 054174c68e22c82008f73ab02339b2b717519d4d Mon Sep 17 00:00:00 2001 From: basnal Date: Wed, 18 Jun 2014 17:17:36 +0530 Subject: [PATCH 01/43] Initial Bootstrap setup and gems configuration --- .gitignore | 4 + Gemfile | 58 +++++++++ Gemfile.lock | 123 ++++++++++++++++++ Gemfile~ | 38 ++++++ README.rdoc | 28 ++++ Rakefile | 6 + app/assets/images/.keep | 0 app/assets/javascripts/application.js | 16 +++ app/assets/stylesheets/application.css | 15 +++ app/controllers/application_controller.rb | 5 + app/controllers/concerns/.keep | 0 app/helpers/application_helper.rb | 2 + app/mailers/.keep | 0 app/models/.keep | 0 app/models/concerns/.keep | 0 app/views/layouts/application.html.erb | 14 ++ bin/bundle | 3 + bin/rails | 8 ++ bin/rake | 8 ++ bin/spring | 18 +++ config.ru | 4 + config/application.rb | 30 +++++ config/boot.rb | 4 + config/environment.rb | 5 + config/initializers/backtrace_silencers.rb | 7 + config/initializers/cookies_serializer.rb | 3 + .../initializers/filter_parameter_logging.rb | 4 + config/initializers/inflections.rb | 16 +++ config/initializers/mime_types.rb | 4 + config/initializers/session_store.rb | 3 + config/initializers/wrap_parameters.rb | 9 ++ config/locales/en.yml | 23 ++++ config/routes.rb | 56 ++++++++ config/secrets.yml | 22 ++++ db/seeds.rb | 7 + lib/assets/.keep | 0 lib/tasks/.keep | 0 log/.keep | 0 public/404.html | 67 ++++++++++ public/422.html | 67 ++++++++++ public/500.html | 66 ++++++++++ public/favicon.ico | 0 public/robots.txt | 5 + test/controllers/.keep | 0 test/fixtures/.keep | 0 test/helpers/.keep | 0 test/integration/.keep | 0 test/mailers/.keep | 0 test/models/.keep | 0 test/test_helper.rb | 7 + vendor/assets/javascripts/.keep | 0 vendor/assets/stylesheets/.keep | 0 52 files changed, 755 insertions(+) create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 Gemfile~ create mode 100644 README.rdoc create mode 100644 Rakefile create mode 100644 app/assets/images/.keep create mode 100644 app/assets/javascripts/application.js create mode 100644 app/assets/stylesheets/application.css create mode 100644 app/controllers/application_controller.rb create mode 100644 app/controllers/concerns/.keep create mode 100644 app/helpers/application_helper.rb create mode 100644 app/mailers/.keep create mode 100644 app/models/.keep create mode 100644 app/models/concerns/.keep create mode 100644 app/views/layouts/application.html.erb create mode 100755 bin/bundle create mode 100755 bin/rails create mode 100755 bin/rake create mode 100755 bin/spring create mode 100644 config.ru create mode 100644 config/application.rb create mode 100644 config/boot.rb create mode 100644 config/environment.rb create mode 100644 config/initializers/backtrace_silencers.rb create mode 100644 config/initializers/cookies_serializer.rb create mode 100644 config/initializers/filter_parameter_logging.rb create mode 100644 config/initializers/inflections.rb create mode 100644 config/initializers/mime_types.rb create mode 100644 config/initializers/session_store.rb create mode 100644 config/initializers/wrap_parameters.rb create mode 100644 config/locales/en.yml create mode 100644 config/routes.rb create mode 100644 config/secrets.yml create mode 100644 db/seeds.rb create mode 100644 lib/assets/.keep create mode 100644 lib/tasks/.keep create mode 100644 log/.keep create mode 100644 public/404.html create mode 100644 public/422.html create mode 100644 public/500.html create mode 100644 public/favicon.ico create mode 100644 public/robots.txt create mode 100644 test/controllers/.keep create mode 100644 test/fixtures/.keep create mode 100644 test/helpers/.keep create mode 100644 test/integration/.keep create mode 100644 test/mailers/.keep create mode 100644 test/models/.keep create mode 100644 test/test_helper.rb create mode 100644 vendor/assets/javascripts/.keep create mode 100644 vendor/assets/stylesheets/.keep diff --git a/.gitignore b/.gitignore index f2c1360..4261b76 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,7 @@ build/ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: .rvmrc + +# Ignore vim backup files +*~ +*.swp diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..aa67001 --- /dev/null +++ b/Gemfile @@ -0,0 +1,58 @@ +source 'https://rubygems.org' + +ruby '2.1.2' +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '4.1.1' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 4.0.3' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .js.coffee assets and views +gem 'coffee-rails', '~> 4.0.0' +# See https://github.com/sstephenson/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks +gem 'turbolinks' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.0' +# bundle exec rake doc:rails generates the API under doc/api. +gem 'sdoc', '~> 0.4.0', group: :doc + +# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring +gem 'spring', group: :development + +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use unicorn as the app server +# gem 'unicorn' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +# Use debugger +# gem 'debugger', group: [:development, :test] + +# Use google_drive to read/write files or spreadsheets from google drive +gem 'google_drive' + +# Use sendrid to access sendgrid api to send mails and get their status +gem 'sendgrid' + +# Use sidekiq to utilise redis database to maintain background processes +gem 'sidekiq' + +# Use devise for email singup +gem 'devise' + +# Use mongoid to utilise mongodb +gem 'mongoid', github: 'mongoid/mongoid' + +# Use devise_invitable to give authentication to only invited users +gem 'devise_invitable' + +# Use bootstrap to generate quick, elegent and responsive layouts +gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..f926098 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,123 @@ +GEM + remote: https://rubygems.org/ + specs: + actionmailer (4.1.1) + actionpack (= 4.1.1) + actionview (= 4.1.1) + mail (~> 2.5.4) + actionpack (4.1.1) + actionview (= 4.1.1) + activesupport (= 4.1.1) + rack (~> 1.5.2) + rack-test (~> 0.6.2) + actionview (4.1.1) + activesupport (= 4.1.1) + builder (~> 3.1) + erubis (~> 2.7.0) + activemodel (4.1.1) + activesupport (= 4.1.1) + builder (~> 3.1) + activerecord (4.1.1) + activemodel (= 4.1.1) + activesupport (= 4.1.1) + arel (~> 5.0.0) + activesupport (4.1.1) + i18n (~> 0.6, >= 0.6.9) + json (~> 1.7, >= 1.7.7) + minitest (~> 5.1) + thread_safe (~> 0.1) + tzinfo (~> 1.1) + arel (5.0.1.20140414130214) + builder (3.2.2) + coffee-rails (4.0.1) + coffee-script (>= 2.2.0) + railties (>= 4.0.0, < 5.0) + coffee-script (2.2.0) + coffee-script-source + execjs + coffee-script-source (1.7.0) + erubis (2.7.0) + execjs (2.2.0) + hike (1.2.3) + i18n (0.6.9) + jbuilder (2.1.1) + activesupport (>= 3.0.0, < 5) + multi_json (~> 1.2) + jquery-rails (3.1.0) + railties (>= 3.0, < 5.0) + thor (>= 0.14, < 2.0) + json (1.8.1) + mail (2.5.4) + mime-types (~> 1.16) + treetop (~> 1.4.8) + mime-types (1.25.1) + minitest (5.3.5) + multi_json (1.10.1) + polyglot (0.3.5) + rack (1.5.2) + rack-test (0.6.2) + rack (>= 1.0) + rails (4.1.1) + actionmailer (= 4.1.1) + actionpack (= 4.1.1) + actionview (= 4.1.1) + activemodel (= 4.1.1) + activerecord (= 4.1.1) + activesupport (= 4.1.1) + bundler (>= 1.3.0, < 2.0) + railties (= 4.1.1) + sprockets-rails (~> 2.0) + railties (4.1.1) + actionpack (= 4.1.1) + activesupport (= 4.1.1) + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (10.3.2) + rdoc (4.1.1) + json (~> 1.4) + sass (3.2.19) + sass-rails (4.0.3) + railties (>= 4.0.0, < 5.0) + sass (~> 3.2.0) + sprockets (~> 2.8, <= 2.11.0) + sprockets-rails (~> 2.0) + sdoc (0.4.0) + json (~> 1.8) + rdoc (~> 4.0, < 5.0) + spring (1.1.3) + sprockets (2.11.0) + hike (~> 1.2) + multi_json (~> 1.0) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) + sprockets-rails (2.1.3) + actionpack (>= 3.0) + activesupport (>= 3.0) + sprockets (~> 2.8) + thor (0.19.1) + thread_safe (0.3.4) + tilt (1.4.1) + treetop (1.4.15) + polyglot + polyglot (>= 0.3.1) + turbolinks (2.2.2) + coffee-rails + tzinfo (1.2.1) + thread_safe (~> 0.1) + uglifier (2.5.1) + execjs (>= 0.3.0) + json (>= 1.8.0) + +PLATFORMS + ruby + +DEPENDENCIES + coffee-rails (~> 4.0.0) + jbuilder (~> 2.0) + jquery-rails + rails (= 4.1.1) + sass-rails (~> 4.0.3) + sdoc (~> 0.4.0) + spring + turbolinks + uglifier (>= 1.3.0) diff --git a/Gemfile~ b/Gemfile~ new file mode 100644 index 0000000..b398e47 --- /dev/null +++ b/Gemfile~ @@ -0,0 +1,38 @@ +source 'https://rubygems.org' + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '4.1.1' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 4.0.3' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .js.coffee assets and views +gem 'coffee-rails', '~> 4.0.0' +# See https://github.com/sstephenson/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks +gem 'turbolinks' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.0' +# bundle exec rake doc:rails generates the API under doc/api. +gem 'sdoc', '~> 0.4.0', group: :doc + +# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring +gem 'spring', group: :development + +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use unicorn as the app server +# gem 'unicorn' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +# Use debugger +# gem 'debugger', group: [:development, :test] + diff --git a/README.rdoc b/README.rdoc new file mode 100644 index 0000000..dd4e97e --- /dev/null +++ b/README.rdoc @@ -0,0 +1,28 @@ +== README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... + + +Please feel free to use a different markup language if you do not plan to run +rake doc:app. diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..ba6b733 --- /dev/null +++ b/Rakefile @@ -0,0 +1,6 @@ +# Add your own tasks in files placed in lib/tasks ending in .rake, +# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. + +require File.expand_path('../config/application', __FILE__) + +Rails.application.load_tasks diff --git a/app/assets/images/.keep b/app/assets/images/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js new file mode 100644 index 0000000..d6925fa --- /dev/null +++ b/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// This is a manifest file that'll be compiled into application.js, which will include all the files +// listed below. +// +// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, +// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. +// +// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the +// compiled file. +// +// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 0000000..a443db3 --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 bottom of the + * compiled file so the styles you add here take precedence over styles defined in any styles + * defined in the other CSS/SCSS files in this directory. It is generally better to create a new + * file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 0000000..d83690e --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,5 @@ +class ApplicationController < ActionController::Base + # Prevent CSRF attacks by raising an exception. + # For APIs, you may want to use :null_session instead. + protect_from_forgery with: :exception +end diff --git a/app/controllers/concerns/.keep b/app/controllers/concerns/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 0000000..de6be79 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/app/mailers/.keep b/app/mailers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/models/.keep b/app/models/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 0000000..9797e73 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + Lightair + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> + <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> + <%= csrf_meta_tags %> + + + +<%= yield %> + + + diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 0000000..66e9889 --- /dev/null +++ b/bin/bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) +load Gem.bin_path('bundler', 'bundle') diff --git a/bin/rails b/bin/rails new file mode 100755 index 0000000..7feb6a3 --- /dev/null +++ b/bin/rails @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby +begin + load File.expand_path("../spring", __FILE__) +rescue LoadError +end +APP_PATH = File.expand_path('../../config/application', __FILE__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/bin/rake b/bin/rake new file mode 100755 index 0000000..8017a02 --- /dev/null +++ b/bin/rake @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby +begin + load File.expand_path("../spring", __FILE__) +rescue LoadError +end +require_relative '../config/boot' +require 'rake' +Rake.application.run diff --git a/bin/spring b/bin/spring new file mode 100755 index 0000000..253ec37 --- /dev/null +++ b/bin/spring @@ -0,0 +1,18 @@ +#!/usr/bin/env ruby + +# This file loads spring without using Bundler, in order to be fast +# It gets overwritten when you run the `spring binstub` command + +unless defined?(Spring) + require "rubygems" + require "bundler" + + if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m) + ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR) + ENV["GEM_HOME"] = "" + Gem.paths = ENV + + gem "spring", match[1] + require "spring/binstub" + end +end diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..5bc2a61 --- /dev/null +++ b/config.ru @@ -0,0 +1,4 @@ +# This file is used by Rack-based servers to start the application. + +require ::File.expand_path('../config/environment', __FILE__) +run Rails.application diff --git a/config/application.rb b/config/application.rb new file mode 100644 index 0000000..dac71b1 --- /dev/null +++ b/config/application.rb @@ -0,0 +1,30 @@ +require File.expand_path('../boot', __FILE__) + +# Pick the frameworks you want: +require "active_model/railtie" +# require "active_record/railtie" +require "action_controller/railtie" +require "action_mailer/railtie" +require "action_view/railtie" +require "sprockets/railtie" +require "rails/test_unit/railtie" + +# Require the gems listed in Gemfile, including any gems +# you've limited to :test, :development, or :production. +Bundler.require(*Rails.groups) + +module Lightair + class Application < Rails::Application + # Settings in config/environments/* take precedence over those specified here. + # Application configuration should go into files in config/initializers + # -- all .rb files in that directory are automatically loaded. + + # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. + # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. + # config.time_zone = 'Central Time (US & Canada)' + + # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. + # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] + # config.i18n.default_locale = :de + end +end diff --git a/config/boot.rb b/config/boot.rb new file mode 100644 index 0000000..5e5f0c1 --- /dev/null +++ b/config/boot.rb @@ -0,0 +1,4 @@ +# Set up gems listed in the Gemfile. +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) + +require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) diff --git a/config/environment.rb b/config/environment.rb new file mode 100644 index 0000000..ee8d90d --- /dev/null +++ b/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require File.expand_path('../application', __FILE__) + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb new file mode 100644 index 0000000..59385cd --- /dev/null +++ b/config/initializers/backtrace_silencers.rb @@ -0,0 +1,7 @@ +# Be sure to restart your server when you modify this file. + +# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. +# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } + +# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. +# Rails.backtrace_cleaner.remove_silencers! diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..7a06a89 --- /dev/null +++ b/config/initializers/cookies_serializer.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.action_dispatch.cookies_serializer = :json \ No newline at end of file diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb new file mode 100644 index 0000000..4a994e1 --- /dev/null +++ b/config/initializers/filter_parameter_logging.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Configure sensitive parameters which will be filtered from the log file. +Rails.application.config.filter_parameters += [:password] diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb new file mode 100644 index 0000000..ac033bf --- /dev/null +++ b/config/initializers/inflections.rb @@ -0,0 +1,16 @@ +# Be sure to restart your server when you modify this file. + +# Add new inflection rules using the following format. Inflections +# are locale specific, and you may define rules for as many different +# locales as you wish. All of these examples are active by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.plural /^(ox)$/i, '\1en' +# inflect.singular /^(ox)en/i, '\1' +# inflect.irregular 'person', 'people' +# inflect.uncountable %w( fish sheep ) +# end + +# These inflection rules are supported but not enabled by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.acronym 'RESTful' +# end diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb new file mode 100644 index 0000000..dc18996 --- /dev/null +++ b/config/initializers/mime_types.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Add new mime types for use in respond_to blocks: +# Mime::Type.register "text/richtext", :rtf diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb new file mode 100644 index 0000000..f799bd4 --- /dev/null +++ b/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_lightair_session' diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..b81ea74 --- /dev/null +++ b/config/initializers/wrap_parameters.rb @@ -0,0 +1,9 @@ +# Be sure to restart your server when you modify this file. + +# This file contains settings for ActionController::ParamsWrapper which +# is enabled by default. + +# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. +ActiveSupport.on_load(:action_controller) do + wrap_parameters format: [:json] if respond_to?(:wrap_parameters) +end diff --git a/config/locales/en.yml b/config/locales/en.yml new file mode 100644 index 0000000..0653957 --- /dev/null +++ b/config/locales/en.yml @@ -0,0 +1,23 @@ +# Files in the config/locales directory are used for internationalization +# and are automatically loaded by Rails. If you want to use locales other +# than English, add the necessary files in this directory. +# +# To use the locales, use `I18n.t`: +# +# I18n.t 'hello' +# +# In views, this is aliased to just `t`: +# +# <%= t('hello') %> +# +# To use a different locale, set it with `I18n.locale`: +# +# I18n.locale = :es +# +# This would use the information in config/locales/es.yml. +# +# To learn more, please read the Rails Internationalization guide +# available at http://guides.rubyonrails.org/i18n.html. + +en: + hello: "Hello world" diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 0000000..3f66539 --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,56 @@ +Rails.application.routes.draw do + # The priority is based upon order of creation: first created -> highest priority. + # See how all your routes lay out with "rake routes". + + # You can have the root of your site routed with "root" + # root 'welcome#index' + + # Example of regular route: + # get 'products/:id' => 'catalog#view' + + # Example of named route that can be invoked with purchase_url(id: product.id) + # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase + + # Example resource route (maps HTTP verbs to controller actions automatically): + # resources :products + + # Example resource route with options: + # resources :products do + # member do + # get 'short' + # post 'toggle' + # end + # + # collection do + # get 'sold' + # end + # end + + # Example resource route with sub-resources: + # resources :products do + # resources :comments, :sales + # resource :seller + # end + + # Example resource route with more complex sub-resources: + # resources :products do + # resources :comments + # resources :sales do + # get 'recent', on: :collection + # end + # end + + # Example resource route with concerns: + # concern :toggleable do + # post 'toggle' + # end + # resources :posts, concerns: :toggleable + # resources :photos, concerns: :toggleable + + # Example resource route within a namespace: + # namespace :admin do + # # Directs /admin/products/* to Admin::ProductsController + # # (app/controllers/admin/products_controller.rb) + # resources :products + # end +end diff --git a/config/secrets.yml b/config/secrets.yml new file mode 100644 index 0000000..65c9908 --- /dev/null +++ b/config/secrets.yml @@ -0,0 +1,22 @@ +# Be sure to restart your server when you modify this file. + +# Your secret key is used for verifying the integrity of signed cookies. +# If you change this key, all old signed cookies will become invalid! + +# Make sure the secret is at least 30 characters and all random, +# no regular words or you'll be exposed to dictionary attacks. +# You can use `rake secret` to generate a secure secret key. + +# Make sure the secrets in this file are kept private +# if you're sharing your code publicly. + +development: + secret_key_base: ba56cbfc183e26b831f97cc64154a726d09a7517763815e6304f939496d1cb7594a031af40860c8351b5b2c41185d8a29b3df027f87de0be7ca386eeebb90b64 + +test: + secret_key_base: ca520995eeba3b88b77152f6cd1cb32c9ad0f597bff37801f72430d9041775232e781436969aed36a41417459d53bb36bbb6d98de00411e243e21b3be481082b + +# Do not keep production secrets in the repository, +# instead read values from the environment. +production: + secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> diff --git a/db/seeds.rb b/db/seeds.rb new file mode 100644 index 0000000..4edb1e8 --- /dev/null +++ b/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). +# +# Examples: +# +# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) +# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/lib/assets/.keep b/lib/assets/.keep new file mode 100644 index 0000000..e69de29 diff --git a/lib/tasks/.keep b/lib/tasks/.keep new file mode 100644 index 0000000..e69de29 diff --git a/log/.keep b/log/.keep new file mode 100644 index 0000000..e69de29 diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..b612547 --- /dev/null +++ b/public/404.html @@ -0,0 +1,67 @@ + + + + The page you were looking for doesn't exist (404) + + + + + + +
+
+

The page you were looking for doesn't exist.

+

You may have mistyped the address or the page may have moved.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/422.html b/public/422.html new file mode 100644 index 0000000..a21f82b --- /dev/null +++ b/public/422.html @@ -0,0 +1,67 @@ + + + + The change you wanted was rejected (422) + + + + + + +
+
+

The change you wanted was rejected.

+

Maybe you tried to change something you didn't have access to.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/500.html b/public/500.html new file mode 100644 index 0000000..061abc5 --- /dev/null +++ b/public/500.html @@ -0,0 +1,66 @@ + + + + We're sorry, but something went wrong (500) + + + + + + +
+
+

We're sorry, but something went wrong.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..3c9c7c0 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,5 @@ +# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file +# +# To ban all spiders from the entire site uncomment the next two lines: +# User-agent: * +# Disallow: / diff --git a/test/controllers/.keep b/test/controllers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/helpers/.keep b/test/helpers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/integration/.keep b/test/integration/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/mailers/.keep b/test/mailers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/models/.keep b/test/models/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 0000000..3acf9ae --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,7 @@ +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +require 'rails/test_help' + +class ActiveSupport::TestCase + # Add more helper methods to be used by all tests here... +end diff --git a/vendor/assets/javascripts/.keep b/vendor/assets/javascripts/.keep new file mode 100644 index 0000000..e69de29 diff --git a/vendor/assets/stylesheets/.keep b/vendor/assets/stylesheets/.keep new file mode 100644 index 0000000..e69de29 From 05045b376f4ee9a9b892f217b537af5ca005ff28 Mon Sep 17 00:00:00 2001 From: basnal Date: Wed, 18 Jun 2014 18:04:49 +0530 Subject: [PATCH 02/43] Fixes #1 --- Gemfile | 2 +- Gemfile.lock | 87 +++++++++++++++++++++++++++++++++++++++++++++ Gemfile~ | 38 -------------------- log/development.log | 6 ++++ 4 files changed, 94 insertions(+), 39 deletions(-) delete mode 100644 Gemfile~ create mode 100644 log/development.log diff --git a/Gemfile b/Gemfile index aa67001..3c14aad 100644 --- a/Gemfile +++ b/Gemfile @@ -10,7 +10,7 @@ gem 'uglifier', '>= 1.3.0' # Use CoffeeScript for .js.coffee assets and views gem 'coffee-rails', '~> 4.0.0' # See https://github.com/sstephenson/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby +gem 'therubyracer', platforms: :ruby # Use jquery as the JavaScript library gem 'jquery-rails' diff --git a/Gemfile.lock b/Gemfile.lock index f926098..c9f4fb7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,23 @@ +GIT + remote: git://github.com/mongoid/mongoid.git + revision: 1fcb8721b0222ad4de7677f69fbf543a3f75b5f4 + specs: + mongoid (4.0.0.rc2) + activemodel (~> 4.0) + moped (~> 2.0.0.rc2) + origin (~> 2.1) + tzinfo (>= 0.3.37) + +GIT + remote: git://github.com/seyhunak/twitter-bootstrap-rails.git + revision: 95de3b0e288aede73d38a18cce30cde66e733558 + specs: + twitter-bootstrap-rails (2.2.8) + actionpack (>= 3.1) + execjs + rails (>= 3.1) + railties (>= 3.1) + GEM remote: https://rubygems.org/ specs: @@ -28,7 +48,11 @@ GEM thread_safe (~> 0.1) tzinfo (~> 1.1) arel (5.0.1.20140414130214) + bcrypt (3.1.7) + bson (2.3.0) builder (3.2.2) + celluloid (0.15.2) + timers (~> 1.1.0) coffee-rails (4.0.1) coffee-script (>= 2.2.0) railties (>= 4.0.0, < 5.0) @@ -36,8 +60,24 @@ GEM coffee-script-source execjs coffee-script-source (1.7.0) + connection_pool (2.0.0) + devise (3.2.4) + bcrypt (~> 3.0) + orm_adapter (~> 0.1) + railties (>= 3.2.6, < 5) + thread_safe (~> 0.1) + warden (~> 1.2.3) + devise_invitable (1.3.5) + actionmailer (>= 3.2.6, < 5) + devise (>= 3.2.0) erubis (2.7.0) execjs (2.2.0) + faraday (0.9.0) + multipart-post (>= 1.2, < 3) + google_drive (0.3.9) + nokogiri (>= 1.4.4, != 1.5.2, != 1.5.1) + oauth (>= 0.3.6) + oauth2 (>= 0.5.0) hike (1.2.3) i18n (0.6.9) jbuilder (2.1.1) @@ -47,12 +87,33 @@ GEM railties (>= 3.0, < 5.0) thor (>= 0.14, < 2.0) json (1.8.1) + jwt (1.0.0) + libv8 (3.16.14.3) mail (2.5.4) mime-types (~> 1.16) treetop (~> 1.4.8) mime-types (1.25.1) + mini_portile (0.6.0) minitest (5.3.5) + moped (2.0.0.rc2) + bson (~> 2.2) + connection_pool (~> 2.0) + optionable (~> 0.2.0) multi_json (1.10.1) + multi_xml (0.5.5) + multipart-post (2.0.0) + nokogiri (1.6.2.1) + mini_portile (= 0.6.0) + oauth (0.4.7) + oauth2 (0.9.4) + faraday (>= 0.8, < 0.10) + jwt (~> 1.0) + multi_json (~> 1.3) + multi_xml (~> 0.5) + rack (~> 1.2) + optionable (0.2.0) + origin (2.1.1) + orm_adapter (0.5.0) polyglot (0.3.5) rack (1.5.2) rack-test (0.6.2) @@ -75,6 +136,10 @@ GEM rake (10.3.2) rdoc (4.1.1) json (~> 1.4) + redis (3.0.7) + redis-namespace (1.4.1) + redis (~> 3.0.4) + ref (1.0.5) sass (3.2.19) sass-rails (4.0.3) railties (>= 4.0.0, < 5.0) @@ -84,6 +149,14 @@ GEM sdoc (0.4.0) json (~> 1.8) rdoc (~> 4.0, < 5.0) + sendgrid (1.2.0) + json + sidekiq (3.1.4) + celluloid (>= 0.15.2) + connection_pool (>= 2.0.0) + json + redis (>= 3.0.6) + redis-namespace (>= 1.3.1) spring (1.1.3) sprockets (2.11.0) hike (~> 1.2) @@ -94,9 +167,13 @@ GEM actionpack (>= 3.0) activesupport (>= 3.0) sprockets (~> 2.8) + therubyracer (0.12.1) + libv8 (~> 3.16.14.0) + ref thor (0.19.1) thread_safe (0.3.4) tilt (1.4.1) + timers (1.1.0) treetop (1.4.15) polyglot polyglot (>= 0.3.1) @@ -107,17 +184,27 @@ GEM uglifier (2.5.1) execjs (>= 0.3.0) json (>= 1.8.0) + warden (1.2.3) + rack (>= 1.0) PLATFORMS ruby DEPENDENCIES coffee-rails (~> 4.0.0) + devise + devise_invitable + google_drive jbuilder (~> 2.0) jquery-rails + mongoid! rails (= 4.1.1) sass-rails (~> 4.0.3) sdoc (~> 0.4.0) + sendgrid + sidekiq spring + therubyracer turbolinks + twitter-bootstrap-rails! uglifier (>= 1.3.0) diff --git a/Gemfile~ b/Gemfile~ deleted file mode 100644 index b398e47..0000000 --- a/Gemfile~ +++ /dev/null @@ -1,38 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.1.1' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 4.0.3' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .js.coffee assets and views -gem 'coffee-rails', '~> 4.0.0' -# See https://github.com/sstephenson/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring -gem 'spring', group: :development - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -# Use debugger -# gem 'debugger', group: [:development, :test] - diff --git a/log/development.log b/log/development.log new file mode 100644 index 0000000..629bbdb --- /dev/null +++ b/log/development.log @@ -0,0 +1,6 @@ + + +Started GET "/" for 127.0.0.1 at 2014-06-18 18:02:58 +0530 +Processing by Rails::WelcomeController#index as HTML + Rendered /home/basnal/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/templates/rails/welcome/index.html.erb (10.6ms) +Completed 200 OK in 64ms (Views: 35.6ms) From 59e93204691cfc9e04086c3acb8a240fe2a22ca5 Mon Sep 17 00:00:00 2001 From: kanhaiya007 Date: Wed, 18 Jun 2014 18:25:57 +0530 Subject: [PATCH 03/43] Set the database and relations fixes #2 user and newsletter belongs to admin collection. --- Gemfile | 2 +- Gemfile.lock | 87 +++++++++++++++++++++++++++++++++ Gemfile~ | 38 -------------- app/models/admin.rb | 9 ++++ app/models/news_letter.rb | 9 ++++ app/models/user.rb | 12 +++++ log/development.log | 0 test/fixtures/admins.yml | 11 +++++ test/fixtures/news_letters.yml | 11 +++++ test/fixtures/users.yml | 11 +++++ test/models/admin_test.rb | 7 +++ test/models/news_letter_test.rb | 7 +++ test/models/user_test.rb | 7 +++ 13 files changed, 172 insertions(+), 39 deletions(-) delete mode 100644 Gemfile~ create mode 100644 app/models/admin.rb create mode 100644 app/models/news_letter.rb create mode 100644 app/models/user.rb create mode 100644 log/development.log create mode 100644 test/fixtures/admins.yml create mode 100644 test/fixtures/news_letters.yml create mode 100644 test/fixtures/users.yml create mode 100644 test/models/admin_test.rb create mode 100644 test/models/news_letter_test.rb create mode 100644 test/models/user_test.rb diff --git a/Gemfile b/Gemfile index aa67001..3c14aad 100644 --- a/Gemfile +++ b/Gemfile @@ -10,7 +10,7 @@ gem 'uglifier', '>= 1.3.0' # Use CoffeeScript for .js.coffee assets and views gem 'coffee-rails', '~> 4.0.0' # See https://github.com/sstephenson/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby +gem 'therubyracer', platforms: :ruby # Use jquery as the JavaScript library gem 'jquery-rails' diff --git a/Gemfile.lock b/Gemfile.lock index f926098..c9f4fb7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,23 @@ +GIT + remote: git://github.com/mongoid/mongoid.git + revision: 1fcb8721b0222ad4de7677f69fbf543a3f75b5f4 + specs: + mongoid (4.0.0.rc2) + activemodel (~> 4.0) + moped (~> 2.0.0.rc2) + origin (~> 2.1) + tzinfo (>= 0.3.37) + +GIT + remote: git://github.com/seyhunak/twitter-bootstrap-rails.git + revision: 95de3b0e288aede73d38a18cce30cde66e733558 + specs: + twitter-bootstrap-rails (2.2.8) + actionpack (>= 3.1) + execjs + rails (>= 3.1) + railties (>= 3.1) + GEM remote: https://rubygems.org/ specs: @@ -28,7 +48,11 @@ GEM thread_safe (~> 0.1) tzinfo (~> 1.1) arel (5.0.1.20140414130214) + bcrypt (3.1.7) + bson (2.3.0) builder (3.2.2) + celluloid (0.15.2) + timers (~> 1.1.0) coffee-rails (4.0.1) coffee-script (>= 2.2.0) railties (>= 4.0.0, < 5.0) @@ -36,8 +60,24 @@ GEM coffee-script-source execjs coffee-script-source (1.7.0) + connection_pool (2.0.0) + devise (3.2.4) + bcrypt (~> 3.0) + orm_adapter (~> 0.1) + railties (>= 3.2.6, < 5) + thread_safe (~> 0.1) + warden (~> 1.2.3) + devise_invitable (1.3.5) + actionmailer (>= 3.2.6, < 5) + devise (>= 3.2.0) erubis (2.7.0) execjs (2.2.0) + faraday (0.9.0) + multipart-post (>= 1.2, < 3) + google_drive (0.3.9) + nokogiri (>= 1.4.4, != 1.5.2, != 1.5.1) + oauth (>= 0.3.6) + oauth2 (>= 0.5.0) hike (1.2.3) i18n (0.6.9) jbuilder (2.1.1) @@ -47,12 +87,33 @@ GEM railties (>= 3.0, < 5.0) thor (>= 0.14, < 2.0) json (1.8.1) + jwt (1.0.0) + libv8 (3.16.14.3) mail (2.5.4) mime-types (~> 1.16) treetop (~> 1.4.8) mime-types (1.25.1) + mini_portile (0.6.0) minitest (5.3.5) + moped (2.0.0.rc2) + bson (~> 2.2) + connection_pool (~> 2.0) + optionable (~> 0.2.0) multi_json (1.10.1) + multi_xml (0.5.5) + multipart-post (2.0.0) + nokogiri (1.6.2.1) + mini_portile (= 0.6.0) + oauth (0.4.7) + oauth2 (0.9.4) + faraday (>= 0.8, < 0.10) + jwt (~> 1.0) + multi_json (~> 1.3) + multi_xml (~> 0.5) + rack (~> 1.2) + optionable (0.2.0) + origin (2.1.1) + orm_adapter (0.5.0) polyglot (0.3.5) rack (1.5.2) rack-test (0.6.2) @@ -75,6 +136,10 @@ GEM rake (10.3.2) rdoc (4.1.1) json (~> 1.4) + redis (3.0.7) + redis-namespace (1.4.1) + redis (~> 3.0.4) + ref (1.0.5) sass (3.2.19) sass-rails (4.0.3) railties (>= 4.0.0, < 5.0) @@ -84,6 +149,14 @@ GEM sdoc (0.4.0) json (~> 1.8) rdoc (~> 4.0, < 5.0) + sendgrid (1.2.0) + json + sidekiq (3.1.4) + celluloid (>= 0.15.2) + connection_pool (>= 2.0.0) + json + redis (>= 3.0.6) + redis-namespace (>= 1.3.1) spring (1.1.3) sprockets (2.11.0) hike (~> 1.2) @@ -94,9 +167,13 @@ GEM actionpack (>= 3.0) activesupport (>= 3.0) sprockets (~> 2.8) + therubyracer (0.12.1) + libv8 (~> 3.16.14.0) + ref thor (0.19.1) thread_safe (0.3.4) tilt (1.4.1) + timers (1.1.0) treetop (1.4.15) polyglot polyglot (>= 0.3.1) @@ -107,17 +184,27 @@ GEM uglifier (2.5.1) execjs (>= 0.3.0) json (>= 1.8.0) + warden (1.2.3) + rack (>= 1.0) PLATFORMS ruby DEPENDENCIES coffee-rails (~> 4.0.0) + devise + devise_invitable + google_drive jbuilder (~> 2.0) jquery-rails + mongoid! rails (= 4.1.1) sass-rails (~> 4.0.3) sdoc (~> 0.4.0) + sendgrid + sidekiq spring + therubyracer turbolinks + twitter-bootstrap-rails! uglifier (>= 1.3.0) diff --git a/Gemfile~ b/Gemfile~ deleted file mode 100644 index b398e47..0000000 --- a/Gemfile~ +++ /dev/null @@ -1,38 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.1.1' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 4.0.3' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .js.coffee assets and views -gem 'coffee-rails', '~> 4.0.0' -# See https://github.com/sstephenson/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring -gem 'spring', group: :development - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -# Use debugger -# gem 'debugger', group: [:development, :test] - diff --git a/app/models/admin.rb b/app/models/admin.rb new file mode 100644 index 0000000..106d7c1 --- /dev/null +++ b/app/models/admin.rb @@ -0,0 +1,9 @@ +class Admin + include Mongoid::Document + + field :email_id, type: String + field :password, type: String + + has_many :users + has_many :news_letters +end diff --git a/app/models/news_letter.rb b/app/models/news_letter.rb new file mode 100644 index 0000000..7b85f8e --- /dev/null +++ b/app/models/news_letter.rb @@ -0,0 +1,9 @@ +class NewsLetter + include Mongoid::Document + + field :letter, type: String + field :letter_date, type: Date + field :user_count, type: Integer + + belongs_to :admin +end diff --git a/app/models/user.rb b/app/models/user.rb new file mode 100644 index 0000000..76cd87d --- /dev/null +++ b/app/models/user.rb @@ -0,0 +1,12 @@ +class User + include Mongoid::Document + + field :email, type: String + field :subscription, type: Integer + field :sent, type: Integer + field :joining_date type: Date + field :leaving_date type: Date + field :source type: String + + belongs_to :admin +end diff --git a/log/development.log b/log/development.log new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/admins.yml b/test/fixtures/admins.yml new file mode 100644 index 0000000..937a0c0 --- /dev/null +++ b/test/fixtures/admins.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the '{}' from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/fixtures/news_letters.yml b/test/fixtures/news_letters.yml new file mode 100644 index 0000000..937a0c0 --- /dev/null +++ b/test/fixtures/news_letters.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the '{}' from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml new file mode 100644 index 0000000..937a0c0 --- /dev/null +++ b/test/fixtures/users.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the '{}' from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/models/admin_test.rb b/test/models/admin_test.rb new file mode 100644 index 0000000..ab20b8c --- /dev/null +++ b/test/models/admin_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class AdminTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/news_letter_test.rb b/test/models/news_letter_test.rb new file mode 100644 index 0000000..9bb49da --- /dev/null +++ b/test/models/news_letter_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class NewsLetterTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/user_test.rb b/test/models/user_test.rb new file mode 100644 index 0000000..82f61e0 --- /dev/null +++ b/test/models/user_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class UserTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end From a3e8c32b90d78197b7e879235a502114486a7dce Mon Sep 17 00:00:00 2001 From: basnal Date: Thu, 19 Jun 2014 10:17:52 +0530 Subject: [PATCH 04/43] Modifications of project and installing bootstrap --- .gitignore | 10 + .idea/.generators | 8 + .idea/.name | 1 + .idea/.rakeTasks | 7 + .idea/encodings.xml | 5 + .idea/lightair.iml | 208 ++++++++++ .idea/misc.xml | 5 + .idea/modules.xml | 9 + .idea/scopes/scope_settings.xml | 5 + .idea/vcs.xml | 7 + .idea/workspace.xml | 365 ++++++++++++++++++ .ruby-gemset | 1 + .ruby-version | 1 + Gemfile | 17 +- Gemfile.lock | 36 ++ app/assets/javascripts/application.js | 1 + app/assets/javascripts/bootstrap.js.coffee | 3 + .../bootstrap_and_overrides.css.less | 30 ++ config/locales/en.bootstrap.yml | 23 ++ config/routes.rb | 2 + log/.keep | 0 log/development.log | 6 - test/controllers/.keep | 0 test/fixtures/.keep | 0 test/helpers/.keep | 0 test/integration/.keep | 0 test/mailers/.keep | 0 test/models/.keep | 0 test/test_helper.rb | 7 - 29 files changed, 743 insertions(+), 14 deletions(-) create mode 100644 .idea/.generators create mode 100644 .idea/.name create mode 100644 .idea/.rakeTasks create mode 100644 .idea/encodings.xml create mode 100644 .idea/lightair.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/scopes/scope_settings.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 .ruby-gemset create mode 100644 .ruby-version create mode 100644 app/assets/javascripts/bootstrap.js.coffee create mode 100644 app/assets/stylesheets/bootstrap_and_overrides.css.less create mode 100644 config/locales/en.bootstrap.yml delete mode 100644 log/.keep delete mode 100644 log/development.log delete mode 100644 test/controllers/.keep delete mode 100644 test/fixtures/.keep delete mode 100644 test/helpers/.keep delete mode 100644 test/integration/.keep delete mode 100644 test/mailers/.keep delete mode 100644 test/models/.keep delete mode 100644 test/test_helper.rb diff --git a/.gitignore b/.gitignore index 4261b76..7bc9ce4 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,13 @@ build/ # Ignore vim backup files *~ *.swp + +# Ignore log files + +# Ignore the default SQLite database. + /db/*.sqlite3 + /db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. + /log/*.log + /tmp diff --git a/.idea/.generators b/.idea/.generators new file mode 100644 index 0000000..b480c66 --- /dev/null +++ b/.idea/.generators @@ -0,0 +1,8 @@ + + diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..e0a25a1 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +lightair \ No newline at end of file diff --git a/.idea/.rakeTasks b/.idea/.rakeTasks new file mode 100644 index 0000000..e451b9d --- /dev/null +++ b/.idea/.rakeTasks @@ -0,0 +1,7 @@ + + diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..e206d70 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/.idea/lightair.iml b/.idea/lightair.iml new file mode 100644 index 0000000..23a5c98 --- /dev/null +++ b/.idea/lightair.iml @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..60c08cc --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..87859e9 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml new file mode 100644 index 0000000..922003b --- /dev/null +++ b/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..c80f219 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..a74f85b --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,365 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1403152138930 + 1403152138930 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.ruby-gemset b/.ruby-gemset new file mode 100644 index 0000000..ec08bc5 --- /dev/null +++ b/.ruby-gemset @@ -0,0 +1 @@ +lightair diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..eca07e4 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.1.2 diff --git a/Gemfile b/Gemfile index 3c14aad..5f14024 100644 --- a/Gemfile +++ b/Gemfile @@ -55,4 +55,19 @@ gem 'mongoid', github: 'mongoid/mongoid' gem 'devise_invitable' # Use bootstrap to generate quick, elegent and responsive layouts -gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git' +gem 'twitter-bootstrap-rails', github: 'seyhunak/twitter-bootstrap-rails' + +# The following gems for testing purpose in development and testing environment +group :development, :test do +# Rspec is used to write the test cases + gem 'rspec-rails', '~> 3.0.0' +# Use factory girl to pass random data for test cases + gem 'factory_girl_rails' +# Use faker to generate fake strings and data + gem 'faker' +# Use to clean database after executing a test case + gem 'database_cleaner' +# Use to track how much code has been tested + gem 'simplecov' +end + diff --git a/Gemfile.lock b/Gemfile.lock index c9f4fb7..9346425 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -61,6 +61,7 @@ GEM execjs coffee-script-source (1.7.0) connection_pool (2.0.0) + database_cleaner (1.3.0) devise (3.2.4) bcrypt (~> 3.0) orm_adapter (~> 0.1) @@ -70,8 +71,17 @@ GEM devise_invitable (1.3.5) actionmailer (>= 3.2.6, < 5) devise (>= 3.2.0) + diff-lcs (1.2.5) + docile (1.1.5) erubis (2.7.0) execjs (2.2.0) + factory_girl (4.4.0) + activesupport (>= 3.0.0) + factory_girl_rails (4.4.1) + factory_girl (~> 4.4.0) + railties (>= 3.0.0) + faker (1.3.0) + i18n (~> 0.5) faraday (0.9.0) multipart-post (>= 1.2, < 3) google_drive (0.3.9) @@ -140,6 +150,22 @@ GEM redis-namespace (1.4.1) redis (~> 3.0.4) ref (1.0.5) + rspec-core (3.0.1) + rspec-support (~> 3.0.0) + rspec-expectations (3.0.1) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.0.0) + rspec-mocks (3.0.1) + rspec-support (~> 3.0.0) + rspec-rails (3.0.1) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 3.0.0) + rspec-expectations (~> 3.0.0) + rspec-mocks (~> 3.0.0) + rspec-support (~> 3.0.0) + rspec-support (3.0.0) sass (3.2.19) sass-rails (4.0.3) railties (>= 4.0.0, < 5.0) @@ -157,6 +183,11 @@ GEM json redis (>= 3.0.6) redis-namespace (>= 1.3.1) + simplecov (0.8.2) + docile (~> 1.1.0) + multi_json + simplecov-html (~> 0.8.0) + simplecov-html (0.8.0) spring (1.1.3) sprockets (2.11.0) hike (~> 1.2) @@ -192,17 +223,22 @@ PLATFORMS DEPENDENCIES coffee-rails (~> 4.0.0) + database_cleaner devise devise_invitable + factory_girl_rails + faker google_drive jbuilder (~> 2.0) jquery-rails mongoid! rails (= 4.1.1) + rspec-rails (~> 3.0.0) sass-rails (~> 4.0.3) sdoc (~> 0.4.0) sendgrid sidekiq + simplecov spring therubyracer turbolinks diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index d6925fa..3885622 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -12,5 +12,6 @@ // //= require jquery //= require jquery_ujs +//= require twitter/bootstrap //= require turbolinks //= require_tree . diff --git a/app/assets/javascripts/bootstrap.js.coffee b/app/assets/javascripts/bootstrap.js.coffee new file mode 100644 index 0000000..9440679 --- /dev/null +++ b/app/assets/javascripts/bootstrap.js.coffee @@ -0,0 +1,3 @@ +jQuery -> + $("a[rel~=popover], .has-popover").popover() + $("a[rel~=tooltip], .has-tooltip").tooltip() diff --git a/app/assets/stylesheets/bootstrap_and_overrides.css.less b/app/assets/stylesheets/bootstrap_and_overrides.css.less new file mode 100644 index 0000000..6baf0ce --- /dev/null +++ b/app/assets/stylesheets/bootstrap_and_overrides.css.less @@ -0,0 +1,30 @@ +@import "twitter/bootstrap/bootstrap"; +@import "twitter/bootstrap/responsive"; + +// Set the correct sprite paths +@iconSpritePath: image-url("twitter/bootstrap/glyphicons-halflings.png"); +@iconWhiteSpritePath: image-url("twitter/bootstrap/glyphicons-halflings-white.png"); + +// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines) +@fontAwesomeEotPath: font-url("fontawesome-webfont.eot"); +@fontAwesomeEotPath_iefix: font-url("fontawesome-webfont.eot?#iefix"); +@fontAwesomeWoffPath: font-url("fontawesome-webfont.woff"); +@fontAwesomeTtfPath: font-url("fontawesome-webfont.ttf"); +@fontAwesomeSvgPath: font-url("fontawesome-webfont.svg#fontawesomeregular"); + +// Font Awesome +@import "fontawesome/font-awesome"; + +// Glyphicons +//@import "twitter/bootstrap/sprites.less"; + +// Your custom LESS stylesheets goes here +// +// Since bootstrap was imported above you have access to its mixins which +// you may use and inherit here +// +// If you'd like to override bootstrap's own variables, you can do so here as well +// See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation +// +// Example: +// @linkColor: #ff0000; diff --git a/config/locales/en.bootstrap.yml b/config/locales/en.bootstrap.yml new file mode 100644 index 0000000..8d75119 --- /dev/null +++ b/config/locales/en.bootstrap.yml @@ -0,0 +1,23 @@ +# Sample localization file for English. Add more files in this directory for other locales. +# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. + +en: + breadcrumbs: + application: + root: "Index" + pages: + pages: "Pages" + helpers: + actions: "Actions" + links: + back: "Back" + cancel: "Cancel" + confirm: "Are you sure?" + destroy: "Delete" + new: "New" + edit: "Edit" + titles: + edit: "Edit %{model}" + save: "Save %{model}" + new: "New %{model}" + delete: "Delete %{model}" diff --git a/config/routes.rb b/config/routes.rb index 3f66539..acd9154 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,6 @@ Rails.application.routes.draw do + resources :users + root to: "users#index" # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". diff --git a/log/.keep b/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/log/development.log b/log/development.log deleted file mode 100644 index 629bbdb..0000000 --- a/log/development.log +++ /dev/null @@ -1,6 +0,0 @@ - - -Started GET "/" for 127.0.0.1 at 2014-06-18 18:02:58 +0530 -Processing by Rails::WelcomeController#index as HTML - Rendered /home/basnal/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/templates/rails/welcome/index.html.erb (10.6ms) -Completed 200 OK in 64ms (Views: 35.6ms) diff --git a/test/controllers/.keep b/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/fixtures/.keep b/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/helpers/.keep b/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/integration/.keep b/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/mailers/.keep b/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/models/.keep b/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_helper.rb b/test/test_helper.rb deleted file mode 100644 index 3acf9ae..0000000 --- a/test/test_helper.rb +++ /dev/null @@ -1,7 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Add more helper methods to be used by all tests here... -end From c27d12ec33dbdc048c2ca04a1ba48c0363cd265d Mon Sep 17 00:00:00 2001 From: basnal Date: Thu, 19 Jun 2014 10:37:06 +0530 Subject: [PATCH 05/43] Testing environment added with Rspec --- .rspec | 3 ++ spec/rails_helper.rb | 43 ++++++++++++++++++++++++ spec/spec_helper.rb | 78 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 .rspec create mode 100644 spec/rails_helper.rb create mode 100644 spec/spec_helper.rb diff --git a/.rspec b/.rspec new file mode 100644 index 0000000..0d786ba --- /dev/null +++ b/.rspec @@ -0,0 +1,3 @@ +--color +--warnings +--require spec_helper diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb new file mode 100644 index 0000000..b98cb0f --- /dev/null +++ b/spec/rails_helper.rb @@ -0,0 +1,43 @@ +# This file is copied to spec/ when you run 'rails generate rspec:install' +ENV["RAILS_ENV"] ||= 'test' +require 'spec_helper' +require File.expand_path("../../config/environment", __FILE__) +require 'rspec/rails' + +# Requires supporting ruby files with custom matchers and macros, etc, in +# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are +# run as spec files by default. This means that files in spec/support that end +# in _spec.rb will both be required and run as specs, causing the specs to be +# run twice. It is recommended that you do not name files matching this glob to +# end with _spec.rb. You can configure this pattern with with the --pattern +# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. +Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } + +# Checks for pending migrations before tests are run. +# If you are not using ActiveRecord, you can remove this line. +ActiveRecord::Migration.maintain_test_schema! + +RSpec.configure do |config| + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures + config.fixture_path = "#{::Rails.root}/spec/fixtures" + + # If you're not using ActiveRecord, or you'd prefer not to run each of your + # examples within a transaction, remove the following line or assign false + # instead of true. + config.use_transactional_fixtures = true + + # RSpec Rails can automatically mix in different behaviours to your tests + # based on their file location, for example enabling you to call `get` and + # `post` in specs under `spec/controllers`. + # + # You can disable this behaviour by removing the line below, and instead + # explicitly tag your specs with their type, e.g.: + # + # RSpec.describe UsersController, :type => :controller do + # # ... + # end + # + # The different available types are documented in the features, such as in + # https://relishapp.com/rspec/rspec-rails/docs + config.infer_spec_type_from_file_location! +end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..cfb18dc --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,78 @@ +# This file was generated by the `rails generate rspec:install` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# The generated `.rspec` file contains `--require spec_helper` which will cause this +# file to always be loaded, without a need to explicitly require it in any files. +# +# Given that it is always loaded, you are encouraged to keep this file as +# light-weight as possible. Requiring heavyweight dependencies from this file +# will add to the boot time of your test suite on EVERY test run, even for an +# individual file that may not need all of that loaded. Instead, make a +# separate helper file that requires this one and then use it only in the specs +# that actually need it. +# +# The `.rspec` file also contains a few flags that are not defaults but that +# users commonly want. +# +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| +# The settings below are suggested to provide a good initial experience +# with RSpec, but feel free to customize to your heart's content. +=begin + # These two settings work together to allow you to limit a spec run + # to individual examples or groups you care about by tagging them with + # `:focus` metadata. When nothing is tagged with `:focus`, all examples + # get run. + config.filter_run :focus + config.run_all_when_everything_filtered = true + + # Many RSpec users commonly either run the entire suite or an individual + # file, and it's useful to allow more verbose output when running an + # individual spec file. + if config.files_to_run.one? + # Use the documentation formatter for detailed output, + # unless a formatter has already been configured + # (e.g. via a command-line flag). + config.default_formatter = 'doc' + end + + # Print the 10 slowest examples and example groups at the + # end of the spec run, to help surface which specs are running + # particularly slow. + config.profile_examples = 10 + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option. + # Setting this allows you to use `--seed` to deterministically reproduce + # test failures related to randomization by passing the same `--seed` value + # as the one that triggered the failure. + Kernel.srand config.seed + + # rspec-expectations config goes here. You can use an alternate + # assertion/expectation library such as wrong or the stdlib/minitest + # assertions if you prefer. + config.expect_with :rspec do |expectations| + # Enable only the newer, non-monkey-patching expect syntax. + # For more details, see: + # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax + expectations.syntax = :expect + end + + # rspec-mocks config goes here. You can use an alternate test double + # library (such as bogus or mocha) by changing the `mock_with` option here. + config.mock_with :rspec do |mocks| + # Enable only the newer, non-monkey-patching expect syntax. + # For more details, see: + # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ + mocks.syntax = :expect + + # Prevents you from mocking or stubbing a method that does not exist on + # a real object. This is generally recommended. + mocks.verify_partial_doubles = true + end +=end +end From f432de8330783a10e9bf9ee92e2d68995461eb8a Mon Sep 17 00:00:00 2001 From: basnal Date: Thu, 19 Jun 2014 12:04:53 +0530 Subject: [PATCH 06/43] Linkedin gem added to access linked API --- Gemfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Gemfile b/Gemfile index 5f14024..9582a3c 100644 --- a/Gemfile +++ b/Gemfile @@ -39,6 +39,9 @@ gem 'spring', group: :development # Use google_drive to read/write files or spreadsheets from google drive gem 'google_drive' +# Use linkedin to interface with linkedin api +gem 'linkedin' + # Use sendrid to access sendgrid api to send mails and get their status gem 'sendgrid' @@ -71,3 +74,5 @@ group :development, :test do gem 'simplecov' end +# Use to count the successful operations in mongodb +gem 'mongoid_magic_counter_cache' \ No newline at end of file From e2509ff77b53ead4d27736c8d478ec427a04db52 Mon Sep 17 00:00:00 2001 From: basnal Date: Thu, 19 Jun 2014 12:12:07 +0530 Subject: [PATCH 07/43] Unwanted models removed --- app/models/admin.rb | 9 --------- app/models/news_letter.rb | 9 --------- app/models/user.rb | 12 ------------ 3 files changed, 30 deletions(-) delete mode 100644 app/models/admin.rb delete mode 100644 app/models/news_letter.rb delete mode 100644 app/models/user.rb diff --git a/app/models/admin.rb b/app/models/admin.rb deleted file mode 100644 index 106d7c1..0000000 --- a/app/models/admin.rb +++ /dev/null @@ -1,9 +0,0 @@ -class Admin - include Mongoid::Document - - field :email_id, type: String - field :password, type: String - - has_many :users - has_many :news_letters -end diff --git a/app/models/news_letter.rb b/app/models/news_letter.rb deleted file mode 100644 index 7b85f8e..0000000 --- a/app/models/news_letter.rb +++ /dev/null @@ -1,9 +0,0 @@ -class NewsLetter - include Mongoid::Document - - field :letter, type: String - field :letter_date, type: Date - field :user_count, type: Integer - - belongs_to :admin -end diff --git a/app/models/user.rb b/app/models/user.rb deleted file mode 100644 index 76cd87d..0000000 --- a/app/models/user.rb +++ /dev/null @@ -1,12 +0,0 @@ -class User - include Mongoid::Document - - field :email, type: String - field :subscription, type: Integer - field :sent, type: Integer - field :joining_date type: Date - field :leaving_date type: Date - field :source type: String - - belongs_to :admin -end From 89f4340b0a32bcbdaa1f7b11ca1de9a9f28a8777 Mon Sep 17 00:00:00 2001 From: kanhaiya007 Date: Mon, 23 Jun 2014 16:47:38 +0530 Subject: [PATCH 08/43] Clean project --- Gemfile | 78 ------ Gemfile.lock | 246 ------------------ README.rdoc | 28 -- Rakefile | 6 - app/assets/images/.keep | 0 app/assets/javascripts/application.js | 17 -- app/assets/javascripts/bootstrap.js.coffee | 3 - app/assets/stylesheets/application.css | 15 -- .../bootstrap_and_overrides.css.less | 30 --- app/controllers/application_controller.rb | 5 - app/controllers/concerns/.keep | 0 app/helpers/application_helper.rb | 2 - app/mailers/.keep | 0 app/models/.keep | 0 app/models/concerns/.keep | 0 app/views/layouts/application.html.erb | 14 - bin/bundle | 3 - bin/rails | 8 - bin/rake | 8 - bin/spring | 18 -- config.ru | 4 - config/application.rb | 30 --- config/boot.rb | 4 - config/environment.rb | 5 - config/initializers/backtrace_silencers.rb | 7 - config/initializers/cookies_serializer.rb | 3 - .../initializers/filter_parameter_logging.rb | 4 - config/initializers/inflections.rb | 16 -- config/initializers/mime_types.rb | 4 - config/initializers/session_store.rb | 3 - config/initializers/wrap_parameters.rb | 9 - config/locales/en.bootstrap.yml | 23 -- config/locales/en.yml | 23 -- config/routes.rb | 58 ----- config/secrets.yml | 22 -- db/seeds.rb | 7 - lib/assets/.keep | 0 lib/tasks/.keep | 0 public/404.html | 67 ----- public/422.html | 67 ----- public/500.html | 66 ----- public/favicon.ico | 0 public/robots.txt | 5 - spec/rails_helper.rb | 43 --- spec/spec_helper.rb | 78 ------ test/fixtures/admins.yml | 11 - test/fixtures/news_letters.yml | 11 - test/fixtures/users.yml | 11 - test/models/admin_test.rb | 7 - test/models/news_letter_test.rb | 7 - test/models/user_test.rb | 7 - vendor/assets/javascripts/.keep | 0 vendor/assets/stylesheets/.keep | 0 53 files changed, 1083 deletions(-) delete mode 100644 Gemfile delete mode 100644 Gemfile.lock delete mode 100644 README.rdoc delete mode 100644 Rakefile delete mode 100644 app/assets/images/.keep delete mode 100644 app/assets/javascripts/application.js delete mode 100644 app/assets/javascripts/bootstrap.js.coffee delete mode 100644 app/assets/stylesheets/application.css delete mode 100644 app/assets/stylesheets/bootstrap_and_overrides.css.less delete mode 100644 app/controllers/application_controller.rb delete mode 100644 app/controllers/concerns/.keep delete mode 100644 app/helpers/application_helper.rb delete mode 100644 app/mailers/.keep delete mode 100644 app/models/.keep delete mode 100644 app/models/concerns/.keep delete mode 100644 app/views/layouts/application.html.erb delete mode 100755 bin/bundle delete mode 100755 bin/rails delete mode 100755 bin/rake delete mode 100755 bin/spring delete mode 100644 config.ru delete mode 100644 config/application.rb delete mode 100644 config/boot.rb delete mode 100644 config/environment.rb delete mode 100644 config/initializers/backtrace_silencers.rb delete mode 100644 config/initializers/cookies_serializer.rb delete mode 100644 config/initializers/filter_parameter_logging.rb delete mode 100644 config/initializers/inflections.rb delete mode 100644 config/initializers/mime_types.rb delete mode 100644 config/initializers/session_store.rb delete mode 100644 config/initializers/wrap_parameters.rb delete mode 100644 config/locales/en.bootstrap.yml delete mode 100644 config/locales/en.yml delete mode 100644 config/routes.rb delete mode 100644 config/secrets.yml delete mode 100644 db/seeds.rb delete mode 100644 lib/assets/.keep delete mode 100644 lib/tasks/.keep delete mode 100644 public/404.html delete mode 100644 public/422.html delete mode 100644 public/500.html delete mode 100644 public/favicon.ico delete mode 100644 public/robots.txt delete mode 100644 spec/rails_helper.rb delete mode 100644 spec/spec_helper.rb delete mode 100644 test/fixtures/admins.yml delete mode 100644 test/fixtures/news_letters.yml delete mode 100644 test/fixtures/users.yml delete mode 100644 test/models/admin_test.rb delete mode 100644 test/models/news_letter_test.rb delete mode 100644 test/models/user_test.rb delete mode 100644 vendor/assets/javascripts/.keep delete mode 100644 vendor/assets/stylesheets/.keep diff --git a/Gemfile b/Gemfile deleted file mode 100644 index 9582a3c..0000000 --- a/Gemfile +++ /dev/null @@ -1,78 +0,0 @@ -source 'https://rubygems.org' - -ruby '2.1.2' -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.1.1' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 4.0.3' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .js.coffee assets and views -gem 'coffee-rails', '~> 4.0.0' -# See https://github.com/sstephenson/execjs#readme for more supported runtimes -gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring -gem 'spring', group: :development - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -# Use debugger -# gem 'debugger', group: [:development, :test] - -# Use google_drive to read/write files or spreadsheets from google drive -gem 'google_drive' - -# Use linkedin to interface with linkedin api -gem 'linkedin' - -# Use sendrid to access sendgrid api to send mails and get their status -gem 'sendgrid' - -# Use sidekiq to utilise redis database to maintain background processes -gem 'sidekiq' - -# Use devise for email singup -gem 'devise' - -# Use mongoid to utilise mongodb -gem 'mongoid', github: 'mongoid/mongoid' - -# Use devise_invitable to give authentication to only invited users -gem 'devise_invitable' - -# Use bootstrap to generate quick, elegent and responsive layouts -gem 'twitter-bootstrap-rails', github: 'seyhunak/twitter-bootstrap-rails' - -# The following gems for testing purpose in development and testing environment -group :development, :test do -# Rspec is used to write the test cases - gem 'rspec-rails', '~> 3.0.0' -# Use factory girl to pass random data for test cases - gem 'factory_girl_rails' -# Use faker to generate fake strings and data - gem 'faker' -# Use to clean database after executing a test case - gem 'database_cleaner' -# Use to track how much code has been tested - gem 'simplecov' -end - -# Use to count the successful operations in mongodb -gem 'mongoid_magic_counter_cache' \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index 9346425..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,246 +0,0 @@ -GIT - remote: git://github.com/mongoid/mongoid.git - revision: 1fcb8721b0222ad4de7677f69fbf543a3f75b5f4 - specs: - mongoid (4.0.0.rc2) - activemodel (~> 4.0) - moped (~> 2.0.0.rc2) - origin (~> 2.1) - tzinfo (>= 0.3.37) - -GIT - remote: git://github.com/seyhunak/twitter-bootstrap-rails.git - revision: 95de3b0e288aede73d38a18cce30cde66e733558 - specs: - twitter-bootstrap-rails (2.2.8) - actionpack (>= 3.1) - execjs - rails (>= 3.1) - railties (>= 3.1) - -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.1.1) - actionpack (= 4.1.1) - actionview (= 4.1.1) - mail (~> 2.5.4) - actionpack (4.1.1) - actionview (= 4.1.1) - activesupport (= 4.1.1) - rack (~> 1.5.2) - rack-test (~> 0.6.2) - actionview (4.1.1) - activesupport (= 4.1.1) - builder (~> 3.1) - erubis (~> 2.7.0) - activemodel (4.1.1) - activesupport (= 4.1.1) - builder (~> 3.1) - activerecord (4.1.1) - activemodel (= 4.1.1) - activesupport (= 4.1.1) - arel (~> 5.0.0) - activesupport (4.1.1) - i18n (~> 0.6, >= 0.6.9) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.1) - tzinfo (~> 1.1) - arel (5.0.1.20140414130214) - bcrypt (3.1.7) - bson (2.3.0) - builder (3.2.2) - celluloid (0.15.2) - timers (~> 1.1.0) - coffee-rails (4.0.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.0) - coffee-script (2.2.0) - coffee-script-source - execjs - coffee-script-source (1.7.0) - connection_pool (2.0.0) - database_cleaner (1.3.0) - devise (3.2.4) - bcrypt (~> 3.0) - orm_adapter (~> 0.1) - railties (>= 3.2.6, < 5) - thread_safe (~> 0.1) - warden (~> 1.2.3) - devise_invitable (1.3.5) - actionmailer (>= 3.2.6, < 5) - devise (>= 3.2.0) - diff-lcs (1.2.5) - docile (1.1.5) - erubis (2.7.0) - execjs (2.2.0) - factory_girl (4.4.0) - activesupport (>= 3.0.0) - factory_girl_rails (4.4.1) - factory_girl (~> 4.4.0) - railties (>= 3.0.0) - faker (1.3.0) - i18n (~> 0.5) - faraday (0.9.0) - multipart-post (>= 1.2, < 3) - google_drive (0.3.9) - nokogiri (>= 1.4.4, != 1.5.2, != 1.5.1) - oauth (>= 0.3.6) - oauth2 (>= 0.5.0) - hike (1.2.3) - i18n (0.6.9) - jbuilder (2.1.1) - activesupport (>= 3.0.0, < 5) - multi_json (~> 1.2) - jquery-rails (3.1.0) - railties (>= 3.0, < 5.0) - thor (>= 0.14, < 2.0) - json (1.8.1) - jwt (1.0.0) - libv8 (3.16.14.3) - mail (2.5.4) - mime-types (~> 1.16) - treetop (~> 1.4.8) - mime-types (1.25.1) - mini_portile (0.6.0) - minitest (5.3.5) - moped (2.0.0.rc2) - bson (~> 2.2) - connection_pool (~> 2.0) - optionable (~> 0.2.0) - multi_json (1.10.1) - multi_xml (0.5.5) - multipart-post (2.0.0) - nokogiri (1.6.2.1) - mini_portile (= 0.6.0) - oauth (0.4.7) - oauth2 (0.9.4) - faraday (>= 0.8, < 0.10) - jwt (~> 1.0) - multi_json (~> 1.3) - multi_xml (~> 0.5) - rack (~> 1.2) - optionable (0.2.0) - origin (2.1.1) - orm_adapter (0.5.0) - polyglot (0.3.5) - rack (1.5.2) - rack-test (0.6.2) - rack (>= 1.0) - rails (4.1.1) - actionmailer (= 4.1.1) - actionpack (= 4.1.1) - actionview (= 4.1.1) - activemodel (= 4.1.1) - activerecord (= 4.1.1) - activesupport (= 4.1.1) - bundler (>= 1.3.0, < 2.0) - railties (= 4.1.1) - sprockets-rails (~> 2.0) - railties (4.1.1) - actionpack (= 4.1.1) - activesupport (= 4.1.1) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (10.3.2) - rdoc (4.1.1) - json (~> 1.4) - redis (3.0.7) - redis-namespace (1.4.1) - redis (~> 3.0.4) - ref (1.0.5) - rspec-core (3.0.1) - rspec-support (~> 3.0.0) - rspec-expectations (3.0.1) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.0.0) - rspec-mocks (3.0.1) - rspec-support (~> 3.0.0) - rspec-rails (3.0.1) - actionpack (>= 3.0) - activesupport (>= 3.0) - railties (>= 3.0) - rspec-core (~> 3.0.0) - rspec-expectations (~> 3.0.0) - rspec-mocks (~> 3.0.0) - rspec-support (~> 3.0.0) - rspec-support (3.0.0) - sass (3.2.19) - sass-rails (4.0.3) - railties (>= 4.0.0, < 5.0) - sass (~> 3.2.0) - sprockets (~> 2.8, <= 2.11.0) - sprockets-rails (~> 2.0) - sdoc (0.4.0) - json (~> 1.8) - rdoc (~> 4.0, < 5.0) - sendgrid (1.2.0) - json - sidekiq (3.1.4) - celluloid (>= 0.15.2) - connection_pool (>= 2.0.0) - json - redis (>= 3.0.6) - redis-namespace (>= 1.3.1) - simplecov (0.8.2) - docile (~> 1.1.0) - multi_json - simplecov-html (~> 0.8.0) - simplecov-html (0.8.0) - spring (1.1.3) - sprockets (2.11.0) - hike (~> 1.2) - multi_json (~> 1.0) - rack (~> 1.0) - tilt (~> 1.1, != 1.3.0) - sprockets-rails (2.1.3) - actionpack (>= 3.0) - activesupport (>= 3.0) - sprockets (~> 2.8) - therubyracer (0.12.1) - libv8 (~> 3.16.14.0) - ref - thor (0.19.1) - thread_safe (0.3.4) - tilt (1.4.1) - timers (1.1.0) - treetop (1.4.15) - polyglot - polyglot (>= 0.3.1) - turbolinks (2.2.2) - coffee-rails - tzinfo (1.2.1) - thread_safe (~> 0.1) - uglifier (2.5.1) - execjs (>= 0.3.0) - json (>= 1.8.0) - warden (1.2.3) - rack (>= 1.0) - -PLATFORMS - ruby - -DEPENDENCIES - coffee-rails (~> 4.0.0) - database_cleaner - devise - devise_invitable - factory_girl_rails - faker - google_drive - jbuilder (~> 2.0) - jquery-rails - mongoid! - rails (= 4.1.1) - rspec-rails (~> 3.0.0) - sass-rails (~> 4.0.3) - sdoc (~> 0.4.0) - sendgrid - sidekiq - simplecov - spring - therubyracer - turbolinks - twitter-bootstrap-rails! - uglifier (>= 1.3.0) diff --git a/README.rdoc b/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rakefile b/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rakefile +++ /dev/null @@ -1,6 +0,0 @@ -# Add your own tasks in files placed in lib/tasks ending in .rake, -# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. - -require File.expand_path('../config/application', __FILE__) - -Rails.application.load_tasks diff --git a/app/assets/images/.keep b/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js deleted file mode 100644 index 3885622..0000000 --- a/app/assets/javascripts/application.js +++ /dev/null @@ -1,17 +0,0 @@ -// This is a manifest file that'll be compiled into application.js, which will include all the files -// listed below. -// -// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, -// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. -// -// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the -// compiled file. -// -// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require twitter/bootstrap -//= require turbolinks -//= require_tree . diff --git a/app/assets/javascripts/bootstrap.js.coffee b/app/assets/javascripts/bootstrap.js.coffee deleted file mode 100644 index 9440679..0000000 --- a/app/assets/javascripts/bootstrap.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -jQuery -> - $("a[rel~=popover], .has-popover").popover() - $("a[rel~=tooltip], .has-tooltip").tooltip() diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css deleted file mode 100644 index a443db3..0000000 --- a/app/assets/stylesheets/application.css +++ /dev/null @@ -1,15 +0,0 @@ -/* - * 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 bottom of the - * compiled file so the styles you add here take precedence over styles defined in any styles - * defined in the other CSS/SCSS files in this directory. It is generally better to create a new - * file per style scope. - * - *= require_tree . - *= require_self - */ diff --git a/app/assets/stylesheets/bootstrap_and_overrides.css.less b/app/assets/stylesheets/bootstrap_and_overrides.css.less deleted file mode 100644 index 6baf0ce..0000000 --- a/app/assets/stylesheets/bootstrap_and_overrides.css.less +++ /dev/null @@ -1,30 +0,0 @@ -@import "twitter/bootstrap/bootstrap"; -@import "twitter/bootstrap/responsive"; - -// Set the correct sprite paths -@iconSpritePath: image-url("twitter/bootstrap/glyphicons-halflings.png"); -@iconWhiteSpritePath: image-url("twitter/bootstrap/glyphicons-halflings-white.png"); - -// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines) -@fontAwesomeEotPath: font-url("fontawesome-webfont.eot"); -@fontAwesomeEotPath_iefix: font-url("fontawesome-webfont.eot?#iefix"); -@fontAwesomeWoffPath: font-url("fontawesome-webfont.woff"); -@fontAwesomeTtfPath: font-url("fontawesome-webfont.ttf"); -@fontAwesomeSvgPath: font-url("fontawesome-webfont.svg#fontawesomeregular"); - -// Font Awesome -@import "fontawesome/font-awesome"; - -// Glyphicons -//@import "twitter/bootstrap/sprites.less"; - -// Your custom LESS stylesheets goes here -// -// Since bootstrap was imported above you have access to its mixins which -// you may use and inherit here -// -// If you'd like to override bootstrap's own variables, you can do so here as well -// See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation -// -// Example: -// @linkColor: #ff0000; diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/app/controllers/application_controller.rb +++ /dev/null @@ -1,5 +0,0 @@ -class ApplicationController < ActionController::Base - # Prevent CSRF attacks by raising an exception. - # For APIs, you may want to use :null_session instead. - protect_from_forgery with: :exception -end diff --git a/app/controllers/concerns/.keep b/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/app/mailers/.keep b/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/app/models/.keep b/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb deleted file mode 100644 index 9797e73..0000000 --- a/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Lightair - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/bin/bundle b/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/bin/bundle +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) -load Gem.bin_path('bundler', 'bundle') diff --git a/bin/rails b/bin/rails deleted file mode 100755 index 7feb6a3..0000000 --- a/bin/rails +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path("../spring", __FILE__) -rescue LoadError -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/bin/rake b/bin/rake deleted file mode 100755 index 8017a02..0000000 --- a/bin/rake +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path("../spring", __FILE__) -rescue LoadError -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/bin/spring b/bin/spring deleted file mode 100755 index 253ec37..0000000 --- a/bin/spring +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast -# It gets overwritten when you run the `spring binstub` command - -unless defined?(Spring) - require "rubygems" - require "bundler" - - if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m) - ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR) - ENV["GEM_HOME"] = "" - Gem.paths = ENV - - gem "spring", match[1] - require "spring/binstub" - end -end diff --git a/config.ru b/config.ru deleted file mode 100644 index 5bc2a61..0000000 --- a/config.ru +++ /dev/null @@ -1,4 +0,0 @@ -# This file is used by Rack-based servers to start the application. - -require ::File.expand_path('../config/environment', __FILE__) -run Rails.application diff --git a/config/application.rb b/config/application.rb deleted file mode 100644 index dac71b1..0000000 --- a/config/application.rb +++ /dev/null @@ -1,30 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -# Pick the frameworks you want: -require "active_model/railtie" -# require "active_record/railtie" -require "action_controller/railtie" -require "action_mailer/railtie" -require "action_view/railtie" -require "sprockets/railtie" -require "rails/test_unit/railtie" - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Lightair - class Application < Rails::Application - # Settings in config/environments/* take precedence over those specified here. - # Application configuration should go into files in config/initializers - # -- all .rb files in that directory are automatically loaded. - - # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. - # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. - # config.time_zone = 'Central Time (US & Canada)' - - # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. - # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] - # config.i18n.default_locale = :de - end -end diff --git a/config/boot.rb b/config/boot.rb deleted file mode 100644 index 5e5f0c1..0000000 --- a/config/boot.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Set up gems listed in the Gemfile. -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) diff --git a/config/environment.rb b/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/config/environment.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Load the Rails application. -require File.expand_path('../application', __FILE__) - -# Initialize the Rails application. -Rails.application.initialize! diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/config/initializers/backtrace_silencers.rb +++ /dev/null @@ -1,7 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. -# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } - -# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. -# Rails.backtrace_cleaner.remove_silencers! diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7a06a89..0000000 --- a/config/initializers/cookies_serializer.rb +++ /dev/null @@ -1,3 +0,0 @@ -# Be sure to restart your server when you modify this file. - -Rails.application.config.action_dispatch.cookies_serializer = :json \ No newline at end of file diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/config/initializers/filter_parameter_logging.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Configure sensitive parameters which will be filtered from the log file. -Rails.application.config.filter_parameters += [:password] diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/config/initializers/inflections.rb +++ /dev/null @@ -1,16 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new inflection rules using the following format. Inflections -# are locale specific, and you may define rules for as many different -# locales as you wish. All of these examples are active by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.plural /^(ox)$/i, '\1en' -# inflect.singular /^(ox)en/i, '\1' -# inflect.irregular 'person', 'people' -# inflect.uncountable %w( fish sheep ) -# end - -# These inflection rules are supported but not enabled by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.acronym 'RESTful' -# end diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/config/initializers/mime_types.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new mime types for use in respond_to blocks: -# Mime::Type.register "text/richtext", :rtf diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb deleted file mode 100644 index f799bd4..0000000 --- a/config/initializers/session_store.rb +++ /dev/null @@ -1,3 +0,0 @@ -# Be sure to restart your server when you modify this file. - -Rails.application.config.session_store :cookie_store, key: '_lightair_session' diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb deleted file mode 100644 index b81ea74..0000000 --- a/config/initializers/wrap_parameters.rb +++ /dev/null @@ -1,9 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# This file contains settings for ActionController::ParamsWrapper which -# is enabled by default. - -# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. -ActiveSupport.on_load(:action_controller) do - wrap_parameters format: [:json] if respond_to?(:wrap_parameters) -end diff --git a/config/locales/en.bootstrap.yml b/config/locales/en.bootstrap.yml deleted file mode 100644 index 8d75119..0000000 --- a/config/locales/en.bootstrap.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Sample localization file for English. Add more files in this directory for other locales. -# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. - -en: - breadcrumbs: - application: - root: "Index" - pages: - pages: "Pages" - helpers: - actions: "Actions" - links: - back: "Back" - cancel: "Cancel" - confirm: "Are you sure?" - destroy: "Delete" - new: "New" - edit: "Edit" - titles: - edit: "Edit %{model}" - save: "Save %{model}" - new: "New %{model}" - delete: "Delete %{model}" diff --git a/config/locales/en.yml b/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/config/locales/en.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Files in the config/locales directory are used for internationalization -# and are automatically loaded by Rails. If you want to use locales other -# than English, add the necessary files in this directory. -# -# To use the locales, use `I18n.t`: -# -# I18n.t 'hello' -# -# In views, this is aliased to just `t`: -# -# <%= t('hello') %> -# -# To use a different locale, set it with `I18n.locale`: -# -# I18n.locale = :es -# -# This would use the information in config/locales/es.yml. -# -# To learn more, please read the Rails Internationalization guide -# available at http://guides.rubyonrails.org/i18n.html. - -en: - hello: "Hello world" diff --git a/config/routes.rb b/config/routes.rb deleted file mode 100644 index acd9154..0000000 --- a/config/routes.rb +++ /dev/null @@ -1,58 +0,0 @@ -Rails.application.routes.draw do - resources :users - root to: "users#index" - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/config/secrets.yml b/config/secrets.yml deleted file mode 100644 index 65c9908..0000000 --- a/config/secrets.yml +++ /dev/null @@ -1,22 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Your secret key is used for verifying the integrity of signed cookies. -# If you change this key, all old signed cookies will become invalid! - -# Make sure the secret is at least 30 characters and all random, -# no regular words or you'll be exposed to dictionary attacks. -# You can use `rake secret` to generate a secure secret key. - -# Make sure the secrets in this file are kept private -# if you're sharing your code publicly. - -development: - secret_key_base: ba56cbfc183e26b831f97cc64154a726d09a7517763815e6304f939496d1cb7594a031af40860c8351b5b2c41185d8a29b3df027f87de0be7ca386eeebb90b64 - -test: - secret_key_base: ca520995eeba3b88b77152f6cd1cb32c9ad0f597bff37801f72430d9041775232e781436969aed36a41417459d53bb36bbb6d98de00411e243e21b3be481082b - -# Do not keep production secrets in the repository, -# instead read values from the environment. -production: - secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> diff --git a/db/seeds.rb b/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/lib/assets/.keep b/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/lib/tasks/.keep b/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/public/404.html b/public/404.html deleted file mode 100644 index b612547..0000000 --- a/public/404.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The page you were looking for doesn't exist (404) - - - - - - -
-
-

The page you were looking for doesn't exist.

-

You may have mistyped the address or the page may have moved.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/public/422.html b/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/public/422.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The change you wanted was rejected (422) - - - - - - -
-
-

The change you wanted was rejected.

-

Maybe you tried to change something you didn't have access to.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/public/500.html b/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/public/500.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - We're sorry, but something went wrong (500) - - - - - - -
-
-

We're sorry, but something went wrong.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/public/robots.txt b/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb deleted file mode 100644 index b98cb0f..0000000 --- a/spec/rails_helper.rb +++ /dev/null @@ -1,43 +0,0 @@ -# This file is copied to spec/ when you run 'rails generate rspec:install' -ENV["RAILS_ENV"] ||= 'test' -require 'spec_helper' -require File.expand_path("../../config/environment", __FILE__) -require 'rspec/rails' - -# Requires supporting ruby files with custom matchers and macros, etc, in -# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are -# run as spec files by default. This means that files in spec/support that end -# in _spec.rb will both be required and run as specs, causing the specs to be -# run twice. It is recommended that you do not name files matching this glob to -# end with _spec.rb. You can configure this pattern with with the --pattern -# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. -Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } - -# Checks for pending migrations before tests are run. -# If you are not using ActiveRecord, you can remove this line. -ActiveRecord::Migration.maintain_test_schema! - -RSpec.configure do |config| - # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures - config.fixture_path = "#{::Rails.root}/spec/fixtures" - - # If you're not using ActiveRecord, or you'd prefer not to run each of your - # examples within a transaction, remove the following line or assign false - # instead of true. - config.use_transactional_fixtures = true - - # RSpec Rails can automatically mix in different behaviours to your tests - # based on their file location, for example enabling you to call `get` and - # `post` in specs under `spec/controllers`. - # - # You can disable this behaviour by removing the line below, and instead - # explicitly tag your specs with their type, e.g.: - # - # RSpec.describe UsersController, :type => :controller do - # # ... - # end - # - # The different available types are documented in the features, such as in - # https://relishapp.com/rspec/rspec-rails/docs - config.infer_spec_type_from_file_location! -end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb deleted file mode 100644 index cfb18dc..0000000 --- a/spec/spec_helper.rb +++ /dev/null @@ -1,78 +0,0 @@ -# This file was generated by the `rails generate rspec:install` command. Conventionally, all -# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. -# The generated `.rspec` file contains `--require spec_helper` which will cause this -# file to always be loaded, without a need to explicitly require it in any files. -# -# Given that it is always loaded, you are encouraged to keep this file as -# light-weight as possible. Requiring heavyweight dependencies from this file -# will add to the boot time of your test suite on EVERY test run, even for an -# individual file that may not need all of that loaded. Instead, make a -# separate helper file that requires this one and then use it only in the specs -# that actually need it. -# -# The `.rspec` file also contains a few flags that are not defaults but that -# users commonly want. -# -# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration -RSpec.configure do |config| -# The settings below are suggested to provide a good initial experience -# with RSpec, but feel free to customize to your heart's content. -=begin - # These two settings work together to allow you to limit a spec run - # to individual examples or groups you care about by tagging them with - # `:focus` metadata. When nothing is tagged with `:focus`, all examples - # get run. - config.filter_run :focus - config.run_all_when_everything_filtered = true - - # Many RSpec users commonly either run the entire suite or an individual - # file, and it's useful to allow more verbose output when running an - # individual spec file. - if config.files_to_run.one? - # Use the documentation formatter for detailed output, - # unless a formatter has already been configured - # (e.g. via a command-line flag). - config.default_formatter = 'doc' - end - - # Print the 10 slowest examples and example groups at the - # end of the spec run, to help surface which specs are running - # particularly slow. - config.profile_examples = 10 - - # Run specs in random order to surface order dependencies. If you find an - # order dependency and want to debug it, you can fix the order by providing - # the seed, which is printed after each run. - # --seed 1234 - config.order = :random - - # Seed global randomization in this process using the `--seed` CLI option. - # Setting this allows you to use `--seed` to deterministically reproduce - # test failures related to randomization by passing the same `--seed` value - # as the one that triggered the failure. - Kernel.srand config.seed - - # rspec-expectations config goes here. You can use an alternate - # assertion/expectation library such as wrong or the stdlib/minitest - # assertions if you prefer. - config.expect_with :rspec do |expectations| - # Enable only the newer, non-monkey-patching expect syntax. - # For more details, see: - # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax - expectations.syntax = :expect - end - - # rspec-mocks config goes here. You can use an alternate test double - # library (such as bogus or mocha) by changing the `mock_with` option here. - config.mock_with :rspec do |mocks| - # Enable only the newer, non-monkey-patching expect syntax. - # For more details, see: - # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ - mocks.syntax = :expect - - # Prevents you from mocking or stubbing a method that does not exist on - # a real object. This is generally recommended. - mocks.verify_partial_doubles = true - end -=end -end diff --git a/test/fixtures/admins.yml b/test/fixtures/admins.yml deleted file mode 100644 index 937a0c0..0000000 --- a/test/fixtures/admins.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -# This model initially had no columns defined. If you add columns to the -# model remove the '{}' from the fixture names and add the columns immediately -# below each fixture, per the syntax in the comments below -# -one: {} -# column: value -# -two: {} -# column: value diff --git a/test/fixtures/news_letters.yml b/test/fixtures/news_letters.yml deleted file mode 100644 index 937a0c0..0000000 --- a/test/fixtures/news_letters.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -# This model initially had no columns defined. If you add columns to the -# model remove the '{}' from the fixture names and add the columns immediately -# below each fixture, per the syntax in the comments below -# -one: {} -# column: value -# -two: {} -# column: value diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml deleted file mode 100644 index 937a0c0..0000000 --- a/test/fixtures/users.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -# This model initially had no columns defined. If you add columns to the -# model remove the '{}' from the fixture names and add the columns immediately -# below each fixture, per the syntax in the comments below -# -one: {} -# column: value -# -two: {} -# column: value diff --git a/test/models/admin_test.rb b/test/models/admin_test.rb deleted file mode 100644 index ab20b8c..0000000 --- a/test/models/admin_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class AdminTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/news_letter_test.rb b/test/models/news_letter_test.rb deleted file mode 100644 index 9bb49da..0000000 --- a/test/models/news_letter_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class NewsLetterTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/user_test.rb b/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/vendor/assets/javascripts/.keep b/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/vendor/assets/stylesheets/.keep b/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 From 8f02c71ba5383f705274d935ba261098e764cee5 Mon Sep 17 00:00:00 2001 From: kanhaiya007 Date: Mon, 23 Jun 2014 16:51:39 +0530 Subject: [PATCH 09/43] clean project --- Gemfile | 87 ++++++ Gemfile.lock | 271 ++++++++++++++++++ README.rdoc | 28 ++ Rakefile | 6 + app/assets/images/.keep | 0 app/assets/javascripts/application.js | 16 ++ app/assets/stylesheets/application.css | 15 + app/controllers/application_controller.rb | 5 + app/controllers/concerns/.keep | 0 app/helpers/application_helper.rb | 2 + app/mailers/.keep | 0 app/models/.keep | 0 app/models/concerns/.keep | 0 app/views/layouts/application.html.erb | 14 + bin/bundle | 3 + bin/rails | 8 + bin/rake | 8 + bin/spring | 18 ++ config.ru | 4 + config/application.rb | 30 ++ config/boot.rb | 4 + config/environment.rb | 5 + config/initializers/backtrace_silencers.rb | 7 + config/initializers/cookies_serializer.rb | 3 + .../initializers/filter_parameter_logging.rb | 4 + config/initializers/inflections.rb | 16 ++ config/initializers/mime_types.rb | 4 + config/initializers/session_store.rb | 3 + config/initializers/wrap_parameters.rb | 9 + config/locales/en.yml | 23 ++ config/routes.rb | 56 ++++ config/secrets.yml | 22 ++ db/seeds.rb | 7 + lib/assets/.keep | 0 lib/tasks/.keep | 0 log/.keep | 0 public/404.html | 67 +++++ public/422.html | 67 +++++ public/500.html | 66 +++++ public/favicon.ico | 0 public/robots.txt | 5 + test/controllers/.keep | 0 test/fixtures/.keep | 0 test/helpers/.keep | 0 test/integration/.keep | 0 test/mailers/.keep | 0 test/models/.keep | 0 test/test_helper.rb | 7 + vendor/assets/javascripts/.keep | 0 vendor/assets/stylesheets/.keep | 0 50 files changed, 890 insertions(+) create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 README.rdoc create mode 100644 Rakefile create mode 100644 app/assets/images/.keep create mode 100644 app/assets/javascripts/application.js create mode 100644 app/assets/stylesheets/application.css create mode 100644 app/controllers/application_controller.rb create mode 100644 app/controllers/concerns/.keep create mode 100644 app/helpers/application_helper.rb create mode 100644 app/mailers/.keep create mode 100644 app/models/.keep create mode 100644 app/models/concerns/.keep create mode 100644 app/views/layouts/application.html.erb create mode 100755 bin/bundle create mode 100755 bin/rails create mode 100755 bin/rake create mode 100755 bin/spring create mode 100644 config.ru create mode 100644 config/application.rb create mode 100644 config/boot.rb create mode 100644 config/environment.rb create mode 100644 config/initializers/backtrace_silencers.rb create mode 100644 config/initializers/cookies_serializer.rb create mode 100644 config/initializers/filter_parameter_logging.rb create mode 100644 config/initializers/inflections.rb create mode 100644 config/initializers/mime_types.rb create mode 100644 config/initializers/session_store.rb create mode 100644 config/initializers/wrap_parameters.rb create mode 100644 config/locales/en.yml create mode 100644 config/routes.rb create mode 100644 config/secrets.yml create mode 100644 db/seeds.rb create mode 100644 lib/assets/.keep create mode 100644 lib/tasks/.keep create mode 100644 log/.keep create mode 100644 public/404.html create mode 100644 public/422.html create mode 100644 public/500.html create mode 100644 public/favicon.ico create mode 100644 public/robots.txt create mode 100644 test/controllers/.keep create mode 100644 test/fixtures/.keep create mode 100644 test/helpers/.keep create mode 100644 test/integration/.keep create mode 100644 test/mailers/.keep create mode 100644 test/models/.keep create mode 100644 test/test_helper.rb create mode 100644 vendor/assets/javascripts/.keep create mode 100644 vendor/assets/stylesheets/.keep diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..6113031 --- /dev/null +++ b/Gemfile @@ -0,0 +1,87 @@ +source 'https://rubygems.org' + +ruby '2.1.2' +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '4.1.1' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 4.0.3' + +gem 'haml' + +gem "twitter-bootstrap-rails" + +gem 'haml-rails' + +gem "less-rails" + +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .js.coffee assets and views +gem 'coffee-rails', '~> 4.0.0' +# See https://github.com/sstephenson/execjs#readme for more supported runtimes +gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks +gem 'turbolinks' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.0' +# bundle exec rake doc:rails generates the API under doc/api. +gem 'sdoc', '~> 0.4.0', group: :doc + +# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring +gem 'spring', group: :development + +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use unicorn as the app server +# gem 'unicorn' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +# Use debugger +# gem 'debugger', group: [:development, :test] + +# Use google_drive to read/write files or spreadsheets from google drive +gem 'google_drive' + +# Use linkedin to interface with linkedin api +gem 'linkedin' + +# Use sendrid to access sendgrid api to send mails and get their status +gem 'sendgrid' + +# Use sidekiq to utilise redis database to maintain background processes +gem 'sidekiq' + +# Use devise for email singup +gem 'devise' + +# Use mongoid to utilise mongodb +gem 'mongoid', github: 'mongoid/mongoid' + +# Use devise_invitable to give authentication to only invited users +gem 'devise_invitable' + +# Use bootstrap to generate quick, elegent and responsive layouts +gem 'bootstrap-sass' + +# The following gems for testing purpose in development and testing environment +group :development, :test do +# Rspec is used to write the test cases + gem 'rspec-rails' +# Use factory girl to pass random data for test cases + gem 'factory_girl_rails' +# Use faker to generate fake strings and data + gem 'faker' +# Use to clean database after executing a test case + gem 'database_cleaner' +# Use to track how much code has been tested + gem 'simplecov' +end + +# Use to count the successful operations in mongodb +gem 'mongoid_magic_counter_cache' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..7f464ea --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,271 @@ +GIT + remote: git://github.com/mongoid/mongoid.git + revision: 1fcb8721b0222ad4de7677f69fbf543a3f75b5f4 + specs: + mongoid (4.0.0.rc2) + activemodel (~> 4.0) + moped (~> 2.0.0.rc2) + origin (~> 2.1) + tzinfo (>= 0.3.37) + +GEM + remote: https://rubygems.org/ + specs: + actionmailer (4.1.1) + actionpack (= 4.1.1) + actionview (= 4.1.1) + mail (~> 2.5.4) + actionpack (4.1.1) + actionview (= 4.1.1) + activesupport (= 4.1.1) + rack (~> 1.5.2) + rack-test (~> 0.6.2) + actionview (4.1.1) + activesupport (= 4.1.1) + builder (~> 3.1) + erubis (~> 2.7.0) + activemodel (4.1.1) + activesupport (= 4.1.1) + builder (~> 3.1) + activerecord (4.1.1) + activemodel (= 4.1.1) + activesupport (= 4.1.1) + arel (~> 5.0.0) + activesupport (4.1.1) + i18n (~> 0.6, >= 0.6.9) + json (~> 1.7, >= 1.7.7) + minitest (~> 5.1) + thread_safe (~> 0.1) + tzinfo (~> 1.1) + arel (5.0.1.20140414130214) + bcrypt (3.1.7) + bootstrap-sass (3.1.1.1) + sass (~> 3.2) + bson (2.3.0) + builder (3.2.2) + celluloid (0.15.2) + timers (~> 1.1.0) + coffee-rails (4.0.1) + coffee-script (>= 2.2.0) + railties (>= 4.0.0, < 5.0) + coffee-script (2.2.0) + coffee-script-source + execjs + coffee-script-source (1.7.0) + commonjs (0.2.7) + connection_pool (2.0.0) + database_cleaner (1.3.0) + devise (3.2.4) + bcrypt (~> 3.0) + orm_adapter (~> 0.1) + railties (>= 3.2.6, < 5) + thread_safe (~> 0.1) + warden (~> 1.2.3) + devise_invitable (1.3.5) + actionmailer (>= 3.2.6, < 5) + devise (>= 3.2.0) + diff-lcs (1.2.5) + docile (1.1.5) + erubis (2.7.0) + execjs (2.2.0) + factory_girl (4.4.0) + activesupport (>= 3.0.0) + factory_girl_rails (4.4.1) + factory_girl (~> 4.4.0) + railties (>= 3.0.0) + faker (1.3.0) + i18n (~> 0.5) + faraday (0.9.0) + multipart-post (>= 1.2, < 3) + google_drive (0.3.9) + nokogiri (>= 1.4.4, != 1.5.2, != 1.5.1) + oauth (>= 0.3.6) + oauth2 (>= 0.5.0) + haml (4.0.5) + tilt + haml-rails (0.5.3) + actionpack (>= 4.0.1) + activesupport (>= 4.0.1) + haml (>= 3.1, < 5.0) + railties (>= 4.0.1) + hashie (2.1.2) + hike (1.2.3) + i18n (0.6.9) + jbuilder (2.1.1) + activesupport (>= 3.0.0, < 5) + multi_json (~> 1.2) + jquery-rails (3.1.0) + railties (>= 3.0, < 5.0) + thor (>= 0.14, < 2.0) + json (1.8.1) + jwt (1.0.0) + less (2.5.1) + commonjs (~> 0.2.7) + less-rails (2.5.0) + actionpack (>= 3.1) + less (~> 2.5.0) + libv8 (3.16.14.3) + linkedin (0.4.7) + hashie (~> 2.0) + multi_json (~> 1.0) + oauth (~> 0.4) + mail (2.5.4) + mime-types (~> 1.16) + treetop (~> 1.4.8) + mime-types (1.25.1) + mini_portile (0.6.0) + minitest (5.3.5) + mongoid_magic_counter_cache (1.1.0) + mongoid + rake + moped (2.0.0.rc2) + bson (~> 2.2) + connection_pool (~> 2.0) + optionable (~> 0.2.0) + multi_json (1.10.1) + multi_xml (0.5.5) + multipart-post (2.0.0) + nokogiri (1.6.2.1) + mini_portile (= 0.6.0) + oauth (0.4.7) + oauth2 (0.9.4) + faraday (>= 0.8, < 0.10) + jwt (~> 1.0) + multi_json (~> 1.3) + multi_xml (~> 0.5) + rack (~> 1.2) + optionable (0.2.0) + origin (2.1.1) + orm_adapter (0.5.0) + polyglot (0.3.5) + rack (1.5.2) + rack-test (0.6.2) + rack (>= 1.0) + rails (4.1.1) + actionmailer (= 4.1.1) + actionpack (= 4.1.1) + actionview (= 4.1.1) + activemodel (= 4.1.1) + activerecord (= 4.1.1) + activesupport (= 4.1.1) + bundler (>= 1.3.0, < 2.0) + railties (= 4.1.1) + sprockets-rails (~> 2.0) + railties (4.1.1) + actionpack (= 4.1.1) + activesupport (= 4.1.1) + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (10.3.2) + rdoc (4.1.1) + json (~> 1.4) + redis (3.0.7) + redis-namespace (1.4.1) + redis (~> 3.0.4) + ref (1.0.5) + rspec-core (3.0.2) + rspec-support (~> 3.0.0) + rspec-expectations (3.0.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.0.0) + rspec-mocks (3.0.2) + rspec-support (~> 3.0.0) + rspec-rails (3.0.1) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 3.0.0) + rspec-expectations (~> 3.0.0) + rspec-mocks (~> 3.0.0) + rspec-support (~> 3.0.0) + rspec-support (3.0.2) + sass (3.2.19) + sass-rails (4.0.3) + railties (>= 4.0.0, < 5.0) + sass (~> 3.2.0) + sprockets (~> 2.8, <= 2.11.0) + sprockets-rails (~> 2.0) + sdoc (0.4.0) + json (~> 1.8) + rdoc (~> 4.0, < 5.0) + sendgrid (1.2.0) + json + json + sidekiq (3.1.4) + celluloid (>= 0.15.2) + connection_pool (>= 2.0.0) + json + redis (>= 3.0.6) + redis-namespace (>= 1.3.1) + simplecov (0.8.2) + docile (~> 1.1.0) + multi_json + simplecov-html (~> 0.8.0) + simplecov-html (0.8.0) + spring (1.1.3) + sprockets (2.11.0) + hike (~> 1.2) + multi_json (~> 1.0) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) + sprockets-rails (2.1.3) + actionpack (>= 3.0) + activesupport (>= 3.0) + sprockets (~> 2.8) + therubyracer (0.12.1) + libv8 (~> 3.16.14.0) + ref + thor (0.19.1) + thread_safe (0.3.4) + tilt (1.4.1) + timers (1.1.0) + treetop (1.4.15) + polyglot + polyglot (>= 0.3.1) + turbolinks (2.2.2) + coffee-rails + twitter-bootstrap-rails (2.2.8) + actionpack (>= 3.1) + execjs + rails (>= 3.1) + railties (>= 3.1) + tzinfo (1.2.1) + thread_safe (~> 0.1) + uglifier (2.5.1) + execjs (>= 0.3.0) + json (>= 1.8.0) + warden (1.2.3) + rack (>= 1.0) + +PLATFORMS + ruby + +DEPENDENCIES + bootstrap-sass + coffee-rails (~> 4.0.0) + database_cleaner + devise + devise_invitable + factory_girl_rails + faker + google_drive + haml + haml-rails + jbuilder (~> 2.0) + jquery-rails + less-rails + linkedin + mongoid! + mongoid_magic_counter_cache + rails (= 4.1.1) + rspec-rails + sass-rails (~> 4.0.3) + sdoc (~> 0.4.0) + sendgrid + sidekiq + simplecov + spring + therubyracer + turbolinks + twitter-bootstrap-rails + uglifier (>= 1.3.0) diff --git a/README.rdoc b/README.rdoc new file mode 100644 index 0000000..dd4e97e --- /dev/null +++ b/README.rdoc @@ -0,0 +1,28 @@ +== README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... + + +Please feel free to use a different markup language if you do not plan to run +rake doc:app. diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..ba6b733 --- /dev/null +++ b/Rakefile @@ -0,0 +1,6 @@ +# Add your own tasks in files placed in lib/tasks ending in .rake, +# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. + +require File.expand_path('../config/application', __FILE__) + +Rails.application.load_tasks diff --git a/app/assets/images/.keep b/app/assets/images/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js new file mode 100644 index 0000000..d6925fa --- /dev/null +++ b/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// This is a manifest file that'll be compiled into application.js, which will include all the files +// listed below. +// +// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, +// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. +// +// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the +// compiled file. +// +// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 0000000..a443db3 --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 bottom of the + * compiled file so the styles you add here take precedence over styles defined in any styles + * defined in the other CSS/SCSS files in this directory. It is generally better to create a new + * file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 0000000..d83690e --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,5 @@ +class ApplicationController < ActionController::Base + # Prevent CSRF attacks by raising an exception. + # For APIs, you may want to use :null_session instead. + protect_from_forgery with: :exception +end diff --git a/app/controllers/concerns/.keep b/app/controllers/concerns/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 0000000..de6be79 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/app/mailers/.keep b/app/mailers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/models/.keep b/app/models/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 0000000..9797e73 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + Lightair + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> + <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> + <%= csrf_meta_tags %> + + + +<%= yield %> + + + diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 0000000..66e9889 --- /dev/null +++ b/bin/bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) +load Gem.bin_path('bundler', 'bundle') diff --git a/bin/rails b/bin/rails new file mode 100755 index 0000000..7feb6a3 --- /dev/null +++ b/bin/rails @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby +begin + load File.expand_path("../spring", __FILE__) +rescue LoadError +end +APP_PATH = File.expand_path('../../config/application', __FILE__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/bin/rake b/bin/rake new file mode 100755 index 0000000..8017a02 --- /dev/null +++ b/bin/rake @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby +begin + load File.expand_path("../spring", __FILE__) +rescue LoadError +end +require_relative '../config/boot' +require 'rake' +Rake.application.run diff --git a/bin/spring b/bin/spring new file mode 100755 index 0000000..253ec37 --- /dev/null +++ b/bin/spring @@ -0,0 +1,18 @@ +#!/usr/bin/env ruby + +# This file loads spring without using Bundler, in order to be fast +# It gets overwritten when you run the `spring binstub` command + +unless defined?(Spring) + require "rubygems" + require "bundler" + + if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m) + ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR) + ENV["GEM_HOME"] = "" + Gem.paths = ENV + + gem "spring", match[1] + require "spring/binstub" + end +end diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..5bc2a61 --- /dev/null +++ b/config.ru @@ -0,0 +1,4 @@ +# This file is used by Rack-based servers to start the application. + +require ::File.expand_path('../config/environment', __FILE__) +run Rails.application diff --git a/config/application.rb b/config/application.rb new file mode 100644 index 0000000..dac71b1 --- /dev/null +++ b/config/application.rb @@ -0,0 +1,30 @@ +require File.expand_path('../boot', __FILE__) + +# Pick the frameworks you want: +require "active_model/railtie" +# require "active_record/railtie" +require "action_controller/railtie" +require "action_mailer/railtie" +require "action_view/railtie" +require "sprockets/railtie" +require "rails/test_unit/railtie" + +# Require the gems listed in Gemfile, including any gems +# you've limited to :test, :development, or :production. +Bundler.require(*Rails.groups) + +module Lightair + class Application < Rails::Application + # Settings in config/environments/* take precedence over those specified here. + # Application configuration should go into files in config/initializers + # -- all .rb files in that directory are automatically loaded. + + # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. + # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. + # config.time_zone = 'Central Time (US & Canada)' + + # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. + # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] + # config.i18n.default_locale = :de + end +end diff --git a/config/boot.rb b/config/boot.rb new file mode 100644 index 0000000..5e5f0c1 --- /dev/null +++ b/config/boot.rb @@ -0,0 +1,4 @@ +# Set up gems listed in the Gemfile. +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) + +require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) diff --git a/config/environment.rb b/config/environment.rb new file mode 100644 index 0000000..ee8d90d --- /dev/null +++ b/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require File.expand_path('../application', __FILE__) + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb new file mode 100644 index 0000000..59385cd --- /dev/null +++ b/config/initializers/backtrace_silencers.rb @@ -0,0 +1,7 @@ +# Be sure to restart your server when you modify this file. + +# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. +# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } + +# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. +# Rails.backtrace_cleaner.remove_silencers! diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..7a06a89 --- /dev/null +++ b/config/initializers/cookies_serializer.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.action_dispatch.cookies_serializer = :json \ No newline at end of file diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb new file mode 100644 index 0000000..4a994e1 --- /dev/null +++ b/config/initializers/filter_parameter_logging.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Configure sensitive parameters which will be filtered from the log file. +Rails.application.config.filter_parameters += [:password] diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb new file mode 100644 index 0000000..ac033bf --- /dev/null +++ b/config/initializers/inflections.rb @@ -0,0 +1,16 @@ +# Be sure to restart your server when you modify this file. + +# Add new inflection rules using the following format. Inflections +# are locale specific, and you may define rules for as many different +# locales as you wish. All of these examples are active by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.plural /^(ox)$/i, '\1en' +# inflect.singular /^(ox)en/i, '\1' +# inflect.irregular 'person', 'people' +# inflect.uncountable %w( fish sheep ) +# end + +# These inflection rules are supported but not enabled by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.acronym 'RESTful' +# end diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb new file mode 100644 index 0000000..dc18996 --- /dev/null +++ b/config/initializers/mime_types.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Add new mime types for use in respond_to blocks: +# Mime::Type.register "text/richtext", :rtf diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb new file mode 100644 index 0000000..f799bd4 --- /dev/null +++ b/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_lightair_session' diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..b81ea74 --- /dev/null +++ b/config/initializers/wrap_parameters.rb @@ -0,0 +1,9 @@ +# Be sure to restart your server when you modify this file. + +# This file contains settings for ActionController::ParamsWrapper which +# is enabled by default. + +# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. +ActiveSupport.on_load(:action_controller) do + wrap_parameters format: [:json] if respond_to?(:wrap_parameters) +end diff --git a/config/locales/en.yml b/config/locales/en.yml new file mode 100644 index 0000000..0653957 --- /dev/null +++ b/config/locales/en.yml @@ -0,0 +1,23 @@ +# Files in the config/locales directory are used for internationalization +# and are automatically loaded by Rails. If you want to use locales other +# than English, add the necessary files in this directory. +# +# To use the locales, use `I18n.t`: +# +# I18n.t 'hello' +# +# In views, this is aliased to just `t`: +# +# <%= t('hello') %> +# +# To use a different locale, set it with `I18n.locale`: +# +# I18n.locale = :es +# +# This would use the information in config/locales/es.yml. +# +# To learn more, please read the Rails Internationalization guide +# available at http://guides.rubyonrails.org/i18n.html. + +en: + hello: "Hello world" diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 0000000..3f66539 --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,56 @@ +Rails.application.routes.draw do + # The priority is based upon order of creation: first created -> highest priority. + # See how all your routes lay out with "rake routes". + + # You can have the root of your site routed with "root" + # root 'welcome#index' + + # Example of regular route: + # get 'products/:id' => 'catalog#view' + + # Example of named route that can be invoked with purchase_url(id: product.id) + # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase + + # Example resource route (maps HTTP verbs to controller actions automatically): + # resources :products + + # Example resource route with options: + # resources :products do + # member do + # get 'short' + # post 'toggle' + # end + # + # collection do + # get 'sold' + # end + # end + + # Example resource route with sub-resources: + # resources :products do + # resources :comments, :sales + # resource :seller + # end + + # Example resource route with more complex sub-resources: + # resources :products do + # resources :comments + # resources :sales do + # get 'recent', on: :collection + # end + # end + + # Example resource route with concerns: + # concern :toggleable do + # post 'toggle' + # end + # resources :posts, concerns: :toggleable + # resources :photos, concerns: :toggleable + + # Example resource route within a namespace: + # namespace :admin do + # # Directs /admin/products/* to Admin::ProductsController + # # (app/controllers/admin/products_controller.rb) + # resources :products + # end +end diff --git a/config/secrets.yml b/config/secrets.yml new file mode 100644 index 0000000..63c1957 --- /dev/null +++ b/config/secrets.yml @@ -0,0 +1,22 @@ +# Be sure to restart your server when you modify this file. + +# Your secret key is used for verifying the integrity of signed cookies. +# If you change this key, all old signed cookies will become invalid! + +# Make sure the secret is at least 30 characters and all random, +# no regular words or you'll be exposed to dictionary attacks. +# You can use `rake secret` to generate a secure secret key. + +# Make sure the secrets in this file are kept private +# if you're sharing your code publicly. + +development: + secret_key_base: 1e17cc12b34883037593fd4fc0d054fec6b133341b10618528ed2d9f973363ba6b926c64ac339a58e171f01fbf3a29cf3de86ee8fa2747916e4c518daf590f81 + +test: + secret_key_base: 7ec5630af0ffb439a44ae655812cdb6a0b44a9737cac84237c282a4fc29d9750a9cb161e2104520076176a863e8e9020ece92241f83ffd2bdcf4397d66e153d0 + +# Do not keep production secrets in the repository, +# instead read values from the environment. +production: + secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> diff --git a/db/seeds.rb b/db/seeds.rb new file mode 100644 index 0000000..4edb1e8 --- /dev/null +++ b/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). +# +# Examples: +# +# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) +# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/lib/assets/.keep b/lib/assets/.keep new file mode 100644 index 0000000..e69de29 diff --git a/lib/tasks/.keep b/lib/tasks/.keep new file mode 100644 index 0000000..e69de29 diff --git a/log/.keep b/log/.keep new file mode 100644 index 0000000..e69de29 diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..b612547 --- /dev/null +++ b/public/404.html @@ -0,0 +1,67 @@ + + + + The page you were looking for doesn't exist (404) + + + + + + +
+
+

The page you were looking for doesn't exist.

+

You may have mistyped the address or the page may have moved.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/422.html b/public/422.html new file mode 100644 index 0000000..a21f82b --- /dev/null +++ b/public/422.html @@ -0,0 +1,67 @@ + + + + The change you wanted was rejected (422) + + + + + + +
+
+

The change you wanted was rejected.

+

Maybe you tried to change something you didn't have access to.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/500.html b/public/500.html new file mode 100644 index 0000000..061abc5 --- /dev/null +++ b/public/500.html @@ -0,0 +1,66 @@ + + + + We're sorry, but something went wrong (500) + + + + + + +
+
+

We're sorry, but something went wrong.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..3c9c7c0 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,5 @@ +# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file +# +# To ban all spiders from the entire site uncomment the next two lines: +# User-agent: * +# Disallow: / diff --git a/test/controllers/.keep b/test/controllers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/helpers/.keep b/test/helpers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/integration/.keep b/test/integration/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/mailers/.keep b/test/mailers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/models/.keep b/test/models/.keep new file mode 100644 index 0000000..e69de29 diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 0000000..3acf9ae --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,7 @@ +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +require 'rails/test_help' + +class ActiveSupport::TestCase + # Add more helper methods to be used by all tests here... +end diff --git a/vendor/assets/javascripts/.keep b/vendor/assets/javascripts/.keep new file mode 100644 index 0000000..e69de29 diff --git a/vendor/assets/stylesheets/.keep b/vendor/assets/stylesheets/.keep new file mode 100644 index 0000000..e69de29 From a8da600cd598e6a99aae102c96c0501123f72e9b Mon Sep 17 00:00:00 2001 From: kanhaiya007 Date: Mon, 23 Jun 2014 16:53:24 +0530 Subject: [PATCH 10/43] Remove Gems related to less --- Gemfile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Gemfile b/Gemfile index 6113031..085ea4c 100644 --- a/Gemfile +++ b/Gemfile @@ -8,12 +8,8 @@ gem 'sass-rails', '~> 4.0.3' gem 'haml' -gem "twitter-bootstrap-rails" - gem 'haml-rails' -gem "less-rails" - # Use Uglifier as compressor for JavaScript assets gem 'uglifier', '>= 1.3.0' # Use CoffeeScript for .js.coffee assets and views From 6f4dc7f8999b5509f9df4d87cfe63adebd300f54 Mon Sep 17 00:00:00 2001 From: kanhaiya007 Date: Mon, 23 Jun 2014 16:59:54 +0530 Subject: [PATCH 11/43] Remove .idea folder --- .idea/.generators | 8 - .idea/.name | 1 - .idea/.rakeTasks | 7 - .idea/encodings.xml | 5 - .idea/lightair.iml | 208 ------------------ .idea/misc.xml | 5 - .idea/modules.xml | 9 - .idea/scopes/scope_settings.xml | 5 - .idea/vcs.xml | 7 - .idea/workspace.xml | 365 -------------------------------- Gemfile.lock | 13 -- 11 files changed, 633 deletions(-) delete mode 100644 .idea/.generators delete mode 100644 .idea/.name delete mode 100644 .idea/.rakeTasks delete mode 100644 .idea/encodings.xml delete mode 100644 .idea/lightair.iml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/scopes/scope_settings.xml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml diff --git a/.idea/.generators b/.idea/.generators deleted file mode 100644 index b480c66..0000000 --- a/.idea/.generators +++ /dev/null @@ -1,8 +0,0 @@ - - diff --git a/.idea/.name b/.idea/.name deleted file mode 100644 index e0a25a1..0000000 --- a/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -lightair \ No newline at end of file diff --git a/.idea/.rakeTasks b/.idea/.rakeTasks deleted file mode 100644 index e451b9d..0000000 --- a/.idea/.rakeTasks +++ /dev/null @@ -1,7 +0,0 @@ - - diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index e206d70..0000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/.idea/lightair.iml b/.idea/lightair.iml deleted file mode 100644 index 23a5c98..0000000 --- a/.idea/lightair.iml +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 60c08cc..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 87859e9..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml deleted file mode 100644 index 922003b..0000000 --- a/.idea/scopes/scope_settings.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index c80f219..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index a74f85b..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,365 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1403152138930 - 1403152138930 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Gemfile.lock b/Gemfile.lock index 7f464ea..54c11e8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -52,7 +52,6 @@ GEM coffee-script-source execjs coffee-script-source (1.7.0) - commonjs (0.2.7) connection_pool (2.0.0) database_cleaner (1.3.0) devise (3.2.4) @@ -99,11 +98,6 @@ GEM thor (>= 0.14, < 2.0) json (1.8.1) jwt (1.0.0) - less (2.5.1) - commonjs (~> 0.2.7) - less-rails (2.5.0) - actionpack (>= 3.1) - less (~> 2.5.0) libv8 (3.16.14.3) linkedin (0.4.7) hashie (~> 2.0) @@ -224,11 +218,6 @@ GEM polyglot (>= 0.3.1) turbolinks (2.2.2) coffee-rails - twitter-bootstrap-rails (2.2.8) - actionpack (>= 3.1) - execjs - rails (>= 3.1) - railties (>= 3.1) tzinfo (1.2.1) thread_safe (~> 0.1) uglifier (2.5.1) @@ -253,7 +242,6 @@ DEPENDENCIES haml-rails jbuilder (~> 2.0) jquery-rails - less-rails linkedin mongoid! mongoid_magic_counter_cache @@ -267,5 +255,4 @@ DEPENDENCIES spring therubyracer turbolinks - twitter-bootstrap-rails uglifier (>= 1.3.0) From 1bdfa300a5a570e3a6e4f3b2251468bb0ade32d1 Mon Sep 17 00:00:00 2001 From: kanhaiya007 Date: Mon, 23 Jun 2014 17:05:10 +0530 Subject: [PATCH 12/43] Update gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 7bc9ce4..163914f 100644 --- a/.gitignore +++ b/.gitignore @@ -46,3 +46,4 @@ build/ # Ignore all logfiles and tempfiles. /log/*.log /tmp + *.log From 99bbefd1db9c9649c21ec161cef6b9ee0a3dea33 Mon Sep 17 00:00:00 2001 From: kanhaiya007 Date: Tue, 24 Jun 2014 15:01:01 +0530 Subject: [PATCH 13/43] Done with Relations and models with model spec Tested the relations also. --- .rspec | 1 - Gemfile | 2 +- Gemfile.lock | 20 ++--- app/models/newsletter.rb | 13 ++++ app/models/user.rb | 19 +++++ config/application.rb | 2 +- log/development.log | 48 ++++++++++++ log/test.log | 136 +++++++++++++++++++++++++++++++++ rspec.log | 0 spec/factories/newsletters.rb | 9 +++ spec/factories/users.rb | 10 +++ spec/models/newsletter_spec.rb | 24 ++++++ spec/models/user_spec.rb | 30 ++++++++ spec/rails_helper.rb | 43 +++++++++++ spec/spec_helper.rb | 78 +++++++++++++++++++ 15 files changed, 419 insertions(+), 16 deletions(-) create mode 100644 app/models/newsletter.rb create mode 100644 app/models/user.rb create mode 100644 log/development.log create mode 100644 log/test.log create mode 100644 rspec.log create mode 100644 spec/factories/newsletters.rb create mode 100644 spec/factories/users.rb create mode 100644 spec/models/newsletter_spec.rb create mode 100644 spec/models/user_spec.rb create mode 100644 spec/rails_helper.rb create mode 100644 spec/spec_helper.rb diff --git a/.rspec b/.rspec index 0d786ba..83e16f8 100644 --- a/.rspec +++ b/.rspec @@ -1,3 +1,2 @@ --color ---warnings --require spec_helper diff --git a/Gemfile b/Gemfile index 085ea4c..0c0d20b 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ ruby '2.1.2' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.1' # Use SCSS for stylesheets -gem 'sass-rails', '~> 4.0.3' +#gem 'sass-rails', '~> 4.0.3' gem 'haml' diff --git a/Gemfile.lock b/Gemfile.lock index 54c11e8..8eef026 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,10 +1,10 @@ GIT remote: git://github.com/mongoid/mongoid.git - revision: 1fcb8721b0222ad4de7677f69fbf543a3f75b5f4 + revision: 50b633c8baf2fa467e8c36b18a013a2cd50e0454 specs: - mongoid (4.0.0.rc2) + mongoid (4.0.0) activemodel (~> 4.0) - moped (~> 2.0.0.rc2) + moped (~> 2.0.0) origin (~> 2.1) tzinfo (>= 0.3.37) @@ -93,7 +93,7 @@ GEM jbuilder (2.1.1) activesupport (>= 3.0.0, < 5) multi_json (~> 1.2) - jquery-rails (3.1.0) + jquery-rails (3.1.1) railties (>= 3.0, < 5.0) thor (>= 0.14, < 2.0) json (1.8.1) @@ -112,7 +112,7 @@ GEM mongoid_magic_counter_cache (1.1.0) mongoid rake - moped (2.0.0.rc2) + moped (2.0.0) bson (~> 2.2) connection_pool (~> 2.0) optionable (~> 0.2.0) @@ -173,12 +173,7 @@ GEM rspec-mocks (~> 3.0.0) rspec-support (~> 3.0.0) rspec-support (3.0.2) - sass (3.2.19) - sass-rails (4.0.3) - railties (>= 4.0.0, < 5.0) - sass (~> 3.2.0) - sprockets (~> 2.8, <= 2.11.0) - sprockets-rails (~> 2.0) + sass (3.3.8) sdoc (0.4.0) json (~> 1.8) rdoc (~> 4.0, < 5.0) @@ -197,7 +192,7 @@ GEM simplecov-html (~> 0.8.0) simplecov-html (0.8.0) spring (1.1.3) - sprockets (2.11.0) + sprockets (2.12.1) hike (~> 1.2) multi_json (~> 1.0) rack (~> 1.0) @@ -247,7 +242,6 @@ DEPENDENCIES mongoid_magic_counter_cache rails (= 4.1.1) rspec-rails - sass-rails (~> 4.0.3) sdoc (~> 0.4.0) sendgrid sidekiq diff --git a/app/models/newsletter.rb b/app/models/newsletter.rb new file mode 100644 index 0000000..6b0948c --- /dev/null +++ b/app/models/newsletter.rb @@ -0,0 +1,13 @@ +class Newsletter + include Mongoid::Document + field :content, type: String + field :sent_on, type: Date + field :user_count, type: Integer + + validates :content, presence: true + validates :sent_on, presence: true + validates :user_count, presence: true + validates :user_count, uniqueness: true + + has_many :users +end diff --git a/app/models/user.rb b/app/models/user.rb new file mode 100644 index 0000000..2710730 --- /dev/null +++ b/app/models/user.rb @@ -0,0 +1,19 @@ +class User + include Mongoid::Document + include Mongoid::MagicCounterCache + + field :email_id, type: String + field :is_subscribed, type: Boolean + field :joined_on, type: Date + field :source, type: String + + validates :email_id, presence: true + validates :is_subscribed, presence: true + validates :joined_on, presence: true + validates :source, presence: true + validates :email_id, uniqueness: true + + belongs_to :newsletter + counter_cache :newsletter + +end diff --git a/config/application.rb b/config/application.rb index dac71b1..784336f 100644 --- a/config/application.rb +++ b/config/application.rb @@ -7,7 +7,7 @@ require "action_mailer/railtie" require "action_view/railtie" require "sprockets/railtie" -require "rails/test_unit/railtie" +require "rails/mongoid" # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. diff --git a/log/development.log b/log/development.log new file mode 100644 index 0000000..4c83c00 --- /dev/null +++ b/log/development.log @@ -0,0 +1,48 @@ + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 3.0613ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=users documents=[{"_id"=>BSON::ObjectId('53a81ad56b616e4268000000'), "email_id"=>"kanhaiya@gmail.com"}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 1.5034ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 1.3113ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"newsletter_id"=>BSON::ObjectId('53a81b2d6b616e4268010000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.0561ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 1.2889ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=newsletters selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.5541ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"newsletter_id"=>BSON::ObjectId('53a81be86b616e4427000000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.4398ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=newsletters documents=[{"_id"=>BSON::ObjectId('53a81c886b616e4427030000'), "content"=>"template1"}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 1.4297ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=users documents=[{"_id"=>BSON::ObjectId('53a81cc46b616e4427040000'), "email_id"=>"sourav@gmail.com", "newsletter_id"=>BSON::ObjectId('53a81c886b616e4427030000')}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 1.3326ms + MOPED: 127.0.0.1:27017 UPDATE database=lightair_development collection=newsletters selector={"_id"=>BSON::ObjectId('53a81c886b616e4427030000')} update={"$inc"=>{"user_count"=>1}} flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.9007ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=users documents=[{"_id"=>BSON::ObjectId('53a81cd06b616e4427050000'), "email_id"=>"sourav1@gmail.com", "newsletter_id"=>BSON::ObjectId('53a81c886b616e4427030000')}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 1.2035ms + MOPED: 127.0.0.1:27017 UPDATE database=lightair_development collection=newsletters selector={"_id"=>BSON::ObjectId('53a81c886b616e4427030000')} update={"$inc"=>{"user_count"=>1}} flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.7864ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 1.0267ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=users documents=[{"_id"=>BSON::ObjectId('53a81cd76b616e4427060000'), "email_id"=>"sourav2@gmail.com", "newsletter_id"=>BSON::ObjectId('53a81c886b616e4427030000')}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 1.0540ms + MOPED: 127.0.0.1:27017 UPDATE database=lightair_development collection=newsletters selector={"_id"=>BSON::ObjectId('53a81c886b616e4427030000')} update={"$inc"=>{"user_count"=>1}} flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 1.1153ms + + +Started GET "/" for 127.0.0.1 at 2014-06-24 11:05:10 +0530 +Processing by Rails::WelcomeController#index as HTML + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/railties-4.1.1/lib/rails/templates/rails/welcome/index.html.erb (18.3ms) +Completed 200 OK in 122ms (Views: 94.1ms) + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 1.0907ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"sourav@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.7767ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>1} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.9532ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 1.3563ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"ravi@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 1.1686ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"newsletter_id"=>BSON::ObjectId('53a941696b616e27ab010000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.0141ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 1.1818ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"ravi@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.8700ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=users documents=[{"_id"=>BSON::ObjectId('53a940866b616e27ab000000'), "email_id"=>"ravi@gmail.com", "source"=>"linkedin", "joined_on"=>Thu, 01 Jan 1970, "is_subscribed"=>true}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 1.3548ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"ravi@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 1.1161ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=newsletters selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 14.9687ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 1.0441ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"ravi@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 1.0195ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"hanu@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.7074ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=users documents=[{"_id"=>BSON::ObjectId('53a943db6b616e27ab030000'), "email_id"=>"hanu@gmail.com", "is_subscribed"=>true, "joined_on"=>Thu, 01 Jan 1970, "source"=>"google drive", "newsletter_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.8678ms + MOPED: 127.0.0.1:27017 UPDATE database=lightair_development collection=newsletters selector={"_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')} update={"$inc"=>{"user_count"=>1}} flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.9440ms diff --git a/log/test.log b/log/test.log new file mode 100644 index 0000000..1fd22ac --- /dev/null +++ b/log/test.log @@ -0,0 +1,136 @@ + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 1.0548ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a9372f6b616e25dd000000'), "email_id"=>"gilbert_beer@funk.com", "is_subscribed"=>true, "joined_on"=>2011-10-12 00:00:00 UTC, "source"=>"Mrs. Reece Gibson"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 104.5874ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 1.1699ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a938096b616e2611000000'), "email_id"=>"katelynn@oberbrunnerrobel.info", "is_subscribed"=>true, "joined_on"=>2012-11-12 00:00:00 UTC, "source"=>"Kayleigh Schinner"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.7738ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.7781ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a938c36b616e262b000000'), "email_id"=>"molly.mcclure@okeefe.org", "is_subscribed"=>true, "joined_on"=>2015-11-11 00:00:00 UTC, "source"=>"Teagan Kilback"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.4307ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.8886ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"wilfred@legros.info"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.7148ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93ab16b616e2656000000'), "email_id"=>"wilfred@legros.info", "is_subscribed"=>true, "joined_on"=>2011-10-12 00:00:00 UTC, "source"=>"Karianne Schneider"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.8084ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"spencer@buckridgegleason.org"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6924ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93ab16b616e2656010000'), "email_id"=>"spencer@buckridgegleason.org", "is_subscribed"=>true, "joined_on"=>2011-10-12 00:00:00 UTC, "source"=>"Jarret Waelchi"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6690ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"harmony_paucek@mckenzie.biz"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6403ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93ab16b616e2656020000'), "email_id"=>"harmony_paucek@mckenzie.biz", "is_subscribed"=>true, "joined_on"=>2012-11-12 00:00:00 UTC, "source"=>"Jordi Lebsack"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6942ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"jaron@collinsfadel.name"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.7572ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93ab16b616e2656030000'), "email_id"=>"jaron@collinsfadel.name", "is_subscribed"=>true, "joined_on"=>2013-09-12 00:00:00 UTC, "source"=>"Jason Blick III"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.7439ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.7738ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"alysha@lehner.org"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.3268ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93b336b616e2679000000'), "email_id"=>"alysha@lehner.org", "is_subscribed"=>true, "joined_on"=>2011-10-12 00:00:00 UTC, "source"=>"Mrs. Lura Schamberger"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.4545ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"jaiden_howell@larson.name"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.3777ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93b336b616e2679010000'), "email_id"=>"jaiden_howell@larson.name", "is_subscribed"=>true, "joined_on"=>2012-11-12 00:00:00 UTC, "source"=>"Carmella Price"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6646ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"branson@jaskolski.biz"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6957ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93b336b616e2679020000'), "email_id"=>"branson@jaskolski.biz", "is_subscribed"=>true, "joined_on"=>2012-11-12 00:00:00 UTC, "source"=>"Zoey Price"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6887ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"matt.dubuque@rath.net"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.7994ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93b336b616e2679030000'), "email_id"=>"matt.dubuque@rath.net", "is_subscribed"=>true, "joined_on"=>2015-11-11 00:00:00 UTC, "source"=>"Fabian Spencer"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.7326ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"lavern@kunze.net"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.7124ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93b336b616e2679040000'), "email_id"=>"lavern@kunze.net", "is_subscribed"=>true, "joined_on"=>2011-10-12 00:00:00 UTC, "source"=>"Sandrine Mitchell II"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.7395ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.7780ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"okey@ortizsteuber.net"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.3318ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93b696b616e2689000000'), "email_id"=>"okey@ortizsteuber.net", "is_subscribed"=>true, "joined_on"=>2015-11-11 00:00:00 UTC, "source"=>"Rubie Schroeder"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.4237ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"stephania_okeefe@schmelerwisozk.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.3893ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93b696b616e2689010000'), "email_id"=>"stephania_okeefe@schmelerwisozk.com", "is_subscribed"=>true, "joined_on"=>2013-09-12 00:00:00 UTC, "source"=>"Keon Wiza"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6544ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"mylene@pfefferbahringer.info"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6574ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93b696b616e2689020000'), "email_id"=>"mylene@pfefferbahringer.info", "is_subscribed"=>true, "joined_on"=>2015-11-11 00:00:00 UTC, "source"=>"Jaycee King"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6338ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"kimberly@bartell.name"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6879ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93b696b616e2689030000'), "email_id"=>"kimberly@bartell.name", "is_subscribed"=>true, "joined_on"=>2013-09-12 00:00:00 UTC, "source"=>"Mr. Kenneth Marvin"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.7028ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"jarrett.ratke@baumbachnitzsche.net"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.8562ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93b696b616e2689040000'), "email_id"=>"jarrett.ratke@baumbachnitzsche.net", "is_subscribed"=>true, "joined_on"=>2013-09-12 00:00:00 UTC, "source"=>"Ms. Korey Marquardt"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.7834ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.8392ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"lowell@kirlin.info"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.3260ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93bd36b616e26a3000000'), "email_id"=>"lowell@kirlin.info", "is_subscribed"=>true, "joined_on"=>2011-10-12 00:00:00 UTC, "source"=>"Frederic Rau"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.4201ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"eva@gusikowski.org"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.7713ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93bd36b616e26a3010000'), "email_id"=>"eva@gusikowski.org", "is_subscribed"=>true, "joined_on"=>2015-11-11 00:00:00 UTC, "source"=>"Rylan Tillman"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.7377ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"cyril_beer@heidenreichpfeffer.net"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.7309ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93bd36b616e26a3020000'), "email_id"=>"cyril_beer@heidenreichpfeffer.net", "is_subscribed"=>true, "joined_on"=>2013-09-12 00:00:00 UTC, "source"=>"Dayana Sipes"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6594ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"luella@powlowski.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.7541ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93bd36b616e26a3030000'), "email_id"=>"luella@powlowski.com", "is_subscribed"=>true, "joined_on"=>2013-09-12 00:00:00 UTC, "source"=>"Raina Jenkins Jr."}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6895ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"mathias@romaguera.org"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6598ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93bd36b616e26a3040000'), "email_id"=>"mathias@romaguera.org", "is_subscribed"=>true, "joined_on"=>2011-10-12 00:00:00 UTC, "source"=>"Mr. Queenie Goyette"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 13.4924ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"mathias@romaguera.org"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.8207ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 1.2205ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"irwin@ernser.info"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6705ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93d586b616e26ee000000'), "email_id"=>"irwin@ernser.info", "is_subscribed"=>true, "joined_on"=>2013-09-12 00:00:00 UTC, "source"=>"Verda Hane DDS"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.9570ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"hester.halvorson@daniel.net"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6076ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93d586b616e26ee010000'), "email_id"=>"hester.halvorson@daniel.net", "is_subscribed"=>true, "joined_on"=>2015-11-11 00:00:00 UTC, "source"=>"Pierce Rutherford"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.5800ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"krystel@pagac.org"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.5876ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93d586b616e26ee020000'), "email_id"=>"krystel@pagac.org", "is_subscribed"=>true, "joined_on"=>2012-11-12 00:00:00 UTC, "source"=>"Mrs. Erick Wehner"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6008ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"javier.fritsch@wiza.name"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6370ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93d586b616e26ee030000'), "email_id"=>"javier.fritsch@wiza.name", "is_subscribed"=>true, "joined_on"=>2011-10-12 00:00:00 UTC, "source"=>"Hugh Rau"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.5813ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"dewitt@jones.net"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6256ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93d586b616e26ee040000'), "email_id"=>"dewitt@jones.net", "is_subscribed"=>true, "joined_on"=>2011-10-12 00:00:00 UTC, "source"=>"Gilberto Sanford"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6430ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"dewitt@jones.net"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6725ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.8632ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=newsletters selector={"user_count"=>74477} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 1.8749ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=newsletters documents=[{"_id"=>BSON::ObjectId('53a93ee46b616e2765000000'), "content"=>"Elisabeth Lubowitz", "sent_on"=>2015-11-11 00:00:00 UTC, "user_count"=>74477}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 3.2418ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.8535ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=newsletters selector={"user_count"=>80933} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.2863ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=newsletters documents=[{"_id"=>BSON::ObjectId('53a93fe86b616e2781000000'), "content"=>"Miss Pasquale Tromp", "sent_on"=>2012-11-12 00:00:00 UTC, "user_count"=>80933}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.5884ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=newsletters selector={"user_count"=>45204} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.3389ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=newsletters documents=[{"_id"=>BSON::ObjectId('53a93fe86b616e2781010000'), "content"=>"Dusty Stanton", "sent_on"=>2012-11-12 00:00:00 UTC, "user_count"=>45204}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.4073ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=newsletters selector={"user_count"=>17336} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.5532ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=newsletters documents=[{"_id"=>BSON::ObjectId('53a93fe86b616e2781020000'), "content"=>"Jalen Parker IV", "sent_on"=>2015-11-11 00:00:00 UTC, "user_count"=>17336}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6056ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=newsletters selector={"user_count"=>35685} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6204ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=newsletters documents=[{"_id"=>BSON::ObjectId('53a93fe86b616e2781030000'), "content"=>"Elissa Robel", "sent_on"=>2013-09-12 00:00:00 UTC, "user_count"=>35685}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6199ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=newsletters selector={"user_count"=>35685} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.5295ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 1.0513ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=newsletters selector={"user_count"=>45876} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6624ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=newsletters documents=[{"_id"=>BSON::ObjectId('53a93ff66b616e2791000000'), "content"=>"Nigel Hamill", "sent_on"=>2012-11-12 00:00:00 UTC, "user_count"=>45876}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.8706ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=newsletters selector={"user_count"=>43100} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.5996ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=newsletters documents=[{"_id"=>BSON::ObjectId('53a93ff66b616e2791010000'), "content"=>"Bernadine Morissette", "sent_on"=>2015-11-11 00:00:00 UTC, "user_count"=>43100}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6448ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=newsletters selector={"user_count"=>16707} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.5755ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=newsletters documents=[{"_id"=>BSON::ObjectId('53a93ff66b616e2791020000'), "content"=>"Zaria Monahan", "sent_on"=>2013-09-12 00:00:00 UTC, "user_count"=>16707}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.6017ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=newsletters selector={"user_count"=>79577} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6306ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=newsletters documents=[{"_id"=>BSON::ObjectId('53a93ff66b616e2791030000'), "content"=>"Jace Rutherford", "sent_on"=>2012-11-12 00:00:00 UTC, "user_count"=>79577}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.5964ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=newsletters selector={"user_count"=>79577} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.5599ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"josefa_rowe@corkerycasper.org"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6943ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93ff66b616e2791050000'), "email_id"=>"josefa_rowe@corkerycasper.org", "is_subscribed"=>true, "joined_on"=>2013-09-12 00:00:00 UTC, "source"=>"Sean Schiller PhD"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.8575ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"lavonne_frami@schaden.net"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6442ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93ff66b616e2791060000'), "email_id"=>"lavonne_frami@schaden.net", "is_subscribed"=>true, "joined_on"=>2013-09-12 00:00:00 UTC, "source"=>"Peyton White I"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.5839ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"carmelo_johnson@conroy.info"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6437ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93ff66b616e2791070000'), "email_id"=>"carmelo_johnson@conroy.info", "is_subscribed"=>true, "joined_on"=>2011-10-12 00:00:00 UTC, "source"=>"Hiram Jacobson IV"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 13.9964ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"ransom@simonistreutel.name"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6661ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93ff66b616e2791080000'), "email_id"=>"ransom@simonistreutel.name", "is_subscribed"=>true, "joined_on"=>2013-09-12 00:00:00 UTC, "source"=>"Desiree Schaden"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 1.0987ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"lukas@cummeratadoyle.name"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.5274ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_test collection=users documents=[{"_id"=>BSON::ObjectId('53a93ff66b616e2791090000'), "email_id"=>"lukas@cummeratadoyle.name", "is_subscribed"=>true, "joined_on"=>2013-09-12 00:00:00 UTC, "source"=>"Chesley Baumbach"}] flags=[] + COMMAND database=lightair_test command={:getlasterror=>1, :w=>1} runtime: 0.5212ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_test collection=users selector={"email_id"=>"lukas@cummeratadoyle.name"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.4261ms diff --git a/rspec.log b/rspec.log new file mode 100644 index 0000000..e69de29 diff --git a/spec/factories/newsletters.rb b/spec/factories/newsletters.rb new file mode 100644 index 0000000..d170dc5 --- /dev/null +++ b/spec/factories/newsletters.rb @@ -0,0 +1,9 @@ +# Read about factories at https://github.com/thoughtbot/factory_girl + +FactoryGirl.define do + factory :newsletter do |u| + u.content {Faker::Name.name} + u.sent_on {Faker::Business.credit_card_expiry_date} + u.user_count {Faker::Number.number(5)} + end +end diff --git a/spec/factories/users.rb b/spec/factories/users.rb new file mode 100644 index 0000000..2878369 --- /dev/null +++ b/spec/factories/users.rb @@ -0,0 +1,10 @@ +# Read about factories at https://github.com/thoughtbot/factory_girl + +FactoryGirl.define do + factory :user do |u| + u.email_id {Faker::Internet.email} + u.is_subscribed {true} + u.joined_on {Faker::Business.credit_card_expiry_date} + u.source {Faker::Name.name} + end +end diff --git a/spec/models/newsletter_spec.rb b/spec/models/newsletter_spec.rb new file mode 100644 index 0000000..68d8d3e --- /dev/null +++ b/spec/models/newsletter_spec.rb @@ -0,0 +1,24 @@ +require 'rails_helper' + +RSpec.describe Newsletter, :type => :model do + before(:each) do + @newsletter = FactoryGirl.create(:newsletter) + end + + it "validates presence of content" do + expect(@newsletter.content).to be_present + end + + it "validates presence of sent date" do + expect(@newsletter.sent_on).to be_present + end + + it "validates presence of user count" do + expect(@newsletter.user_count).to be_present + end + + it "validates updation of user count" do + a = Newsletter.new(@newsletter.attributes) + expect(a).not_to be_valid + end +end diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb new file mode 100644 index 0000000..48ab4c0 --- /dev/null +++ b/spec/models/user_spec.rb @@ -0,0 +1,30 @@ +require 'rails_helper' + +RSpec.describe User, :type => :model do + before(:each) do + @user = FactoryGirl.create(:user) + end + + it "validates presence of email_id" do + expect(@user.email_id).to be_present + end + + it "validates presence of subcription" do + expect(@user.is_subscribed).to be_present + end + + it "validates presence of joined date" do + expect(@user.joined_on).to be_present + end + + it "validates presence of source" do + expect(@user.source).to be_present + end + + it "validates uniqueness of email id" do + k=User.new(@user.attributes) + expect(k).not_to be_valid + end + + +end diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb new file mode 100644 index 0000000..83aea8c --- /dev/null +++ b/spec/rails_helper.rb @@ -0,0 +1,43 @@ +# This file is copied to spec/ when you run 'rails generate rspec:install' +ENV["RAILS_ENV"] ||= 'test' +require 'spec_helper' +require File.expand_path("../../config/environment", __FILE__) +require 'rspec/rails' + +# Requires supporting ruby files with custom matchers and macros, etc, in +# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are +# run as spec files by default. This means that files in spec/support that end +# in _spec.rb will both be required and run as specs, causing the specs to be +# run twice. It is recommended that you do not name files matching this glob to +# end with _spec.rb. You can configure this pattern with with the --pattern +# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. +Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } + +# Checks for pending migrations before tests are run. +# If you are not using ActiveRecord, you can remove this line. + +RSpec.configure do |config| + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures + config.fixture_path = "#{::Rails.root}/spec/fixtures" + + # If you're not using ActiveRecord, or you'd prefer not to run each of your + # examples within a transaction, remove the following line or assign false + # instead of true. + config.use_transactional_fixtures = true + config.deprecation_stream = "rspec.log" + + # RSpec Rails can automatically mix in different behaviours to your tests + # based on their file location, for example enabling you to call `get` and + # `post` in specs under `spec/controllers`. + # + # You can disable this behaviour by removing the line below, and instead + # explicitly tag your specs with their type, e.g.: + # + # RSpec.describe UsersController, :type => :controller do + # # ... + # end + # + # The different available types are documented in the features, such as in + # https://relishapp.com/rspec/rspec-rails/docs + config.infer_spec_type_from_file_location! +end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..cfb18dc --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,78 @@ +# This file was generated by the `rails generate rspec:install` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# The generated `.rspec` file contains `--require spec_helper` which will cause this +# file to always be loaded, without a need to explicitly require it in any files. +# +# Given that it is always loaded, you are encouraged to keep this file as +# light-weight as possible. Requiring heavyweight dependencies from this file +# will add to the boot time of your test suite on EVERY test run, even for an +# individual file that may not need all of that loaded. Instead, make a +# separate helper file that requires this one and then use it only in the specs +# that actually need it. +# +# The `.rspec` file also contains a few flags that are not defaults but that +# users commonly want. +# +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| +# The settings below are suggested to provide a good initial experience +# with RSpec, but feel free to customize to your heart's content. +=begin + # These two settings work together to allow you to limit a spec run + # to individual examples or groups you care about by tagging them with + # `:focus` metadata. When nothing is tagged with `:focus`, all examples + # get run. + config.filter_run :focus + config.run_all_when_everything_filtered = true + + # Many RSpec users commonly either run the entire suite or an individual + # file, and it's useful to allow more verbose output when running an + # individual spec file. + if config.files_to_run.one? + # Use the documentation formatter for detailed output, + # unless a formatter has already been configured + # (e.g. via a command-line flag). + config.default_formatter = 'doc' + end + + # Print the 10 slowest examples and example groups at the + # end of the spec run, to help surface which specs are running + # particularly slow. + config.profile_examples = 10 + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option. + # Setting this allows you to use `--seed` to deterministically reproduce + # test failures related to randomization by passing the same `--seed` value + # as the one that triggered the failure. + Kernel.srand config.seed + + # rspec-expectations config goes here. You can use an alternate + # assertion/expectation library such as wrong or the stdlib/minitest + # assertions if you prefer. + config.expect_with :rspec do |expectations| + # Enable only the newer, non-monkey-patching expect syntax. + # For more details, see: + # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax + expectations.syntax = :expect + end + + # rspec-mocks config goes here. You can use an alternate test double + # library (such as bogus or mocha) by changing the `mock_with` option here. + config.mock_with :rspec do |mocks| + # Enable only the newer, non-monkey-patching expect syntax. + # For more details, see: + # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ + mocks.syntax = :expect + + # Prevents you from mocking or stubbing a method that does not exist on + # a real object. This is generally recommended. + mocks.verify_partial_doubles = true + end +=end +end From 039135cbd17e3f2704c0c5284b9c6985080ff7a6 Mon Sep 17 00:00:00 2001 From: basnal Date: Fri, 27 Jun 2014 15:03:28 +0530 Subject: [PATCH 14/43] Initialized Bootstrap-sass and haml #1 --- .gitignore | 1 + app/assets/javascripts/application.js | 1 + app/assets/javascripts/home.js.coffee | 3 + app/assets/stylesheets/bootstrap_config.scss | 5 + app/assets/stylesheets/home.css | 4 + app/controllers/home_controller.rb | 4 + app/helpers/home_helper.rb | 2 + app/views/home/index.html.haml | 9 + app/views/layouts/application.html.erb | 14 - app/views/layouts/application.html.haml | 37 + config/application.rb | 1 + config/routes.rb | 2 + log/development.log | 8341 ++++++++++++++++++ public/images/1.jpg | Bin 0 -> 167587 bytes public/images/2.jpg | Bin 0 -> 80645 bytes public/images/3.jpg | Bin 0 -> 34130 bytes spec/controllers/home_controller_spec.rb | 5 + spec/helpers/home_helper_spec.rb | 15 + 18 files changed, 8430 insertions(+), 14 deletions(-) create mode 100644 app/assets/javascripts/home.js.coffee create mode 100644 app/assets/stylesheets/bootstrap_config.scss create mode 100644 app/assets/stylesheets/home.css create mode 100644 app/controllers/home_controller.rb create mode 100644 app/helpers/home_helper.rb create mode 100644 app/views/home/index.html.haml delete mode 100644 app/views/layouts/application.html.erb create mode 100644 app/views/layouts/application.html.haml create mode 100644 public/images/1.jpg create mode 100644 public/images/2.jpg create mode 100644 public/images/3.jpg create mode 100644 spec/controllers/home_controller_spec.rb create mode 100644 spec/helpers/home_helper_spec.rb diff --git a/.gitignore b/.gitignore index 163914f..95c558a 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ /test/tmp/ /test/version_tmp/ /tmp/ +/.idea/ ## Specific to RubyMotion: .dat* diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index d6925fa..cd5c291 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -13,4 +13,5 @@ //= require jquery //= require jquery_ujs //= require turbolinks +//= require bootstrap //= require_tree . diff --git a/app/assets/javascripts/home.js.coffee b/app/assets/javascripts/home.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/home.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/bootstrap_config.scss b/app/assets/stylesheets/bootstrap_config.scss new file mode 100644 index 0000000..c2c0a35 --- /dev/null +++ b/app/assets/stylesheets/bootstrap_config.scss @@ -0,0 +1,5 @@ +@import "bootstrap"; +body +{ + padding-top: 80px; +} diff --git a/app/assets/stylesheets/home.css b/app/assets/stylesheets/home.css new file mode 100644 index 0000000..afad32d --- /dev/null +++ b/app/assets/stylesheets/home.css @@ -0,0 +1,4 @@ +/* + Place all the styles related to the matching controller here. + They will automatically be included in application.css. +*/ diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb new file mode 100644 index 0000000..95f2992 --- /dev/null +++ b/app/controllers/home_controller.rb @@ -0,0 +1,4 @@ +class HomeController < ApplicationController + def index + end +end diff --git a/app/helpers/home_helper.rb b/app/helpers/home_helper.rb new file mode 100644 index 0000000..23de56a --- /dev/null +++ b/app/helpers/home_helper.rb @@ -0,0 +1,2 @@ +module HomeHelper +end diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml new file mode 100644 index 0000000..4244ab4 --- /dev/null +++ b/app/views/home/index.html.haml @@ -0,0 +1,9 @@ +%div.carousel.slide{id: "myCarousel"} + .carousel-inner + .active.item + =image_tag("/images/1.jpg") + .item + =image_tag("/images/2.jpg") + diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb deleted file mode 100644 index 9797e73..0000000 --- a/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Lightair - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml new file mode 100644 index 0000000..8219872 --- /dev/null +++ b/app/views/layouts/application.html.haml @@ -0,0 +1,37 @@ + +%html + %head + %title Lightair + = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true + = javascript_include_tag 'application', 'data-turbolinks-track' => true + = csrf_meta_tags + %body + %div.nav.navbar-inverse.navbar-fixed-top + %div.container + %div.navbar-header + .navbar-brand + %h4 LightAir + + %ul.nav.navbar-nav + %li.active + %a{href: "#"} + %h4 Home + %li + %a{href: "#"} + %h4 Newsletters + %li + %a{href: "#"} + %h4 Create New + + %ul.nav.navbar-nav.navbar-right + %li.active + %a{href: "#"} + Subscriber count : + 1000 + %div.container + %div.row + %div.col-sm-9= yield + %div.col-sm-3 + %center + %h3 Insight of LightAir + %p LightAir is a mass Mailer designed to send newsletters designed in html to be sent to a few hundered to a tens of thousands of subscribers. It has an inbuilt HTML editor to create a newsletter online. diff --git a/config/application.rb b/config/application.rb index 784336f..b6b0631 100644 --- a/config/application.rb +++ b/config/application.rb @@ -15,6 +15,7 @@ module Lightair class Application < Rails::Application + config.assets.precompile += %w(*.png, *.jpg, *.jpeg, *.gif) # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. diff --git a/config/routes.rb b/config/routes.rb index 3f66539..5685e18 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,6 @@ Rails.application.routes.draw do + + root to: "home#index" # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". diff --git a/log/development.log b/log/development.log index 4c83c00..43032e1 100644 --- a/log/development.log +++ b/log/development.log @@ -46,3 +46,8344 @@ Completed 200 OK in 122ms (Views: 94.1ms) COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.8678ms MOPED: 127.0.0.1:27017 UPDATE database=lightair_development collection=newsletters selector={"_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')} update={"$inc"=>{"user_count"=>1}} flags=[] COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.9440ms + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:23:14 +0530 +Processing by Rails::WelcomeController#index as HTML + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/railties-4.1.1/lib/rails/templates/rails/welcome/index.html.erb (12.8ms) +Completed 200 OK in 91ms (Views: 66.8ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:25:14 +0530 + +AbstractController::ActionNotFound (The action 'index' could not be found for HomeController): + actionpack (4.1.1) lib/abstract_controller/base.rb:131:in `process' + actionview (4.1.1) lib/action_view/rendering.rb:30:in `process' + actionpack (4.1.1) lib/action_controller/metal.rb:195:in `dispatch' + actionpack (4.1.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' + actionpack (4.1.1) lib/action_controller/metal.rb:231:in `block in action' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `call' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `dispatch' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:48:in `call' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:71:in `block in call' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `each' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `call' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:676:in `call' + warden (1.2.3) lib/warden/manager.rb:35:in `block in call' + warden (1.2.3) lib/warden/manager.rb:34:in `catch' + warden (1.2.3) lib/warden/manager.rb:34:in `call' + rack (1.5.2) lib/rack/etag.rb:23:in `call' + rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' + rack (1.5.2) lib/rack/head.rb:11:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/flash.rb:254:in `call' + rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' + rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' + activesupport (4.1.1) lib/active_support/callbacks.rb:82:in `run_callbacks' + actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (1.3ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:30:19 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (7.6ms) +Completed 500 Internal Server Error in 17ms + +ActionView::Template::Error (undefined local variable or method `item' for #<#:0x00000005bfe9b0>): + 1: %strong= item + app/views/home/index.html.haml:1:in `_app_views_home_index_html_haml___125470053638018506_48228580' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (13.8ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:31:38 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.9ms) +Completed 200 OK in 398ms (Views: 397.8ms) + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 10:31:39 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 10:31:39 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 10:31:39 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 10:31:39 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 10:31:39 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 10:31:39 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 10:31:39 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:41:29 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 500 Internal Server Error in 100ms + +ActionView::Template::Error (Invalid CSS after "...ort "bootstrap"": expected selector or at-rule, was "@import "bootst..." + (in /home/basnal/ruby/lightair/app/assets/stylesheets/bootstrap_config.scss:2)): + 2: + 3: + 4: Lightair + 5: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> + 6: <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> + 7: <%= csrf_meta_tags %> + 8: + app/assets/stylesheets/bootstrap_config.scss:2 + app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___3712300988164781991_48176560' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (13.1ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:43:04 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 500 Internal Server Error in 1030ms + +ActionView::Template::Error (File to import not found or unreadable: bootstrap-responsive. +Load paths: + /home/basnal/ruby/lightair/app/assets/images + /home/basnal/ruby/lightair/app/assets/javascripts + /home/basnal/ruby/lightair/app/assets/stylesheets + /home/basnal/ruby/lightair/vendor/assets/javascripts + /home/basnal/ruby/lightair/vendor/assets/stylesheets + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/bootstrap-sass-3.1.1.1/vendor/assets/fonts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/bootstrap-sass-3.1.1.1/vendor/assets/javascripts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/bootstrap-sass-3.1.1.1/vendor/assets/stylesheets + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/turbolinks-2.2.2/lib/assets/javascripts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/jquery-rails-3.1.1/vendor/assets/javascripts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/coffee-rails-4.0.1/lib/assets/javascripts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/bootstrap-sass-3.1.1.1/vendor/assets/stylesheets + (in /home/basnal/ruby/lightair/app/assets/stylesheets/bootstrap_config.scss:2)): + 2: + 3: + 4: Lightair + 5: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> + 6: <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> + 7: <%= csrf_meta_tags %> + 8: + app/assets/stylesheets/bootstrap_config.scss:2 + app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb___3712300988164781991_48176560' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (7.8ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:47:38 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (1.7ms) +Completed 500 Internal Server Error in 367ms + +ActionView::Template::Error (File to import not found or unreadable: bootstrap-responsive. +Load paths: + /home/basnal/ruby/lightair/app/assets/images + /home/basnal/ruby/lightair/app/assets/javascripts + /home/basnal/ruby/lightair/app/assets/stylesheets + /home/basnal/ruby/lightair/vendor/assets/javascripts + /home/basnal/ruby/lightair/vendor/assets/stylesheets + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/bootstrap-sass-3.1.1.1/vendor/assets/fonts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/bootstrap-sass-3.1.1.1/vendor/assets/javascripts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/bootstrap-sass-3.1.1.1/vendor/assets/stylesheets + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/turbolinks-2.2.2/lib/assets/javascripts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/jquery-rails-3.1.1/vendor/assets/javascripts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/coffee-rails-4.0.1/lib/assets/javascripts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/bootstrap-sass-3.1.1.1/vendor/assets/stylesheets + (in /home/basnal/ruby/lightair/app/assets/stylesheets/bootstrap_config.scss:2)): + 2: + 3: + 4: Lightair + 5: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> + 6: <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> + 7: <%= csrf_meta_tags %> + 8: + app/assets/stylesheets/bootstrap_config.scss:2 + app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__3621000245962485862_48429560' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (9.2ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:48:28 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 500 Internal Server Error in 372ms + +ActionView::Template::Error (File to import not found or unreadable: bootstrap-responsive. +Load paths: + /home/basnal/ruby/lightair/app/assets/images + /home/basnal/ruby/lightair/app/assets/javascripts + /home/basnal/ruby/lightair/app/assets/stylesheets + /home/basnal/ruby/lightair/vendor/assets/javascripts + /home/basnal/ruby/lightair/vendor/assets/stylesheets + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/bootstrap-sass-3.1.1.1/vendor/assets/fonts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/bootstrap-sass-3.1.1.1/vendor/assets/javascripts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/bootstrap-sass-3.1.1.1/vendor/assets/stylesheets + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/turbolinks-2.2.2/lib/assets/javascripts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/jquery-rails-3.1.1/vendor/assets/javascripts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/coffee-rails-4.0.1/lib/assets/javascripts + /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/bootstrap-sass-3.1.1.1/vendor/assets/stylesheets + (in /home/basnal/ruby/lightair/app/assets/stylesheets/bootstrap_config.scss:2)): + 2: + 3: + 4: Lightair + 5: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> + 6: <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> + 7: <%= csrf_meta_tags %> + 8: + app/assets/stylesheets/bootstrap_config.scss:2 + app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__3621000245962485862_48429560' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (9.1ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:50:17 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 683ms (Views: 683.0ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 10:50:17 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 10:50:17 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 10:50:17 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 10:50:17 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 10:50:17 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 10:50:17 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 10:50:17 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:51:04 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.3ms) +Completed 200 OK in 652ms (Views: 651.6ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 10:51:05 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 10:51:05 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 10:51:05 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 10:51:05 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 10:51:05 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 10:51:05 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 10:51:05 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:51:57 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 659ms (Views: 658.4ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 10:51:58 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 10:51:58 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 10:51:58 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 10:51:58 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 10:51:58 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 10:51:58 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 10:51:58 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:52:17 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.2ms) +Completed 200 OK in 678ms (Views: 677.4ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 10:52:18 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 10:52:18 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:18 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 10:52:18 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:18 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:18 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:18 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:52:31 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 668ms (Views: 667.1ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 10:52:32 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:32 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 10:52:32 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:32 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:32 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 10:52:32 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:32 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:52:41 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 718ms (Views: 717.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 10:52:42 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:42 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 10:52:42 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:42 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 10:52:42 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:42 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:42 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 10:52:55 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 680ms (Views: 679.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 10:52:56 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 10:52:56 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:56 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:56 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 10:52:56 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:56 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 10:52:56 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:02:02 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.7ms) +Completed 200 OK in 6ms (Views: 6.0ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:02:02 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:02:02 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:02:02 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:02:02 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:02:02 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:02:02 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:02:02 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:02:37 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.9ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:02:37 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:02:37 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:02:37 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:02:37 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:02:37 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:02:37 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:02:37 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:06:07 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.1ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:06:07 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:06:07 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:06:07 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:06:07 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:06:07 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:06:07 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:06:07 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:07:44 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.1ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:07:44 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:07:44 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:07:44 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:07:44 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:07:44 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:07:44 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:07:44 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:07:57 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:07:57 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:07:57 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:07:57 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:07:57 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:07:57 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:07:57 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:07:57 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:09:08 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:09:08 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:09:08 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:09:08 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:09:08 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:09:08 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:09:08 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:09:08 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:09:44 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.6ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:09:44 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:09:44 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:09:44 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:09:44 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:09:44 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:09:44 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:09:44 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:11:31 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 6ms (Views: 5.6ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:11:31 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:11:31 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:11:31 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:11:31 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:11:31 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:11:31 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:11:31 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:16:55 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:16:55 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:16:55 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:16:55 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:16:55 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:16:55 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:16:55 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:16:55 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:17:47 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.3ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:17:47 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:17:47 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:17:47 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:17:47 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:17:47 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:17:47 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:17:47 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:18:42 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 7.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:18:42 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:18:42 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:18:42 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:18:42 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:18:42 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:18:42 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:18:42 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:19:01 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.3ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:19:01 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:19:01 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:19:01 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:19:01 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:19:01 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:19:01 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:19:01 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:19:11 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 6ms (Views: 5.9ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:19:11 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:19:11 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:19:11 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:19:11 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:19:11 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:19:11 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:19:11 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:19:38 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.3ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:19:38 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:19:38 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:19:38 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:19:38 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:19:38 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:19:38 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:19:38 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:20:51 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 6.8ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:20:51 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:20:51 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:20:51 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:20:51 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:20:51 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:20:51 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:20:51 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:20:51 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:22:32 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 6ms (Views: 5.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:22:32 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:22:32 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:22:32 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:22:32 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:22:32 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:22:32 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:22:32 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:22:32 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:23:54 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.4ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:23:54 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:23:54 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:23:54 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:23:54 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:23:54 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:23:54 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:23:54 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:23:54 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:24:12 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:24:12 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:24:12 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:24:12 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:24:12 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:24:12 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:24:12 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:24:12 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:24:12 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:24:19 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 6ms (Views: 5.6ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:24:19 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:24:19 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:24:19 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:24:19 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:24:19 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:24:19 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:24:19 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:24:19 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:27:37 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 6ms (Views: 5.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:27:37 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:27:37 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:27:37 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:27:37 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:27:37 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:27:37 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:27:37 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:27:37 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:28:10 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 6ms (Views: 5.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:28:10 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:28:10 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:28:10 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:28:10 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:28:10 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:28:10 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:28:10 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:28:10 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:39:26 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 500 Internal Server Error in 5ms + +ActionView::Template::Error (Inconsistent indentation: 7 spaces used for indentation, but the rest of the document was indented using 2 spaces.): + 14: %div{ class="col-sm-4"} <%= yield %> + 15: + 16: %div{ class:"col-sm-4 col-sm-offset-4"} + 17: %h3 Insight of LightAir + app/views/layouts/application.html.haml:17 + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (8.5ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:40:14 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 500 Internal Server Error in 3ms + +ActionView::Template::Error (Inconsistent indentation: 7 spaces used for indentation, but the rest of the document was indented using 2 spaces.): + 14: %div{ class: "col-sm-4"} <%= yield %> + 15: + 16: %div{ class: "col-sm-4 col-sm-offset-4"} + 17: %h3 Insight of LightAir + app/views/layouts/application.html.haml:17 + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (8.0ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:40:43 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 5ms (Views: 4.6ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:41:32 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:41:32 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:41:32 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:41:32 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:41:32 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:41:32 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:41:32 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:41:32 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:41:32 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:41:55 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.1ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:41:55 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:41:55 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:41:55 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:41:55 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:41:55 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:41:55 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:41:55 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:41:55 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:42:10 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 12ms (Views: 10.9ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:42:10 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:42:10 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:42:10 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:42:10 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:42:10 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:42:10 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:42:10 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:42:10 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:42:44 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.4ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:42:44 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:42:44 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:42:44 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:42:44 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:42:44 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:42:44 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:42:44 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:42:44 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:43:13 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.6ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:43:13 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:43:13 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:43:13 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:43:13 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:43:13 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:43:13 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:43:13 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:43:13 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:45:13 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.3ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:45:13 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:45:13 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:13 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:13 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:45:13 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:13 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:13 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:13 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:45:22 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:45:22 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:22 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:45:22 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:45:22 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:22 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:22 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:22 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:22 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:45:41 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 628ms (Views: 627.3ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:45:42 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:45:42 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:42 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:42 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:45:42 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:42 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:42 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:45:42 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:46:12 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 8.9ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:46:12 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:46:12 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:12 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:12 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:12 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:12 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:12 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:46:12 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:46:23 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:46:23 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:46:23 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:23 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:23 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:46:23 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:23 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:23 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:23 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:46:33 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.6ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:46:33 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:46:33 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:33 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:33 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:33 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:46:33 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:33 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:46:33 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:47:06 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.6ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:47:06 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:47:06 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:47:06 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:47:06 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:47:06 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:47:06 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:47:06 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:47:06 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:47:12 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.9ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:47:12 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:47:12 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:47:12 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:47:12 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:47:12 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:47:12 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:47:12 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:47:12 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:48:51 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:48:51 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:48:51 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:48:51 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:48:51 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:48:51 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:48:51 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:48:51 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:48:51 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:49:03 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 8.0ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:03 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:03 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:03 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:03 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:03 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:03 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:03 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:03 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:49:12 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:12 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:12 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:12 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:12 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:12 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:12 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:12 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:12 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:49:26 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.4ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:26 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:26 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:26 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:26 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:26 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:26 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:26 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:26 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:49:37 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:37 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:37 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:37 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:37 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:37 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:37 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:37 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:37 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:49:56 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:56 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:56 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:56 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:56 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:56 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:49:56 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:56 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:49:56 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:50:03 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:50:03 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:50:03 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:03 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:50:03 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:03 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:03 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:03 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:03 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:50:08 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:50:08 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:50:08 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:08 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:50:08 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:08 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:08 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:08 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:08 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:50:32 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:50:32 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:50:32 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:32 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:50:32 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:32 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:32 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:32 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:50:32 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:51:53 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 5ms (Views: 4.9ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:51:53 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:51:53 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:51:53 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:51:53 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:51:53 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:51:53 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:51:53 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:51:53 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:53:04 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.3ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:53:04 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:53:04 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:53:04 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:53:04 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:53:04 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:53:04 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:53:04 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:53:04 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:54:28 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 10.9ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:54:28 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:54:28 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:28 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:54:28 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:28 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:28 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:28 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:28 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:54:46 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:54:46 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:54:46 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:46 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:46 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:54:46 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:46 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:46 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:46 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:54:53 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.2ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:54:53 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:54:53 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:53 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:54:53 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:53 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:53 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:53 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:54:53 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:55:08 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.4ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:55:08 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:08 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:08 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:55:08 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:08 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:08 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:55:08 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:08 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:55:36 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 10.6ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:55:36 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:36 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:55:36 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:36 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:36 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:55:36 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:36 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:36 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:55:47 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.4ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:55:47 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:47 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:47 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:55:47 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:47 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:55:47 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:47 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:55:47 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:57:02 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 8.0ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:57:02 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:57:02 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:57:02 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:57:02 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:57:02 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:57:02 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:57:02 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:57:02 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:57:18 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.3ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:57:18 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:57:18 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:57:18 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:57:18 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:57:18 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:57:18 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:57:18 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:57:18 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:58:01 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 11:58:01 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 11:58:01 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 11:58:01 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 11:58:01 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 11:58:01 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 11:58:01 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 11:58:01 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 11:58:01 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:59:30 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 500 Internal Server Error in 5ms + +SyntaxError (/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:12: syntax error, unexpected tLABEL +...attributes({}, nil, list-style: "none")}>\n
  • \... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:12: syntax error, unexpected ')', expecting tSTRING_DEND +...es({}, nil, list-style: "none")}>\n
  • \n ... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:12: syntax error, unexpected $undefined +...e: "none")}>\n
  • \n

    \n ... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:12: syntax error, unexpected $undefined +...
  • \n

    \n LightAirLightAir\n ... + ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:15: syntax error, unexpected ')', expecting tSTRING_DEND +....attributes({}, nil, href: "#")}>LightAir\n ... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:15: unknown regexp option - h +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:15: syntax error, unexpected tINTEGER, expecting tSTRING_DEND +...ightAir\n

    \n
  • \n ... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:18: unknown regexp option - a +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:18: syntax error, unexpected $undefined +...l, href: "#")}>Newsletters\n

    \n ... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:18: unknown regexp option - l +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:18: syntax error, unexpected $undefined +... \n
  • \n \n \n \n \n \n ... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:18: unknown regexp options - dv +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:18: syntax error, unexpected $undefined +...div>\n \n \n \n \n #{_hamlout.adjust_tabs(1); _... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:22: unknown regexp options - dv +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:22: syntax error, unexpected $undefined +));}\n \n \n

    \n In... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:23: syntax error, unexpected $undefined +...-sm-offset-4")}>\n

    \n Insight of LightAi... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:23: syntax error, unexpected $undefined +...n Insight of LightAir\n

    \n \... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:23: unknown regexp options - dv +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:23: syntax error, unexpected $undefined +...r\n \n \n \n \n\n \n \n\n", -3, false);::Ham... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:23: unterminated regexp meets end of file +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:23: syntax error, unexpected end-of-input, expecting tSTRING_DEND): + actionview (4.1.1) lib/action_view/template.rb:297:in `module_eval' + actionview (4.1.1) lib/action_view/template.rb:297:in `compile' + actionview (4.1.1) lib/action_view/template.rb:245:in `block (2 levels) in compile!' + activesupport (4.1.1) lib/active_support/notifications.rb:161:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:339:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:244:in `block in compile!' + actionview (4.1.1) lib/action_view/template.rb:232:in `synchronize' + actionview (4.1.1) lib/action_view/template.rb:232:in `compile!' + actionview (4.1.1) lib/action_view/template.rb:144:in `block in render' + activesupport (4.1.1) lib/active_support/notifications.rb:161:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:339:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:143:in `render' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:53:in `render_template' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:17:in `render' + actionview (4.1.1) lib/action_view/renderer/renderer.rb:42:in `render_template' + actionview (4.1.1) lib/action_view/renderer/renderer.rb:23:in `render' + actionview (4.1.1) lib/action_view/rendering.rb:99:in `_render_template' + actionpack (4.1.1) lib/action_controller/metal/streaming.rb:217:in `_render_template' + actionview (4.1.1) lib/action_view/rendering.rb:82:in `render_to_body' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body' + actionpack (4.1.1) lib/action_controller/metal/renderers.rb:32:in `render_to_body' + actionpack (4.1.1) lib/abstract_controller/rendering.rb:25:in `render' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:16:in `render' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' + activesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' + activesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `ms' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block in render' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:40:in `render' + actionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render' + actionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action' + actionpack (4.1.1) lib/abstract_controller/base.rb:189:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action' + actionpack (4.1.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' + activesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:86:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks' + actionpack (4.1.1) lib/abstract_controller/callbacks.rb:19:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/rescue.rb:29:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument' + activesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' + actionpack (4.1.1) lib/abstract_controller/base.rb:136:in `process' + actionview (4.1.1) lib/action_view/rendering.rb:30:in `process' + actionpack (4.1.1) lib/action_controller/metal.rb:195:in `dispatch' + actionpack (4.1.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' + actionpack (4.1.1) lib/action_controller/metal.rb:231:in `block in action' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `call' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `dispatch' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:48:in `call' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:71:in `block in call' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `each' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `call' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:676:in `call' + warden (1.2.3) lib/warden/manager.rb:35:in `block in call' + warden (1.2.3) lib/warden/manager.rb:34:in `catch' + warden (1.2.3) lib/warden/manager.rb:34:in `call' + rack (1.5.2) lib/rack/etag.rb:23:in `call' + rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' + rack (1.5.2) lib/rack/head.rb:11:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/flash.rb:254:in `call' + rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' + rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' + activesupport (4.1.1) lib/active_support/callbacks.rb:82:in `run_callbacks' + actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.7ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (23.0ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 11:59:46 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 500 Internal Server Error in 4ms + +SyntaxError (/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:12: syntax error, unexpected ':', expecting ')' +...tributes({}, nil, "list-style": "none")}>\n
  • \... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:12: syntax error, unexpected ')', expecting tSTRING_DEND +...({}, nil, "list-style": "none")}>\n
  • \n ... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:12: syntax error, unexpected $undefined +...": "none")}>\n
  • \n

    \n ... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:12: syntax error, unexpected $undefined +...
  • \n

    \n LightAirLightAir\n ... + ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:15: syntax error, unexpected ')', expecting tSTRING_DEND +....attributes({}, nil, href: "#")}>LightAir\n ... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:15: unknown regexp option - h +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:15: syntax error, unexpected tINTEGER, expecting tSTRING_DEND +...ightAir\n

    \n
  • \n ... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:18: unknown regexp option - a +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:18: syntax error, unexpected $undefined +...l, href: "#")}>Newsletters\n

    \n ... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:18: unknown regexp option - l +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:18: syntax error, unexpected $undefined +... \n
  • \n \n \n \n \n \n ... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:18: unknown regexp options - dv +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:18: syntax error, unexpected $undefined +...div>\n \n \n \n \n #{_hamlout.adjust_tabs(1); _... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:22: unknown regexp options - dv +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:22: syntax error, unexpected $undefined +));}\n \n \n

    \n In... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:23: syntax error, unexpected $undefined +...-sm-offset-4")}>\n

    \n Insight of LightAi... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:23: syntax error, unexpected $undefined +...n Insight of LightAir\n

    \n \... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:23: unknown regexp options - dv +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:23: syntax error, unexpected $undefined +...r\n \n \n \n \n\n \n \n\n", -3, false);::Ham... +... ^ +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:23: unterminated regexp meets end of file +/home/basnal/ruby/lightair/app/views/layouts/application.html.haml:23: syntax error, unexpected end-of-input, expecting tSTRING_DEND): + actionview (4.1.1) lib/action_view/template.rb:297:in `module_eval' + actionview (4.1.1) lib/action_view/template.rb:297:in `compile' + actionview (4.1.1) lib/action_view/template.rb:245:in `block (2 levels) in compile!' + activesupport (4.1.1) lib/active_support/notifications.rb:161:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:339:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:244:in `block in compile!' + actionview (4.1.1) lib/action_view/template.rb:232:in `synchronize' + actionview (4.1.1) lib/action_view/template.rb:232:in `compile!' + actionview (4.1.1) lib/action_view/template.rb:144:in `block in render' + activesupport (4.1.1) lib/active_support/notifications.rb:161:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:339:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:143:in `render' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:53:in `render_template' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:17:in `render' + actionview (4.1.1) lib/action_view/renderer/renderer.rb:42:in `render_template' + actionview (4.1.1) lib/action_view/renderer/renderer.rb:23:in `render' + actionview (4.1.1) lib/action_view/rendering.rb:99:in `_render_template' + actionpack (4.1.1) lib/action_controller/metal/streaming.rb:217:in `_render_template' + actionview (4.1.1) lib/action_view/rendering.rb:82:in `render_to_body' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body' + actionpack (4.1.1) lib/action_controller/metal/renderers.rb:32:in `render_to_body' + actionpack (4.1.1) lib/abstract_controller/rendering.rb:25:in `render' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:16:in `render' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' + activesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' + activesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `ms' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block in render' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:40:in `render' + actionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render' + actionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action' + actionpack (4.1.1) lib/abstract_controller/base.rb:189:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action' + actionpack (4.1.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' + activesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:86:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks' + actionpack (4.1.1) lib/abstract_controller/callbacks.rb:19:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/rescue.rb:29:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument' + activesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' + actionpack (4.1.1) lib/abstract_controller/base.rb:136:in `process' + actionview (4.1.1) lib/action_view/rendering.rb:30:in `process' + actionpack (4.1.1) lib/action_controller/metal.rb:195:in `dispatch' + actionpack (4.1.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' + actionpack (4.1.1) lib/action_controller/metal.rb:231:in `block in action' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `call' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `dispatch' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:48:in `call' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:71:in `block in call' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `each' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `call' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:676:in `call' + warden (1.2.3) lib/warden/manager.rb:35:in `block in call' + warden (1.2.3) lib/warden/manager.rb:34:in `catch' + warden (1.2.3) lib/warden/manager.rb:34:in `call' + rack (1.5.2) lib/rack/etag.rb:23:in `call' + rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' + rack (1.5.2) lib/rack/head.rb:11:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/flash.rb:254:in `call' + rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' + rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' + activesupport (4.1.1) lib/active_support/callbacks.rb:82:in `run_callbacks' + actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.5ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (13.1ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:00:00 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.9ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:00:00 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:00:00 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:00:00 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:00:00 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:00:00 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:00:00 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:00:00 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:00:00 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:04:58 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 12ms (Views: 11.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:04:58 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:04:58 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:04:58 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:04:58 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:04:58 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:04:58 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:04:58 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:04:58 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:05:40 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 12ms (Views: 11.5ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:05:40 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:05:40 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:05:40 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:05:40 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:05:40 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:05:40 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:05:40 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:05:40 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:06:03 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:06:03 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:06:03 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:06:03 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:06:03 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:06:03 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:06:03 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:06:03 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:06:03 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:06:31 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:06:31 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:06:31 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:06:31 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:06:31 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:06:31 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:06:31 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:06:31 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:06:31 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:30:16 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:30:16 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:30:16 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:30:16 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:30:16 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:30:16 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:30:16 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:30:16 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:30:16 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:32:00 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.9ms) +Completed 200 OK in 9ms (Views: 8.2ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:33:14 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 7.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:33:14 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:33:14 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:33:14 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:33:14 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:33:14 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:33:14 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:33:14 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:33:14 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:34:57 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:34:57 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:34:57 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:34:57 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:34:57 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:34:57 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:34:57 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:34:57 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:34:57 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:35:41 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.3ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:35:42 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:35:42 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:35:42 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:35:42 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:35:42 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:35:42 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:35:42 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:35:42 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:36:20 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:36:20 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:36:20 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:36:20 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:36:20 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:36:20 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:36:20 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:36:20 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:36:20 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:36:34 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:36:35 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:36:35 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:36:35 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:36:35 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:36:35 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:36:35 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:36:35 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:36:35 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:37:01 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.9ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:37:01 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:37:01 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:37:01 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:37:01 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:37:01 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:37:01 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:37:01 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:37:01 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:37:42 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:37:42 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:37:42 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:37:42 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:37:42 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:37:42 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:37:42 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:37:42 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:37:42 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:37:44 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 10.2ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:37:45 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 6ms (Views: 5.9ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:37:45 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.1ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:37:46 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.5ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:37:46 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.6ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:37:46 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 6ms (Views: 5.5ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:37:50 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.1ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:47:37 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.9ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:47:37 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:47:37 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:47:37 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:47:37 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:47:37 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:47:37 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:47:37 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:47:38 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:47:54 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 8.1ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:47:54 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:47:54 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:47:54 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:47:54 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:47:54 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:47:54 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:47:54 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:47:54 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:48:04 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:48:04 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:48:04 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:48:04 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:48:04 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:48:04 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:48:04 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:48:04 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:48:04 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:48:15 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.9ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:48:15 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:48:15 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:48:15 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:48:15 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:48:15 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:48:15 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:48:15 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:48:15 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:50:11 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:50:11 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:50:11 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:50:11 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:50:11 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:50:11 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:50:11 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:50:11 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:50:11 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:50:35 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:50:35 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:50:35 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:50:35 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:50:35 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:50:35 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:50:35 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:50:35 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:50:35 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:51:55 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.6ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:51:55 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:51:55 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:51:55 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:51:55 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:51:55 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:51:55 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:51:55 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:51:55 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:52:28 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.4ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:52:28 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:52:28 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:52:28 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:52:28 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:52:28 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:52:28 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:52:28 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:52:28 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:53:39 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 10.3ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:53:39 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:53:39 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:53:39 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:53:39 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:53:39 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:53:39 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:53:39 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:53:39 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:57:29 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 500 Internal Server Error in 3ms + +ActionView::Template::Error (Inconsistent indentation: 9 spaces used for indentation, but the rest of the document was indented using 2 spaces.): + 8: %body + 9: %div{class: "navbar navbar-inverse navbar-fixed-top", role: "navigation"} + 10: %div + 11: %ul{class: "nav navbar-nav"} + 12: %li + 13: %a{href: "#"} + 14: %h4 LightAir + app/views/layouts/application.html.haml:11 + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (9.8ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:57:49 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:57:49 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:57:49 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:57:49 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:57:50 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:57:50 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:57:50 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:57:50 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:57:50 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:58:30 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 5ms (Views: 5.2ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:58:31 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.4ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:58:33 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 5ms (Views: 4.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:58:33 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:58:33 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:58:33 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:58:33 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:58:33 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:58:33 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:58:33 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:58:33 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:58:57 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:58:57 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:58:57 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:58:57 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:58:57 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:58:57 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:58:57 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:58:57 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:58:57 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 12:59:05 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 14ms (Views: 13.0ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 12:59:05 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 12:59:05 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 12:59:05 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 12:59:05 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 12:59:05 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 12:59:05 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 12:59:05 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 12:59:05 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:00:42 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 500 Internal Server Error in 3ms + +ActionView::Template::Error (Illegal nesting: content can't be both given on the same line as %div and nested within it.): + 7: = csrf_meta_tags + 8: %body + 9: %div.nav.navbar-inverse navbar-fixed-top, role: "navigation"} + 10: %div + 11: %ul{class: "nav navbar-nav"} + 12: %li{class: "active"} + 13: %a{href: "#"} + app/views/layouts/application.html.haml:10 + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.7ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (7.6ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:00:56 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 12ms (Views: 10.9ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:00:56 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:00:56 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:00:56 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:00:56 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:00:56 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:00:56 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:00:56 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:00:56 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:00:59 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 12ms (Views: 11.5ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:01:14 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.3ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:01:14 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:01:14 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:01:14 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:01:14 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:01:14 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:01:14 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:01:14 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:01:14 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:02:29 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 15ms (Views: 14.4ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:02:29 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:02:29 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:02:29 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:02:29 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:02:29 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:02:29 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:02:29 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:02:29 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:02:48 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 7.0ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:02:48 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:02:48 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:02:48 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:02:48 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:02:48 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:02:48 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:02:48 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:02:48 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:06:18 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 751ms (Views: 750.4ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:06:19 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:06:31 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.6ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 13ms (Views: 12.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:08:52 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 13ms (Views: 12.4ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:01 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:11:13 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:11:13 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:11:13 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:13 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:13 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:14 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:38 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 9.0ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:11:49 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:11 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 15ms (Views: 14.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:22 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 10.3ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:31 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:12:41 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.6ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:26:18 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 13ms (Views: 12.7ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:27:44 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 11.0ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:17 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 12ms (Views: 11.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:49 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:50 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:50 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:28:50 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.9ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:05 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 10.5ms) + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:13 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:14 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:14 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:14 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:14 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:14 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:14 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:14 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:14 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:29:40 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:29:45 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.8ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:29:45 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.5ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:30:14 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 10.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:30:14 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:30:14 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:15 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 10.4ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:30:33 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 14ms (Views: 13.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:34 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 15ms (Views: 14.5ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:31:54 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:32:55 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 13ms (Views: 12.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:32:56 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 10.1ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:21 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:33:37 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 19ms (Views: 18.3ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:33:37 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:37 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:37 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:37 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:37 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:33:37 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:33:37 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:37 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:38 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 14ms (Views: 13.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:33:48 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 13ms (Views: 12.3ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:03 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 12ms (Views: 11.6ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:42 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 10.3ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:34:54 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 10.9ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:22 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 15ms (Views: 14.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:30 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:35:59 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:37:09 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 10.2ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:10 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:37:25 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 14ms (Views: 13.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:01 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:38:56 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 11.1ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:38:57 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:40:33 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 13ms (Views: 12.6ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:40:34 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 15ms (Views: 14.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:42:05 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:42:26 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 500 Internal Server Error in 3ms + +ActionView::Template::Error (Illegal nesting: content can't be both given on the same line as %h4 and nested within it.): + 27: %li.active + 28: %a{href: "#"} + 29: %h4 Subscriber count : + 30: .content= yield + 31: %div.container + 32: %div.row + 33: %div.col-sm-9= yield + app/views/layouts/application.html.haml:30 + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (8.0ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:43:20 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 500 Internal Server Error in 5ms + +ActionView::Template::Error (Illegal nesting: content can't be both given on the same line as %h4 and nested within it.): + 27: %li.active + 28: %a{href: "#"} + 29: %h4 Subscriber count : + 30: = yield + 31: %div.container + 32: %div.row + 33: %div.col-sm-9= yield + app/views/layouts/application.html.haml:30 + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (8.7ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:43:46 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 14ms (Views: 13.4ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:43:46 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:46 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:43:46 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:43:47 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.9ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:03 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 12ms (Views: 11.6ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:21 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 12ms (Views: 11.2ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:44:39 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:45:10 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 11ms (Views: 10.5ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:11 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 13ms (Views: 12.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:18 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 12ms (Views: 11.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:26 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 10ms (Views: 9.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:45:58 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 12ms (Views: 11.5ms) + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 13:46:13 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (1.5ms) +Completed 200 OK in 11ms (Views: 10.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + + +Started GET "/assets/images/2.jpg" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + +ActionController::RoutingError (No route matches [GET] "/assets/images/2.jpg"): + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (12.3ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (54.7ms) + + +Started GET "/assets/images/1.jpg" for 127.0.0.1 at 2014-06-27 14:35:07 +0530 + +ActionController::RoutingError (No route matches [GET] "/assets/images/1.jpg"): + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.7ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.4ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (11.7ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 14:35:57 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (1.6ms) +Completed 200 OK in 9ms (Views: 8.7ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 14:35:57 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 14:35:57 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:57 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 14:35:57 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:57 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:57 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:57 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:57 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:57 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + + +Started GET "/images/1.jpg" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + +ActionController::RoutingError (No route matches [GET] "/images/1.jpg"): + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.7ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.9ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.3ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (14.5ms) + + +Started GET "/assets/images/2.jpg" for 127.0.0.1 at 2014-06-27 14:35:58 +0530 + +ActionController::RoutingError (No route matches [GET] "/assets/images/2.jpg"): + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.4ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (16.8ms) + + +Started GET "/images/1.jpg" for 127.0.0.1 at 2014-06-27 14:36:06 +0530 + +ActionController::RoutingError (No route matches [GET] "/images/1.jpg"): + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (15.5ms) + + +Started GET "/images/1.jpg" for 127.0.0.1 at 2014-06-27 14:36:47 +0530 + +ActionController::RoutingError (No route matches [GET] "/images/1.jpg"): + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (13.2ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (1.7ms) +Completed 200 OK in 10ms (Views: 10.1ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + + +Started GET "/images/2.jpg" for 127.0.0.1 at 2014-06-27 14:43:34 +0530 + +ActionController::RoutingError (No route matches [GET] "/images/2.jpg"): + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.8ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.8ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (13.3ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (1.8ms) +Completed 200 OK in 11ms (Views: 10.8ms) + + +Started GET "/assets/bootstrap_config.css?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap/affix.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap/alert.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap/carousel.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap/collapse.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap/dropdown.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap/button.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap/tab.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap/transition.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap/scrollspy.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap/modal.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap/tooltip.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap/popover.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + + +Started GET "/images/2.jpg" for 127.0.0.1 at 2014-06-27 14:43:56 +0530 + +ActionController::RoutingError (No route matches [GET] "/images/2.jpg"): + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/basnal/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (15.0ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 14:47:02 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (1.6ms) +Completed 500 Internal Server Error in 4ms + +ActionView::Template::Error (Illegal nesting: nesting within plain text is illegal.): + 11: + 12: %script{type: 'text/javascript'} + 13: $(document).ready(function() { + 14: $('.carousel').carousel({ + 15: interval: 2000 + 16: }) + 17: }); + app/views/home/index.html.haml:14 + + + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) + Rendered /home/basnal/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (9.0ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-27 14:47:19 +0530 +Processing by HomeController#index as HTML + Rendered home/index.html.haml within layouts/application (0.7ms) +Completed 500 Internal Server Error in 2ms + +ActionView::Template::Error (Illegal nesting: nesting within plain text is illegal.): + 10: %h4 Caption + 11: + 12: +%script{type: "text/javascript"} + var $ = jQuery.noConflict(); $(document).ready(function() { $('#myCarousel').carousel({ interval: 3000, cycle: true }); }); From 5cc6c3ce358a638d8e8c974f257b39408db99266 Mon Sep 17 00:00:00 2001 From: kanhaiya007 Date: Fri, 27 Jun 2014 16:05:11 +0530 Subject: [PATCH 16/43] log testing --- .gitignore | 2 +- Gemfile | 3 +- Gemfile.lock | 20 +- app/assets/javascripts/application.js | 3 + app/assets/javascripts/newsletters.js.coffee | 3 + app/assets/javascripts/users.js.coffee | 3 + .../{application.css => application.scss} | 2 + app/assets/stylesheets/bootstrap_config.scss | 1 + app/assets/stylesheets/newsletters.css | 4 + app/assets/stylesheets/users.css | 4 + app/controllers/newsletters_controller.rb | 2 + app/controllers/users_controller.rb | 45 + app/helpers/newsletters_helper.rb | 2 + app/helpers/users_helper.rb | 2 + app/models/newsletter.rb | 5 +- app/models/user.rb | 4 +- app/views/layouts/application.html.erb | 14 - app/views/layouts/application.html.haml | 10 + app/views/users/_form.html.haml | 5 + app/views/users/edit.html.haml | 1 + app/views/users/index.html.haml | 21 + app/views/users/new.html.haml | 1 + app/views/users/show.html.haml | 3 + config/application.rb | 1 + config/routes.rb | 3 + log/development.log | 8589 +++++++++++++++++ log/test.log | 171 + .../newsletters_controller_spec.rb | 5 + spec/controllers/users_controller_spec.rb | 5 + spec/factories/newsletters.rb | 11 +- spec/factories/users.rb | 1 + spec/helpers/newsletters_helper_spec.rb | 15 + spec/helpers/users_helper_spec.rb | 15 + spec/models/newsletter_spec.rb | 9 +- 34 files changed, 8947 insertions(+), 38 deletions(-) create mode 100644 app/assets/javascripts/newsletters.js.coffee create mode 100644 app/assets/javascripts/users.js.coffee rename app/assets/stylesheets/{application.css => application.scss} (96%) create mode 100644 app/assets/stylesheets/bootstrap_config.scss create mode 100644 app/assets/stylesheets/newsletters.css create mode 100644 app/assets/stylesheets/users.css create mode 100644 app/controllers/newsletters_controller.rb create mode 100644 app/controllers/users_controller.rb create mode 100644 app/helpers/newsletters_helper.rb create mode 100644 app/helpers/users_helper.rb delete mode 100644 app/views/layouts/application.html.erb create mode 100644 app/views/layouts/application.html.haml create mode 100644 app/views/users/_form.html.haml create mode 100644 app/views/users/edit.html.haml create mode 100644 app/views/users/index.html.haml create mode 100644 app/views/users/new.html.haml create mode 100644 app/views/users/show.html.haml create mode 100644 spec/controllers/newsletters_controller_spec.rb create mode 100644 spec/controllers/users_controller_spec.rb create mode 100644 spec/helpers/newsletters_helper_spec.rb create mode 100644 spec/helpers/users_helper_spec.rb diff --git a/.gitignore b/.gitignore index 163914f..c25cb95 100644 --- a/.gitignore +++ b/.gitignore @@ -44,6 +44,6 @@ build/ /db/*.sqlite3-journal # Ignore all logfiles and tempfiles. - /log/*.log + /log/ /tmp *.log diff --git a/Gemfile b/Gemfile index 0c0d20b..8db3324 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ ruby '2.1.2' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.1' # Use SCSS for stylesheets -#gem 'sass-rails', '~> 4.0.3' +gem 'sass-rails', '~> 4.0.3' gem 'haml' @@ -80,4 +80,3 @@ group :development, :test do end # Use to count the successful operations in mongodb -gem 'mongoid_magic_counter_cache' diff --git a/Gemfile.lock b/Gemfile.lock index 8eef026..18c015d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -109,9 +109,6 @@ GEM mime-types (1.25.1) mini_portile (0.6.0) minitest (5.3.5) - mongoid_magic_counter_cache (1.1.0) - mongoid - rake moped (2.0.0) bson (~> 2.2) connection_pool (~> 2.0) @@ -153,9 +150,9 @@ GEM rake (10.3.2) rdoc (4.1.1) json (~> 1.4) - redis (3.0.7) - redis-namespace (1.4.1) - redis (~> 3.0.4) + redis (3.1.0) + redis-namespace (1.5.0) + redis (~> 3.0, >= 3.0.4) ref (1.0.5) rspec-core (3.0.2) rspec-support (~> 3.0.0) @@ -173,7 +170,12 @@ GEM rspec-mocks (~> 3.0.0) rspec-support (~> 3.0.0) rspec-support (3.0.2) - sass (3.3.8) + sass (3.2.19) + sass-rails (4.0.3) + railties (>= 4.0.0, < 5.0) + sass (~> 3.2.0) + sprockets (~> 2.8, <= 2.11.0) + sprockets-rails (~> 2.0) sdoc (0.4.0) json (~> 1.8) rdoc (~> 4.0, < 5.0) @@ -192,7 +194,7 @@ GEM simplecov-html (~> 0.8.0) simplecov-html (0.8.0) spring (1.1.3) - sprockets (2.12.1) + sprockets (2.11.0) hike (~> 1.2) multi_json (~> 1.0) rack (~> 1.0) @@ -239,9 +241,9 @@ DEPENDENCIES jquery-rails linkedin mongoid! - mongoid_magic_counter_cache rails (= 4.1.1) rspec-rails + sass-rails (~> 4.0.3) sdoc (~> 0.4.0) sendgrid sidekiq diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index d6925fa..86c1238 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -13,4 +13,7 @@ //= require jquery //= require jquery_ujs //= require turbolinks +//= require bootstrap //= require_tree . + + diff --git a/app/assets/javascripts/newsletters.js.coffee b/app/assets/javascripts/newsletters.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/newsletters.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/users.js.coffee b/app/assets/javascripts/users.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/users.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.scss similarity index 96% rename from app/assets/stylesheets/application.css rename to app/assets/stylesheets/application.scss index a443db3..1cded50 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.scss @@ -13,3 +13,5 @@ *= require_tree . *= require_self */ + + @import "bootstrap"; diff --git a/app/assets/stylesheets/bootstrap_config.scss b/app/assets/stylesheets/bootstrap_config.scss new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/app/assets/stylesheets/bootstrap_config.scss @@ -0,0 +1 @@ + diff --git a/app/assets/stylesheets/newsletters.css b/app/assets/stylesheets/newsletters.css new file mode 100644 index 0000000..afad32d --- /dev/null +++ b/app/assets/stylesheets/newsletters.css @@ -0,0 +1,4 @@ +/* + Place all the styles related to the matching controller here. + They will automatically be included in application.css. +*/ diff --git a/app/assets/stylesheets/users.css b/app/assets/stylesheets/users.css new file mode 100644 index 0000000..afad32d --- /dev/null +++ b/app/assets/stylesheets/users.css @@ -0,0 +1,4 @@ +/* + Place all the styles related to the matching controller here. + They will automatically be included in application.css. +*/ diff --git a/app/controllers/newsletters_controller.rb b/app/controllers/newsletters_controller.rb new file mode 100644 index 0000000..8987a92 --- /dev/null +++ b/app/controllers/newsletters_controller.rb @@ -0,0 +1,2 @@ +class NewslettersController < ApplicationController +end diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb new file mode 100644 index 0000000..66a3c09 --- /dev/null +++ b/app/controllers/users_controller.rb @@ -0,0 +1,45 @@ +class UsersController < ApplicationController + def index + @users = User.all + end + + def show + @user = User.find(params[:id]) + end + + def new + @user = User.new + end + + def create + @user = User.new(users_params) + if @user.save + redirect_to users_path + else + render action: 'new' + end + end + + def users_params + params.require(:user).permit(:id, :email_id, :is_subscribed, :joined_on, :source) + end + + def edit + @user = User.find(params[:id]) + end + + def update + @user = User.find(params[:id]) + if @user.update_attributes(users_params) + redirect_to users_path + else + render action: 'edit' + end + end + + def destroy + @user = User.find(params[:id]) + @user.destroy + redirect_to users_path + end +end diff --git a/app/helpers/newsletters_helper.rb b/app/helpers/newsletters_helper.rb new file mode 100644 index 0000000..b980224 --- /dev/null +++ b/app/helpers/newsletters_helper.rb @@ -0,0 +1,2 @@ +module NewslettersHelper +end diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb new file mode 100644 index 0000000..2310a24 --- /dev/null +++ b/app/helpers/users_helper.rb @@ -0,0 +1,2 @@ +module UsersHelper +end diff --git a/app/models/newsletter.rb b/app/models/newsletter.rb index 6b0948c..8c1ca13 100644 --- a/app/models/newsletter.rb +++ b/app/models/newsletter.rb @@ -2,12 +2,11 @@ class Newsletter include Mongoid::Document field :content, type: String field :sent_on, type: Date - field :user_count, type: Integer + field :users_count, type: Integer, default: 0 validates :content, presence: true validates :sent_on, presence: true - validates :user_count, presence: true - validates :user_count, uniqueness: true has_many :users + end diff --git a/app/models/user.rb b/app/models/user.rb index 2710730..11bfd53 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,6 +1,5 @@ class User include Mongoid::Document - include Mongoid::MagicCounterCache field :email_id, type: String field :is_subscribed, type: Boolean @@ -13,7 +12,6 @@ class User validates :source, presence: true validates :email_id, uniqueness: true - belongs_to :newsletter - counter_cache :newsletter + belongs_to :newsletter, counter_cache: :users_count end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb deleted file mode 100644 index 9797e73..0000000 --- a/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Lightair - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml new file mode 100644 index 0000000..368c9c2 --- /dev/null +++ b/app/views/layouts/application.html.haml @@ -0,0 +1,10 @@ +!!! +%html + %head + %title lightair + = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true + = javascript_include_tag 'application', 'data-turbolinks-track' => true + = csrf_meta_tags + %body + = yield + diff --git a/app/views/users/_form.html.haml b/app/views/users/_form.html.haml new file mode 100644 index 0000000..33e4308 --- /dev/null +++ b/app/views/users/_form.html.haml @@ -0,0 +1,5 @@ += form_for @user do |f| + Email: #{f.text_field :email_id} + Subcription: #{f.text_field :is_subscribed} + Joined: #{f.text_field :joined_on} + Source: #{f.text_field :source}#{f.submit "Add User Id"} diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml new file mode 100644 index 0000000..f3a2592 --- /dev/null +++ b/app/views/users/edit.html.haml @@ -0,0 +1 @@ += render :partial => "form" diff --git a/app/views/users/index.html.haml b/app/views/users/index.html.haml new file mode 100644 index 0000000..dd0354c --- /dev/null +++ b/app/views/users/index.html.haml @@ -0,0 +1,21 @@ + + + + + + + + + + +%table + - @users.each do |user| + %tr + %td + = link_to user.email_id, user_path(user) + %td + = link_to "Edit", edit_user_path(user) + %td + = link_to "Delete", user_path(user), method: :delete + %tr += link_to "Add User Id", new_user_path diff --git a/app/views/users/new.html.haml b/app/views/users/new.html.haml new file mode 100644 index 0000000..f3a2592 --- /dev/null +++ b/app/views/users/new.html.haml @@ -0,0 +1 @@ += render :partial => "form" diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml new file mode 100644 index 0000000..570f57f --- /dev/null +++ b/app/views/users/show.html.haml @@ -0,0 +1,3 @@ +=@user.source +=@user.joined_on +=@user.is_subscribed diff --git a/config/application.rb b/config/application.rb index 784336f..5b01a9c 100644 --- a/config/application.rb +++ b/config/application.rb @@ -26,5 +26,6 @@ class Application < Rails::Application # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de + config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif) end end diff --git a/config/routes.rb b/config/routes.rb index 3f66539..83742e3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,7 @@ Rails.application.routes.draw do + resources :users + resources :newsletters + root :to => "users#index" # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". diff --git a/log/development.log b/log/development.log index 4c83c00..fe86e5b 100644 --- a/log/development.log +++ b/log/development.log @@ -46,3 +46,8592 @@ Completed 200 OK in 122ms (Views: 94.1ms) COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.8678ms MOPED: 127.0.0.1:27017 UPDATE database=lightair_development collection=newsletters selector={"_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')} update={"$inc"=>{"user_count"=>1}} flags=[] COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.9440ms + + +Started GET "/" for 127.0.0.1 at 2014-06-24 15:15:33 +0530 +Processing by Rails::WelcomeController#index as HTML + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/railties-4.1.1/lib/rails/templates/rails/welcome/index.html.erb (2.2ms) +Completed 200 OK in 19ms (Views: 9.0ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 15:19:08 +0530 +Processing by UsersController#index as HTML +Completed 500 Internal Server Error in 61ms + +ActionView::MissingTemplate (Missing template users/index, application/index with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee, :haml]}. Searched in: + * "/home/kanhaiya/projects/lightair/app/views" + * "/home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/devise_invitable-1.3.5/app/views" + * "/home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/devise-3.2.4/app/views" +): + actionview (4.1.1) lib/action_view/path_set.rb:46:in `find' + actionview (4.1.1) lib/action_view/lookup_context.rb:124:in `find' + actionview (4.1.1) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:41:in `determine_template' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:8:in `render' + actionview (4.1.1) lib/action_view/renderer/renderer.rb:42:in `render_template' + actionview (4.1.1) lib/action_view/renderer/renderer.rb:23:in `render' + actionview (4.1.1) lib/action_view/rendering.rb:99:in `_render_template' + actionpack (4.1.1) lib/action_controller/metal/streaming.rb:217:in `_render_template' + actionview (4.1.1) lib/action_view/rendering.rb:82:in `render_to_body' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body' + actionpack (4.1.1) lib/action_controller/metal/renderers.rb:32:in `render_to_body' + actionpack (4.1.1) lib/abstract_controller/rendering.rb:25:in `render' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:16:in `render' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' + activesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' + /home/kanhaiya/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' + activesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `ms' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block in render' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:40:in `render' + actionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render' + actionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action' + actionpack (4.1.1) lib/abstract_controller/base.rb:189:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action' + actionpack (4.1.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' + activesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:86:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks' + actionpack (4.1.1) lib/abstract_controller/callbacks.rb:19:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/rescue.rb:29:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument' + activesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' + actionpack (4.1.1) lib/abstract_controller/base.rb:136:in `process' + actionview (4.1.1) lib/action_view/rendering.rb:30:in `process' + actionpack (4.1.1) lib/action_controller/metal.rb:195:in `dispatch' + actionpack (4.1.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' + actionpack (4.1.1) lib/action_controller/metal.rb:231:in `block in action' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `call' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `dispatch' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:48:in `call' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:71:in `block in call' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `each' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `call' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:676:in `call' + warden (1.2.3) lib/warden/manager.rb:35:in `block in call' + warden (1.2.3) lib/warden/manager.rb:34:in `catch' + warden (1.2.3) lib/warden/manager.rb:34:in `call' + rack (1.5.2) lib/rack/etag.rb:23:in `call' + rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' + rack (1.5.2) lib/rack/head.rb:11:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/flash.rb:254:in `call' + rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' + rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' + activesupport (4.1.1) lib/active_support/callbacks.rb:82:in `run_callbacks' + actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/kanhaiya/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/kanhaiya/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/kanhaiya/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb within rescues/layout (1.7ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 15:20:36 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (2.0ms) +Completed 200 OK in 542ms (Views: 532.3ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 15:20:36 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 15:20:36 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 15:20:36 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 15:20:36 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 15:20:36 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 15:20:36 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 15:20:36 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 15:20:36 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 15:20:36 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 15:28:29 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (1.9ms) +Completed 200 OK in 376ms (Views: 365.0ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 15:28:29 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 15:28:29 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 15:28:29 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 15:28:29 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 15:28:29 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 15:28:29 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 15:28:29 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 15:28:29 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 15:28:29 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 15:28:33 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.2ms) +Completed 200 OK in 11ms (Views: 10.1ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 15:28:33 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 15:28:33 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 15:28:33 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 15:28:33 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 15:28:33 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 15:28:33 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 15:28:33 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 15:28:33 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 15:28:34 +0530 + + +Started GET "/users" for 127.0.0.1 at 2014-06-24 15:28:38 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (2.0ms) +Completed 200 OK in 10ms (Views: 9.6ms) + + +Started GET "/users" for 127.0.0.1 at 2014-06-24 15:28:40 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.7ms) + + +Started GET "/users" for 127.0.0.1 at 2014-06-24 15:28:40 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 8.2ms) + + +Started GET "/users" for 127.0.0.1 at 2014-06-24 15:28:41 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.7ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 15:37:59 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (2.0ms) +Completed 200 OK in 88ms (Views: 77.9ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 15:37:59 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 15:37:59 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 15:37:59 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 15:37:59 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 15:37:59 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 15:37:59 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 15:37:59 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 15:37:59 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 15:37:59 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 15:52:47 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 12ms (Views: 11.7ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 15:52:47 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 15:52:47 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 15:52:47 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 15:52:47 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 15:52:47 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 15:52:47 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 15:52:47 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 15:52:47 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 15:52:47 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 15:52:55 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.8ms) +Completed 200 OK in 8ms (Views: 7.6ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:04:35 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 13ms (Views: 11.8ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 16:04:35 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 16:04:35 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 16:04:35 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:35 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:35 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:35 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:35 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:35 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:35 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:04:47 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 8ms (Views: 7.8ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 16:04:47 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:47 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 16:04:47 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 16:04:47 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:47 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:47 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:47 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:47 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:47 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:04:52 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 7ms (Views: 6.3ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 16:04:52 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:52 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 16:04:52 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 16:04:52 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:52 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:52 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:52 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:52 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 16:04:52 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:11:15 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 13ms (Views: 12.0ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 16:11:15 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 16:11:15 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 16:11:15 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 16:11:15 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 16:11:15 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 16:11:15 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 16:11:15 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 16:11:15 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 16:11:15 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:16:27 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 6ms (Views: 5.6ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:19:08 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 9.0ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 16:19:08 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 16:19:08 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 16:19:08 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 16:19:08 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 16:19:08 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 16:19:08 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 16:19:08 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 16:19:08 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 16:19:08 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:22:15 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (1.4ms) +Completed 500 Internal Server Error in 6ms + +SyntaxError (/home/kanhaiya/projects/lightair/app/views/users/index.html.haml:3: syntax error, unexpected keyword_end +/home/kanhaiya/projects/lightair/app/views/users/index.html.haml:4: unterminated string meets end of file +/home/kanhaiya/projects/lightair/app/views/users/index.html.haml:4: syntax error, unexpected end-of-input, expecting ')'): + actionview (4.1.1) lib/action_view/template.rb:297:in `module_eval' + actionview (4.1.1) lib/action_view/template.rb:297:in `compile' + actionview (4.1.1) lib/action_view/template.rb:245:in `block (2 levels) in compile!' + activesupport (4.1.1) lib/active_support/notifications.rb:161:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:339:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:244:in `block in compile!' + actionview (4.1.1) lib/action_view/template.rb:232:in `synchronize' + actionview (4.1.1) lib/action_view/template.rb:232:in `compile!' + actionview (4.1.1) lib/action_view/template.rb:144:in `block in render' + activesupport (4.1.1) lib/active_support/notifications.rb:161:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:339:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:143:in `render' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' + actionview (4.1.1) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument' + activesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument' + actionview (4.1.1) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:53:in `render_template' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:17:in `render' + actionview (4.1.1) lib/action_view/renderer/renderer.rb:42:in `render_template' + actionview (4.1.1) lib/action_view/renderer/renderer.rb:23:in `render' + actionview (4.1.1) lib/action_view/rendering.rb:99:in `_render_template' + actionpack (4.1.1) lib/action_controller/metal/streaming.rb:217:in `_render_template' + actionview (4.1.1) lib/action_view/rendering.rb:82:in `render_to_body' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body' + actionpack (4.1.1) lib/action_controller/metal/renderers.rb:32:in `render_to_body' + actionpack (4.1.1) lib/abstract_controller/rendering.rb:25:in `render' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:16:in `render' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' + activesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' + /home/kanhaiya/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' + activesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `ms' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block in render' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:40:in `render' + actionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render' + actionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action' + actionpack (4.1.1) lib/abstract_controller/base.rb:189:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action' + actionpack (4.1.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' + activesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:86:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks' + actionpack (4.1.1) lib/abstract_controller/callbacks.rb:19:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/rescue.rb:29:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument' + activesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' + actionpack (4.1.1) lib/abstract_controller/base.rb:136:in `process' + actionview (4.1.1) lib/action_view/rendering.rb:30:in `process' + actionpack (4.1.1) lib/action_controller/metal.rb:195:in `dispatch' + actionpack (4.1.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' + actionpack (4.1.1) lib/action_controller/metal.rb:231:in `block in action' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `call' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `dispatch' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:48:in `call' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:71:in `block in call' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `each' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `call' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:676:in `call' + warden (1.2.3) lib/warden/manager.rb:35:in `block in call' + warden (1.2.3) lib/warden/manager.rb:34:in `catch' + warden (1.2.3) lib/warden/manager.rb:34:in `call' + rack (1.5.2) lib/rack/etag.rb:23:in `call' + rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' + rack (1.5.2) lib/rack/head.rb:11:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/flash.rb:254:in `call' + rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' + rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' + activesupport (4.1.1) lib/active_support/callbacks.rb:82:in `run_callbacks' + actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/kanhaiya/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/kanhaiya/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/kanhaiya/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.7ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (20.9ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:22:46 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (1.8ms) +Completed 500 Internal Server Error in 6ms + +SyntaxError (/home/kanhaiya/projects/lightair/app/views/users/index.html.haml:3: syntax error, unexpected keyword_end +/home/kanhaiya/projects/lightair/app/views/users/index.html.haml:4: syntax error, unexpected $undefined, expecting ')' +...aml_temp);_hamlout.push_text("\n", 0, false);::Haml::Util.ht... +... ^ +/home/kanhaiya/projects/lightair/app/views/users/index.html.haml:4: unterminated string meets end of file +/home/kanhaiya/projects/lightair/app/views/users/index.html.haml:4: syntax error, unexpected end-of-input, expecting ')'): + actionview (4.1.1) lib/action_view/template.rb:297:in `module_eval' + actionview (4.1.1) lib/action_view/template.rb:297:in `compile' + actionview (4.1.1) lib/action_view/template.rb:245:in `block (2 levels) in compile!' + activesupport (4.1.1) lib/active_support/notifications.rb:161:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:339:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:244:in `block in compile!' + actionview (4.1.1) lib/action_view/template.rb:232:in `synchronize' + actionview (4.1.1) lib/action_view/template.rb:232:in `compile!' + actionview (4.1.1) lib/action_view/template.rb:144:in `block in render' + activesupport (4.1.1) lib/active_support/notifications.rb:161:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:339:in `instrument' + actionview (4.1.1) lib/action_view/template.rb:143:in `render' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template' + actionview (4.1.1) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument' + activesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument' + actionview (4.1.1) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:54:in `block in render_template' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:53:in `render_template' + actionview (4.1.1) lib/action_view/renderer/template_renderer.rb:17:in `render' + actionview (4.1.1) lib/action_view/renderer/renderer.rb:42:in `render_template' + actionview (4.1.1) lib/action_view/renderer/renderer.rb:23:in `render' + actionview (4.1.1) lib/action_view/rendering.rb:99:in `_render_template' + actionpack (4.1.1) lib/action_controller/metal/streaming.rb:217:in `_render_template' + actionview (4.1.1) lib/action_view/rendering.rb:82:in `render_to_body' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body' + actionpack (4.1.1) lib/action_controller/metal/renderers.rb:32:in `render_to_body' + actionpack (4.1.1) lib/abstract_controller/rendering.rb:25:in `render' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:16:in `render' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' + activesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' + /home/kanhaiya/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/benchmark.rb:294:in `realtime' + activesupport (4.1.1) lib/active_support/core_ext/benchmark.rb:12:in `ms' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:41:in `block in render' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:40:in `render' + actionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render' + actionpack (4.1.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action' + actionpack (4.1.1) lib/abstract_controller/base.rb:189:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action' + actionpack (4.1.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' + activesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:113:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:229:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:166:in `block in halting' + activesupport (4.1.1) lib/active_support/callbacks.rb:86:in `call' + activesupport (4.1.1) lib/active_support/callbacks.rb:86:in `run_callbacks' + actionpack (4.1.1) lib/abstract_controller/callbacks.rb:19:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/rescue.rb:29:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `block in instrument' + activesupport (4.1.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.1.1) lib/active_support/notifications.rb:159:in `instrument' + actionpack (4.1.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' + actionpack (4.1.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' + actionpack (4.1.1) lib/abstract_controller/base.rb:136:in `process' + actionview (4.1.1) lib/action_view/rendering.rb:30:in `process' + actionpack (4.1.1) lib/action_controller/metal.rb:195:in `dispatch' + actionpack (4.1.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' + actionpack (4.1.1) lib/action_controller/metal.rb:231:in `block in action' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `call' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:80:in `dispatch' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:48:in `call' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:71:in `block in call' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `each' + actionpack (4.1.1) lib/action_dispatch/journey/router.rb:59:in `call' + actionpack (4.1.1) lib/action_dispatch/routing/route_set.rb:676:in `call' + warden (1.2.3) lib/warden/manager.rb:35:in `block in call' + warden (1.2.3) lib/warden/manager.rb:34:in `catch' + warden (1.2.3) lib/warden/manager.rb:34:in `call' + rack (1.5.2) lib/rack/etag.rb:23:in `call' + rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' + rack (1.5.2) lib/rack/head.rb:11:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/flash.rb:254:in `call' + rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' + rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' + activesupport (4.1.1) lib/active_support/callbacks.rb:82:in `run_callbacks' + actionpack (4.1.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' + railties (4.1.1) lib/rails/rack/logger.rb:38:in `call_app' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `block in call' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:26:in `tagged' + activesupport (4.1.1) lib/active_support/tagged_logging.rb:68:in `tagged' + railties (4.1.1) lib/rails/rack/logger.rb:20:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' + rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' + rack (1.5.2) lib/rack/runtime.rb:17:in `call' + activesupport (4.1.1) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + actionpack (4.1.1) lib/action_dispatch/middleware/static.rb:64:in `call' + rack (1.5.2) lib/rack/sendfile.rb:112:in `call' + railties (4.1.1) lib/rails/engine.rb:514:in `call' + railties (4.1.1) lib/rails/application.rb:144:in `call' + rack (1.5.2) lib/rack/lock.rb:17:in `call' + rack (1.5.2) lib/rack/content_length.rb:14:in `call' + rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' + /home/kanhaiya/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' + /home/kanhaiya/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' + /home/kanhaiya/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.7ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (16.9ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:24:46 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.7933ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.5896ms + Rendered users/index.html.haml within layouts/application (18.4ms) +Completed 200 OK in 28ms (Views: 27.7ms) + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 16:24:46 +0530 + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 16:24:46 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 16:24:46 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 16:24:46 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 16:24:46 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 16:24:46 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 16:24:46 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 16:24:46 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 16:24:46 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:25:34 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.6393ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.8163ms + Rendered users/index.html.haml within layouts/application (4.9ms) +Completed 200 OK in 13ms (Views: 12.6ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 16:25:34 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 16:25:34 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 16:25:34 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 16:25:34 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 16:25:34 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 16:25:34 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 16:25:34 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 16:25:34 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 16:25:34 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:25:55 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.7548ms + Rendered users/index.html.haml within layouts/application (4.0ms) +Completed 200 OK in 33ms (Views: 32.8ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 16:25:56 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 16:25:56 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 16:25:56 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 16:25:56 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 16:25:56 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 16:25:56 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 16:25:56 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 16:25:56 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 16:25:56 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:26:17 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.6298ms + Rendered users/index.html.haml within layouts/application (2.9ms) +Completed 200 OK in 9ms (Views: 8.5ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 16:26:50 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.3981ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.5228ms + Rendered users/index.html.haml within layouts/application (2.4ms) +Completed 200 OK in 10ms (Views: 9.3ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 16:26:50 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 16:26:50 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 16:26:50 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 16:26:50 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 16:26:50 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 16:26:50 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 16:26:50 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 16:26:50 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 16:26:50 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 17:06:40 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.7446ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.9850ms + Rendered users/index.html.haml within layouts/application (5.1ms) +Completed 200 OK in 18ms (Views: 10.6ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 17:06:40 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 17:06:40 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 17:06:40 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 17:06:40 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 17:06:40 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 17:06:40 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 17:06:40 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 17:06:40 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 17:06:40 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 17:18:38 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.7417ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.6750ms + Rendered users/index.html.haml within layouts/application (10.6ms) +Completed 200 OK in 40ms (Views: 39.4ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 17:18:39 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 17:18:39 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 17:18:39 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 17:18:39 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 17:18:39 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 17:18:39 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 17:18:39 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 17:18:39 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 17:18:39 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 17:20:07 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.5197ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.8550ms + Rendered users/index.html.haml within layouts/application (14.0ms) +Completed 200 OK in 22ms (Views: 21.3ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 17:20:07 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 17:20:07 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 17:20:07 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:07 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:07 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:07 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:07 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:07 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:07 +0530 + + +Started DELETE "/users/53a943db6b616e27ab030000" for 127.0.0.1 at 2014-06-24 17:20:10 +0530 +Processing by UsersController#destroy as HTML + Parameters: {"authenticity_token"=>"pMOJnpE8VWovxRexjr56OlOp3q6u6ZobPTpw4RyylSI=", "id"=>"53a943db6b616e27ab030000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a943db6b616e27ab030000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.6500ms + MOPED: 127.0.0.1:27017 DELETE database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a943db6b616e27ab030000')} flags=[:remove_first] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.6732ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=newsletters selector={"$query"=>{"_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.4111ms + MOPED: 127.0.0.1:27017 UPDATE database=lightair_development collection=newsletters selector={"_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')} update={"$inc"=>{"user_count"=>-1}} flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.6932ms +Redirected to http://localhost:3000/users +Completed 302 Found in 15ms + + +Started GET "/users" for 127.0.0.1 at 2014-06-24 17:20:10 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.8601ms + Rendered users/index.html.haml within layouts/application (10.6ms) +Completed 200 OK in 23ms (Views: 21.5ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 17:20:10 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:10 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:10 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:10 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 17:20:10 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 17:20:10 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:10 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:10 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:10 +0530 + + +Started DELETE "/users/53a940866b616e27ab000000" for 127.0.0.1 at 2014-06-24 17:20:21 +0530 +Processing by UsersController#destroy as HTML + Parameters: {"authenticity_token"=>"pMOJnpE8VWovxRexjr56OlOp3q6u6ZobPTpw4RyylSI=", "id"=>"53a940866b616e27ab000000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a940866b616e27ab000000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.9020ms + MOPED: 127.0.0.1:27017 DELETE database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a940866b616e27ab000000')} flags=[:remove_first] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.6625ms +Redirected to http://localhost:3000/users +Completed 302 Found in 5ms + + +Started GET "/users" for 127.0.0.1 at 2014-06-24 17:20:21 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.2642ms + Rendered users/index.html.haml within layouts/application (9.1ms) +Completed 200 OK in 18ms (Views: 17.0ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 17:20:21 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:21 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 17:20:21 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 17:20:21 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:21 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:21 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:21 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:21 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 17:20:21 +0530 + + +Started GET "/users" for 127.0.0.1 at 2014-06-24 17:47:38 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.5031ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.6920ms + Rendered users/index.html.haml within layouts/application (18.7ms) +Completed 200 OK in 26ms (Views: 25.1ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 17:47:38 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 17:47:38 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 17:47:38 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 17:47:38 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 17:47:38 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 17:47:38 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 17:47:38 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 17:47:38 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 17:47:38 +0530 + + +Started GET "/users/53a81cc46b616e4427040000" for 127.0.0.1 at 2014-06-24 17:47:42 +0530 +Processing by UsersController#show as HTML + Parameters: {"id"=>"53a81cc46b616e4427040000"} + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.8974ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a81cc46b616e4427040000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.5827ms + Rendered users/show.html.haml within layouts/application (1.7ms) +Completed 200 OK in 16ms (Views: 10.8ms) + + +Started GET "/users/53a81cd06b616e4427050000" for 127.0.0.1 at 2014-06-24 17:47:46 +0530 +Processing by UsersController#show as HTML + Parameters: {"id"=>"53a81cd06b616e4427050000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a81cd06b616e4427050000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.4269ms + Rendered users/show.html.haml within layouts/application (0.1ms) +Completed 200 OK in 9ms (Views: 6.8ms) + + +Started GET "/users/53a7c8596b616e21dd000000" for 127.0.0.1 at 2014-06-24 17:47:54 +0530 +Processing by UsersController#show as HTML + Parameters: {"id"=>"53a7c8596b616e21dd000000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a7c8596b616e21dd000000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.4535ms + Rendered users/show.html.haml within layouts/application (0.2ms) +Completed 200 OK in 12ms (Views: 10.4ms) + + +Started GET "/users/53a7c8596b616e21dd000000" for 127.0.0.1 at 2014-06-24 17:48:00 +0530 +Processing by UsersController#show as HTML + Parameters: {"id"=>"53a7c8596b616e21dd000000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a7c8596b616e21dd000000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.3924ms + Rendered users/show.html.haml within layouts/application (0.2ms) +Completed 200 OK in 15ms (Views: 12.3ms) + + +Started GET "/users/53a7d1106b616e225d030000" for 127.0.0.1 at 2014-06-24 17:48:03 +0530 +Processing by UsersController#show as HTML + Parameters: {"id"=>"53a7d1106b616e225d030000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a7d1106b616e225d030000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.6649ms + Rendered users/show.html.haml within layouts/application (0.2ms) +Completed 200 OK in 11ms (Views: 8.5ms) + + +Started GET "/users/53a7d1f36b616e225d040000" for 127.0.0.1 at 2014-06-24 17:48:06 +0530 +Processing by UsersController#show as HTML + Parameters: {"id"=>"53a7d1f36b616e225d040000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a7d1f36b616e225d040000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.4159ms + Rendered users/show.html.haml within layouts/application (0.2ms) +Completed 200 OK in 13ms (Views: 10.6ms) + + +Started GET "/users/53a7d3ea6b616e22b0000000" for 127.0.0.1 at 2014-06-24 17:48:19 +0530 +Processing by UsersController#show as HTML + Parameters: {"id"=>"53a7d3ea6b616e22b0000000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a7d3ea6b616e22b0000000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.4384ms + Rendered users/show.html.haml within layouts/application (0.2ms) +Completed 200 OK in 10ms (Views: 7.7ms) + + +Started GET "/users/53a7d5376b616e22b0030000" for 127.0.0.1 at 2014-06-24 17:48:23 +0530 +Processing by UsersController#show as HTML + Parameters: {"id"=>"53a7d5376b616e22b0030000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a7d5376b616e22b0030000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.4089ms + Rendered users/show.html.haml within layouts/application (0.2ms) +Completed 200 OK in 8ms (Views: 6.0ms) + + +Started GET "/users" for 127.0.0.1 at 2014-06-24 18:00:55 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.5026ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.8152ms + Rendered users/index.html.haml within layouts/application (9.8ms) +Completed 200 OK in 16ms (Views: 15.3ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 18:00:55 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 18:00:55 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 18:00:55 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 18:00:55 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 18:00:55 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 18:00:55 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 18:00:55 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 18:00:55 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 18:00:55 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 18:03:26 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.5646ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.5144ms + Rendered users/index.html.haml within layouts/application (14.3ms) +Completed 200 OK in 22ms (Views: 21.1ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 18:03:26 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 18:03:26 +0530 + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 18:03:26 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 18:03:26 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 18:03:26 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 18:03:26 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 18:03:26 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 18:03:26 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 18:03:26 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 18:03:59 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (1.3ms) +Completed 500 Internal Server Error in 5ms + +ActionView::Template::Error (Inconsistent indentation: 1 space used for indentation, but the rest of the document was indented using 2 spaces.): + 8: %td + 9: =link_to "Delete", user_path(user), method: :delete + 10: %tr + 11: =link_to "ADD ID", new_user_path + app/views/users/index.html.haml:11 + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (17.8ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 18:04:24 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (0.9ms) +Completed 500 Internal Server Error in 5ms + +ActionView::Template::Error (Inconsistent indentation: 3 spaces used for indentation, but the rest of the document was indented using 2 spaces.): + 8: %td + 9: =link_to "Delete", user_path(user), method: :delete + 10: %tr + 11: =link_to "ADD ID", new_user_path + app/views/users/index.html.haml:11 + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (12.2ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 18:04:59 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.5664ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.8827ms + Rendered users/index.html.haml within layouts/application (23.1ms) +Completed 200 OK in 33ms (Views: 32.1ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 18:04:59 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 18:04:59 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 18:04:59 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 18:04:59 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 18:04:59 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 18:04:59 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 18:04:59 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 18:04:59 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 18:04:59 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 18:06:39 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (1.2ms) +Completed 500 Internal Server Error in 4ms + +ActionView::Template::Error (Inconsistent indentation: 3 spaces used for indentation, but the rest of the document was indented using 2 spaces.): + 7: =link_to "Edit", edit_user_path(user) + 8: %td + 9: =link_to "Delete", user_path(user), method: :delete + 10: %tr + 11: =link_to "ADD ID", new_user_path + app/views/users/index.html.haml:10 + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (12.4ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 18:07:06 +0530 +Processing by UsersController#index as HTML + Rendered users/index.html.haml within layouts/application (1.5ms) +Completed 500 Internal Server Error in 5ms + +ActionView::Template::Error (Inconsistent indentation: 1 space used for indentation, but the rest of the document was indented using 2 spaces.): + 8: %td + 9: =link_to "Delete", user_path(user), method: :delete + 10: %tr + 11: =link_to "ADD ID", new_user_path + app/views/users/index.html.haml:11 + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (12.4ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 18:08:50 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.4588ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.3991ms + Rendered users/index.html.haml within layouts/application (9.2ms) +Completed 200 OK in 16ms (Views: 15.6ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 18:08:50 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 18:08:50 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 18:08:50 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 18:08:50 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 18:08:50 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 18:08:50 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 18:08:50 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 18:08:50 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 18:08:50 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 18:08:55 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.6342ms + Rendered users/index.html.haml within layouts/application (7.5ms) +Completed 200 OK in 15ms (Views: 14.5ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 18:08:55 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 18:08:55 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 18:08:55 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 18:08:55 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 18:08:55 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 18:08:55 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 18:08:55 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 18:08:55 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 18:08:55 +0530 + + +Started GET "/users/new" for 127.0.0.1 at 2014-06-24 18:08:57 +0530 +Processing by UsersController#new as HTML + Rendered users/_form.html.haml (49.8ms) + Rendered users/new.html.haml within layouts/application (142.7ms) +Completed 200 OK in 151ms (Views: 150.3ms) + + +Started POST "/users" for 127.0.0.1 at 2014-06-24 18:09:44 +0530 +Processing by UsersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"pMOJnpE8VWovxRexjr56OlOp3q6u6ZobPTpw4RyylSI=", "user"=>{"email_id"=>"pankajsharma@gmail.com", "is_subscribed"=>"true", "joined_on"=>"08/22/2013", "source"=>"Linkedin"}, "commit"=>"Add User Id"} +Completed 500 Internal Server Error in 4ms + +NameError (undefined local variable or method `user' for #): + app/controllers/users_controller.rb:15:in `create' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.8ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (21.0ms) + + +Started POST "/users" for 127.0.0.1 at 2014-06-24 18:11:29 +0530 +Processing by UsersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"pMOJnpE8VWovxRexjr56OlOp3q6u6ZobPTpw4RyylSI=", "user"=>{"email_id"=>"pankajsharma@gmail.com", "is_subscribed"=>"true", "joined_on"=>"08/22/2013", "source"=>"Linkedin"}, "commit"=>"Add User Id"} + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.4118ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"pankajsharma@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.2676ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=users documents=[{"_id"=>BSON::ObjectId('53a971f96b616e2ab8000000'), "email_id"=>"pankajsharma@gmail.com", "is_subscribed"=>true, "joined_on"=>Thu, 01 Jan 1970, "source"=>"Linkedin"}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.4417ms +Redirected to http://localhost:3000/users +Completed 302 Found in 22ms + + +Started GET "/users" for 127.0.0.1 at 2014-06-24 18:11:29 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.7192ms + Rendered users/index.html.haml within layouts/application (8.2ms) +Completed 200 OK in 16ms (Views: 15.0ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 18:11:29 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 18:11:29 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 18:11:29 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 18:11:29 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 18:11:29 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 18:11:29 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 18:11:29 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 18:11:29 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 18:11:29 +0530 + + +Started GET "/users/53a971f96b616e2ab8000000/edit" for 127.0.0.1 at 2014-06-24 18:11:33 +0530 +Processing by UsersController#edit as HTML + Parameters: {"id"=>"53a971f96b616e2ab8000000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a971f96b616e2ab8000000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.4243ms + Rendered users/_form.html.haml (1.5ms) + Rendered users/edit.html.haml within layouts/application (4.2ms) +Completed 200 OK in 14ms (Views: 12.5ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 18:12:15 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.4643ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.6131ms + Rendered users/index.html.haml within layouts/application (9.3ms) +Completed 200 OK in 22ms (Views: 15.1ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 18:12:15 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 18:12:15 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 18:12:15 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 18:12:15 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 18:12:15 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 18:12:15 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 18:12:15 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 18:12:15 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 18:12:15 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-24 18:12:38 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.9042ms + Rendered users/index.html.haml within layouts/application (12.1ms) +Completed 200 OK in 19ms (Views: 18.5ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 18:12:38 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 18:12:39 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 18:12:39 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 18:12:39 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 18:12:39 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 18:12:39 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 18:12:39 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 18:12:39 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 18:12:39 +0530 + + +Started GET "/users/new" for 127.0.0.1 at 2014-06-24 18:12:43 +0530 +Processing by UsersController#new as HTML + Rendered users/_form.html.haml (2.1ms) + Rendered users/new.html.haml within layouts/application (3.4ms) +Completed 200 OK in 13ms (Views: 12.1ms) + + +Started POST "/users" for 127.0.0.1 at 2014-06-24 18:13:12 +0530 +Processing by UsersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"pMOJnpE8VWovxRexjr56OlOp3q6u6ZobPTpw4RyylSI=", "user"=>{"email_id"=>"sourav@gmail.com", "is_subscribed"=>"true", "joined_on"=>"08/22/2013", "source"=>"Linkedin"}, "commit"=>"Add User Id"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"sourav@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6859ms + Rendered users/_form.html.haml (2.7ms) + Rendered users/new.html.haml within layouts/application (4.3ms) +Completed 200 OK in 313ms (Views: 9.2ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 18:13:12 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 18:13:12 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 18:13:12 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:12 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:12 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:12 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:12 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:12 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:12 +0530 + + +Started POST "/users" for 127.0.0.1 at 2014-06-24 18:13:36 +0530 +Processing by UsersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"pMOJnpE8VWovxRexjr56OlOp3q6u6ZobPTpw4RyylSI=", "user"=>{"email_id"=>"sourav12345@gmail.com", "is_subscribed"=>"true", "joined_on"=>"08/22/2013", "source"=>"Linkedin"}, "commit"=>"Add User Id"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"sourav12345@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.7131ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=users documents=[{"_id"=>BSON::ObjectId('53a972786b616e2ab8010000'), "email_id"=>"sourav12345@gmail.com", "is_subscribed"=>true, "joined_on"=>Thu, 01 Jan 1970, "source"=>"Linkedin"}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.5892ms +Redirected to http://localhost:3000/users +Completed 302 Found in 6ms + + +Started GET "/users" for 127.0.0.1 at 2014-06-24 18:13:36 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.8546ms + Rendered users/index.html.haml within layouts/application (9.0ms) +Completed 200 OK in 18ms (Views: 16.8ms) + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 18:13:36 +0530 + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 18:13:36 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 18:13:36 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:36 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:36 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:36 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:36 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:36 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:36 +0530 + + +Started GET "/users/53a972786b616e2ab8010000/edit" for 127.0.0.1 at 2014-06-24 18:13:41 +0530 +Processing by UsersController#edit as HTML + Parameters: {"id"=>"53a972786b616e2ab8010000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a972786b616e2ab8010000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.5507ms + Rendered users/_form.html.haml (1.9ms) + Rendered users/edit.html.haml within layouts/application (2.7ms) +Completed 200 OK in 11ms (Views: 8.6ms) + + +Started DELETE "/users/53a972786b616e2ab8010000" for 127.0.0.1 at 2014-06-24 18:13:47 +0530 +Processing by UsersController#destroy as HTML + Parameters: {"authenticity_token"=>"pMOJnpE8VWovxRexjr56OlOp3q6u6ZobPTpw4RyylSI=", "id"=>"53a972786b616e2ab8010000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a972786b616e2ab8010000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.3960ms + MOPED: 127.0.0.1:27017 DELETE database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a972786b616e2ab8010000')} flags=[:remove_first] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.9664ms +Redirected to http://localhost:3000/users +Completed 302 Found in 5ms + + +Started GET "/users" for 127.0.0.1 at 2014-06-24 18:13:47 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.3760ms + Rendered users/index.html.haml within layouts/application (10.1ms) +Completed 200 OK in 16ms (Views: 16.0ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 18:13:47 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 18:13:47 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:47 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 18:13:47 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:47 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:47 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:47 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:47 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 18:13:47 +0530 + + +Started GET "/users/53a971f96b616e2ab8000000/edit" for 127.0.0.1 at 2014-06-24 18:13:50 +0530 +Processing by UsersController#edit as HTML + Parameters: {"id"=>"53a971f96b616e2ab8000000"} + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"_id"=>BSON::ObjectId('53a971f96b616e2ab8000000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.4037ms + Rendered users/_form.html.haml (1.7ms) + Rendered users/edit.html.haml within layouts/application (2.8ms) +Completed 200 OK in 11ms (Views: 9.4ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-24 18:23:29 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.5261ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.6693ms + Rendered users/index.html.haml within layouts/application (8.0ms) +Completed 200 OK in 14ms (Views: 14.0ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-24 18:23:29 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-24 18:23:29 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-24 18:23:29 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-24 18:23:29 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-24 18:23:29 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-24 18:23:29 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-24 18:23:29 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-24 18:23:29 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-24 18:23:29 +0530 + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 2.7220ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=newsletters selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 19.2877ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 1.2792ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=newsletters selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.8210ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"newsletter_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.0338ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"rohit@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.6615ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=users documents=[{"_id"=>BSON::ObjectId('53aa619e6b616e0e85000000'), "email_id"=>"rohit@gmail.com", "is_subscribed"=>true, "joined_on"=>Thu, 01 Jan 1970, "source"=>"Linkedin", "newsletter_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 1.1032ms + MOPED: 127.0.0.1:27017 UPDATE database=lightair_development collection=newsletters selector={"_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')} update={"$inc"=>{"users_count"=>1}} flags=[:multi] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 1.3156ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"rohit1@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 1.2457ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=users documents=[{"_id"=>BSON::ObjectId('53aa61fb6b616e0e85010000'), "email_id"=>"rohit1@gmail.com", "is_subscribed"=>true, "joined_on"=>Thu, 01 Jan 1970, "source"=>"Linkedin", "newsletter_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 1.3573ms + MOPED: 127.0.0.1:27017 UPDATE database=lightair_development collection=newsletters selector={"_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')} update={"$inc"=>{"users_count"=>1}} flags=[:multi] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.8482ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 1.3530ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=newsletters selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.8947ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"rohit3@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.4783ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=users documents=[{"_id"=>BSON::ObjectId('53aa62566b616e0ec5000000'), "email_id"=>"rohit3@gmail.com", "is_subscribed"=>true, "joined_on"=>Thu, 01 Jan 1970, "source"=>"Linkedin", "newsletter_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 1.2184ms + MOPED: 127.0.0.1:27017 UPDATE database=lightair_development collection=newsletters selector={"_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')} update={"$inc"=>{"users_count"=>1}} flags=[:multi] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 1.1474ms + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 1.3191ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=newsletters selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil fields=nil runtime: 0.7851ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={"email_id"=>"rohit4@gmail.com"} flags=[] limit=-1 skip=0 batch_size=nil fields={:_id=>1} runtime: 0.8042ms + MOPED: 127.0.0.1:27017 INSERT database=lightair_development collection=users documents=[{"_id"=>BSON::ObjectId('53aa62ea6b616e0eec000000'), "email_id"=>"rohit4@gmail.com", "is_subscribed"=>true, "joined_on"=>Thu, 01 Jan 1970, "source"=>"Linkedin", "newsletter_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')}] flags=[] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.8520ms + MOPED: 127.0.0.1:27017 UPDATE database=lightair_development collection=newsletters selector={"_id"=>BSON::ObjectId('53a7cf2a6b616e225d000000')} update={"$inc"=>{"users_count"=>1}} flags=[:multi] + COMMAND database=lightair_development command={:getlasterror=>1, :w=>1} runtime: 0.7328ms + + +Started GET "/" for 127.0.0.1 at 2014-06-25 11:24:43 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.7742ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.0345ms + Rendered users/index.html.haml within layouts/application (26.8ms) +Completed 200 OK in 300ms (Views: 267.9ms) + + +Started GET "/assets/newsletters.css?body=1" for 127.0.0.1 at 2014-06-25 11:24:44 +0530 + + +Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2014-06-25 11:24:44 +0530 + + +Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-06-25 11:24:44 +0530 + + +Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-25 11:24:44 +0530 + + +Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-06-25 11:24:44 +0530 + + +Started GET "/assets/newsletters.js?body=1" for 127.0.0.1 at 2014-06-25 11:24:44 +0530 + + +Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-06-25 11:24:44 +0530 + + +Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2014-06-25 11:24:44 +0530 + + +Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-25 11:24:44 +0530 + + +Started GET "/" for 127.0.0.1 at 2014-06-25 11:27:20 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.5987ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.1331ms + Rendered users/index.html.haml within layouts/application (13.0ms) +Completed 500 Internal Server Error in 82ms + +ActionView::Template::Error (Missing partial users/_header, application/_header with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee, :haml]}. Searched in: + * "/home/kanhaiya/projects/lightair/app/views" + * "/home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/devise_invitable-1.3.5/app/views" + * "/home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/devise-3.2.4/app/views" +): + 9: = csrf_meta_tag + 10: %body + 11: %section#container + 12: = render 'header' + 13: = render 'sidebar' + 14: #flash.hide + 15: = render 'flash_message' + app/views/layouts/application.html.haml:12:in `_app_views_layouts_application_html_haml___3419393303226133263_41429500' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (14.4ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-25 11:42:31 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.9214ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.7470ms + Rendered users/index.html.haml within layouts/application (15.1ms) + Rendered application/_header.html.haml (286.7ms) +Completed 500 Internal Server Error in 414ms + +ActionView::Template::Error (undefined local variable or method `dashboard_path' for #<#:0x00000004057360>): + 2: .sidebar-toggle-box + 3: .icon-reorder.tooltips{"data-original-title" => "Toggle Navigation", "data-placement" => "right"} + 4: / logo start + 5: = link_to dashboard_path, class: 'logo' do + 6: Kimaya + 7: %span TPN + 8: / logo end + app/views/application/_header.html.haml:5:in `_app_views_application__header_html_haml___2437804589655642930_50361680' + app/views/layouts/application.html.haml:12:in `_app_views_layouts_application_html_haml___1882319821272753606_33185340' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (12.8ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-25 11:45:04 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.5355ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.9488ms + Rendered users/index.html.haml within layouts/application (11.3ms) + Rendered application/_header.html.haml (1.1ms) +Completed 500 Internal Server Error in 41ms + +ActionView::Template::Error (Illegal element: classes and ids must have values.): + 2: .sidebar-toggle-box + 3: .icon-reorder.tooltips{"data-original-title" => "Toggle Navigation", "data-placement" => "right"} + 4: / logo start + 5: #= link_to dashboard_path, class: 'logo' do + 6: #Kimaya + 7: %span TPN + 8: / logo end + app/views/application/_header.html.haml:5 + app/views/layouts/application.html.haml:12:in `_app_views_layouts_application_html_haml___1882319821272753606_47514680' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (11.9ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-25 11:46:20 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.5358ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.0208ms + Rendered users/index.html.haml within layouts/application (10.7ms) + Rendered application/_header.html.haml (16.5ms) +Completed 500 Internal Server Error in 54ms + +ActionView::Template::Error (undefined local variable or method `current_user' for #<#:0x000000043767f8>): + 11: %li.dropdown + 12: %a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"} + 13: / = image_tag "avatar1_small.jpg" + 14: %span.username= current_user.name + 15: %b.caret + 16: %ul.dropdown-menu.extended.logout + 17: .log-arrow-up + app/views/application/_header.html.haml:14:in `_app_views_application__header_html_haml___2437804589655642930_22390500' + app/views/layouts/application.html.haml:12:in `_app_views_layouts_application_html_haml___1882319821272753606_47514680' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (11.2ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-25 11:46:52 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.5246ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.9949ms + Rendered users/index.html.haml within layouts/application (11.2ms) + Rendered application/_header.html.haml (1.4ms) +Completed 500 Internal Server Error in 38ms + +ActionView::Template::Error (Illegal element: classes and ids must have values.): + 11: %li.dropdown + 12: %a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"} + 13: / = image_tag "avatar1_small.jpg" + 14: # %span.username= current_user.name + 15: %b.caret + 16: %ul.dropdown-menu.extended.logout + 17: .log-arrow-up + app/views/application/_header.html.haml:14 + app/views/layouts/application.html.haml:12:in `_app_views_layouts_application_html_haml___1882319821272753606_47514680' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (12.0ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-25 11:47:54 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.5196ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.1803ms + Rendered users/index.html.haml within layouts/application (11.4ms) + Rendered application/_header.html.haml (1.3ms) +Completed 500 Internal Server Error in 39ms + +ActionView::Template::Error (Illegal element: classes and ids must have values.): + 11: %li.dropdown + 12: %a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"} + 13: / = image_tag "avatar1_small.jpg" + 14: #%span.username= current_user.name + 15: %b.caret + 16: %ul.dropdown-menu.extended.logout + 17: .log-arrow-up + app/views/application/_header.html.haml:14 + app/views/layouts/application.html.haml:12:in `_app_views_layouts_application_html_haml___1882319821272753606_47514680' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (12.3ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-25 11:48:56 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.5254ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.7502ms + Rendered users/index.html.haml within layouts/application (11.7ms) + Rendered application/_header.html.haml (15.9ms) +Completed 500 Internal Server Error in 53ms + +ActionView::Template::Error (undefined local variable or method `destroy_user_session_path' for #<#:0x0000000447f2f8>): + 24: / %i.icon-bell-alt + 25: / Notification + 26: %li + 27: = link_to destroy_user_session_path, method: :delete do + 28: %i.icon-key + 29: Log Out + 30: = form_tag("/dashboard", method: :post, id: "switch_hospital", class: "form-horizontal") do + app/views/application/_header.html.haml:27:in `_app_views_application__header_html_haml___2437804589655642930_23312780' + app/views/layouts/application.html.haml:12:in `_app_views_layouts_application_html_haml___1882319821272753606_47514680' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (11.5ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-25 11:49:51 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.7120ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.7919ms + Rendered users/index.html.haml within layouts/application (10.3ms) + Rendered application/_header.html.haml (2.1ms) +Completed 500 Internal Server Error in 37ms + +ActionView::Template::Error (The line was indented 2 levels deeper than the previous line.): + 24: / %i.icon-bell-alt + 25: / Notification + 26: %li + 27: %i.icon-key + 28: Log Out + 29: = form_tag("/dashboard", method: :post, id: "switch_hospital", class: "form-horizontal") do + 30: .col-lg-2.current_hospital.pull-right + app/views/application/_header.html.haml:27 + app/views/layouts/application.html.haml:12:in `_app_views_layouts_application_html_haml___1882319821272753606_47514680' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.2ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (17.2ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-25 11:50:14 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.0686ms + Rendered users/index.html.haml within layouts/application (10.3ms) + Rendered application/_header.html.haml (1.7ms) +Completed 500 Internal Server Error in 37ms + +ActionView::Template::Error (The line was indented 2 levels deeper than the previous line.): + 24: / %i.icon-bell-alt + 25: / Notification + 26: %li + 27: Log Out + 28: = form_tag("/dashboard", method: :post, id: "switch_hospital", class: "form-horizontal") do + 29: .col-lg-2.current_hospital.pull-right + 30: = select_tag "current_hospital", options_for_select(session[:hospitals], session[:current_hospital]), class: "form-control m-bot-15" + app/views/application/_header.html.haml:27 + app/views/layouts/application.html.haml:12:in `_app_views_layouts_application_html_haml___1882319821272753606_47514680' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (11.9ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-25 11:50:51 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} runtime: 0.9512ms + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.1143ms + Rendered users/index.html.haml within layouts/application (11.5ms) + Rendered application/_header.html.haml (1.8ms) +Completed 500 Internal Server Error in 41ms + +ActionView::Template::Error (Inconsistent indentation: 9 spaces used for indentation, but the rest of the document was indented using 2 spaces.): + 25: / Notification + 26: %li + 27: + 28: =form_tag("/dashboard", method: :post, id: "switch_hospital", class: "form-horizontal") do + 29: .col-lg-2.current_hospital.pull-right + 30: = select_tag "current_hospital", options_for_select(session[:hospitals], session[:current_hospital]), class: "form-control m-bot-15" + 31: - if current_user.hospital_ids.size < 2 + app/views/application/_header.html.haml:28 + app/views/layouts/application.html.haml:12:in `_app_views_layouts_application_html_haml___1882319821272753606_47514680' + + + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) + Rendered /home/kanhaiya/.rvm/gems/ruby-2.1.2@lightair/gems/actionpack-4.1.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (16.6ms) + + +Started GET "/" for 127.0.0.1 at 2014-06-25 11:51:13 +0530 +Processing by UsersController#index as HTML + MOPED: 127.0.0.1:27017 QUERY database=lightair_development collection=users selector={} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 0.7795ms + Rendered users/index.html.haml within layouts/application (9.9ms) + Rendered application/_header.html.haml (5.5ms) +Completed 500 Internal Server Error in 40ms + +SyntaxError (/home/kanhaiya/projects/lightair/app/views/application/_header.html.haml:28: syntax error, unexpected ')' +));}\n \n \n \n
    \n
    \n #{_hamlout.adjust_ta... +... ^ +/home/kanhaiya/projects/lightair/app/views/application/_header.html.haml:30: syntax error, unexpected '}', expecting keyword_end +));}\n
    \n \n",... + ^ +/home/kanhaiya/projects/lightair/app/views/application/_header.html.haml:30: unknown regexp option - l +/home/kanhaiya/projects/lightair/app/views/application/_header.html.haml:30: syntax error, unexpected $undefined +));}\n
    \n \n", -2, false); if current_us... + ^ +/home/kanhaiya/projects/lightair/app/views/application/_header.html.haml:31: syntax error, unexpected $undefined +...amlout.push_text(" + + + + + + + + + + + + + +
    +
    +
    + + +
    +
    +
    +

    Insight of LightAir

    +

    LightAir is a mass Mailer designed to send newsletters designed in html to be sent to a few hundered to a tens of thousands of subscribers. It has an inbuilt HTML editor to create a newsletter online.

    +
    +
    +
    +
    + + diff --git a/spec/controllers/spreadsheets_controller_spec.rb b/spec/controllers/spreadsheets_controller_spec.rb new file mode 100644 index 0000000..2df1e40 --- /dev/null +++ b/spec/controllers/spreadsheets_controller_spec.rb @@ -0,0 +1,29 @@ +require 'rails_helper' +require 'webmock/rspec' + +RSpec.describe SpreadsheetsController, :type => :controller do + google_auth_response = File.new('spec/controllers/google_auth_response.json') + context 'GET Index' do + it 'it renders the index template' do + get :index + expect(response).to render_template(:index) + end + + it 'should return all the spreadhseets' do + c = SpreadsheetsController.new + r = c.instance_eval{index} + expect(r.count).to eq(Spreadsheet.count) + end + end + + context 'GET New' do + it 'opens authentication page on calling auth/google' do + stub_request(:get, 'http://localhost:8080/auth/google/').to_return(google_auth_response) + stub_request(:get, "https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com&prompt=consent&redirect_uri=http://localhost:8080/auth/google/callback&response_type=code&scope=https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/drive%20https://spreadsheets.google.com/feeds&state=df37c7da59cf8f7a4899cd5a67a612e9d18946664bc98d4f"). + with(:headers => {'Accept'=>'*/*; q=0.5, application/xml', 'Accept-Encoding'=>'gzip, deflate', 'Cookie'=>'_lightair_session=Uy9SNDQ1LzZFandLd1g4S2VVTEptR3ZRa0RBcnNFWGtZbG1VZmNKMzc5Z1F6cDFuaHBCa2lScHcxL1FBQ044RTJZMU9iUWF2UitaVjQxcGVzeUZwS0Q3NkdXdzg2SHB6S0IrcU1sR2ExelhRRVZuWFF6MFpraktBMTNCcTM4UVZ5a01ReitYSzNYT2M0dXR1NWViUjhvVGVxUnYwRUtLREtoQUVjMkJPMW1PZG14MUVUQlN0Q2hkRUh5blVLMDZRLS1OZ3JGQXFWQmJKMGNCWGszQWoyMkNRPT0=--8345e9f7215c9ef812febd3588c505cfaef628c1', 'User-Agent'=>'Ruby'}). + to_return(:status => 200, :body => "", :headers => {}) + + RestClient.get('http://localhost:8080/auth/google/') + end + end +end diff --git a/spec/factories/spreadsheets.rb b/spec/factories/spreadsheets.rb new file mode 100644 index 0000000..22ce7c5 --- /dev/null +++ b/spec/factories/spreadsheets.rb @@ -0,0 +1,6 @@ +# Read about factories at https://github.com/thoughtbot/factory_girl + +FactoryGirl.define do + factory :spreadsheet do + end +end diff --git a/spec/helpers/spreadsheets_helper_spec.rb b/spec/helpers/spreadsheets_helper_spec.rb new file mode 100644 index 0000000..35864e6 --- /dev/null +++ b/spec/helpers/spreadsheets_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SpreadsheetsHelper. For example: +# +# describe SpreadsheetsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SpreadsheetsHelper, :type => :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/models/spreadsheet_spec.rb b/spec/models/spreadsheet_spec.rb new file mode 100644 index 0000000..a4927c8 --- /dev/null +++ b/spec/models/spreadsheet_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe Spreadsheet, :type => :model do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index cfb18dc..77dfef0 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,7 +3,7 @@ # The generated `.rspec` file contains `--require spec_helper` which will cause this # file to always be loaded, without a need to explicitly require it in any files. # -# Given that it is always loaded, you are encouraged to keep this file as +# Given th at it is always loaded, you are encouraged to keep this file as # light-weight as possible. Requiring heavyweight dependencies from this file # will add to the boot time of your test suite on EVERY test run, even for an # individual file that may not need all of that loaded. Instead, make a From f360b57a7a391a5bcbf12461e7ee8e1b7dd178f1 Mon Sep 17 00:00:00 2001 From: basnal Date: Fri, 11 Jul 2014 10:50:24 +0530 Subject: [PATCH 29/43] Unnecessary json files removed #11 --- spec/controllers/google_auth_response.json | 12 -- spec/controllers/host_response.json | 121 --------------------- 2 files changed, 133 deletions(-) delete mode 100644 spec/controllers/google_auth_response.json delete mode 100644 spec/controllers/host_response.json diff --git a/spec/controllers/google_auth_response.json b/spec/controllers/google_auth_response.json deleted file mode 100644 index 8473da2..0000000 --- a/spec/controllers/google_auth_response.json +++ /dev/null @@ -1,12 +0,0 @@ -HTTP/1.1 302 Found -Content-Length: 537 -Location: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com&prompt=consent&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fauth%2Fgoogle%2Fcallback&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive+https%3A%2F%2Fspreadsheets.google.com%2Ffeeds&state=df37c7da59cf8f7a4899cd5a67a612e9d18946664bc98d4f -Cache-Control: no-cache -X-Request-Id: b511bdb4-c778-4f1a-b5d7-849f1402b1a3 -X-Runtime: 0.003534 -Server: WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08) -Date: Thu, 10 Jul 2014 10:39:34 GMT -Connection: Keep-Alive -Set-Cookie: _lightair_session=Uy9SNDQ1LzZFandLd1g4S2VVTEptR3ZRa0RBcnNFWGtZbG1VZmNKMzc5Z1F6cDFuaHBCa2lScHcxL1FBQ044RTJZMU9iUWF2UitaVjQxcGVzeUZwS0Q3NkdXdzg2SHB6S0IrcU1sR2ExelhRRVZuWFF6MFpraktBMTNCcTM4UVZ5a01ReitYSzNYT2M0dXR1NWViUjhvVGVxUnYwRUtLREtoQUVjMkJPMW1PZG14MUVUQlN0Q2hkRUh5blVLMDZRLS1OZ3JGQXFWQmJKMGNCWGszQWoyMkNRPT0%3D--8345e9f7215c9ef812febd3588c505cfaef628c1; path=/; HttpOnly - -Redirecting to https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com&prompt=consent&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fauth%2Fgoogle%2Fcallback&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive+https%3A%2F%2Fspreadsheets.google.com%2Ffeeds&state=df37c7da59cf8f7a4899cd5a67a612e9d18946664bc98d4f... diff --git a/spec/controllers/host_response.json b/spec/controllers/host_response.json deleted file mode 100644 index f76a7f1..0000000 --- a/spec/controllers/host_response.json +++ /dev/null @@ -1,121 +0,0 @@ -HTTP/1.1 200 OK -X-Frame-Options: SAMEORIGIN -X-Xss-Protection: 1; mode=block -X-Content-Type-Options: nosniff -Content-Type: text/html; charset=utf-8 -Etag: "b29936011c26adc86d08ede08dc03e1e" -Cache-Control: max-age=0, private, must-revalidate -X-Request-Id: cdc9c224-e586-409f-adfb-8367d40f8a41 -X-Runtime: 0.015686 -Server: WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08) -Date: Thu, 10 Jul 2014 10:21:40 GMT -Content-Length: 4406 -Connection: Keep-Alive -Set-Cookie: request_method=GET; path=/ -Set-Cookie: _lightair_session=aUVDRko5L1dYOFJqN2NvNmg2NkI3b2JwN01GRXduamtJdFhmM3hoU0dkR2U3WkpLS2ZUUFlqRWppOGg1NHBPYllDaVpDM2w5d0xxVlBuRFJjaHVFa0FaRVdXOUdQWDlFSGJoaUZTYkdtQnl0N3F3OVdQd1c0YU5rZjNQZ09JcTFmck1HenpMbnhxaHFRT091SnZkdUZRPT0tLTVuczRGVTZyNHdwWXVaZmliU0VxZ0E9PQ%3D%3D--f5a6ab0bbbd0ec42bc63ca27924361e391dd36b3; path=/; HttpOnly - - - - - Lightair - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - -
    -
    -
    -

    Insight of LightAir

    -

    LightAir is a mass Mailer designed to send newsletters designed in html to be sent to a few hundered to a tens of thousands of subscribers. It has an inbuilt HTML editor to create a newsletter online.

    -
    -
    -
    -
    - - From 0a3c3c1bd9bad427780f2069fafd7565c93571d1 Mon Sep 17 00:00:00 2001 From: basnal Date: Fri, 11 Jul 2014 11:00:32 +0530 Subject: [PATCH 30/43] Code was refactored #11 --- .gitignore | 1 + app/controllers/spreadsheets_controller.rb | 3 --- config/routes.rb | 9 +-------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 72dcb25..b8ae448 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,4 @@ build/ /tmp *.log test.html.haml + diff --git a/app/controllers/spreadsheets_controller.rb b/app/controllers/spreadsheets_controller.rb index 8bf26d1..c823cdc 100644 --- a/app/controllers/spreadsheets_controller.rb +++ b/app/controllers/spreadsheets_controller.rb @@ -6,8 +6,6 @@ def index end def new - @req = params -=begin if params[:access_token] spreadsheet = Spreadsheet.where(access_token: params['access_token'])[0] else @@ -24,7 +22,6 @@ def new @msg = 'no work' # Handle if data does not get saved end -=end end def edit diff --git a/config/routes.rb b/config/routes.rb index 8f07095..3e337c7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,12 +1,5 @@ Rails.application.routes.draw do -=begin - get '/home/sheets', to: 'home#add_from_google', as: 'add_from_google' - get '/auth/:provider/callback', to: 'callbacks#omniauth' - get '/linkedin', to: 'callbacks#linkedin', as: 'linkedin' - get '/callbacks/sheet/:id', to: 'callbacks#setSheet', as: 'set_sheet' - get '/callbacks/index', to: 'callbacks#index', as: 'callback_index' - get '/callbacks/update/:id', to: 'callbacks#update', as: 'callback_update' -=end + get '/auth/:provider/callback', to: 'spreadsheets#new' resources :users, :newsletters, :home, :spreadsheets From 228e8bac0acff5ad3a061a36a20e73f40b4fd3bd Mon Sep 17 00:00:00 2001 From: Pankaj Basnal Date: Fri, 11 Jul 2014 11:04:03 +0530 Subject: [PATCH 31/43] Updated new.html.haml #5 --- app/views/spreadsheets/new.html.haml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/views/spreadsheets/new.html.haml b/app/views/spreadsheets/new.html.haml index 4a3f606..e9f2c45 100644 --- a/app/views/spreadsheets/new.html.haml +++ b/app/views/spreadsheets/new.html.haml @@ -1,7 +1,6 @@ -=@req %br --#count = @spreadsheets.count -=#count --#count.times do |i| - =#link_to @spreadsheets[i]['title'], edit_spreadsheet_path(@spreadsheets[i]['id'], title: @spreadsheets[i]['title'], token: @token) if @spreadsheets[i]['mimeType'].include?('spreadsheet') - %br \ No newline at end of file +-count = @spreadsheets.count +=count +-count.times do |i| + =link_to @spreadsheets[i]['title'], edit_spreadsheet_path(@spreadsheets[i]['id'], title: @spreadsheets[i]['title'], token: @token) if @spreadsheets[i]['mimeType'].include?('spreadsheet') + %br From 95ab8823c632c4f4d8ac10d1834d9b68b1f43eae Mon Sep 17 00:00:00 2001 From: basnal Date: Fri, 11 Jul 2014 11:18:04 +0530 Subject: [PATCH 32/43] Simplecov version was changed to resolve bugs #10 --- Gemfile | 2 +- Gemfile.lock | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Gemfile b/Gemfile index e6540b2..94872a1 100644 --- a/Gemfile +++ b/Gemfile @@ -79,7 +79,7 @@ group :development, :test do # Use to clean database after executing a test case gem 'database_cleaner' # Use to track how much code has been tested - gem 'simplecov' + gem 'simplecov', '~> 0.7.1' # Webmock to stub http requests gem 'webmock' # VCR to record the responses from web and replay them when needed diff --git a/Gemfile.lock b/Gemfile.lock index 16efa74..9f9d5c9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -71,7 +71,6 @@ GEM actionmailer (>= 3.2.6, < 5) devise (>= 3.2.0) diff-lcs (1.2.5) - docile (1.1.5) erubis (2.7.0) execjs (2.2.1) extlib (0.9.16) @@ -239,11 +238,10 @@ GEM simple_form (3.0.2) actionpack (~> 4.0) activemodel (~> 4.0) - simplecov (0.8.2) - docile (~> 1.1.0) - multi_json - simplecov-html (~> 0.8.0) - simplecov-html (0.8.0) + simplecov (0.7.1) + multi_json (~> 1.0) + simplecov-html (~> 0.7.1) + simplecov-html (0.7.1) slop (3.5.0) spring (1.1.3) sprockets (2.11.0) @@ -309,7 +307,7 @@ DEPENDENCIES sendgrid sidekiq simple_form - simplecov + simplecov (~> 0.7.1) spring therubyracer turbolinks From e12ac68c05ac9d640675b23ea79130f4b3156b85 Mon Sep 17 00:00:00 2001 From: basnal Date: Fri, 11 Jul 2014 12:20:24 +0530 Subject: [PATCH 33/43] Handler of Authentication failure added #5 --- app/controllers/spreadsheets_controller.rb | 11 +- app/views/spreadsheets/index.html.haml | 1 + config/initializers/google_oauth.rb | 9 +- config/routes.rb | 3 +- spec/controllers/google_auth_response.json | 12 ++ spec/controllers/host_response.json | 121 +++++++++++++++++++++ 6 files changed, 150 insertions(+), 7 deletions(-) create mode 100644 spec/controllers/google_auth_response.json create mode 100644 spec/controllers/host_response.json diff --git a/app/controllers/spreadsheets_controller.rb b/app/controllers/spreadsheets_controller.rb index c823cdc..d421ba7 100644 --- a/app/controllers/spreadsheets_controller.rb +++ b/app/controllers/spreadsheets_controller.rb @@ -17,9 +17,7 @@ def new # Spreadsheets from google @spreadsheets = get_spreadsheets(spreadsheet) @token = spreadsheet.access_token - @msg = 'work' else - @msg = 'no work' # Handle if data does not get saved end end @@ -28,7 +26,6 @@ def edit token = spreadsheet_params['token'] spreadsheet = Spreadsheet.where(access_token: token)[0] spreadsheet.add_spreadsheet_credentials(spreadsheet_params) - #binding.pry spreadsheet.save @spreadsheets = Spreadsheet.all.to_a @@ -51,4 +48,12 @@ def destroy def spreadsheet_params params.permit(:title, :id, :token) end + + def failure + if params['message'].match('access_denied') + @msg = "Account integration Failed. User Refused to grant permissions" + end + @spreadsheets = Spreadsheet.all.to_a + render action: 'index' + end end diff --git a/app/views/spreadsheets/index.html.haml b/app/views/spreadsheets/index.html.haml index ec9f293..a62fe7e 100644 --- a/app/views/spreadsheets/index.html.haml +++ b/app/views/spreadsheets/index.html.haml @@ -1,3 +1,4 @@ += @msg if @msg %h4 =link_to 'Add New Spreadsheet', 'auth/google/' diff --git a/config/initializers/google_oauth.rb b/config/initializers/google_oauth.rb index 69265b6..4cde5db 100644 --- a/config/initializers/google_oauth.rb +++ b/config/initializers/google_oauth.rb @@ -4,7 +4,10 @@ name: 'google', scope: 'userinfo.profile,userinfo.email,drive,https://spreadsheets.google.com/feeds', prompt: 'consent', - access_type: 'offline', - #redirect_uri: 'http://localhost:8080/auth/google/spreadsheets' + access_type: 'offline' } -end \ No newline at end of file +end + +OmniAuth.config.on_failure = Proc.new { |env| + OmniAuth::FailureEndpoint.new(env).redirect_to_failure +} \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 3e337c7..f28f4ee 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,7 @@ Rails.application.routes.draw do - get '/auth/:provider/callback', to: 'spreadsheets#new' + get '/auth/:provider/callback', to: 'spreadsheets#new' + get '/auth/failure', to: 'spreadsheets#failure' resources :users, :newsletters, :home, :spreadsheets root :to => 'home#index' diff --git a/spec/controllers/google_auth_response.json b/spec/controllers/google_auth_response.json new file mode 100644 index 0000000..8473da2 --- /dev/null +++ b/spec/controllers/google_auth_response.json @@ -0,0 +1,12 @@ +HTTP/1.1 302 Found +Content-Length: 537 +Location: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com&prompt=consent&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fauth%2Fgoogle%2Fcallback&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive+https%3A%2F%2Fspreadsheets.google.com%2Ffeeds&state=df37c7da59cf8f7a4899cd5a67a612e9d18946664bc98d4f +Cache-Control: no-cache +X-Request-Id: b511bdb4-c778-4f1a-b5d7-849f1402b1a3 +X-Runtime: 0.003534 +Server: WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08) +Date: Thu, 10 Jul 2014 10:39:34 GMT +Connection: Keep-Alive +Set-Cookie: _lightair_session=Uy9SNDQ1LzZFandLd1g4S2VVTEptR3ZRa0RBcnNFWGtZbG1VZmNKMzc5Z1F6cDFuaHBCa2lScHcxL1FBQ044RTJZMU9iUWF2UitaVjQxcGVzeUZwS0Q3NkdXdzg2SHB6S0IrcU1sR2ExelhRRVZuWFF6MFpraktBMTNCcTM4UVZ5a01ReitYSzNYT2M0dXR1NWViUjhvVGVxUnYwRUtLREtoQUVjMkJPMW1PZG14MUVUQlN0Q2hkRUh5blVLMDZRLS1OZ3JGQXFWQmJKMGNCWGszQWoyMkNRPT0%3D--8345e9f7215c9ef812febd3588c505cfaef628c1; path=/; HttpOnly + +Redirecting to https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com&prompt=consent&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fauth%2Fgoogle%2Fcallback&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive+https%3A%2F%2Fspreadsheets.google.com%2Ffeeds&state=df37c7da59cf8f7a4899cd5a67a612e9d18946664bc98d4f... diff --git a/spec/controllers/host_response.json b/spec/controllers/host_response.json new file mode 100644 index 0000000..f76a7f1 --- /dev/null +++ b/spec/controllers/host_response.json @@ -0,0 +1,121 @@ +HTTP/1.1 200 OK +X-Frame-Options: SAMEORIGIN +X-Xss-Protection: 1; mode=block +X-Content-Type-Options: nosniff +Content-Type: text/html; charset=utf-8 +Etag: "b29936011c26adc86d08ede08dc03e1e" +Cache-Control: max-age=0, private, must-revalidate +X-Request-Id: cdc9c224-e586-409f-adfb-8367d40f8a41 +X-Runtime: 0.015686 +Server: WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08) +Date: Thu, 10 Jul 2014 10:21:40 GMT +Content-Length: 4406 +Connection: Keep-Alive +Set-Cookie: request_method=GET; path=/ +Set-Cookie: _lightair_session=aUVDRko5L1dYOFJqN2NvNmg2NkI3b2JwN01GRXduamtJdFhmM3hoU0dkR2U3WkpLS2ZUUFlqRWppOGg1NHBPYllDaVpDM2w5d0xxVlBuRFJjaHVFa0FaRVdXOUdQWDlFSGJoaUZTYkdtQnl0N3F3OVdQd1c0YU5rZjNQZ09JcTFmck1HenpMbnhxaHFRT091SnZkdUZRPT0tLTVuczRGVTZyNHdwWXVaZmliU0VxZ0E9PQ%3D%3D--f5a6ab0bbbd0ec42bc63ca27924361e391dd36b3; path=/; HttpOnly + + + + + Lightair + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + +
    +
    +
    +

    Insight of LightAir

    +

    LightAir is a mass Mailer designed to send newsletters designed in html to be sent to a few hundered to a tens of thousands of subscribers. It has an inbuilt HTML editor to create a newsletter online.

    +
    +
    +
    +
    + + From 2a4cf3f2f9bcb1bbbb1bf7b0479b6b4bc345de56 Mon Sep 17 00:00:00 2001 From: basnal Date: Mon, 14 Jul 2014 22:47:38 +0530 Subject: [PATCH 34/43] Specs added --- Gemfile | 3 + app/controllers/spreadsheets_controller.rb | 31 +- app/helpers/callbacks_helper.rb | 2 - app/models/spreadsheet.rb | 3 +- app/views/spreadsheets/index.html.haml | 10 +- app/views/spreadsheets/new.html.haml | 13 +- lib/google.rb | 44 ++ lib/google_spreadsheets.rb | 46 -- .../spreadsheets_controller_spec.rb | 122 ++++- spec/factories/spreadsheets.rb | 7 +- spec/spec_helper.rb | 17 + spec/support/vcr_setup.rb | 7 + spec/vcr/controllers/api-new_tokens.yml | 518 ++++++++++++++++++ spec/vcr/controllers/api-permissions.yml | 122 +++++ spec/vcr/controllers/api-response.yml | 518 ++++++++++++++++++ spec/vcr/controllers/api-update-with-data.yml | 340 ++++++++++++ spec/vcr/controllers/api-update.yml | 394 +++++++++++++ 17 files changed, 2117 insertions(+), 80 deletions(-) delete mode 100644 app/helpers/callbacks_helper.rb create mode 100644 lib/google.rb delete mode 100644 lib/google_spreadsheets.rb create mode 100644 spec/support/vcr_setup.rb create mode 100644 spec/vcr/controllers/api-new_tokens.yml create mode 100644 spec/vcr/controllers/api-permissions.yml create mode 100644 spec/vcr/controllers/api-response.yml create mode 100644 spec/vcr/controllers/api-update-with-data.yml create mode 100644 spec/vcr/controllers/api-update.yml diff --git a/Gemfile b/Gemfile index 94872a1..8299568 100644 --- a/Gemfile +++ b/Gemfile @@ -80,6 +80,9 @@ group :development, :test do gem 'database_cleaner' # Use to track how much code has been tested gem 'simplecov', '~> 0.7.1' +end + +group :test do # Webmock to stub http requests gem 'webmock' # VCR to record the responses from web and replay them when needed diff --git a/app/controllers/spreadsheets_controller.rb b/app/controllers/spreadsheets_controller.rb index d421ba7..51b6925 100644 --- a/app/controllers/spreadsheets_controller.rb +++ b/app/controllers/spreadsheets_controller.rb @@ -1,5 +1,6 @@ class SpreadsheetsController < ApplicationController - include GoogleSpreadsheets + require 'google' + include Google::Spreadsheets def index @spreadsheets = Spreadsheet.all.to_a @@ -15,18 +16,23 @@ def new if spreadsheet.save # Spreadsheets from google - @spreadsheets = get_spreadsheets(spreadsheet) + @spreadsheets = list(spreadsheet) @token = spreadsheet.access_token else # Handle if data does not get saved + @msg = 'Getting same access token. Try deleting ' end end def edit token = spreadsheet_params['token'] spreadsheet = Spreadsheet.where(access_token: token)[0] - spreadsheet.add_spreadsheet_credentials(spreadsheet_params) - spreadsheet.save + + if spreadsheet.add_spreadsheet_credentials(spreadsheet_params) + spreadsheet.save + else + @error = 'Already Present' + end @spreadsheets = Spreadsheet.all.to_a @@ -35,8 +41,9 @@ def edit def update spreadsheet = Spreadsheet.find(params['id']) - @worksheet = get_worksheets(spreadsheet) + @worksheet = worksheets(spreadsheet) User.add_users_from_worksheet(@worksheet) + redirect_to users_path end @@ -45,15 +52,19 @@ def destroy redirect_to spreadsheets_path end - def spreadsheet_params - params.permit(:title, :id, :token) - end - def failure if params['message'].match('access_denied') - @msg = "Account integration Failed. User Refused to grant permissions" + @msg = 'Account integration Failed. User Refused to grant permissions' end @spreadsheets = Spreadsheet.all.to_a render action: 'index' end + + ################################# + private + ################################# + + def spreadsheet_params + params.permit(:title, :id, :token) + end end diff --git a/app/helpers/callbacks_helper.rb b/app/helpers/callbacks_helper.rb deleted file mode 100644 index 6c9550c..0000000 --- a/app/helpers/callbacks_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module CallbacksHelper -end diff --git a/app/models/spreadsheet.rb b/app/models/spreadsheet.rb index e8fed63..640648b 100644 --- a/app/models/spreadsheet.rb +++ b/app/models/spreadsheet.rb @@ -7,7 +7,7 @@ class Spreadsheet field :expires_at, type: Time field :access_token, type: String - validates :access_token, uniqueness: true + validates :access_token, presence: true, uniqueness: true def add_tokens(tokens = {}) self['access_token'] = tokens.fetch('token') @@ -16,7 +16,6 @@ def add_tokens(tokens = {}) end def add_spreadsheet_credentials(credentials = {}) - #binding.pry self['spreadsheet_id'] = credentials['id'] self['spreadsheet_title'] = credentials['title'] end diff --git a/app/views/spreadsheets/index.html.haml b/app/views/spreadsheets/index.html.haml index a62fe7e..cc0691a 100644 --- a/app/views/spreadsheets/index.html.haml +++ b/app/views/spreadsheets/index.html.haml @@ -1,6 +1,6 @@ = @msg if @msg %h4 - =link_to 'Add New Spreadsheet', 'auth/google/' + =link_to 'Add New Spreadsheet', '/auth/google/' %table.table.table-striped %tr.info @@ -19,10 +19,14 @@ %td = i = i + 1 %td - - if ss['spreadsheet_title'] + -if ss['spreadsheet_title'] =ss['spreadsheet_title'] -else - =link_to 'Spreadsheet not initialised', new_spreadsheet_path(access_token: ss['access_token']) + =link_to 'Get Spreadsheet', new_spreadsheet_path(access_token: ss['access_token']) + -if @error + ( + =@error + ) %td =link_to 'Delete', spreadsheet_path(ss), method: :delete -if ss['spreadsheet_title'] diff --git a/app/views/spreadsheets/new.html.haml b/app/views/spreadsheets/new.html.haml index e9f2c45..c644423 100644 --- a/app/views/spreadsheets/new.html.haml +++ b/app/views/spreadsheets/new.html.haml @@ -1,6 +1,7 @@ -%br --count = @spreadsheets.count -=count --count.times do |i| - =link_to @spreadsheets[i]['title'], edit_spreadsheet_path(@spreadsheets[i]['id'], title: @spreadsheets[i]['title'], token: @token) if @spreadsheets[i]['mimeType'].include?('spreadsheet') - %br +-if @msg + =@msg +-else + -count = @spreadsheets.count + -count.times do |i| + =link_to @spreadsheets[i]['title'], edit_spreadsheet_path(@spreadsheets[i]['id'], title: @spreadsheets[i]['title'], token: @token) if @spreadsheets[i]['mimeType'].include?('spreadsheet') + %br diff --git a/lib/google.rb b/lib/google.rb new file mode 100644 index 0000000..9b68401 --- /dev/null +++ b/lib/google.rb @@ -0,0 +1,44 @@ +module Google + module Spreadsheets + def list(spreadsheet) + if Time.now > spreadsheet['expires_at'] + spreadsheet = refresh_token spreadsheet + end + + client = Google::APIClient.new + client.authorization.access_token = spreadsheet.access_token + drive = client.discovered_api('drive', 'v2') + + wks = client.execute( + api_method: drive.files.list, + parameters: {}, + headers: {'Content-Type' => 'application/json'} + ) + (JSON.parse(wks.data.to_json))['items'] + end + + def worksheets(spreadsheet, index = 0) + if DateTime.now.utc > spreadsheet['expires_at'] + spreadsheet = refresh_token spreadsheet + end + + session = GoogleDrive.login_with_oauth(spreadsheet['access_token']) + session.spreadsheet_by_key(spreadsheet['spreadsheet_id']).worksheets[index] + end + + def refresh_token(spreadsheet) + client = Google::APIClient.new + client.authorization.client_id = ENV['GOOGLE_ID'] + client.authorization.client_secret = ENV['GOOGLE_KEY'] + client.authorization.grant_type = 'refresh_token' + client.authorization.refresh_token = spreadsheet['refresh_token'] + re = client.authorization.fetch_access_token! + + spreadsheet['access_token'] = re['access_token'] + spreadsheet['expires_at'] = (Time.now + re['expires_in'].second) + spreadsheet.save + + spreadsheet + end + end +end \ No newline at end of file diff --git a/lib/google_spreadsheets.rb b/lib/google_spreadsheets.rb deleted file mode 100644 index 880fb04..0000000 --- a/lib/google_spreadsheets.rb +++ /dev/null @@ -1,46 +0,0 @@ -module GoogleSpreadsheets - def get_spreadsheets(spreadsheet) - #binding.pry - if Time.now > spreadsheet['expires_at'] - spreadsheet = refresh_token spreadsheet - end - - client = Google::APIClient.new - client.authorization.access_token = spreadsheet.access_token - drive = client.discovered_api('drive', 'v2') - - wks = client.execute( - api_method: drive.files.list, - parameters: {}, - headers: {'Content-Type' => 'application/json'} - ) - (JSON.parse(wks.data.to_json))['items'] - end - - def get_worksheets(spreadsheet, i = 0) - if Time.now > spreadsheet['expires_at'] - spreadsheet = refresh_token spreadsheet - end - - session = GoogleDrive.login_with_oauth(spreadsheet['access_token']) - session.spreadsheet_by_key(spreadsheet['spreadsheet_id']).worksheets[i] - end - - def refresh_token(spreadsheet) - data = { - client_id: ENV['GOOGLE_ID'], - client_secret: ENV['GOOGLE_KEY'], - refresh_token: spreadsheet['refresh_token'], - grant_type: 'refresh_token' - } - re = ActiveSupport::JSON.decode(RestClient.post 'https://accounts.google.com/o/oauth2/token', data) - - #sheets = Token.where(spreadsheet_id: spreadsheet['spreadsheet_id'])[0] - spreadsheet['access_token'] = re['access_token'] - spreadsheet['expires_at'] = (Time.now + re['expires_in'].second).localtime - #binding.pry - spreadsheet.save - - spreadsheet - end -end \ No newline at end of file diff --git a/spec/controllers/spreadsheets_controller_spec.rb b/spec/controllers/spreadsheets_controller_spec.rb index 2df1e40..c0e6689 100644 --- a/spec/controllers/spreadsheets_controller_spec.rb +++ b/spec/controllers/spreadsheets_controller_spec.rb @@ -1,29 +1,131 @@ require 'rails_helper' require 'webmock/rspec' +require 'vcr' RSpec.describe SpreadsheetsController, :type => :controller do - google_auth_response = File.new('spec/controllers/google_auth_response.json') + + context 'GET User Permission' do + context 'User accepts' do + it 'redirects to new ' do + VCR.use_cassette 'controllers/api-permissions' do + data = { + name: 'google', + scope: 'userinfo.profile,userinfo.email,drive,https://spreadsheets.google.com/feeds', + prompt: 'consent', + access_type: 'offline', + redirect_uri: 'http://localhost:8080/auth/google/callback' + } + RestClient.post 'https://accounts.google.com/o/oauth2/auth', data + end + + end + end + end + context 'GET Index' do it 'it renders the index template' do get :index expect(response).to render_template(:index) end + let(:sheet) { FactoryGirl.create(:spreadsheet)} it 'should return all the spreadhseets' do - c = SpreadsheetsController.new - r = c.instance_eval{index} - expect(r.count).to eq(Spreadsheet.count) + sheet + get :index + expect(assigns(:spreadsheets)).equal?(Spreadsheet.all.to_a.count) end end context 'GET New' do - it 'opens authentication page on calling auth/google' do - stub_request(:get, 'http://localhost:8080/auth/google/').to_return(google_auth_response) - stub_request(:get, "https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com&prompt=consent&redirect_uri=http://localhost:8080/auth/google/callback&response_type=code&scope=https://www.googleapis.com/auth/userinfo.profile%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/drive%20https://spreadsheets.google.com/feeds&state=df37c7da59cf8f7a4899cd5a67a612e9d18946664bc98d4f"). - with(:headers => {'Accept'=>'*/*; q=0.5, application/xml', 'Accept-Encoding'=>'gzip, deflate', 'Cookie'=>'_lightair_session=Uy9SNDQ1LzZFandLd1g4S2VVTEptR3ZRa0RBcnNFWGtZbG1VZmNKMzc5Z1F6cDFuaHBCa2lScHcxL1FBQ044RTJZMU9iUWF2UitaVjQxcGVzeUZwS0Q3NkdXdzg2SHB6S0IrcU1sR2ExelhRRVZuWFF6MFpraktBMTNCcTM4UVZ5a01ReitYSzNYT2M0dXR1NWViUjhvVGVxUnYwRUtLREtoQUVjMkJPMW1PZG14MUVUQlN0Q2hkRUh5blVLMDZRLS1OZ3JGQXFWQmJKMGNCWGszQWoyMkNRPT0=--8345e9f7215c9ef812febd3588c505cfaef628c1', 'User-Agent'=>'Ruby'}). - to_return(:status => 200, :body => "", :headers => {}) + it 'creates new spreadsheet when no access_token given' do + VCR.use_cassette 'controllers/api-new_tokens' do + request.env['omniauth.auth'] = { + 'credentials' => { + 'token' => 'ya29.QgC-5kYKwAzcdh8AAABnuwXicpaXRvO_YSlv4V9J556542KazsYWEia63TlRyA', + 'refresh_token' => '1/DlAqfSUji69F3YuVAHSoWxWE0grR8aYSkb2OocVCNBw', + 'expires_at' => Time.now, + 'expires' => true + } + } + + get :new + expect(response).to render_template(:new) + end + end + + let(:sheet) { FactoryGirl.create(:spreadsheet)} + it 'does not creates new spreadsheet when access_token is given' do + VCR.use_cassette 'controllers/api-response' do + get(:new, access_token: sheet.access_token) + expect(response).to render_template(:new) + end + end + end + + context 'Get Edit' do + let(:sheet) { FactoryGirl.create(:spreadsheet)} + it 'renders index page after executing' do + get :edit, title: 'namecollection', id: sheet['spreadsheet_id'], token: sheet['access_token'] + + expect(response).to render_template(:index) + end + + it 'adds spreadsheet\'s credentials' do + get :edit, title: 'namecollection', id: sheet['spreadsheet_id'], token: sheet['access_token'] + expect(assigns(:error)).to be(nil) + end + end + + context 'Post Update' do + let(:sheet) { FactoryGirl.create(:spreadsheet)} + it 'updates the spreadsheet' do + VCR.use_cassette 'controllers/api-update-with-data', record: :new_episodes do + post :update, id: sheet + expect(response).to redirect_to users_path + end + end + end + + context 'Post Destroy' do + let(:sheet) { FactoryGirl.create(:spreadsheet)} + it 'deletes spreadsheets from database' do + sheet + count1 = Spreadsheet.all.count + post :destroy, id: sheet + count2 = Spreadsheet.all.count + + expect(count1).to be(count2 + 1) + end + + it 'redirects to spreadsheets index page' do + post :destroy, id: sheet + expect(response).to redirect_to spreadsheets_path + end + end + + context 'Get Failure' do + it 'renders index page when user does not accepts permissions' do + get :failure, message: 'access_denied' + + expect(response).to render_template(:index) + end + + it 'to give a failure message when it fails' do + get :failure, message: 'access_denied' + expect(assigns(:msg)).not_to be nil + end + + it 'not to give a failure message when it does not fails' do + get :failure, message: 'access_granted' + expect(assigns(:msg)).to be nil + end + + let(:sheet) { FactoryGirl.create(:spreadsheet)} + it 'gets all the spreadsheets' do + sheet + get :failure, message: 'access_denied' - RestClient.get('http://localhost:8080/auth/google/') + expect(assigns(:spreadsheets).count).equal?(Spreadsheet.all.count) end end end diff --git a/spec/factories/spreadsheets.rb b/spec/factories/spreadsheets.rb index 22ce7c5..63c310f 100644 --- a/spec/factories/spreadsheets.rb +++ b/spec/factories/spreadsheets.rb @@ -1,6 +1,11 @@ # Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do - factory :spreadsheet do + factory :spreadsheet do |s| + s.spreadsheet_id {'1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE'} + s.spreadsheet_title {'namecollection'} + s.access_token {'ya29.QgC-5kYKwAzcdh8AAABnuwXicpaXRvO_YSlv4V9J556542KazsYWEia63TlRyA'} + s.refresh_token {'1/DlAqfSUji69F3YuVAHSoWxWE0grR8aYSkb2OocVCNBw'} + s.expires_at {Time.now - 3600} end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 77dfef0..4720d64 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,6 @@ +require 'database_cleaner' +require 'simplecov' +SimpleCov.start # This file was generated by the `rails generate rspec:install` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause this @@ -14,7 +17,21 @@ # users commonly want. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration + + RSpec.configure do |config| + + config.before(:suite) do + DatabaseCleaner.clean_with(:truncation) + end + + config.before(:each) do + DatabaseCleaner.start + end + + config.after(:each) do + DatabaseCleaner.clean + end # The settings below are suggested to provide a good initial experience # with RSpec, but feel free to customize to your heart's content. =begin diff --git a/spec/support/vcr_setup.rb b/spec/support/vcr_setup.rb new file mode 100644 index 0000000..7e18602 --- /dev/null +++ b/spec/support/vcr_setup.rb @@ -0,0 +1,7 @@ +# spec/support/vcr_setup.rb +VCR.configure do |c| + #the directory where your cassettes will be saved + c.cassette_library_dir = 'spec/vcr' + # your HTTP request service. You can also use fakeweb, webmock, and more + c.hook_into :webmock +end \ No newline at end of file diff --git a/spec/vcr/controllers/api-new_tokens.yml b/spec/vcr/controllers/api-new_tokens.yml new file mode 100644 index 0000000..24a8893 --- /dev/null +++ b/spec/vcr/controllers/api-new_tokens.yml @@ -0,0 +1,518 @@ +--- +http_interactions: +- request: + method: post + uri: https://accounts.google.com/o/oauth2/token + body: + encoding: ASCII-8BIT + string: grant_type=refresh_token&refresh_token=1%2FDlAqfSUji69F3YuVAHSoWxWE0grR8aYSkb2OocVCNBw&client_id=367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com&client_secret=1yX7HzuzWi3yD1OqJ21ZgpSS + headers: + Cache-Control: + - no-store + Content-Type: + - application/x-www-form-urlencoded + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - Fri, 01 Jan 1990 00:00:00 GMT + Date: + - Mon, 14 Jul 2014 10:26:54 GMT + Content-Disposition: + - attachment; filename="json.txt"; filename*=UTF-8''json.txt + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate-Protocol: + - 443:quic + Transfer-Encoding: + - chunked + body: + encoding: UTF-8 + string: |- + { + "access_token" : "ya29.QgBKOx6dCMp3zh8AAAB9kzvJu1nqcmQE2EzA7LzVh-FMvHcrjSFT-4G4MSfmpg", + "token_type" : "Bearer", + "expires_in" : 3600, + "id_token" : "eyJhbGciOiJSUzI1NiIsImtpZCI6IjBjODk2NjU5OWE3Zjc0ZTU3Yjc2MGRkZWE2MGUwZGMxMjRmMjE1YTMifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiaWQiOiIxMTY4MTc0NzkyNTg0MjY4ODk3MDkiLCJzdWIiOiIxMTY4MTc0NzkyNTg0MjY4ODk3MDkiLCJhenAiOiIzNjcyMjU1MDc3NjctMTE5dXZiaGRhZHFiZnQya240NzU5cm9kb2lpdmtzbjkuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJlbWFpbCI6InBhbmthamJhc25hbDE3QGdtYWlsLmNvbSIsImF0X2hhc2giOiJLdHpJZktjdHJlNk9VTkVHUW9DblFnIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImF1ZCI6IjM2NzIyNTUwNzc2Ny0xMTl1dmJoZGFkcWJmdDJrbjQ3NTlyb2RvaWl2a3NuOS5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsInRva2VuX2hhc2giOiJLdHpJZktjdHJlNk9VTkVHUW9DblFnIiwidmVyaWZpZWRfZW1haWwiOnRydWUsImNpZCI6IjM2NzIyNTUwNzc2Ny0xMTl1dmJoZGFkcWJmdDJrbjQ3NTlyb2RvaWl2a3NuOS5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsImlhdCI6MTQwNTMzMzMxNCwiZXhwIjoxNDA1MzM3MjE0fQ.wFDAFiBWbKy-vOgJXspfzKiTOPw05tufou7PAs14WCmfL7ejx7qTteYn4u8519y3GBWKdiUhs9tcLDu6zhq3R94rh0ACVYEgyR5S2RR5VEfFzdVdmGBh2dlQyiYcv43M8E7LZToRtWDvjkjaATf-znUaxo4_sJo143uJvspItgU" + } + http_version: + recorded_at: Mon, 14 Jul 2014 10:26:54 GMT +- request: + method: get + uri: https://www.googleapis.com/discovery/v1/apis/drive/v2/rest + body: + encoding: UTF-8 + string: '' + headers: + User-Agent: + - |- + google-api-ruby-client/0.7.1 Linux/3.13.0-30-generic + (gzip) + Accept-Encoding: + - gzip + Content-Type: + - '' + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Expires: + - Mon, 14 Jul 2014 10:31:55 GMT + Date: + - Mon, 14 Jul 2014 10:26:55 GMT + Cache-Control: + - public, max-age=300, must-revalidate, no-transform + Etag: + - '"FrPV2U6xXFUq8eRv_PO3IoAURkc/IERJ5Hcz59m5dfn8v5XjYGA7sqU"' + Content-Type: + - application/json; charset=UTF-8 + Content-Encoding: + - gzip + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Content-Length: + - '13967' + Server: + - GSE + Alternate-Protocol: + - 443:quic + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAAAAAAAAAO19a3PcxrHod/2KKeZWWTqXIi05dhJX3Q8UKTmbI1q8fDg5 + dZRKgYvZXYRYAAawXPK49N9PP2YGg+fitXzIW5WKqQXQ0zPT7+nu+e2F2Lvx + AnfvR7Hnesk0vJXx/R9imaQnMpnGXpR6YbC3D2/J1JnjW5/3PsRnv7y9+uHu + Hx+ufv2zPL/919mn7ybh0dX5zfRw8v78b9//dfo/3/9l+b07C/58+/0//v1f + Px39Kfn16vMewTGj/CLjBIEDzNs39MhjNGLvVv54+5Z+CpylND/SL7fWZ/xO + 6qU+vXSCL4mjswkPZE0AHl4u6JFIQ+EFqYydaSrWXroQ9NUBfRKuAxmfhEvH + o0/mYTj35cE0XGZPf1YI/UTPGO1pGCTw228vhNi7e/MDPl6kaZT8eHiYJP7B + PEmd1JsinEM3nCb4f76XpIfe0plL+Cci8C+E8q83PxxEwRyhAqTv3g6A9N1b + gvRCfKG1CKerpQzw6zD46AU3NmRX3ko/jGBdD7IZM6xDmmAUh2k4DX38CEmD + frx2EnkV+zag9XqtIDiRl1hQbt8emm/OnHSBHxUexWGYbgZHryYyvvWmBlBx + iHS60I/oHzwFJ4aNg203G+X4qfoTKOg+ok1N0thTy1+inxMndcQsjJdOiv8R + KdATLEYEe8/UQ5/MnBXB3ft3wnwDv8pgtYSf/hv/oR7gn//Mnlq8lmRvnivo + CdPpcQhkG6SvLwFZEc6EE0W+N6UdPSwC9UN+gJj8ugJmw4dfiKxmnvTdpNPU + L6QvpynMOYnk1Jvdw4tivfCmC8HAmKem/sqV8F/hCFjt1HP80vo0oHUj7zvh + h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iq5pNJ7qyZH4Xc6I87pT94auyjyvxnJHqaRMiW+2u9 + +fb0kbprZUJLf/qwbbYqxi+QTrV9iP0c+6YJqK9b5ggAqSy5EYb6i7EmEIe/ + 4R/3w6syCcwmGW3GH0EaKFgjGXRP0fVVOzMCUvnNeRAxuF/e89LEHl9U5iyp + Jo+M+a2FQzaI2TYf/e/YbHQ2U3VALMp6NkXOrD8wP8gnoh5zaIBgTYzVY84R + LLTdMlMObZf8+5IWjf3sGMo5fvmM6iH65w1oAdUuaaBJRvVIIzimRvSJaYIP + i66dkjkgF5RkyE5sPSpnlRipvttkAx89B/6r4qOGnAbNRW0SGnrw0OYUB9Ab + lgz2+Ip4Z8c/T13t48apHdtXdcWo621Nj5v5kgI4uik6zjyKpPuqMYg6zCgA + D/0c/Fi/5gKFVpFqgIHBWhGsltcyxp2wiNMqomayZaGwj7W/LlVjRA7WOdRM + 6e23XePF9gcKM44/fNttZQAteRneyP6xQtxHL1hxBXSKoNSs8WYMqjFfxOFq + vhC+E89paWDSSC9YCB2KubrxIcBrCSJ1YwK/BETE90HkQvJKpdIlIPju5z38 + 9EzP4/NedjGXdfkL70e7kN02dEs7JfHMCld75xBpDdMqgWiQK9kunSgQ8g6W + HoUVW/2jZBXtFNEuzNPkuP2u7M0N53MsD9odzw0TCC0yhUriYMfoO0bfMXrH + zB+VpaHx73y2o75vebpj3kcJwH8O79Jfus3tGWUMZqswCqeVr7V7QGaz5lJg + rueWHqe0YdMZi6b7VmlvHYi+Q3v/Hd0/dbpv0g4m/edxNMNXUwXTGCLVXNom + SJrpwr4RUV30lY37fDizK/X3oPRdzde24zWa7FpFbDqppZYFX1n63tMo+NpC + 859xNJdG7Amrrlp/qE5zfaXarooNN8RJNB+2TWTuwohtaqgezjLcMdiOwbZT + mfQC/vflxf8CzsreGV/IAQA= + http_version: + recorded_at: Mon, 14 Jul 2014 10:26:55 GMT +- request: + method: get + uri: https://www.googleapis.com/drive/v2/files + body: + encoding: UTF-8 + string: '' + headers: + User-Agent: + - |- + google-api-ruby-client/0.7.1 Linux/3.13.0-30-generic + (gzip) + Content-Type: + - application/json + Accept-Encoding: + - gzip + Authorization: + - Bearer ya29.QgBKOx6dCMp3zh8AAAB9kzvJu1nqcmQE2EzA7LzVh-FMvHcrjSFT-4G4MSfmpg + Cache-Control: + - no-store + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Expires: + - Mon, 14 Jul 2014 10:26:56 GMT + Date: + - Mon, 14 Jul 2014 10:26:56 GMT + Cache-Control: + - private, max-age=0, must-revalidate, no-transform + Etag: + - '"gROZn7NlhxVF8deqr1tB7t1xA6k/iJA_uW5OZnhfqIiChoSn5PQczwE"' + Content-Type: + - application/json; charset=UTF-8 + Content-Encoding: + - gzip + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate-Protocol: + - 443:quic + Transfer-Encoding: + - chunked + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAAAAAAAAAO1ZaW/iSBP+nl+BeKX5tGC3b5CiWa4cJBDCkQR2V8jYbbvj + i7ibczX//e02NmFIhiMzkxlpEylE013V9XS56qkHz78nmayLAjNbzGTNCE3h + /yzkwWuESfYPugWJbrOtv7N2+2YQqE3Pmd+daSZ8igApqwTMS4rLoXppOLmX + qYFjPV2iihN2Arl1ayxntb+z8TkYetY1Clx2lkPIGBc5bjab5e0wtD2ojxHO + G6HPxQi4qcAxEDj2RAT6mLr9dZLJ/Et/X4PLDOkGipeBLdQfcjP+gRj3VXUx + CHNXotG5wGrLWRiVmaP3+/5Mf8TXl7Na4njYLRvd21mzWxIb3b7UWLrLhr26 + XOaN1+PegFT3CIwCncDtaGZo4CRcHAqPI6ib2IGQYM48KhQHTUQ+T/D4NMaL + TTdNkz+C5s8M7BDfi4OkD9QIg+14GHt5GxOdIGOVUxqffXi0ZDnk6zZNLPMb + AjDcwDJk+/lxYCdHE2fijwIdedvne46cXGeCYUQPIjAgcaRO05lX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bYmgaw2Ylq9kTon7k12XBm + 5XMFP1Uq7VHJnNjTGsKVwnRwOWldXduvinvKw+S/IO5FnslhWS7KWr4A9oj7 + 2Jx+FwCFIhDyQAD7xf03XXaJ+5WTVpTUoqDkNV46TNx/7SY/32ZD3Cvg99b2 + xzTrf0TbH5GSn6nt3wzjV2v7NwN/X23fVdoV8ZYP6/eNnqVq16OGBR/BzXm5 + Lv1wbX9Ul31o+w9t/6Ht05FXFp7ngiG2HSNoe4ZX8PX7efpoDhfzjWVfvOka + UrPbk5rf+6b+EGgzOEquv09FTwxGnjvPTNjy1KSN6YV6qpkP/obAYFOBvjPG + N78KfJ8y54d0Kv0ARd4uVL3l0F/MW1Nn2Bm3H+uX9dl597o6DBZyRVNry7B5 + N9CetO5dpTrsu0/Dq5tyXbu1LkZn1hW+aCjnD43K6+/XL8JZhoQZG5IMk8u0 + FzMzRJxMlSVijyJfz9xfobzTrtr/Xp1X2Xt1Xs7L2l7p/Q3zDW0rir+1tt1d + 57+nmE1buxd5W52c46WcZuQ2enq7N+Luw9CY0IoxOEcJNcsEniyNIMAYPo0c + QzW0AnAN7Hsuz6mayvMOffRTV1FHKJK0EZQmbvhkyFANC4gDEi+LosDHP9xr + U+f1xZ15/+ycAkWRRVpk1FMBEv2HIiif4JrVPtnmKctN9j1EYLvqo45VmMKR + 5CrD62W3V1FvLf7hevjDX/DuKcfvV31hhGxE5/wZDRckiuMQTmPwanNaRmlf + p8RgyhUHGi6e+DEvWAKQRVUwCrxoSTyABQh4YAJTFgGUTXPjtA5axtHpU1YV + Jf3frQ9V+qFKf5kqfR6cu2TpSeafky8n/weFY0Xn/yIAAA== + http_version: + recorded_at: Mon, 14 Jul 2014 10:26:56 GMT +recorded_with: VCR 2.9.2 diff --git a/spec/vcr/controllers/api-permissions.yml b/spec/vcr/controllers/api-permissions.yml new file mode 100644 index 0000000..b25c89c --- /dev/null +++ b/spec/vcr/controllers/api-permissions.yml @@ -0,0 +1,122 @@ +--- +http_interactions: +- request: + method: post + uri: https://accounts.google.com/o/oauth2/auth + body: + encoding: US-ASCII + string: name=google&scope=userinfo.profile%2Cuserinfo.email%2Cdrive%2Chttps%3A%2F%2Fspreadsheets.google.com%2Ffeeds&prompt=consent&access_type=offline&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fauth%2Fgoogle%2Fcallback + headers: + Accept: + - "*/*; q=0.5, application/xml" + Accept-Encoding: + - gzip, deflate + Content-Length: + - '212' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - Ruby + response: + status: + code: 400 + message: Bad Request + headers: + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - Fri, 01 Jan 1990 00:00:00 GMT + Date: + - Mon, 14 Jul 2014 13:03:28 GMT + Content-Type: + - text/html; charset=utf-8 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate-Protocol: + - 443:quic + Transfer-Encoding: + - chunked + body: + encoding: ASCII-8BIT + string: !binary |- + PCFET0NUWVBFIGh0bWw+PGh0bWwgbGFuZz1lbj48bWV0YSBjaGFyc2V0PXV0 + Zi04PjxtZXRhIG5hbWU9dmlld3BvcnQgY29udGVudD0iaW5pdGlhbC1zY2Fs + ZT0xLCBtaW5pbXVtLXNjYWxlPTEsIHdpZHRoPWRldmljZS13aWR0aCI+PHRp + dGxlPkVycm9yIDQwMCAoT0F1dGgyIEVycm9yKSEhMTwvdGl0bGU+PHN0eWxl + Pip7bWFyZ2luOjA7cGFkZGluZzowfWh0bWwsY29kZXtmb250OjE1cHgvMjJw + eCBhcmlhbCxzYW5zLXNlcmlmfWh0bWx7YmFja2dyb3VuZDojZmZmO2NvbG9y + OiMyMjI7cGFkZGluZzoxNXB4fWJvZHl7bWFyZ2luOjclIGF1dG8gMDttYXgt + d2lkdGg6MzkwcHg7bWluLWhlaWdodDoxODBweDtwYWRkaW5nOjMwcHggMCAx + NXB4fSogPiBib2R5e2JhY2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rO2hlaWdodDo1NXB4O3dpZHRo + OjE1MHB4fTwvc3R5bGU+PGRpdiBpZD0iYWYtZXJyb3ItY29udGFpbmVyIj48 + YSBocmVmPS8vd3d3Lmdvb2dsZS5jb20vPjxzcGFuIGlkPWxvZ28gYXJpYS1s + YWJlbD1Hb29nbGU+PC9zcGFuPjwvYT48cD48Yj40MDAuPC9iPiA8aW5zPlRo + YXTigJlzIGFuIGVycm9yLjwvaW5zPjxwPjxzY3JpcHQgdHlwZT0idGV4dC9q + YXZhc2NyaXB0IiBzcmM9Imh0dHBzOi8vc3NsLmdzdGF0aWMuY29tL2FjY291 + bnRzL28vMTA1OTY0MTI3MS1jb21tb25fbGliLmpzIj48L3NjcmlwdD4KPHN0 + eWxlPgogICAgI3JlcXVlc3RfaW5mb19oZWFkZXIgewogICAgICBjdXJzb3I6 + IGRlZmF1bHQ7CiAgICAgIG91dGxpbmU6IG5vbmU7CiAgICAgIHBhZGRpbmct + bGVmdDogMTRweDsKICAgICAgcGFkZGluZy10b3A6IDEwcHg7CiAgICB9Cgog + ICAgI3JlcXVlc3RfaW5mb19pdGVtcyB7CiAgICAgIGxpbmUtaGVpZ2h0OiAx + OHB4OwogICAgICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7CiAgICAgIG1hcmdp + bi10b3A6IDhweDsKICAgICAgcGFkZGluZy1sZWZ0OiAxNHB4OwogICAgfQoK + ICAgIC5wYXJhbV9lbnRyeSB7CiAgICAgIG1hcmdpbi10b3A6IDJweDsKICAg + IH0KCiAgICAuZ29vZy16aXBweS1leHBhbmRlZCwKICAgIC5nb29nLXppcHB5 + LWNvbGxhcHNlZCB7CiAgICAgIGxpc3Qtc3R5bGU6IG5vbmU7CiAgICAgIHBh + ZGRpbmc6IDJweCAwIDFweCAxNXB4OwogICAgICBwb3NpdGlvbjogcmVsYXRp + dmU7CiAgICB9CgogICAgLmdvb2ctemlwcHktZXhwYW5kZWQ6YmVmb3JlIHsK + ICAgICAgY29udGVudDogdXJsKGh0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N0X3VyaT1odHRwOi8vbG9jYWxob3N0OjgwODAvYXV0aC9nb29nbGUvY2Fs + bGJhY2s8L2xpPjxsaSBjbGFzcz0icGFyYW1fZW50cnkiIGlkPSJwYXJhbV9l + bnRyeV8yIj5hY2Nlc3NfdHlwZT1vZmZsaW5lPC9saT48bGkgY2xhc3M9InBh + cmFtX2VudHJ5IiBpZD0icGFyYW1fZW50cnlfMyI+bmFtZT1nb29nbGU8L2xp + PjxsaSBjbGFzcz0icGFyYW1fZW50cnkiIGlkPSJwYXJhbV9lbnRyeV80Ij5w + cm9tcHQ9Y29uc2VudDwvbGk+PC91bD48L2Rpdj48c2NyaXB0IHR5cGU9InRl + eHQvamF2YXNjcmlwdCI+bHNvLmRvWmlwcHkoInJlcXVlc3RfaW5mb19oZWFk + ZXIiLCAicmVxdWVzdF9pbmZvX2l0ZW1zIik7PC9zY3JpcHQ+PHA+IDxpbnM+ + VGhhdOKAmXMgYWxsIHdlIGtub3cuPC9pbnM+PC9kaXY+ + http_version: + recorded_at: Mon, 14 Jul 2014 13:03:29 GMT +recorded_with: VCR 2.9.2 diff --git a/spec/vcr/controllers/api-response.yml b/spec/vcr/controllers/api-response.yml new file mode 100644 index 0000000..92ea4d9 --- /dev/null +++ b/spec/vcr/controllers/api-response.yml @@ -0,0 +1,518 @@ +--- +http_interactions: +- request: + method: post + uri: https://accounts.google.com/o/oauth2/token + body: + encoding: ASCII-8BIT + string: grant_type=refresh_token&refresh_token=1%2FDlAqfSUji69F3YuVAHSoWxWE0grR8aYSkb2OocVCNBw&client_id=367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com&client_secret=1yX7HzuzWi3yD1OqJ21ZgpSS + headers: + Cache-Control: + - no-store + Content-Type: + - application/x-www-form-urlencoded + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - Fri, 01 Jan 1990 00:00:00 GMT + Date: + - Mon, 14 Jul 2014 09:43:47 GMT + Content-Disposition: + - attachment; filename="json.txt"; filename*=UTF-8''json.txt + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate-Protocol: + - 443:quic + Transfer-Encoding: + - chunked + body: + encoding: UTF-8 + string: |- + { + "access_token" : "ya29.QgCA1zb2xkPTVh8AAADuNe6pjiKAKmnEUw6u56ufzLLFQBh94PiC-LYd3bvUxA", + "token_type" : "Bearer", + "expires_in" : 3600, + "id_token" : "eyJhbGciOiJSUzI1NiIsImtpZCI6IjBjODk2NjU5OWE3Zjc0ZTU3Yjc2MGRkZWE2MGUwZGMxMjRmMjE1YTMifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiaWQiOiIxMTY4MTc0NzkyNTg0MjY4ODk3MDkiLCJzdWIiOiIxMTY4MTc0NzkyNTg0MjY4ODk3MDkiLCJhenAiOiIzNjcyMjU1MDc3NjctMTE5dXZiaGRhZHFiZnQya240NzU5cm9kb2lpdmtzbjkuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJlbWFpbCI6InBhbmthamJhc25hbDE3QGdtYWlsLmNvbSIsImF0X2hhc2giOiI2cnAxRzVvRnZMbE1id1E1WHR2QmdBIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImF1ZCI6IjM2NzIyNTUwNzc2Ny0xMTl1dmJoZGFkcWJmdDJrbjQ3NTlyb2RvaWl2a3NuOS5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsInRva2VuX2hhc2giOiI2cnAxRzVvRnZMbE1id1E1WHR2QmdBIiwidmVyaWZpZWRfZW1haWwiOnRydWUsImNpZCI6IjM2NzIyNTUwNzc2Ny0xMTl1dmJoZGFkcWJmdDJrbjQ3NTlyb2RvaWl2a3NuOS5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsImlhdCI6MTQwNTMzMDcyNywiZXhwIjoxNDA1MzM0NjI3fQ.sBQTuWmb6AL_6FkQQPTrB-GKxH7Aa8u6aQHWG1wsDVsrNRUeeNv3ZwwMNqbeUxG28fI7a1o3w5cPwFSlc1Y_N90yN7x_NZLPAFlSOdShXm37fNcK4bP9xzhPVWYPMx2Gukb9Ni2uYPa7DmSqFHj4qDO6kbHhNtCqhecDWKb6deI" + } + http_version: + recorded_at: Mon, 14 Jul 2014 09:43:47 GMT +- request: + method: get + uri: https://www.googleapis.com/discovery/v1/apis/drive/v2/rest + body: + encoding: UTF-8 + string: '' + headers: + User-Agent: + - |- + google-api-ruby-client/0.7.1 Linux/3.13.0-30-generic + (gzip) + Accept-Encoding: + - gzip + Content-Type: + - '' + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Expires: + - Mon, 14 Jul 2014 09:48:48 GMT + Date: + - Mon, 14 Jul 2014 09:43:48 GMT + Cache-Control: + - public, max-age=300, must-revalidate, no-transform + Etag: + - '"FrPV2U6xXFUq8eRv_PO3IoAURkc/IERJ5Hcz59m5dfn8v5XjYGA7sqU"' + Content-Type: + - application/json; charset=UTF-8 + Content-Encoding: + - gzip + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Content-Length: + - '13967' + Server: + - GSE + Alternate-Protocol: + - 443:quic + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAAAAAAAAAO19a3PcxrHod/2KKeZWWTqXIi05dhJX3Q8UKTmbI1q8fDg5 + dZRKgYvZXYRYAAawXPK49N9PP2YGg+fitXzIW5WKqQXQ0zPT7+nu+e2F2Lvx + AnfvR7Hnesk0vJXx/R9imaQnMpnGXpR6YbC3D2/J1JnjW5/3PsRnv7y9+uHu + Hx+ufv2zPL/919mn7ybh0dX5zfRw8v78b9//dfo/3/9l+b07C/58+/0//v1f + Px39Kfn16vMewTG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dRM + 6e23XePF9gcKM44/fNttZQAteRneyP6xQtxHL1hxBXSKoNSs8WYMqjFfxOFq + vhC+E89paWDSSC9YCB2KubrxIcBrCSJ1YwK/BETE90HkQvJKpdIlIPju5z38 + 9EzP4/NedjGXdfkL70e7kN02dEs7JfHMCld75xBpDdMqgWiQK9kunSgQ8g6W + HoUVW/2jZBXtFNEuzNPkuP2u7M0N53MsD9odzw0TCC0yhUriYMfoO0bfMXrH + zB+VpaHx73y2o75vebpj3kcJwH8O79Jfus3tGWUMZqswCqeVr7V7QGaz5lJg + rueWHqe0YdMZi6b7VmlvHYi+Q3v/Hd0/dbpv0g4m/edxNMNXUwXTGCLVXNom + SJrpwr4RUV30lY37fDizK/X3oPRdzde24zWa7FpFbDqppZYFX1n63tMo+NpC + 859xNJdG7Amrrlp/qE5zfaXarooNN8RJNB+2TWTuwohtaqgezjLcMdiOwbZT + mfQC/vflxf8CzsreGV/IAQA= + http_version: + recorded_at: Mon, 14 Jul 2014 09:43:48 GMT +- request: + method: get + uri: https://www.googleapis.com/drive/v2/files + body: + encoding: UTF-8 + string: '' + headers: + User-Agent: + - |- + google-api-ruby-client/0.7.1 Linux/3.13.0-30-generic + (gzip) + Content-Type: + - application/json + Accept-Encoding: + - gzip + Authorization: + - Bearer ya29.QgCA1zb2xkPTVh8AAADuNe6pjiKAKmnEUw6u56ufzLLFQBh94PiC-LYd3bvUxA + Cache-Control: + - no-store + Accept: + - "*/*" + response: + status: + code: 200 + message: OK + headers: + Expires: + - Mon, 14 Jul 2014 09:43:49 GMT + Date: + - Mon, 14 Jul 2014 09:43:49 GMT + Cache-Control: + - private, max-age=0, must-revalidate, no-transform + Etag: + - '"gROZn7NlhxVF8deqr1tB7t1xA6k/7XaNv4ODRlztP3eUuU7Lgdf4AcI"' + Content-Type: + - application/json; charset=UTF-8 + Content-Encoding: + - gzip + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate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+53e71O61JDYB72Yes6/6wEv/bCFPFSE0hSTC7T + XkyFiJipCkvEK4p8O3N/hfJOuur179V5hX2vzueyufyr0vsF8x1tK4q/tbY9 + XOe/p5hNWrsb2HudnOGlTF7L7PT0fm9E3YehNqcVo3Gm7OUNHdg5aQwBxnA2 + NjVFyxeApWHHtniuYE91JOiiOBPgRLUtaWGiRTAPxjKeeZKtcEDic6Ig5Xn2 + wz03dZ5fPJj3z+Y5kOWcSIuMespAon/IgvwJblnt00Q/Z7lJv4cIbFccdG8U + FnAsWfKotu50y0rL4Pu10Q//gveVcvx+1ecFaILonK/ScG6sOI7hNAbvcknL + KOnrhBj0XNmEmoXnTsQLhgByoiJoBV40JB7AAgQ80IGeEwHM6frOafdoHUWn + T1mR5eS/Wx+q9EOV/jJV+jg4D8nSs9Q/Z1/P/g8mz9mU/yIAAA== + http_version: + recorded_at: Mon, 14 Jul 2014 09:43:49 GMT +recorded_with: VCR 2.9.2 diff --git a/spec/vcr/controllers/api-update-with-data.yml b/spec/vcr/controllers/api-update-with-data.yml new file mode 100644 index 0000000..9861930 --- /dev/null +++ b/spec/vcr/controllers/api-update-with-data.yml @@ -0,0 +1,340 @@ +--- +http_interactions: +- request: + method: post + uri: https://accounts.google.com/o/oauth2/token + body: + encoding: ASCII-8BIT + string: grant_type=refresh_token&refresh_token=1%2FDlAqfSUji69F3YuVAHSoWxWE0grR8aYSkb2OocVCNBw&client_id=367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com&client_secret=1yX7HzuzWi3yD1OqJ21ZgpSS + headers: + Cache-Control: + - no-store + Content-Type: + - application/x-www-form-urlencoded + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - Fri, 01 Jan 1990 00:00:00 GMT + Date: + - Mon, 14 Jul 2014 12:33:18 GMT + Content-Disposition: + - attachment; filename="json.txt"; filename*=UTF-8''json.txt + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate-Protocol: + - 443:quic + Transfer-Encoding: + - chunked + body: + encoding: UTF-8 + string: |- + { + "access_token" : "ya29.QgAFK5QrFhLCIB8AAABfqjxL7sQjl5zVnL-YlD_fcUxIutL1k_KUFTr1NDwqCA", + "token_type" : "Bearer", + "expires_in" : 3600, + "id_token" : "eyJhbGciOiJSUzI1NiIsImtpZCI6IjBjODk2NjU5OWE3Zjc0ZTU3Yjc2MGRkZWE2MGUwZGMxMjRmMjE1YTMifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiaWQiOiIxMTY4MTc0NzkyNTg0MjY4ODk3MDkiLCJzdWIiOiIxMTY4MTc0NzkyNTg0MjY4ODk3MDkiLCJhenAiOiIzNjcyMjU1MDc3NjctMTE5dXZiaGRhZHFiZnQya240NzU5cm9kb2lpdmtzbjkuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJlbWFpbCI6InBhbmthamJhc25hbDE3QGdtYWlsLmNvbSIsImF0X2hhc2giOiItSVVuNzJyVWU5N252a0txcHdJQ0VBIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImF1ZCI6IjM2NzIyNTUwNzc2Ny0xMTl1dmJoZGFkcWJmdDJrbjQ3NTlyb2RvaWl2a3NuOS5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsInRva2VuX2hhc2giOiItSVVuNzJyVWU5N252a0txcHdJQ0VBIiwidmVyaWZpZWRfZW1haWwiOnRydWUsImNpZCI6IjM2NzIyNTUwNzc2Ny0xMTl1dmJoZGFkcWJmdDJrbjQ3NTlyb2RvaWl2a3NuOS5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsImlhdCI6MTQwNTM0MDg5OCwiZXhwIjoxNDA1MzQ0Nzk4fQ.VaoYUEGoMU5Bteicpf1gXg9V6HJBa0RanBwlCFs2n4iL04eGUmP3MPHsFNF5asSKAo5HaWV3X962RE5eYdGwUon2wjJ7k_E3KkA_py9zXBnOIZ5pDAFlyDAVi4SihsxZ5h6DrcmucrDqE7HD5ry4xc7oFvuBqJJpCZG339um_RY" + } + http_version: + recorded_at: Mon, 14 Jul 2014 12:33:19 GMT +- request: + method: get + uri: https://spreadsheets.google.com/feeds/worksheets/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/private/full + body: + encoding: US-ASCII + string: '' + headers: + Authorization: + - Bearer ya29.QgAFK5QrFhLCIB8AAABfqjxL7sQjl5zVnL-YlD_fcUxIutL1k_KUFTr1NDwqCA + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/atom+xml; charset=UTF-8 + X-Robots-Tag: + - noarchive + Expires: + - Mon, 14 Jul 2014 12:33:19 GMT + Date: + - Mon, 14 Jul 2014 12:33:19 GMT + Cache-Control: + - private, max-age=0, must-revalidate, no-transform + Vary: + - Accept, X-GData-Authorization, GData-Version + Gdata-Version: + - '1.0' + Last-Modified: + - Fri, 11 Jul 2014 09:41:23 GMT + Transfer-Encoding: + - chunked + Set-Cookie: + - NID=67=nygKrEvvbhyRV0iJnTSPRO8-eAzvBWE9G1bs1ya8QkKORQPc0SQq1oJE1evD5W12fVZqLjNHWwNQAj7R-NYRDO-I2NoSiAvO8Ei0L4o9TDE3VhC0XAbniGLJCjgYLwEK;Domain=.google.com;Path=/;Expires=Tue, + 13-Jan-2015 12:33:19 GMT;HttpOnly + P3p: + - CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 + for more info." + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate-Protocol: + - 443:quic + body: + encoding: UTF-8 + string: "https://spreadsheets.google.com/feeds/worksheets/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/private/full2014-07-11T09:41:23.890Znamecollectionpankajbasnal17pankajbasnal17@gmail.com11https://spreadsheets.google.com/feeds/worksheets/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/private/full/od62014-07-11T09:41:23.890ZSheet1Sheet1261001" + http_version: + recorded_at: Mon, 14 Jul 2014 12:33:19 GMT +- request: + method: get + uri: https://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full + body: + encoding: US-ASCII + string: '' + headers: + Authorization: + - Bearer ya29.QgAFK5QrFhLCIB8AAABfqjxL7sQjl5zVnL-YlD_fcUxIutL1k_KUFTr1NDwqCA + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/atom+xml; charset=UTF-8 + X-Robots-Tag: + - noarchive + Expires: + - Mon, 14 Jul 2014 12:33:20 GMT + Date: + - Mon, 14 Jul 2014 12:33:20 GMT + Cache-Control: + - private, max-age=0, must-revalidate, no-transform + Vary: + - Accept, X-GData-Authorization, GData-Version + Gdata-Version: + - '1.0' + Last-Modified: + - Fri, 11 Jul 2014 09:41:23 GMT + Transfer-Encoding: + - chunked + Set-Cookie: + - NID=67=E2DmmdFxqIqSu67rlO7nnmaF0JvOajx3ElDEj5wig1wR0X5PCbOVn4Ss1NMooVx6-YUoYhNAB__2LDyv1VUaPxZ-pboj85EFh5QY0QVbBayqc-xlV8iurVXJX1HSsLNa;Domain=.google.com;Path=/;Expires=Tue, + 13-Jan-2015 12:33:20 GMT;HttpOnly + P3p: + - CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 + for more info." + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate-Protocol: + - 443:quic + body: + encoding: UTF-8 + string: "https://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full2014-07-11T09:41:23.890ZSheet1pankajbasnal17pankajbasnal17@gmail.com271100126https://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R2C12014-07-11T09:41:23.890ZA2pankajpankajhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R3C12014-07-11T09:41:23.890ZA3basnalbasnalhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R4C12014-07-11T09:41:23.890ZA4kanhaiyakanhaiyahttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R5C12014-07-11T09:41:23.890ZA5varshavarshahttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R6C12014-07-11T09:41:23.890ZA6joshjoshhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R7C12014-07-11T09:41:23.890ZA7hariharihttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R8C12014-07-11T09:41:23.890ZA8mudgalmudgalhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R9C12014-07-11T09:41:23.890ZA9fionafionahttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R10C12014-07-11T09:41:23.890ZA10rishirishihttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R11C12014-07-11T09:41:23.890ZA11anilanilhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R12C12014-07-11T09:41:23.890ZA12jirenjirenhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R13C12014-07-11T09:41:23.890ZA13manojmanojhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R14C12014-07-11T09:41:23.890ZA14avinashavinashhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R15C12014-07-11T09:41:23.890ZA15gautamgautamhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R16C12014-07-11T09:41:23.890ZA16a new onea new onehttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R17C12014-07-11T09:41:23.890ZA17oldoldhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R18C12014-07-11T09:41:23.890ZA18pankaj@gmail.compankaj@gmail.comhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R19C12014-07-11T09:41:23.890ZA19me@i.comme@i.comhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R20C12014-07-11T09:41:23.890ZA20he@you.comhe@you.comhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R21C12014-07-11T09:41:23.890ZA21heroku@josh.comheroku@josh.comhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R22C12014-07-11T09:41:23.890ZA22facebookfacebookhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R23C12014-07-11T09:41:23.890ZA23orkutorkuthttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R24C12014-07-11T09:41:23.890ZA24googlegooglehttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R25C12014-07-11T09:41:23.890ZA25josh softwarejosh softwarehttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R26C12014-07-11T09:41:23.890ZA26adding a new name adding a new name https://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R27C12014-07-11T09:41:23.890ZA27just chilljust chillhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R28C12014-07-11T09:41:23.890ZA28airnowairnow" + http_version: + recorded_at: Mon, 14 Jul 2014 12:33:21 GMT +recorded_with: VCR 2.9.2 diff --git a/spec/vcr/controllers/api-update.yml b/spec/vcr/controllers/api-update.yml new file mode 100644 index 0000000..83204aa --- /dev/null +++ b/spec/vcr/controllers/api-update.yml @@ -0,0 +1,394 @@ +--- +http_interactions: +- request: + method: post + uri: https://accounts.google.com/o/oauth2/token + body: + encoding: ASCII-8BIT + string: grant_type=refresh_token&refresh_token=1%2FDlAqfSUji69F3YuVAHSoWxWE0grR8aYSkb2OocVCNBw&client_id=367225507767-119uvbhdadqbft2kn4759rodoiivksn9.apps.googleusercontent.com&client_secret=1yX7HzuzWi3yD1OqJ21ZgpSS + headers: + Cache-Control: + - no-store + Content-Type: + - application/x-www-form-urlencoded + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/json; charset=utf-8 + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Pragma: + - no-cache + Expires: + - Fri, 01 Jan 1990 00:00:00 GMT + Date: + - Mon, 14 Jul 2014 12:24:07 GMT + Content-Disposition: + - attachment; filename="json.txt"; filename*=UTF-8''json.txt + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate-Protocol: + - 443:quic + Transfer-Encoding: + - chunked + body: + encoding: UTF-8 + string: |- + { + "access_token" : "ya29.QgCfzla7VI5YwR8AAAA1bZYaulSC87eJzDLPPnV9JZImeTQk4uC8BPmC46O98A", + "token_type" : "Bearer", + "expires_in" : 3600, + "id_token" : "eyJhbGciOiJSUzI1NiIsImtpZCI6IjBjODk2NjU5OWE3Zjc0ZTU3Yjc2MGRkZWE2MGUwZGMxMjRmMjE1YTMifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiaWQiOiIxMTY4MTc0NzkyNTg0MjY4ODk3MDkiLCJzdWIiOiIxMTY4MTc0NzkyNTg0MjY4ODk3MDkiLCJhenAiOiIzNjcyMjU1MDc3NjctMTE5dXZiaGRhZHFiZnQya240NzU5cm9kb2lpdmtzbjkuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJlbWFpbCI6InBhbmthamJhc25hbDE3QGdtYWlsLmNvbSIsImF0X2hhc2giOiJrS0doQ0tUVUJ2N2VoY2NaSmhoR1BRIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImF1ZCI6IjM2NzIyNTUwNzc2Ny0xMTl1dmJoZGFkcWJmdDJrbjQ3NTlyb2RvaWl2a3NuOS5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsInRva2VuX2hhc2giOiJrS0doQ0tUVUJ2N2VoY2NaSmhoR1BRIiwidmVyaWZpZWRfZW1haWwiOnRydWUsImNpZCI6IjM2NzIyNTUwNzc2Ny0xMTl1dmJoZGFkcWJmdDJrbjQ3NTlyb2RvaWl2a3NuOS5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsImlhdCI6MTQwNTM0MDM0NywiZXhwIjoxNDA1MzQ0MjQ3fQ.WD1p7mQgg0EacCdJuKqJRT1OMrBRTqkGoJaDHwKj45PfvF11KfQAKO_S99VDdMeZsNFwp2FYVGo5Ib28Ztaimo_5-fPzidRpVBEJDNw4OJ2-6f4a1tQIsZe8ATO4mHiyhSB0fbhzILS4GHpzvgKKQ5e-CGT4tQN3-bv9piKDNb0" + } + http_version: + recorded_at: Mon, 14 Jul 2014 12:24:07 GMT +- request: + method: get + uri: https://spreadsheets.google.com/feeds/worksheets/53c39d036261731def000000/private/full + body: + encoding: US-ASCII + string: '' + headers: + Authorization: + - Bearer ya29.QgCfzla7VI5YwR8AAAA1bZYaulSC87eJzDLPPnV9JZImeTQk4uC8BPmC46O98A + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 400 + message: Bad Request + headers: + Content-Type: + - text/html; charset=UTF-8 + Set-Cookie: + - NID=67=m3-pRM2JBYO-OQJjfHgqb6fjjDI85uzWqpT1_UOoHH6yx2T4qyzCHcgc0qyqpPxSa3dSQHLzuZCEyuV8dEq9Ctgc6JAuQccxdJKB-rIuUVXJjxRbNcPo5Pif2si3RL1E;Domain=.google.com;Path=/;Expires=Tue, + 13-Jan-2015 12:24:08 GMT;HttpOnly + P3p: + - CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 + for more info." + X-Chromium-Appcache-Fallback-Override: + - disallow-fallback + Date: + - Mon, 14 Jul 2014 12:24:08 GMT + Expires: + - Mon, 14 Jul 2014 12:24:08 GMT + Cache-Control: + - private, max-age=0 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate-Protocol: + - 443:quic + Transfer-Encoding: + - chunked + body: + encoding: UTF-8 + string: The spreadsheet at this URL could not be found. Make sure that you have + the right URL and that the owner of the spreadsheet hasn't deleted it. + http_version: + recorded_at: Mon, 14 Jul 2014 12:24:08 GMT +- request: + method: get + uri: https://spreadsheets.google.com/feeds/worksheets/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/private/full + body: + encoding: US-ASCII + string: '' + headers: + Authorization: + - Bearer ya29.QgCfzla7VI5YwR8AAAA1bZYaulSC87eJzDLPPnV9JZImeTQk4uC8BPmC46O98A + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/atom+xml; charset=UTF-8 + X-Robots-Tag: + - noarchive + Expires: + - Mon, 14 Jul 2014 12:26:23 GMT + Date: + - Mon, 14 Jul 2014 12:26:23 GMT + Cache-Control: + - private, max-age=0, must-revalidate, no-transform + Vary: + - Accept, X-GData-Authorization, GData-Version + Gdata-Version: + - '1.0' + Last-Modified: + - Fri, 11 Jul 2014 09:41:23 GMT + Transfer-Encoding: + - chunked + Set-Cookie: + - NID=67=BLaHF-nsO0p38-JXk-yuu_jdMw85AvyOVXj8Qqx78AagoXb9nYnraHyxjTRV-jP5NjElSKtTzVgZlVMqmdR-s0vHqyXD5EFjnEZrGiw5CMQhtRwJ9FHq2dad0-LtVWAB;Domain=.google.com;Path=/;Expires=Tue, + 13-Jan-2015 12:26:23 GMT;HttpOnly + P3p: + - CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 + for more info." + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate-Protocol: + - 443:quic + body: + encoding: UTF-8 + string: "https://spreadsheets.google.com/feeds/worksheets/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/private/full2014-07-11T09:41:23.890Znamecollectionpankajbasnal17pankajbasnal17@gmail.com11https://spreadsheets.google.com/feeds/worksheets/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/private/full/od62014-07-11T09:41:23.890ZSheet1Sheet1261001" + http_version: + recorded_at: Mon, 14 Jul 2014 12:26:23 GMT +- request: + method: get + uri: https://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full + body: + encoding: US-ASCII + string: '' + headers: + Authorization: + - Bearer ya29.QgCfzla7VI5YwR8AAAA1bZYaulSC87eJzDLPPnV9JZImeTQk4uC8BPmC46O98A + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: OK + headers: + Content-Type: + - application/atom+xml; charset=UTF-8 + X-Robots-Tag: + - noarchive + Expires: + - Mon, 14 Jul 2014 12:26:23 GMT + Date: + - Mon, 14 Jul 2014 12:26:23 GMT + Cache-Control: + - private, max-age=0, must-revalidate, no-transform + Vary: + - Accept, X-GData-Authorization, GData-Version + Gdata-Version: + - '1.0' + Last-Modified: + - Fri, 11 Jul 2014 09:41:23 GMT + Transfer-Encoding: + - chunked + Set-Cookie: + - NID=67=MpS_-ANxVGpUuQXWLyBe2bryI8PlNn5qfLx6dbyscmyEa0XjMimK6ge2QHYCSLStDpa7hWg6aeF3qYIqmA1IuRiXThQV6Ihq3gAvJE0X5oPxqIMo3Eb4mlgRrGAF_tg-;Domain=.google.com;Path=/;Expires=Tue, + 13-Jan-2015 12:26:23 GMT;HttpOnly + P3p: + - CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 + for more info." + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate-Protocol: + - 443:quic + body: + encoding: UTF-8 + string: "https://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full2014-07-11T09:41:23.890ZSheet1pankajbasnal17pankajbasnal17@gmail.com271100126https://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R2C12014-07-11T09:41:23.890ZA2pankajpankajhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R3C12014-07-11T09:41:23.890ZA3basnalbasnalhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R4C12014-07-11T09:41:23.890ZA4kanhaiyakanhaiyahttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R5C12014-07-11T09:41:23.890ZA5varshavarshahttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R6C12014-07-11T09:41:23.890ZA6joshjoshhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R7C12014-07-11T09:41:23.890ZA7hariharihttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R8C12014-07-11T09:41:23.890ZA8mudgalmudgalhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R9C12014-07-11T09:41:23.890ZA9fionafionahttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R10C12014-07-11T09:41:23.890ZA10rishirishihttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R11C12014-07-11T09:41:23.890ZA11anilanilhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R12C12014-07-11T09:41:23.890ZA12jirenjirenhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R13C12014-07-11T09:41:23.890ZA13manojmanojhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R14C12014-07-11T09:41:23.890ZA14avinashavinashhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R15C12014-07-11T09:41:23.890ZA15gautamgautamhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R16C12014-07-11T09:41:23.890ZA16a new onea new onehttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R17C12014-07-11T09:41:23.890ZA17oldoldhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R18C12014-07-11T09:41:23.890ZA18pankaj@gmail.compankaj@gmail.comhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R19C12014-07-11T09:41:23.890ZA19me@i.comme@i.comhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R20C12014-07-11T09:41:23.890ZA20he@you.comhe@you.comhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R21C12014-07-11T09:41:23.890ZA21heroku@josh.comheroku@josh.comhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R22C12014-07-11T09:41:23.890ZA22facebookfacebookhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R23C12014-07-11T09:41:23.890ZA23orkutorkuthttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R24C12014-07-11T09:41:23.890ZA24googlegooglehttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R25C12014-07-11T09:41:23.890ZA25josh softwarejosh softwarehttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R26C12014-07-11T09:41:23.890ZA26adding a new name adding a new name https://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R27C12014-07-11T09:41:23.890ZA27just chilljust chillhttps://spreadsheets.google.com/feeds/cells/1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE/od6/private/full/R28C12014-07-11T09:41:23.890ZA28airnowairnow" + http_version: + recorded_at: Mon, 14 Jul 2014 12:26:24 GMT +recorded_with: VCR 2.9.2 From 94686fe3becc89be7383c32ef82981655e95f188 Mon Sep 17 00:00:00 2001 From: basnal Date: Tue, 15 Jul 2014 10:21:15 +0530 Subject: [PATCH 35/43] Unnecessary files removed #11 --- app/assets/javascripts/callbacks.js.coffee | 3 - app/assets/stylesheets/callbacks.css.scss | 3 - app/controllers/callbacks_controller.rb | 101 ------------------ app/controllers/home_controller.rb | 18 ---- app/models/token.rb | 8 -- app/views/callbacks/create.html.haml | 4 - app/views/callbacks/createv1.html.erb | 9 -- app/views/callbacks/failure.html.haml | 1 - app/views/callbacks/index.html.haml | 14 --- app/views/callbacks/setSheet.html.erb | 5 - app/views/callbacks/test.html.haml | 4 - app/views/create.html.erb | 9 -- app/views/failure.html.erb | 1 - app/views/home/add_from_google.html.haml | 7 -- app/views/setSheet.html.erb | 5 - spec/controllers/callbacks_controller_spec.rb | 5 - spec/factories/tokens.rb | 6 -- spec/helpers/callbacks_helper_spec.rb | 15 --- spec/models/token_spec.rb | 5 - 19 files changed, 223 deletions(-) delete mode 100644 app/assets/javascripts/callbacks.js.coffee delete mode 100644 app/assets/stylesheets/callbacks.css.scss delete mode 100644 app/controllers/callbacks_controller.rb delete mode 100644 app/models/token.rb delete mode 100644 app/views/callbacks/create.html.haml delete mode 100644 app/views/callbacks/createv1.html.erb delete mode 100644 app/views/callbacks/failure.html.haml delete mode 100644 app/views/callbacks/index.html.haml delete mode 100644 app/views/callbacks/setSheet.html.erb delete mode 100644 app/views/callbacks/test.html.haml delete mode 100644 app/views/create.html.erb delete mode 100644 app/views/failure.html.erb delete mode 100644 app/views/home/add_from_google.html.haml delete mode 100644 app/views/setSheet.html.erb delete mode 100644 spec/controllers/callbacks_controller_spec.rb delete mode 100644 spec/factories/tokens.rb delete mode 100644 spec/helpers/callbacks_helper_spec.rb delete mode 100644 spec/models/token_spec.rb diff --git a/app/assets/javascripts/callbacks.js.coffee b/app/assets/javascripts/callbacks.js.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/callbacks.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/callbacks.css.scss b/app/assets/stylesheets/callbacks.css.scss deleted file mode 100644 index e4c4d53..0000000 --- a/app/assets/stylesheets/callbacks.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the callbacks controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/callbacks_controller.rb b/app/controllers/callbacks_controller.rb deleted file mode 100644 index ee64347..0000000 --- a/app/controllers/callbacks_controller.rb +++ /dev/null @@ -1,101 +0,0 @@ -class CallbacksController < ApplicationController - - def index - tkn = Token.first - - if tkn.nil? - redirect_to "/auth/google" and return - else - if tkn['spreadsheet_id'].nil? - @ws = getSheet(tkn) - render action: 'create' and return - end - end - @sheets = Token.all.to_a - end - - def omniauth - tkn = Token.new - auth_token = request.env["omniauth.auth"].fetch("credentials") - tkn["access_token"] = auth_token.fetch("token") - tkn["refresh_token"] = auth_token.fetch("refresh_token") - tkn["expires_at"] = auth_token.fetch("expires_at") - - if tkn.save - @ws = getSheet(tkn) - else - @ws = {error: "not able to save"} - end - - render action: 'create' and return - end - - def getSheet(tkn) - client = Google::APIClient.new - client.authorization.access_token = tkn['access_token'] - drive = client.discovered_api('drive', 'v2') - - wks = client.execute( - api_method: drive.files.list, - parameters: {}, - headers: {'Content-Type'=>'application/json'} - ) - JSON.parse(wks.data.to_json) - end - - def setSheet - tkn = Token.first - tkn['spreadsheet_id'] = params['id'] - tkn.save - - insertEmailInDatabase(tkn) - - redirect_to users_path - end - - def insertEmailInDatabase(tkn) - @tkn = tkn - session = GoogleDrive.login_with_oauth(@tkn["access_token"]) - @ws = session.spreadsheet_by_key(@tkn['spreadsheet_id']).worksheets[0] - - rowcount = @ws.rows.count - - (rowcount).times do |i| - User.create(email_id: @ws[i + 1, 1], - is_subscribed: true, - joined_on: Date.today, - source: "Google Spreadsheet") - end - - end - - def refresh_token(tkn) - data = { - client_id: ENV['GOOGLE_ID'], - client_secret: ENV['GOOGLE_KEY'], - refresh_token: tkn['refresh_token'], - grant_type: 'refresh_token' - } - re = ActiveSupport::JSON.decode(RestClient.post 'https://accounts.google.com/o/oauth2/token', data) - - sheets = Token.where(spreadsheet_id: tkn['spreadsheet_id'])[0] - sheets['access_token'] = re['access_token'] - sheets['expires_at'] = (Time.now + re['expires_in'].second).localtime - sheets.save - - re - end - - def update - tkn = Token.where(spreadsheet_id: params['id']) - @tkn = tkn[0] - unless Time.now > tkn[0]['expires_at'] - @ref = refresh_token tkn[0] - end - tkn = Token.where(spreadsheet_id: params['id']) - insertEmailInDatabase(tkn[0]) - redirect_to users_path - #render action: 'test' - end - -end diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 8d69641..95f2992 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,22 +1,4 @@ class HomeController < ApplicationController def index end - - def add_from_google - @sheets = Token.first - @client = Google::APIClient.new - @client.authorization.access_token = @sheets['access_token'] - @client.authorization.client_id = ENV["GOOGLE_ID"] - @client.authorization.client_secret = ENV["GOOGLE_KEY"] - @client.authorization.refresh_token = @sheets["refresh_token"] - @re = @client.auto_refresh_token - #session = GoogleDrive.login_with_oauth(tkn["access_token"]) - drive = @client.discovered_api('drive', 'v2') - - @wks = @client.execute( - api_method: drive.files.watch, - parameters: {fileId: @sheets["spreadsheet_id"]}, - headers: {'Content-Type'=>'application/json'} - ) - end end diff --git a/app/models/token.rb b/app/models/token.rb deleted file mode 100644 index a356603..0000000 --- a/app/models/token.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Token - include Mongoid::Document - - field :spreadsheet_id, type: String - field :refresh_token, type: String - field :expires_at, type: Time - field :access_token, type: String -end \ No newline at end of file diff --git a/app/views/callbacks/create.html.haml b/app/views/callbacks/create.html.haml deleted file mode 100644 index 416830f..0000000 --- a/app/views/callbacks/create.html.haml +++ /dev/null @@ -1,4 +0,0 @@ --count = @ws["items"].count --count.times do |i| - =link_to @ws["items"][i]["title"], set_sheet_path(@ws["items"][i]["id"]) if @ws["items"][i]["mimeType"].include?("spreadsheet") - %br \ No newline at end of file diff --git a/app/views/callbacks/createv1.html.erb b/app/views/callbacks/createv1.html.erb deleted file mode 100644 index 2cdb756..0000000 --- a/app/views/callbacks/createv1.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -<% #@ws['items'].each do |i| %> - <% #i.each do |j| %> - <%#=j%> - <%# end %> -<%# end %> - -<% @ws['items'].each do |i| %> - <%= link_to i['title'], set_sheet_path(i['id']) if i['mimeType'].include?("spreadsheet") %>
    -<% end %> \ No newline at end of file diff --git a/app/views/callbacks/failure.html.haml b/app/views/callbacks/failure.html.haml deleted file mode 100644 index 2395e1d..0000000 --- a/app/views/callbacks/failure.html.haml +++ /dev/null @@ -1 +0,0 @@ -this is callbacks#failure \ No newline at end of file diff --git a/app/views/callbacks/index.html.haml b/app/views/callbacks/index.html.haml deleted file mode 100644 index 42a9da8..0000000 --- a/app/views/callbacks/index.html.haml +++ /dev/null @@ -1,14 +0,0 @@ -=@msg -=#debug @ref - -%br -= Time.now -%table.table - -@sheets.count.times do |i| - %tr - %td - = @sheets[i]["access_token"] - %td - = link_to "Update", callback_update_path(@sheets[i]["spreadsheet_id"]) - %td - = @sheets[i]["expires_at"] \ No newline at end of file diff --git a/app/views/callbacks/setSheet.html.erb b/app/views/callbacks/setSheet.html.erb deleted file mode 100644 index 3fd2d7a..0000000 --- a/app/views/callbacks/setSheet.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<% @ws.rows.each do |r| %> - <% r.each do |c| %> - <%= c %>
    - <%end%> -<%end%> \ No newline at end of file diff --git a/app/views/callbacks/test.html.haml b/app/views/callbacks/test.html.haml deleted file mode 100644 index d3356e4..0000000 --- a/app/views/callbacks/test.html.haml +++ /dev/null @@ -1,4 +0,0 @@ -=debug @tkn -=debug @ref.class -=debug @ref -=debug @tkn['expires_at'].localtime \ No newline at end of file diff --git a/app/views/create.html.erb b/app/views/create.html.erb deleted file mode 100644 index 2cdb756..0000000 --- a/app/views/create.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -<% #@ws['items'].each do |i| %> - <% #i.each do |j| %> - <%#=j%> - <%# end %> -<%# end %> - -<% @ws['items'].each do |i| %> - <%= link_to i['title'], set_sheet_path(i['id']) if i['mimeType'].include?("spreadsheet") %>
    -<% end %> \ No newline at end of file diff --git a/app/views/failure.html.erb b/app/views/failure.html.erb deleted file mode 100644 index 812fb59..0000000 --- a/app/views/failure.html.erb +++ /dev/null @@ -1 +0,0 @@ -this is callbacks#failure diff --git a/app/views/home/add_from_google.html.haml b/app/views/home/add_from_google.html.haml deleted file mode 100644 index 47f8914..0000000 --- a/app/views/home/add_from_google.html.haml +++ /dev/null @@ -1,7 +0,0 @@ -=@sheets["spreadsheet_id"] -%br -=#@client.authorization.methods -=debug @re -%br - -=#debug @wks \ No newline at end of file diff --git a/app/views/setSheet.html.erb b/app/views/setSheet.html.erb deleted file mode 100644 index 3fd2d7a..0000000 --- a/app/views/setSheet.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<% @ws.rows.each do |r| %> - <% r.each do |c| %> - <%= c %>
    - <%end%> -<%end%> \ No newline at end of file diff --git a/spec/controllers/callbacks_controller_spec.rb b/spec/controllers/callbacks_controller_spec.rb deleted file mode 100644 index 08d5496..0000000 --- a/spec/controllers/callbacks_controller_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'rails_helper' - -RSpec.describe CallbacksController, :type => :controller do - -end diff --git a/spec/factories/tokens.rb b/spec/factories/tokens.rb deleted file mode 100644 index 37cbfd0..0000000 --- a/spec/factories/tokens.rb +++ /dev/null @@ -1,6 +0,0 @@ -# Read about factories at https://github.com/thoughtbot/factory_girl - -FactoryGirl.define do - factory :token do - end -end diff --git a/spec/helpers/callbacks_helper_spec.rb b/spec/helpers/callbacks_helper_spec.rb deleted file mode 100644 index d10c6fd..0000000 --- a/spec/helpers/callbacks_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'rails_helper' - -# Specs in this file have access to a helper object that includes -# the CallbacksHelper. For example: -# -# describe CallbacksHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# expect(helper.concat_strings("this","that")).to eq("this that") -# end -# end -# end -RSpec.describe CallbacksHelper, :type => :helper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/models/token_spec.rb b/spec/models/token_spec.rb deleted file mode 100644 index 76bf2eb..0000000 --- a/spec/models/token_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'rails_helper' - -RSpec.describe Token, :type => :model do - pending "add some examples to (or delete) #{__FILE__}" -end From 74c2b1b852ea7cba52e7c3d5e067e97779d59747 Mon Sep 17 00:00:00 2001 From: kanhaiya007 Date: Tue, 15 Jul 2014 10:24:12 +0530 Subject: [PATCH 36/43] Integrated the sendgrid and redactor ref #7,#8 --- Gemfile | 8 +++ Gemfile.lock | 44 +++++++++++++ app/assets/javascripts/application.js | 4 ++ app/assets/javascripts/users.js.coffee | 1 + app/assets/stylesheets/application.scss | 3 + app/assets/stylesheets/newsletters.css.scss | 3 + app/controllers/newsletters_controller.rb | 45 +++++++++++++ app/controllers/users_controller.rb | 25 +++++++- app/mailers/user_mailer.rb | 22 +++++++ app/models/redactor_rails/asset.rb | 9 +++ app/models/redactor_rails/document.rb | 14 ++++ app/models/redactor_rails/picture.rb | 7 ++ app/models/user.rb | 2 + .../redactor_rails_document_uploader.rb | 15 +++++ .../redactor_rails_picture_uploader.rb | 53 +++++++++++++++ app/views/layouts/application.html.haml | 8 ++- app/views/newsletters/_form.html.haml | 6 ++ app/views/newsletters/edit.html.haml | 1 + app/views/newsletters/index.html.haml | 10 +++ app/views/newsletters/new.html.haml | 1 + app/views/newsletters/show.html.haml | 2 + .../user_mailer/welcome_message.html.haml | 12 ++++ .../user_mailer/welcome_message.text.erb | 4 ++ app/views/users/_form.html.haml | 11 +++- app/views/users/sendmailer.html.haml | 1 + app/views/users/show.html.haml | 1 + app/views/users/subscribe.html.haml | 1 + app/workers/hard_worker.rb | 13 ++++ config/application.rb | 1 + config/initializers/redis.rb | 1 + config/initializers/session_store.rb | 1 + config/routes.rb | 4 ++ dump.rdb | 1 + .../newsletters_controller_spec.rb | 64 +++++++++++++++++++ spec/controllers/users_controller_spec.rb | 31 ++++++--- spec/factories/users.rb | 1 + spec/mailers/user_mailer_spec.rb | 30 +++++++++ spec/models/user_spec.rb | 3 +- spec/spec_helper.rb | 3 + 39 files changed, 452 insertions(+), 14 deletions(-) create mode 100644 app/assets/stylesheets/newsletters.css.scss create mode 100644 app/mailers/user_mailer.rb create mode 100644 app/models/redactor_rails/asset.rb create mode 100644 app/models/redactor_rails/document.rb create mode 100644 app/models/redactor_rails/picture.rb create mode 100644 app/uploaders/redactor_rails_document_uploader.rb create mode 100644 app/uploaders/redactor_rails_picture_uploader.rb create mode 100644 app/views/newsletters/_form.html.haml create mode 100644 app/views/newsletters/edit.html.haml create mode 100644 app/views/newsletters/index.html.haml create mode 100644 app/views/newsletters/new.html.haml create mode 100644 app/views/newsletters/show.html.haml create mode 100644 app/views/user_mailer/welcome_message.html.haml create mode 100644 app/views/user_mailer/welcome_message.text.erb create mode 100644 app/views/users/sendmailer.html.haml create mode 100644 app/views/users/subscribe.html.haml create mode 100644 app/workers/hard_worker.rb create mode 100644 config/initializers/redis.rb create mode 100644 dump.rdb create mode 100644 spec/mailers/user_mailer_spec.rb diff --git a/Gemfile b/Gemfile index 1304933..84249ac 100644 --- a/Gemfile +++ b/Gemfile @@ -64,6 +64,7 @@ gem 'devise_invitable' # Use bootstrap to generate quick, elegent and responsive layouts gem 'bootstrap-sass' +gem 'bootstrap-datepicker-rails' # The following gems for testing purpose in development and testing environment group :development, :test do @@ -80,3 +81,10 @@ group :development, :test do end gem 'simple_form' +# Use to add redactor editor +gem 'redactor-rails' +gem 'carrierwave' +gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid' +gem 'mini_magick' +gem 'redis-rails' +gem 'redis-namespace' diff --git a/Gemfile.lock b/Gemfile.lock index a16b62d..50d1e1b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -29,10 +29,21 @@ GEM tzinfo (~> 1.1) arel (5.0.1.20140414130214) bcrypt (3.1.7) + bootstrap-datepicker-rails (1.3.0.2) + railties (>= 3.0) bootstrap-sass (3.2.0.0) sass (~> 3.2) bson (2.3.0) builder (3.2.2) + carrierwave (0.10.0) + activemodel (>= 3.2.0) + activesupport (>= 3.2.0) + json (>= 1.7) + mime-types (>= 1.16) + carrierwave-mongoid (0.7.1) + carrierwave (>= 0.8.0, < 0.11.0) + mongoid (>= 3.0, < 5.0) + mongoid-grid_fs (>= 1.3, < 3.0) celluloid (0.15.2) timers (~> 1.1.0) coffee-rails (4.0.1) @@ -97,6 +108,8 @@ GEM mime-types (~> 1.16) treetop (~> 1.4.8) mime-types (1.25.1) + mini_magick (3.7.0) + subexec (~> 0.2.1) mini_portile (0.6.0) minitest (5.3.5) mongoid (4.0.0) @@ -104,6 +117,9 @@ GEM moped (~> 2.0.0) origin (~> 2.1) tzinfo (>= 0.3.37) + mongoid-grid_fs (2.1.0) + mime-types (>= 1.0, < 3.0) + mongoid (>= 3.0, < 5.0) moped (2.0.0) bson (~> 2.2) connection_pool (~> 2.0) @@ -145,9 +161,29 @@ GEM rake (10.3.2) rdoc (4.1.1) json (~> 1.4) + redactor-rails (0.4.5) + devise + mime-types + orm_adapter redis (3.1.0) + redis-actionpack (4.0.0) + actionpack (~> 4) + redis-rack (~> 1.5.0) + redis-store (~> 1.1.0) + redis-activesupport (4.0.0) + activesupport (~> 4) + redis-store (~> 1.1.0) redis-namespace (1.5.0) redis (~> 3.0, >= 3.0.4) + redis-rack (1.5.0) + rack (~> 1.5) + redis-store (~> 1.1.0) + redis-rails (4.0.0) + redis-actionpack (~> 4) + redis-activesupport (~> 4) + redis-store (~> 1.1.0) + redis-store (1.1.4) + redis (>= 2.2) ref (1.0.5) rspec-core (3.0.2) rspec-support (~> 3.0.0) @@ -201,6 +237,7 @@ GEM actionpack (>= 3.0) activesupport (>= 3.0) sprockets (~> 2.8) + subexec (0.2.3) therubyracer (0.12.1) libv8 (~> 3.16.14.0) ref @@ -225,7 +262,10 @@ PLATFORMS ruby DEPENDENCIES + bootstrap-datepicker-rails bootstrap-sass + carrierwave + carrierwave-mongoid coffee-rails (~> 4.0.0) database_cleaner devise @@ -238,8 +278,12 @@ DEPENDENCIES jbuilder (~> 2.0) jquery-rails linkedin + mini_magick mongoid rails (= 4.1.2) + redactor-rails + redis-namespace + redis-rails rspec-rails sass-rails (~> 4.0.3) sdoc (~> 0.4.0) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 86c1238..3eb87ad 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -14,6 +14,10 @@ //= require jquery_ujs //= require turbolinks //= require bootstrap +//= require bootstrap-datepicker +// require bootstrap-datepicker-rails +//= require redactor-rails +//= require redactor-rails/plugins //= require_tree . diff --git a/app/assets/javascripts/users.js.coffee b/app/assets/javascripts/users.js.coffee index 24f83d1..1c80829 100644 --- a/app/assets/javascripts/users.js.coffee +++ b/app/assets/javascripts/users.js.coffee @@ -1,3 +1,4 @@ # Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: http://coffeescript.org/ +$('.datepicker').datepicker() diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 1cded50..958e1f5 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -12,6 +12,9 @@ * *= require_tree . *= require_self + *= require bootstrap-datepicker + *= require redactor-rails + *= redactor-rails/plugins */ @import "bootstrap"; diff --git a/app/assets/stylesheets/newsletters.css.scss b/app/assets/stylesheets/newsletters.css.scss new file mode 100644 index 0000000..f755752 --- /dev/null +++ b/app/assets/stylesheets/newsletters.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the newsletters controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/newsletters_controller.rb b/app/controllers/newsletters_controller.rb index 8987a92..a5a95fb 100644 --- a/app/controllers/newsletters_controller.rb +++ b/app/controllers/newsletters_controller.rb @@ -1,2 +1,47 @@ class NewslettersController < ApplicationController + + def index + @newsletters = Newsletter.order_by([:sent_on, :asc]) + end + + def show + @newsletter = Newsletter.find(params[:id]) + end + + def new + @newsletter = Newsletter.new + end + + def newsletters_params + params.require(:newsletter).permit(:id, :content, :sent_on, :users_count) + end + + def create + @newsletter = Newsletter.new(newsletters_params) + if @newsletter.save + redirect_to newsletters_path + else + render action: 'new' + end + end + + def edit + @newsletter = Newsletter.find(params[:id]) + end + + def update + @newsletter = Newsletter.find(params[:id]) + if @newsletter.update_attributes(newsletters_params) + redirect_to newsletters_path + else + render action: 'edit' + end + end + + def destroy + @newsletter = Newsletter.find(params[:id]) + @newsletter.destroy + redirect_to newsletters_path + end + end diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 66a3c09..f8ac86e 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -13,15 +13,36 @@ def new def create @user = User.new(users_params) + # @news = Newsletter.last + + #respond_to do |format| if @user.save - redirect_to users_path + redirect_to users_path + # UserMailer.welcome_message(@user,@news.content).deliver + # format.html { redirect_to(@user, notice: 'User was successfully created.')} + # format.json { render json: @user, status: :created, locaton: @user} else render action: 'new' + # format.html {render action: 'new'} + # format.json {render json: @user.errors, status: :unprocessable_entity } end + #end end + def subscribe + @user = User.find(params[:id]) + @user.update(is_subscribed: 'false') + end + + def sendmailer + #@user = User.where(is_subscribed: 'true') + #@news = Newsletter.last + HardWorker.perform_async() + redirect_to users_path + end + def users_params - params.require(:user).permit(:id, :email_id, :is_subscribed, :joined_on, :source) + params.require(:user).permit(:id, :email_id, :is_subscribed, :joined_on, :source, :username) end def edit diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb new file mode 100644 index 0000000..d72c76a --- /dev/null +++ b/app/mailers/user_mailer.rb @@ -0,0 +1,22 @@ +class UserMailer < ActionMailer::Base + include SendGrid + sendgrid_category :use_subject_lines + sendgrid_enable :ganalytics, :opentrack + sendgrid_unique_args :key1 => "value1", :key2 => "value2" + + def welcome_message(email, newsletter_content,id,name) + sendgrid_category "Welcome" + sendgrid_unique_args :key2 => "newvalue2", :key3 => "value3" + + content = ERB.new(newsletter_content) + object_id = id + #headers['X-SMTPAPI'] = { :to => user.pluck(:email_id) }.to_json + + mail( to: email, + category: "newuser", + subject: "Welcome #{name}", + body: content.result(binding), + content_type: "text/html" + ) + end +end diff --git a/app/models/redactor_rails/asset.rb b/app/models/redactor_rails/asset.rb new file mode 100644 index 0000000..fe059e4 --- /dev/null +++ b/app/models/redactor_rails/asset.rb @@ -0,0 +1,9 @@ +class RedactorRails::Asset + include Mongoid::Document + include Mongoid::Timestamps + + include RedactorRails::Orm::Mongoid::AssetBase + + delegate :url, :current_path, :size, :content_type, :filename, :to => :data + validates_presence_of :data +end diff --git a/app/models/redactor_rails/document.rb b/app/models/redactor_rails/document.rb new file mode 100644 index 0000000..f286f3a --- /dev/null +++ b/app/models/redactor_rails/document.rb @@ -0,0 +1,14 @@ +class RedactorRails::Document < RedactorRails::Asset + mount_uploader :data, RedactorRailsDocumentUploader, :mount_on => :data_file_name + + def url_content + url(:content) + end + + def thumb + # Could theoretically provide an icon set here + # to match against the extensions + # but for now it's nil to address the bug + nil + end +end diff --git a/app/models/redactor_rails/picture.rb b/app/models/redactor_rails/picture.rb new file mode 100644 index 0000000..9a6f812 --- /dev/null +++ b/app/models/redactor_rails/picture.rb @@ -0,0 +1,7 @@ +class RedactorRails::Picture < RedactorRails::Asset + mount_uploader :data, RedactorRailsPictureUploader, :mount_on => :data_file_name + + def url_content + url(:content) + end +end diff --git a/app/models/user.rb b/app/models/user.rb index 11bfd53..466e4f0 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -2,11 +2,13 @@ class User include Mongoid::Document field :email_id, type: String + field :username, type: String field :is_subscribed, type: Boolean field :joined_on, type: Date field :source, type: String validates :email_id, presence: true + validates :username, presence: true validates :is_subscribed, presence: true validates :joined_on, presence: true validates :source, presence: true diff --git a/app/uploaders/redactor_rails_document_uploader.rb b/app/uploaders/redactor_rails_document_uploader.rb new file mode 100644 index 0000000..33bf6a6 --- /dev/null +++ b/app/uploaders/redactor_rails_document_uploader.rb @@ -0,0 +1,15 @@ +# encoding: utf-8 +class RedactorRailsDocumentUploader < CarrierWave::Uploader::Base + include RedactorRails::Backend::CarrierWave + + # storage :fog + storage :file + + def store_dir + "system/redactor_assets/documents/#{model.id}" + end + + def extension_white_list + RedactorRails.document_file_types + end +end diff --git a/app/uploaders/redactor_rails_picture_uploader.rb b/app/uploaders/redactor_rails_picture_uploader.rb new file mode 100644 index 0000000..99aadba --- /dev/null +++ b/app/uploaders/redactor_rails_picture_uploader.rb @@ -0,0 +1,53 @@ +# encoding: utf-8 +class RedactorRailsPictureUploader < CarrierWave::Uploader::Base + include RedactorRails::Backend::CarrierWave + + # Include RMagick or ImageScience support: + # include CarrierWave::RMagick + include CarrierWave::MiniMagick + # include CarrierWave::ImageScience + + # Choose what kind of storage to use for this uploader: + storage :file + + # Override the directory where uploaded files will be stored. + # This is a sensible default for uploaders that are meant to be mounted: + def store_dir + "system/redactor_assets/pictures/#{model.id}" + end + + # Provide a default URL as a default if there hasn't been a file uploaded: + # def default_url + # "/images/fallback/" + [version_name, "default.png"].compact.join('_') + # end + + # Process files as they are uploaded: + # process :scale => [200, 300] + # + # def scale(width, height) + # # do something + # end + + process :read_dimensions + + # Create different versions of your uploaded files: + version :thumb do + process :resize_to_fill => [118, 100] + end + + version :content do + process :resize_to_limit => [800, 800] + end + + # Add a white list of extensions which are allowed to be uploaded. + # For images you might use something like this: + def extension_white_list + RedactorRails.image_file_types + end + + # Override the filename of the uploaded files: + # Avoid using model.id or version_name here, see uploader/store.rb for details. + # def filename + # "something.jpg" if original_filename + # end +end diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 968ff69..87a0687 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -17,7 +17,7 @@ %a{href: "#{home_index_path}"} %h4 Home %li - %a{href: "#"} + %a{href: "#{newsletters_path}"} %h4 Newsletters %li %a{href: "#{new_user_path}"} @@ -25,6 +25,12 @@ %li %a{href: "#{users_path}"} %h4 All Users + %li + %a{href: "#{new_newsletter_path}"} + %h4 Add New Newsletter + %li + %a{href: "#{sendmailer_path}"} + %h4 Send Mail %ul.nav.navbar-nav.navbar-right diff --git a/app/views/newsletters/_form.html.haml b/app/views/newsletters/_form.html.haml new file mode 100644 index 0000000..71dc4d4 --- /dev/null +++ b/app/views/newsletters/_form.html.haml @@ -0,0 +1,6 @@ += simple_form_for (@newsletter) do |news| + .inputs + = news.text_area :content, :placeholder => "Input here..", :class => "redactor", :rows => 20, :cols => 60 + = news.input :sent_on + = news.input :users_count + = news.button :submit diff --git a/app/views/newsletters/edit.html.haml b/app/views/newsletters/edit.html.haml new file mode 100644 index 0000000..f3a2592 --- /dev/null +++ b/app/views/newsletters/edit.html.haml @@ -0,0 +1 @@ += render :partial => "form" diff --git a/app/views/newsletters/index.html.haml b/app/views/newsletters/index.html.haml new file mode 100644 index 0000000..89b9cb3 --- /dev/null +++ b/app/views/newsletters/index.html.haml @@ -0,0 +1,10 @@ +%table.table.table-striped + -@newsletters.each do |news| + %tr + %td + =link_to news.sent_on, newsletter_path(news) + %td + =link_to "Edit", edit_newsletter_path(news) + %td + =link_to "Delete", newsletter_path(news), method: :delete + %tr diff --git a/app/views/newsletters/new.html.haml b/app/views/newsletters/new.html.haml new file mode 100644 index 0000000..f3a2592 --- /dev/null +++ b/app/views/newsletters/new.html.haml @@ -0,0 +1 @@ += render :partial => "form" diff --git a/app/views/newsletters/show.html.haml b/app/views/newsletters/show.html.haml new file mode 100644 index 0000000..1420583 --- /dev/null +++ b/app/views/newsletters/show.html.haml @@ -0,0 +1,2 @@ += raw @newsletter.content +=@newsletter.users_count diff --git a/app/views/user_mailer/welcome_message.html.haml b/app/views/user_mailer/welcome_message.html.haml new file mode 100644 index 0000000..8bb7818 --- /dev/null +++ b/app/views/user_mailer/welcome_message.html.haml @@ -0,0 +1,12 @@ +!!! +%html + %body + %p + { + "filters" : { + "template" : { + "settings" : 1, + "text/html" : " + = succeed "\"" do + %div{bgcolor: "#FFF", style: "width:200px"} + - body diff --git a/app/views/user_mailer/welcome_message.text.erb b/app/views/user_mailer/welcome_message.text.erb new file mode 100644 index 0000000..f72993e --- /dev/null +++ b/app/views/user_mailer/welcome_message.text.erb @@ -0,0 +1,4 @@ +Welcome To Lightair.com +============================================== +Josh Software Rocks +Thanks for the support and have a great day! diff --git a/app/views/users/_form.html.haml b/app/views/users/_form.html.haml index 9eae706..7af80d4 100644 --- a/app/views/users/_form.html.haml +++ b/app/views/users/_form.html.haml @@ -1,8 +1,15 @@ = simple_form_for (@user) do |f| .inputs = f.input :email_id - = f.input :is_subscribed - = f.input :joined_on + = f.input :username + = f.input :is_subscribed, :as => :select + = f.input :joined_on, input_html: { 'data-behaviour' => 'datepicker'} = f.input :source = f.button :submit + :javascript + $('[data-behaviour~=datepicker]').datepicker({ + format: 'yyyy-mm-dd' + }) + + diff --git a/app/views/users/sendmailer.html.haml b/app/views/users/sendmailer.html.haml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/app/views/users/sendmailer.html.haml @@ -0,0 +1 @@ + diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 570f57f..ef2bfb9 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -1,3 +1,4 @@ +=@user.username =@user.source =@user.joined_on =@user.is_subscribed diff --git a/app/views/users/subscribe.html.haml b/app/views/users/subscribe.html.haml new file mode 100644 index 0000000..02394f2 --- /dev/null +++ b/app/views/users/subscribe.html.haml @@ -0,0 +1 @@ +%h2 Unsubscribed successfully diff --git a/app/workers/hard_worker.rb b/app/workers/hard_worker.rb new file mode 100644 index 0000000..c958f2c --- /dev/null +++ b/app/workers/hard_worker.rb @@ -0,0 +1,13 @@ +class HardWorker + include Sidekiq::Worker + + def perform() + @users = User.where(is_subscribed: "true") + @news = Newsletter.last + @users.each do |a| + UserMailer.welcome_message(a.email_id,@news.content,a.id,a.username).deliver + end + + end +end + diff --git a/config/application.rb b/config/application.rb index 6e89af7..d21154e 100644 --- a/config/application.rb +++ b/config/application.rb @@ -28,5 +28,6 @@ class Application < Rails::Application # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif) + #config.cache_store = :redis_store, 'redis://localhost:6379/0/cache', { expires_in: 90.minutes } end end diff --git a/config/initializers/redis.rb b/config/initializers/redis.rb new file mode 100644 index 0000000..679afed --- /dev/null +++ b/config/initializers/redis.rb @@ -0,0 +1 @@ +$redis = Redis::Namespace.new("lightair", :redis => Redis.new) diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index f799bd4..69e3b99 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,3 +1,4 @@ # Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_lightair_session' +#MyApplication::Application.config.session_store :redis_store diff --git a/config/routes.rb b/config/routes.rb index 87b8e4e..2ad37da 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,11 @@ Rails.application.routes.draw do + mount RedactorRails::Engine => '/redactor_rails' + get '/users/sendmailer', to: 'users#sendmailer', as: 'sendmailer' + get '/users/subscribe', to: 'users#subscribe', as: 'subscribe' resources :users resources :newsletters resources :home + resources :user_mailer root :to => "home#index" # The priority is based upon order of creation: first created -> highest priority. diff --git a/dump.rdb b/dump.rdb new file mode 100644 index 0000000..56af04e --- /dev/null +++ b/dump.rdb @@ -0,0 +1 @@ +REDIS0006ÿܳCðZÜòV \ No newline at end of file diff --git a/spec/controllers/newsletters_controller_spec.rb b/spec/controllers/newsletters_controller_spec.rb index 0909932..712a05a 100644 --- a/spec/controllers/newsletters_controller_spec.rb +++ b/spec/controllers/newsletters_controller_spec.rb @@ -2,4 +2,68 @@ RSpec.describe NewslettersController, :type => :controller do + context "GET index" do + it "list all the newsletters" do + get :index + expect(response).to render_template("index") + end + end + + context "GET show" do + let(:newsletter) {FactoryGirl.create(:newsletter)} + it "show the deatails of the newsletters" do + get :show, {:id => newsletter.id} + expect(response).to render_template("show") + end + end + + context "GET new" do + let(:new_newsletter) {FactoryGirl.create(:newsletter)} + it "display new form for adding newsletter" do + post :new, {newsletter: new_newsletter} + expect(response).to render_template("new") + end + end + + context "POST create" do + let(:new_newsletter) {FactoryGirl.attributes_for(:newsletter)} + it "display new form for adding newsletter" do + post :create, {newsletter: new_newsletter} + expect(response).to redirect_to(newsletters_path) + end + + it "not arise" do + post :create, {newsletter: {content: "",sent_on: "2014-1-1", users_count: 0}} + expect(response).to render_template("new") + end + end + + context "GET update" do + let(:new_newsletter) {FactoryGirl.create(:newsletter)} + it "fetches the specific newsletter" do + get :edit, {id: new_newsletter.id} + expect(response).to render_template("edit") + end + end + + context "DELETE delete" do + let(:newsletter) {FactoryGirl.create(:newsletter)} + it "delete a newsletter" do + delete :destroy, {id: newsletter.id} + expect(response).to redirect_to(newsletters_path) + end + end + + context "PUT update" do + let(:new_newsletter) {FactoryGirl.create(:newsletter)} + it "updates details of specified newsletter" do + put :update, {id: new_newsletter.id, newsletter: {content: new_newsletter.content}} + expect(response).to redirect_to(newsletters_path) + end + + it "not arise" do + put :update, {id: new_newsletter.id, newsletter: {content: ""}} + expect(response).to render_template("edit") + end + end end diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb index d7bec43..3d321e7 100644 --- a/spec/controllers/users_controller_spec.rb +++ b/spec/controllers/users_controller_spec.rb @@ -12,7 +12,7 @@ context "GET show" do let(:user) {FactoryGirl.create(:user)} it "show the details of the users" do - get :show, {:id => user.id} + get :show, {id: user.id} expect(response).to render_template("show") end end @@ -32,15 +32,15 @@ expect(response).to redirect_to(users_path) end it "not arise" do - post :create, {user: new_user} - expect(response).not_to render_template("new") + post :create, {user: {email_id: "",username: "kanhaiya", is_subscribed: "false"}} + expect(response).to render_template("new") end end context "GET edit" do let(:new_user) {FactoryGirl.create(:user)} it "fetches the specific all the users" do - get :edit, {:id => new_user.id} + get :edit, {id: new_user.id} expect(response).to render_template("edit") end end @@ -49,7 +49,7 @@ context "DELETE delete" do let(:user) {FactoryGirl.create(:user)} it "delete an user" do - delete :destroy, {:id => user.id} + delete :destroy, {id: user.id} expect(response).to redirect_to(users_path) end end @@ -58,12 +58,27 @@ context "PUT update" do let(:new_user) {FactoryGirl.create(:user)} it "updates details of specified user" do - patch :update, {:id =>new_user.id, :user => { :email_id => new_user.email_id}} + patch :update, {id: new_user.id, user: { email_id: new_user.email_id}} expect(response).to redirect_to(users_path) end it " not arise" do - put :update, {:id =>new_user.id, :user => { :email => new_user.email_id}} - expect(response).not_to render_template("edit") + put :update, {id: new_user.id, user: { email_id: ""}} + expect(response).to render_template("edit") + end + end + + context "GET subscribe" do + let(:new_user) {FactoryGirl.create(:user)} + it "unsubcribes a particular user" do + get :subscribe, {id: new_user.id} + expect(response).to render_template("subscribe") + end + end + + context "GET sendmailer" do + it "sends mails to user" do + get :sendmailer + expect(response).to redirect_to(users_path) end end end diff --git a/spec/factories/users.rb b/spec/factories/users.rb index 36d4e31..71630d3 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -6,6 +6,7 @@ u.is_subscribed {true} u.joined_on {Faker::Business.credit_card_expiry_date} u.source {Faker::Name.name} + u.username {Faker::Name.name} newsletter end end diff --git a/spec/mailers/user_mailer_spec.rb b/spec/mailers/user_mailer_spec.rb new file mode 100644 index 0000000..af37340 --- /dev/null +++ b/spec/mailers/user_mailer_spec.rb @@ -0,0 +1,30 @@ +require "rails_helper" + +RSpec.describe UserMailer, :type => :mailer do + pending "add some examples to (or delete) #{__FILE__}" + + before(:each) do + ActionMailer::Base.delivery_method = :test + ActionMailer::Base.perform_deliveries = true + ActionMailer::Base.deliveries = [] + UserMailer.welcome_message('kanhaiya@joshsoftware.com','Josh','123','kanhaiya').deliver + end + + after(:each) do + ActionMailer::Base.deliveries.clear + end + + + it 'should send an email' do + expect(ActionMailer::Base.deliveries.count).to eq(1) + end + + it 'renders the receiver email' do + expect(ActionMailer::Base.deliveries.first.to).to eq(['kanhaiya@joshsoftware.com']) + end + + it 'render the sender email' do + expect(ActionMailer::Base.deliveries.first.from).to eq(['marketing@joshsoftware.com']) + end + +end diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 48ab4c0..5cef3f5 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -26,5 +26,6 @@ expect(k).not_to be_valid end - + let(:user) {FactoryGirl.create(:user)} + let(:newsletter) {FactoryGirl.create(:newsletter)} end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index cfb18dc..b81d6eb 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,6 @@ +require 'simplecov' +SimpleCov.start + # This file was generated by the `rails generate rspec:install` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause this From 037a384837f9b0221bd1eea064cea6556f9bfa46 Mon Sep 17 00:00:00 2001 From: kanhaiya007 Date: Tue, 15 Jul 2014 11:01:47 +0530 Subject: [PATCH 37/43] Done with background jobs-Sidekiq ref #9 --- app/views/layouts/application.html.haml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 0f192a5..d80fb37 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -17,8 +17,11 @@ %a{href: "#{home_index_path}"} %h4 Home %li - %a{href: "#"} + %a{href: "#{newsletters_path}"} %h4 Newsletters + %li + %a{href: "#{new_newsletter_path}"} + %h4 Add Newsletter %li %a{href: "#{users_path}"} %h4 Show Users @@ -32,6 +35,9 @@ %a{role: "menuitem", tabindex: "-1", href: "#{new_user_path}"}Add Manually %li %a{role: "menuitem", tabindex: "-2", href: "#{spreadsheets_path}"}Google Spreadsheets + %li + %a{href: "#{sendmailer_path}"} + %h4 Send Mail %ul.nav.navbar-nav.navbar-right %li.active From 74b7411a742de94642829a0e82d1fc984111059b Mon Sep 17 00:00:00 2001 From: basnal Date: Tue, 15 Jul 2014 12:07:57 +0530 Subject: [PATCH 38/43] Added spec to test duplicacy of spreadsheets #5 Test case to check duplicacy of spreadsheet was added and the spreadsheet_controller was modified accordingly --- app/controllers/spreadsheets_controller.rb | 4 +- app/models/spreadsheet.rb | 10 +++- .../spreadsheets_controller_spec.rb | 31 +++++++++-- spec/factories/spreadsheets.rb | 10 ++-- spec/vcr/controllers/api-update-with-data.yml | 53 +++++++++++++++++++ 5 files changed, 96 insertions(+), 12 deletions(-) diff --git a/app/controllers/spreadsheets_controller.rb b/app/controllers/spreadsheets_controller.rb index 51b6925..0933f9a 100644 --- a/app/controllers/spreadsheets_controller.rb +++ b/app/controllers/spreadsheets_controller.rb @@ -28,7 +28,7 @@ def edit token = spreadsheet_params['token'] spreadsheet = Spreadsheet.where(access_token: token)[0] - if spreadsheet.add_spreadsheet_credentials(spreadsheet_params) + if spreadsheet && spreadsheet.add_spreadsheet_credentials(spreadsheet_params) spreadsheet.save else @error = 'Already Present' @@ -65,6 +65,6 @@ def failure ################################# def spreadsheet_params - params.permit(:title, :id, :token) + params.permit(:id, :title, :token) end end diff --git a/app/models/spreadsheet.rb b/app/models/spreadsheet.rb index 640648b..60780c4 100644 --- a/app/models/spreadsheet.rb +++ b/app/models/spreadsheet.rb @@ -16,8 +16,14 @@ def add_tokens(tokens = {}) end def add_spreadsheet_credentials(credentials = {}) - self['spreadsheet_id'] = credentials['id'] - self['spreadsheet_title'] = credentials['title'] + if Spreadsheet.where('spreadsheet_id' => credentials['id']).to_a[0] + return false + else + self['spreadsheet_id'] = credentials['id'] + self['spreadsheet_title'] = credentials['title'] + end + + true end def access_token diff --git a/spec/controllers/spreadsheets_controller_spec.rb b/spec/controllers/spreadsheets_controller_spec.rb index c0e6689..77ececf 100644 --- a/spec/controllers/spreadsheets_controller_spec.rb +++ b/spec/controllers/spreadsheets_controller_spec.rb @@ -3,7 +3,6 @@ require 'vcr' RSpec.describe SpreadsheetsController, :type => :controller do - context 'GET User Permission' do context 'User accepts' do it 'redirects to new ' do @@ -65,15 +64,41 @@ context 'Get Edit' do let(:sheet) { FactoryGirl.create(:spreadsheet)} it 'renders index page after executing' do - get :edit, title: 'namecollection', id: sheet['spreadsheet_id'], token: sheet['access_token'] + + get :edit, id: sheet['spreadsheet_id'], title: sheet['spreadsheet_title'], token: sheet['access_token'] expect(response).to render_template(:index) end it 'adds spreadsheet\'s credentials' do - get :edit, title: 'namecollection', id: sheet['spreadsheet_id'], token: sheet['access_token'] + sheet + Spreadsheet.delete_all + spreadsheet = Spreadsheet.new + spreadsheet.add_tokens({ + 'token' => sheet[:access_token], + 'refresh_token' => sheet[:refresh_token], + 'expires_at' => sheet[:expires_at] + }) + spreadsheet.save + get :edit, id: sheet['spreadsheet_id'], title: sheet['spreadsheet_title'], token: sheet['access_token'] expect(assigns(:error)).to be(nil) end + + it 'does not add duplicate spreadsheet' do + sheet + spreadsheet = Spreadsheet.new + spreadsheet.add_tokens({ + 'token' => '0ya29.QgC-kYKwAzcdh8AAABnuwXicpaXRvO_YSlv4V9J556542KazsYWEia63TlRyA', + 'refresh_token' => sheet[:refresh_token], + 'expires_at' => sheet[:expires_at] + }) + spreadsheet.save + + get :edit, title: sheet['spreadsheet_title'], id: sheet['spreadsheet_id'], token: '0ya29.QgC-kYKwAzcdh8AAABnuwXicpaXRvO_YSlv4V9J556542KazsYWEia63TlRyA' + + expect(assigns(:error)).not_to be(nil) + end + end context 'Post Update' do diff --git a/spec/factories/spreadsheets.rb b/spec/factories/spreadsheets.rb index 63c310f..6790dd4 100644 --- a/spec/factories/spreadsheets.rb +++ b/spec/factories/spreadsheets.rb @@ -2,10 +2,10 @@ FactoryGirl.define do factory :spreadsheet do |s| - s.spreadsheet_id {'1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE'} - s.spreadsheet_title {'namecollection'} - s.access_token {'ya29.QgC-5kYKwAzcdh8AAABnuwXicpaXRvO_YSlv4V9J556542KazsYWEia63TlRyA'} - s.refresh_token {'1/DlAqfSUji69F3YuVAHSoWxWE0grR8aYSkb2OocVCNBw'} - s.expires_at {Time.now - 3600} + s.spreadsheet_id {'1g2JX-w0XtcWD7yZo-K3cSHs7PhycCwhaYYmwajsLIwE'} + s.spreadsheet_title {'namecollection'} + s.sequence(:access_token) {|n| "#{n}ya29.QgC-kYKwAzcdh8AAABnuwXicpaXRvO_YSlv4V9J556542KazsYWEia63TlRyA"} + s.refresh_token {'1/DlAqfSUji69F3YuVAHSoWxWE0grR8aYSkb2OocVCNBw'} + s.expires_at {Time.now - 3600} end end diff --git a/spec/vcr/controllers/api-update-with-data.yml b/spec/vcr/controllers/api-update-with-data.yml index 9861930..5d91977 100644 --- a/spec/vcr/controllers/api-update-with-data.yml +++ b/spec/vcr/controllers/api-update-with-data.yml @@ -337,4 +337,57 @@ http_interactions: row='28' col='1' inputValue='airnow'>airnow" http_version: recorded_at: Mon, 14 Jul 2014 12:33:21 GMT +- request: + method: get + uri: https://spreadsheets.google.com/feeds/worksheets//private/full + body: + encoding: US-ASCII + string: '' + headers: + Authorization: + - Bearer ya29.QgAFK5QrFhLCIB8AAABfqjxL7sQjl5zVnL-YlD_fcUxIutL1k_KUFTr1NDwqCA + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 400 + message: Bad Request + headers: + Content-Type: + - text/html; charset=UTF-8 + Set-Cookie: + - NID=67=lnaiDCsR8YZhYNqU8f8qSS-gNY7HGAx6aNASsXwIMN20ES3nNmJ6dYAvXOcMgzc1TcT2GfM7bCJ-5mcmbT8QD1VOqSOsz8T_GCRf6KHMHrRJSbNw39de3Sl6uh5cOjQn;Domain=.google.com;Path=/;Expires=Wed, + 14-Jan-2015 05:47:35 GMT;HttpOnly + P3p: + - CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 + for more info." + X-Chromium-Appcache-Fallback-Override: + - disallow-fallback + Date: + - Tue, 15 Jul 2014 05:47:35 GMT + Expires: + - Tue, 15 Jul 2014 05:47:35 GMT + Cache-Control: + - private, max-age=0 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + Server: + - GSE + Alternate-Protocol: + - 443:quic + Transfer-Encoding: + - chunked + body: + encoding: UTF-8 + string: Invalid request URI + http_version: + recorded_at: Tue, 15 Jul 2014 05:47:35 GMT recorded_with: VCR 2.9.2 From 69161ef660396193024530cf790e372dd4dd0bfe Mon Sep 17 00:00:00 2001 From: basnal Date: Tue, 15 Jul 2014 12:46:38 +0530 Subject: [PATCH 39/43] Duplicacy of access_token is tested #5 --- config/initializers/google_oauth.rb | 2 +- .../spreadsheets_controller_spec.rb | 30 ++++- spec/vcr/controllers/api-permissions.yml | 122 ------------------ 3 files changed, 28 insertions(+), 126 deletions(-) delete mode 100644 spec/vcr/controllers/api-permissions.yml diff --git a/config/initializers/google_oauth.rb b/config/initializers/google_oauth.rb index 4cde5db..4047619 100644 --- a/config/initializers/google_oauth.rb +++ b/config/initializers/google_oauth.rb @@ -10,4 +10,4 @@ OmniAuth.config.on_failure = Proc.new { |env| OmniAuth::FailureEndpoint.new(env).redirect_to_failure -} \ No newline at end of file +} diff --git a/spec/controllers/spreadsheets_controller_spec.rb b/spec/controllers/spreadsheets_controller_spec.rb index 77ececf..8eb42f8 100644 --- a/spec/controllers/spreadsheets_controller_spec.rb +++ b/spec/controllers/spreadsheets_controller_spec.rb @@ -6,7 +6,8 @@ context 'GET User Permission' do context 'User accepts' do it 'redirects to new ' do - VCR.use_cassette 'controllers/api-permissions' do + VCR.use_cassette 'controllers/api-permissions-denied' do +=begin data = { name: 'google', scope: 'userinfo.profile,userinfo.email,drive,https://spreadsheets.google.com/feeds', @@ -14,7 +15,13 @@ access_type: 'offline', redirect_uri: 'http://localhost:8080/auth/google/callback' } - RestClient.post 'https://accounts.google.com/o/oauth2/auth', data + RestClient.get 'https://accounts.google.com/o/oauth2/auth', + name: 'google', + scope: 'userinfo.profile,userinfo.email,drive,https://spreadsheets.google.com/feeds', + prompt: 'consent', + access_type: 'offline', + redirect_uri: 'http://localhost:8080/auth/google/callback' +=end end end @@ -36,6 +43,7 @@ end context 'GET New' do + let(:sheet) { FactoryGirl.create(:spreadsheet)} it 'creates new spreadsheet when no access_token given' do VCR.use_cassette 'controllers/api-new_tokens' do request.env['omniauth.auth'] = { @@ -52,13 +60,29 @@ end end - let(:sheet) { FactoryGirl.create(:spreadsheet)} it 'does not creates new spreadsheet when access_token is given' do VCR.use_cassette 'controllers/api-response' do get(:new, access_token: sheet.access_token) expect(response).to render_template(:new) end end + + it 'does not creates new spreadsheet if access_token already present' do + sheet + + VCR.use_cassette 'controllers/api-new_tokens' do + request.env['omniauth.auth'] = { + 'credentials' => { + 'token' => sheet[:access_token], + 'refresh_token' => sheet[:refresh_token], + 'expires_at' => Time.now, + 'expires' => true + } + } + get :new + expect(assigns(:msg)).not_to be(nil) + end + end end context 'Get Edit' do diff --git a/spec/vcr/controllers/api-permissions.yml b/spec/vcr/controllers/api-permissions.yml deleted file mode 100644 index b25c89c..0000000 --- a/spec/vcr/controllers/api-permissions.yml +++ /dev/null @@ -1,122 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://accounts.google.com/o/oauth2/auth - body: - encoding: US-ASCII - string: name=google&scope=userinfo.profile%2Cuserinfo.email%2Cdrive%2Chttps%3A%2F%2Fspreadsheets.google.com%2Ffeeds&prompt=consent&access_type=offline&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fauth%2Fgoogle%2Fcallback - headers: - Accept: - - "*/*; q=0.5, application/xml" - Accept-Encoding: - - gzip, deflate - Content-Length: - - '212' - Content-Type: - - application/x-www-form-urlencoded - User-Agent: - - Ruby - response: - status: - code: 400 - message: Bad Request - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Pragma: - - no-cache - Expires: - - Fri, 01 Jan 1990 00:00:00 GMT - Date: - - Mon, 14 Jul 2014 13:03:28 GMT - Content-Type: - - text/html; charset=utf-8 - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - Server: - - GSE - Alternate-Protocol: - - 443:quic - Transfer-Encoding: - - chunked - body: - encoding: ASCII-8BIT - string: !binary |- - PCFET0NUWVBFIGh0bWw+PGh0bWwgbGFuZz1lbj48bWV0YSBjaGFyc2V0PXV0 - Zi04PjxtZXRhIG5hbWU9dmlld3BvcnQgY29udGVudD0iaW5pdGlhbC1zY2Fs - ZT0xLCBtaW5pbXVtLXNjYWxlPTEsIHdpZHRoPWRldmljZS13aWR0aCI+PHRp - dGxlPkVycm9yIDQwMCAoT0F1dGgyIEVycm9yKSEhMTwvdGl0bGU+PHN0eWxl - Pip7bWFyZ2luOjA7cGFkZGluZzowfWh0bWwsY29kZXtmb250OjE1cHgvMjJw - eCBhcmlhbCxzYW5zLXNlcmlmfWh0bWx7YmFja2dyb3VuZDojZmZmO2NvbG9y - OiMyMjI7cGFkZGluZzoxNXB4fWJvZHl7bWFyZ2luOjclIGF1dG8gMDttYXgt - d2lkdGg6MzkwcHg7bWluLWhlaWdodDoxODBweDtwYWRkaW5nOjMwcHggMCAx - NXB4fSogPiBib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JlZGly - ZWN0X3VyaT1odHRwOi8vbG9jYWxob3N0OjgwODAvYXV0aC9nb29nbGUvY2Fs - bGJhY2s8L2xpPjxsaSBjbGFzcz0icGFyYW1fZW50cnkiIGlkPSJwYXJhbV9l - bnRyeV8yIj5hY2Nlc3NfdHlwZT1vZmZsaW5lPC9saT48bGkgY2xhc3M9InBh - cmFtX2VudHJ5IiBpZD0icGFyYW1fZW50cnlfMyI+bmFtZT1nb29nbGU8L2xp - PjxsaSBjbGFzcz0icGFyYW1fZW50cnkiIGlkPSJwYXJhbV9lbnRyeV80Ij5w - cm9tcHQ9Y29uc2VudDwvbGk+PC91bD48L2Rpdj48c2NyaXB0IHR5cGU9InRl - eHQvamF2YXNjcmlwdCI+bHNvLmRvWmlwcHkoInJlcXVlc3RfaW5mb19oZWFk - ZXIiLCAicmVxdWVzdF9pbmZvX2l0ZW1zIik7PC9zY3JpcHQ+PHA+IDxpbnM+ - VGhhdOKAmXMgYWxsIHdlIGtub3cuPC9pbnM+PC9kaXY+ - http_version: - recorded_at: Mon, 14 Jul 2014 13:03:29 GMT -recorded_with: VCR 2.9.2 From 1773c409daad1bd2ecc996082d4cddb67efa8a2f Mon Sep 17 00:00:00 2001 From: basnal Date: Tue, 15 Jul 2014 15:46:34 +0530 Subject: [PATCH 40/43] Fine tuning of additional features --- app/controllers/spreadsheets_controller.rb | 5 ++- app/controllers/users_controller.rb | 6 +++- app/models/user.rb | 20 ++++++++--- app/views/layouts/application.html.haml | 18 ++++++---- app/views/spreadsheets/update.html.haml | 35 +++++++++++++++++++ app/views/users/index.html.haml | 7 +++- config/routes.rb | 2 +- .../spreadsheets_controller_spec.rb | 27 +------------- spec/helpers/home_helper_spec.rb | 2 +- spec/helpers/newsletters_helper_spec.rb | 2 +- spec/helpers/spreadsheets_helper_spec.rb | 2 +- spec/helpers/users_helper_spec.rb | 1 - spec/mailers/user_mailer_spec.rb | 1 - spec/models/spreadsheet_spec.rb | 2 +- 14 files changed, 81 insertions(+), 49 deletions(-) create mode 100644 app/views/spreadsheets/update.html.haml diff --git a/app/controllers/spreadsheets_controller.rb b/app/controllers/spreadsheets_controller.rb index 0933f9a..be91168 100644 --- a/app/controllers/spreadsheets_controller.rb +++ b/app/controllers/spreadsheets_controller.rb @@ -42,9 +42,8 @@ def edit def update spreadsheet = Spreadsheet.find(params['id']) @worksheet = worksheets(spreadsheet) - User.add_users_from_worksheet(@worksheet) - - redirect_to users_path + @fails = User.add_users_from_worksheet(@worksheet, 2) + #redirect_to users_path(fails: User.add_users_from_worksheet(@worksheet)) end def destroy diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index f8ac86e..6d63286 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -8,7 +8,11 @@ def show end def new - @user = User.new + if params[:user] + + else + @user = User.new + end end def create diff --git a/app/models/user.rb b/app/models/user.rb index 0c78b8a..27ce5a1 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -8,6 +8,7 @@ class User field :source, type: String validates :email_id, presence: true + validates_format_of :email_id, with: /\A[a-z0-9]+([\w.+-]*[a-z0-9])*@([a-z]+[\w-]*\.)+[a-z]+\Z/i, on: :create validates :username, presence: true validates :is_subscribed, presence: true validates :joined_on, presence: true @@ -17,11 +18,22 @@ class User belongs_to :newsletter, counter_cache: :users_count def self.add_users_from_worksheet(worksheet, column = 1) + fails = [] + worksheet.rows.count.times do |i| - User.create(email_id: worksheet[i + 1, column], - is_subscribed: true, - joined_on: Date.today, - source: 'Google Spreadsheet') + user = User.new( + email_id: worksheet[i + 1, column], + username: worksheet[i + 1, column], + is_subscribed: true, + joined_on: Date.today, + source: 'Google Spreadsheet') + + if user.save + else + fails << worksheet[i + 1, column] + end end + fails.delete_at(0) + fails end end diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index d80fb37..246c731 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -16,12 +16,16 @@ %li.active %a{href: "#{home_index_path}"} %h4 Home - %li - %a{href: "#{newsletters_path}"} - %h4 Newsletters - %li - %a{href: "#{new_newsletter_path}"} - %h4 Add Newsletter + %li.dropdown + %a.dropdown-toggle{"data-toggle" => "dropdown"} + %h4 + Newsletters + %span.caret + %ul.dropdown-menu{role: "menu", "aria-labelledby" => "dropdownMenu" } + %li + %a{role: "menuitem", tabindex: "1", href: "#{newsletters_path}"} Show Newsletters + %li + %a{role: "menuitem", tabindex: "2", href: "#{new_newsletter_path}"} Add Newsletter %li %a{href: "#{users_path}"} %h4 Show Users @@ -30,7 +34,7 @@ %h4 Add Users %span.caret - %ul.dropdown-menu{role: "menu", "aria-labelledby" => "dropdownMenu1" } + %ul.dropdown-menu{role: "menu", "aria-labelledby" => "dropdownMenu" } %li %a{role: "menuitem", tabindex: "-1", href: "#{new_user_path}"}Add Manually %li diff --git a/app/views/spreadsheets/update.html.haml b/app/views/spreadsheets/update.html.haml new file mode 100644 index 0000000..51fdcc7 --- /dev/null +++ b/app/views/spreadsheets/update.html.haml @@ -0,0 +1,35 @@ +%table.table.table-striped + %tr + %td{colspan: 3} + %center + %strong REPORT + %br + Following Email Ids were not added to database as they didn't satisfy our validations criteria. + %table.table.table-striped + %tr + %td It should start with + %td An alphabet or a number + %tr + %td It can contain + %td '_' + %tr + %td These Characters are not allowed + %td '.' '+' '-' + %tr + %td It should end with + %td An alphabet or a number + + %tr + %td + %strong # + %td + %strong User Email Id + - index = 0 + - @fails.each do |user| + %tr + %td + =index + -index = index + 1 + %td + = user + %tr diff --git a/app/views/users/index.html.haml b/app/views/users/index.html.haml index f8d59e2..514e2f3 100644 --- a/app/views/users/index.html.haml +++ b/app/views/users/index.html.haml @@ -1,4 +1,9 @@ -%table.table.table-striped +%table.table.table-striped + %tr + %td{colspan: 3} + %center + %strong + User's Email Id - @users.each do |user| %tr %td diff --git a/config/routes.rb b/config/routes.rb index e43d9ea..a8696dd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,7 +6,7 @@ resources :newsletters resources :home resources :user_mailer - get '/auth/:provider/callback', to: 'spreadsheets#new' + get '/auth/:provider/callback', to: 'spreadsheets#new', as: 'google_spreadsheet' get '/auth/failure', to: 'spreadsheets#failure' resources :users, :newsletters, :home, :spreadsheets diff --git a/spec/controllers/spreadsheets_controller_spec.rb b/spec/controllers/spreadsheets_controller_spec.rb index 8eb42f8..7b549b9 100644 --- a/spec/controllers/spreadsheets_controller_spec.rb +++ b/spec/controllers/spreadsheets_controller_spec.rb @@ -3,31 +3,6 @@ require 'vcr' RSpec.describe SpreadsheetsController, :type => :controller do - context 'GET User Permission' do - context 'User accepts' do - it 'redirects to new ' do - VCR.use_cassette 'controllers/api-permissions-denied' do -=begin - data = { - name: 'google', - scope: 'userinfo.profile,userinfo.email,drive,https://spreadsheets.google.com/feeds', - prompt: 'consent', - access_type: 'offline', - redirect_uri: 'http://localhost:8080/auth/google/callback' - } - RestClient.get 'https://accounts.google.com/o/oauth2/auth', - name: 'google', - scope: 'userinfo.profile,userinfo.email,drive,https://spreadsheets.google.com/feeds', - prompt: 'consent', - access_type: 'offline', - redirect_uri: 'http://localhost:8080/auth/google/callback' -=end - end - - end - end - end - context 'GET Index' do it 'it renders the index template' do get :index @@ -130,7 +105,7 @@ it 'updates the spreadsheet' do VCR.use_cassette 'controllers/api-update-with-data', record: :new_episodes do post :update, id: sheet - expect(response).to redirect_to users_path + expect(response).to render_template(:update) end end end diff --git a/spec/helpers/home_helper_spec.rb b/spec/helpers/home_helper_spec.rb index 9367fcf..987e70a 100644 --- a/spec/helpers/home_helper_spec.rb +++ b/spec/helpers/home_helper_spec.rb @@ -11,5 +11,5 @@ # end # end RSpec.describe HomeHelper, :type => :helper do - pending "add some examples to (or delete) #{__FILE__}" + end diff --git a/spec/helpers/newsletters_helper_spec.rb b/spec/helpers/newsletters_helper_spec.rb index e69ca2a..7895cd2 100644 --- a/spec/helpers/newsletters_helper_spec.rb +++ b/spec/helpers/newsletters_helper_spec.rb @@ -11,5 +11,5 @@ # end # end RSpec.describe NewslettersHelper, :type => :helper do - pending "add some examples to (or delete) #{__FILE__}" + end diff --git a/spec/helpers/spreadsheets_helper_spec.rb b/spec/helpers/spreadsheets_helper_spec.rb index 35864e6..60a8935 100644 --- a/spec/helpers/spreadsheets_helper_spec.rb +++ b/spec/helpers/spreadsheets_helper_spec.rb @@ -11,5 +11,5 @@ # end # end RSpec.describe SpreadsheetsHelper, :type => :helper do - pending "add some examples to (or delete) #{__FILE__}" + end diff --git a/spec/helpers/users_helper_spec.rb b/spec/helpers/users_helper_spec.rb index 0971a2f..6f6408c 100644 --- a/spec/helpers/users_helper_spec.rb +++ b/spec/helpers/users_helper_spec.rb @@ -11,5 +11,4 @@ # end # end RSpec.describe UsersHelper, :type => :helper do - pending "add some examples to (or delete) #{__FILE__}" end diff --git a/spec/mailers/user_mailer_spec.rb b/spec/mailers/user_mailer_spec.rb index af37340..2d666d3 100644 --- a/spec/mailers/user_mailer_spec.rb +++ b/spec/mailers/user_mailer_spec.rb @@ -1,7 +1,6 @@ require "rails_helper" RSpec.describe UserMailer, :type => :mailer do - pending "add some examples to (or delete) #{__FILE__}" before(:each) do ActionMailer::Base.delivery_method = :test diff --git a/spec/models/spreadsheet_spec.rb b/spec/models/spreadsheet_spec.rb index a4927c8..77670b2 100644 --- a/spec/models/spreadsheet_spec.rb +++ b/spec/models/spreadsheet_spec.rb @@ -1,5 +1,5 @@ require 'rails_helper' RSpec.describe Spreadsheet, :type => :model do - pending "add some examples to (or delete) #{__FILE__}" + end From cafff4aa19ba1a1f3fa7a40fbba9a67317be6de0 Mon Sep 17 00:00:00 2001 From: basnal Date: Tue, 15 Jul 2014 16:06:49 +0530 Subject: [PATCH 41/43] Test folder and Readme.rdoc removed #11 --- README.rdoc | 28 ---------------------------- test/controllers/.keep | 0 test/fixtures/.keep | 0 test/helpers/.keep | 0 test/integration/.keep | 0 test/mailers/.keep | 0 test/models/.keep | 0 test/test_helper.rb | 7 ------- 8 files changed, 35 deletions(-) delete mode 100644 README.rdoc delete mode 100644 test/controllers/.keep delete mode 100644 test/fixtures/.keep delete mode 100644 test/helpers/.keep delete mode 100644 test/integration/.keep delete mode 100644 test/mailers/.keep delete mode 100644 test/models/.keep delete mode 100644 test/test_helper.rb diff --git a/README.rdoc b/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/test/controllers/.keep b/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/fixtures/.keep b/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/helpers/.keep b/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/integration/.keep b/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/mailers/.keep b/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/models/.keep b/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_helper.rb b/test/test_helper.rb deleted file mode 100644 index 3acf9ae..0000000 --- a/test/test_helper.rb +++ /dev/null @@ -1,7 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Add more helper methods to be used by all tests here... -end From 31f5905f24decd8c6827b0de4ed51d991f418a26 Mon Sep 17 00:00:00 2001 From: kanhaiya007 Date: Tue, 15 Jul 2014 18:43:55 +0530 Subject: [PATCH 42/43] ADD development.rb to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index b8ae448..1ee8191 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,4 @@ build/ *.log test.html.haml +config/environments/development.rb From b991b0f36ff50bd7e225fb5c9b08904aaeaf7bd7 Mon Sep 17 00:00:00 2001 From: kanhaiya007 Date: Wed, 16 Jul 2014 10:59:45 +0530 Subject: [PATCH 43/43] Add test and production file to .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 1ee8191..34d55b1 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,5 @@ build/ test.html.haml config/environments/development.rb +config/environments/test.rb +config/environments/production.rb