diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..a7a17bd
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,39 @@
+source 'https://rubygems.org'
+
+gem 'rails', '3.2.13'
+gem 'execjs'
+gem 'therubyracer'
+gem 'bootstrap-sass', '2.0.0'
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+gem 'mysql2', '0.3.11'
+gem 'devise'
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails', '~> 3.2.3'
+ gem 'coffee-rails', '~> 3.2.1'
+
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
+ # gem 'therubyracer', :platforms => :ruby
+
+ gem 'uglifier', '>= 1.0.3'
+end
+
+gem 'jquery-rails', '1.0.19'
+
+# To use ActiveModel has_secure_password
+# gem 'bcrypt-ruby', '~> 3.0.0'
+
+# To use Jbuilder templates for JSON
+# gem 'jbuilder'
+
+# Use unicorn as the app server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger
+# gem 'debugger'
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 0000000..d70e385
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,130 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ actionmailer (3.2.13)
+ actionpack (= 3.2.13)
+ mail (~> 2.5.3)
+ actionpack (3.2.13)
+ activemodel (= 3.2.13)
+ activesupport (= 3.2.13)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.4)
+ rack (~> 1.4.5)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.2.1)
+ activemodel (3.2.13)
+ activesupport (= 3.2.13)
+ builder (~> 3.0.0)
+ activerecord (3.2.13)
+ activemodel (= 3.2.13)
+ activesupport (= 3.2.13)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.13)
+ activemodel (= 3.2.13)
+ activesupport (= 3.2.13)
+ activesupport (3.2.13)
+ i18n (= 0.6.1)
+ multi_json (~> 1.0)
+ arel (3.0.2)
+ bcrypt-ruby (3.0.1)
+ bootstrap-sass (2.0.0)
+ builder (3.0.4)
+ coffee-rails (3.2.2)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.2.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.6.2)
+ devise (2.2.4)
+ bcrypt-ruby (~> 3.0)
+ orm_adapter (~> 0.1)
+ railties (~> 3.1)
+ warden (~> 1.2.1)
+ erubis (2.7.0)
+ execjs (1.4.0)
+ multi_json (~> 1.0)
+ hike (1.2.3)
+ i18n (0.6.1)
+ journey (1.0.4)
+ jquery-rails (1.0.19)
+ railties (~> 3.0)
+ thor (~> 0.14)
+ json (1.8.0)
+ libv8 (3.11.8.17)
+ mail (2.5.4)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.23)
+ multi_json (1.7.7)
+ mysql2 (0.3.11)
+ orm_adapter (0.4.0)
+ polyglot (0.3.3)
+ rack (1.4.5)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.3)
+ rack
+ rack-test (0.6.2)
+ rack (>= 1.0)
+ rails (3.2.13)
+ actionmailer (= 3.2.13)
+ actionpack (= 3.2.13)
+ activerecord (= 3.2.13)
+ activeresource (= 3.2.13)
+ activesupport (= 3.2.13)
+ bundler (~> 1.0)
+ railties (= 3.2.13)
+ railties (3.2.13)
+ actionpack (= 3.2.13)
+ activesupport (= 3.2.13)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (>= 0.14.6, < 2.0)
+ rake (10.0.4)
+ rdoc (3.12.2)
+ json (~> 1.4)
+ ref (1.0.5)
+ sass (3.2.9)
+ sass-rails (3.2.6)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ sprockets (2.2.2)
+ hike (~> 1.2)
+ multi_json (~> 1.0)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ therubyracer (0.11.4)
+ libv8 (~> 3.11.8.12)
+ ref
+ thor (0.18.1)
+ tilt (1.4.1)
+ treetop (1.4.14)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.37)
+ uglifier (2.1.1)
+ execjs (>= 0.3.0)
+ multi_json (~> 1.0, >= 1.0.2)
+ warden (1.2.1)
+ rack (>= 1.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ bootstrap-sass (= 2.0.0)
+ coffee-rails (~> 3.2.1)
+ devise
+ execjs
+ jquery-rails (= 1.0.19)
+ mysql2 (= 0.3.11)
+ rails (= 3.2.13)
+ sass-rails (~> 3.2.3)
+ therubyracer
+ uglifier (>= 1.0.3)
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..fe12778
--- /dev/null
+++ b/README.md
@@ -0,0 +1,17 @@
+Welcome to the sample application.
+
+Please follow the steps to setup the application:
+
+1. Setup a test directory: mkdir ~/test
+2. Clone the repository: git clone git@github.com:shanil-puri/blogger.git
+3. Setup your database.yml as shown in 'database.yml.copy'
+4. Run the following commands:
+ 1. bundle install
+ 2. 'rake db:create'
+ 3. 'rake db:migrate'
+ 4. 'rake setup_sample_application'
+
+5. Your application is good to go. Time to become a famous writer. :)
+6. Start your sever using: 'rails server'
+
+Enjoy playing with the application. :)
diff --git a/README.rdoc b/README.rdoc
new file mode 100644
index 0000000..3e1c15c
--- /dev/null
+++ b/README.rdoc
@@ -0,0 +1,261 @@
+== Welcome to Rails
+
+Rails is a web-application framework that includes everything needed to create
+database-backed web applications according to the Model-View-Control pattern.
+
+This pattern splits the view (also called the presentation) into "dumb"
+templates that are primarily responsible for inserting pre-built data in between
+HTML tags. The model contains the "smart" domain objects (such as Account,
+Product, Person, Post) that holds all the business logic and knows how to
+persist themselves to a database. The controller handles the incoming requests
+(such as Save New Account, Update Product, Show Post) by manipulating the model
+and directing data to the view.
+
+In Rails, the model is handled by what's called an object-relational mapping
+layer entitled Active Record. This layer allows you to present the data from
+database rows as objects and embellish these data objects with business logic
+methods. You can read more about Active Record in
+link:files/vendor/rails/activerecord/README.html.
+
+The controller and view are handled by the Action Pack, which handles both
+layers by its two parts: Action View and Action Controller. These two layers
+are bundled in a single package due to their heavy interdependence. This is
+unlike the relationship between the Active Record and Action Pack that is much
+more separate. Each of these packages can be used independently outside of
+Rails. You can read more about Action Pack in
+link:files/vendor/rails/actionpack/README.html.
+
+
+== Getting Started
+
+1. At the command prompt, create a new Rails application:
+ rails new myapp (where myapp is the application name)
+
+2. Change directory to myapp and start the web server:
+ cd myapp; rails server (run with --help for options)
+
+3. Go to http://localhost:3000/ and you'll see:
+ "Welcome aboard: You're riding Ruby on Rails!"
+
+4. Follow the guidelines to start developing your application. You can find
+the following resources handy:
+
+* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
+* Ruby on Rails Tutorial Book: http://www.railstutorial.org/
+
+
+== Debugging Rails
+
+Sometimes your application goes wrong. Fortunately there are a lot of tools that
+will help you debug it and get it back on the rails.
+
+First area to check is the application log files. Have "tail -f" commands
+running on the server.log and development.log. Rails will automatically display
+debugging and runtime information to these files. Debugging info will also be
+shown in the browser on requests from 127.0.0.1.
+
+You can also log your own messages directly into the log file from your code
+using the Ruby logger class from inside your controllers. Example:
+
+ class WeblogController < ActionController::Base
+ def destroy
+ @weblog = Weblog.find(params[:id])
+ @weblog.destroy
+ logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
+ end
+ end
+
+The result will be a message in your log file along the lines of:
+
+ Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
+
+More information on how to use the logger is at http://www.ruby-doc.org/core/
+
+Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
+several books available online as well:
+
+* Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
+* Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
+
+These two books will bring you up to speed on the Ruby language and also on
+programming in general.
+
+
+== Debugger
+
+Debugger support is available through the debugger command when you start your
+Mongrel or WEBrick server with --debugger. This means that you can break out of
+execution at any point in the code, investigate and change the model, and then,
+resume execution! You need to install ruby-debug to run the server in debugging
+mode. With gems, use sudo gem install ruby-debug. Example:
+
+ class WeblogController < ActionController::Base
+ def index
+ @posts = Post.all
+ debugger
+ end
+ end
+
+So the controller will accept the action, run the first line, then present you
+with a IRB prompt in the server window. Here you can do things like:
+
+ >> @posts.inspect
+ => "[#nil, "body"=>nil, "id"=>"1"}>,
+ #"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
+ >> @posts.first.title = "hello from a debugger"
+ => "hello from a debugger"
+
+...and even better, you can examine how your runtime objects actually work:
+
+ >> f = @posts.first
+ => #nil, "body"=>nil, "id"=>"1"}>
+ >> f.
+ Display all 152 possibilities? (y or n)
+
+Finally, when you're ready to resume execution, you can enter "cont".
+
+
+== Console
+
+The console is a Ruby shell, which allows you to interact with your
+application's domain model. Here you'll have all parts of the application
+configured, just like it is when the application is running. You can inspect
+domain models, change values, and save to the database. Starting the script
+without arguments will launch it in the development environment.
+
+To start the console, run rails console from the application
+directory.
+
+Options:
+
+* Passing the -s, --sandbox argument will rollback any modifications
+ made to the database.
+* Passing an environment name as an argument will load the corresponding
+ environment. Example: rails console production.
+
+To reload your controllers and models after launching the console run
+reload!
+
+More information about irb can be found at:
+link:http://www.rubycentral.org/pickaxe/irb.html
+
+
+== dbconsole
+
+You can go to the command line of your database directly through rails
+dbconsole. You would be connected to the database with the credentials
+defined in database.yml. Starting the script without arguments will connect you
+to the development database. Passing an argument will connect you to a different
+database, like rails dbconsole production. Currently works for MySQL,
+PostgreSQL and SQLite 3.
+
+== Description of Contents
+
+The default directory structure of a generated Ruby on Rails application:
+
+ |-- app
+ | |-- assets
+ | | |-- images
+ | | |-- javascripts
+ | | `-- stylesheets
+ | |-- controllers
+ | |-- helpers
+ | |-- mailers
+ | |-- models
+ | `-- views
+ | `-- layouts
+ |-- config
+ | |-- environments
+ | |-- initializers
+ | `-- locales
+ |-- db
+ |-- doc
+ |-- lib
+ | |-- assets
+ | `-- tasks
+ |-- log
+ |-- public
+ |-- script
+ |-- test
+ | |-- fixtures
+ | |-- functional
+ | |-- integration
+ | |-- performance
+ | `-- unit
+ |-- tmp
+ | `-- cache
+ | `-- assets
+ `-- vendor
+ |-- assets
+ | |-- javascripts
+ | `-- stylesheets
+ `-- plugins
+
+app
+ Holds all the code that's specific to this particular application.
+
+app/assets
+ Contains subdirectories for images, stylesheets, and JavaScript files.
+
+app/controllers
+ Holds controllers that should be named like weblogs_controller.rb for
+ automated URL mapping. All controllers should descend from
+ ApplicationController which itself descends from ActionController::Base.
+
+app/models
+ Holds models that should be named like post.rb. Models descend from
+ ActiveRecord::Base by default.
+
+app/views
+ Holds the template files for the view that should be named like
+ weblogs/index.html.erb for the WeblogsController#index action. All views use
+ eRuby syntax by default.
+
+app/views/layouts
+ Holds the template files for layouts to be used with views. This models the
+ common header/footer method of wrapping views. In your views, define a layout
+ using the layout :default and create a file named default.html.erb.
+ Inside default.html.erb, call <% yield %> to render the view using this
+ layout.
+
+app/helpers
+ Holds view helpers that should be named like weblogs_helper.rb. These are
+ generated for you automatically when using generators for controllers.
+ Helpers can be used to wrap functionality for your views into methods.
+
+config
+ Configuration files for the Rails environment, the routing map, the database,
+ and other dependencies.
+
+db
+ Contains the database schema in schema.rb. db/migrate contains all the
+ sequence of Migrations for your schema.
+
+doc
+ This directory is where your application documentation will be stored when
+ generated using rake doc:app
+
+lib
+ Application specific libraries. Basically, any kind of custom code that
+ doesn't belong under controllers, models, or helpers. This directory is in
+ the load path.
+
+public
+ The directory available for the web server. Also contains the dispatchers and the
+ default HTML files. This should be set as the DOCUMENT_ROOT of your web
+ server.
+
+script
+ Helper scripts for automation and generation.
+
+test
+ Unit and functional tests along with fixtures. When using the rails generate
+ command, template test files will be generated for you and placed in this
+ directory.
+
+vendor
+ External libraries that the application depends on. Also includes the plugins
+ subdirectory. If the app has frozen rails, those gems also go here, under
+ vendor/rails/. This directory is in the load path.
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..f372b37
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,7 @@
+#!/usr/bin/env rake
+# 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__)
+
+Blogger::Application.load_tasks
diff --git a/app/assets/images/rails.png b/app/assets/images/rails.png
new file mode 100644
index 0000000..d5edc04
Binary files /dev/null and b/app/assets/images/rails.png differ
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js
new file mode 100644
index 0000000..f462ed2
--- /dev/null
+++ b/app/assets/javascripts/application.js
@@ -0,0 +1,18 @@
+// 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
+// the compiled file.
+//
+// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
+// GO AFTER THE REQUIRES BELOW.
+//
+//= require jquery
+//= require jquery_ujs
+//= require bootstrap
+//= require bootstrap-modal
+//= require popup
+//= require_tree .
diff --git a/app/assets/javascripts/external/bootstrap-modal.js b/app/assets/javascripts/external/bootstrap-modal.js
new file mode 100644
index 0000000..ba64368
--- /dev/null
+++ b/app/assets/javascripts/external/bootstrap-modal.js
@@ -0,0 +1,209 @@
+/* =========================================================
+ * bootstrap-modal.js v2.0.0
+ * http://twitter.github.com/bootstrap/javascript.html#modals
+ * =========================================================
+ * Copyright 2012 Twitter, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ========================================================= */
+
+
+!function( $ ){
+
+ "use strict"
+
+ /* MODAL CLASS DEFINITION
+ * ====================== */
+
+ var Modal = function ( content, options ) {
+ this.options = $.extend({}, $.fn.modal.defaults, options)
+ this.$element = $(content)
+ .delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
+ }
+
+ Modal.prototype = {
+
+ constructor: Modal
+
+ , toggle: function () {
+ return this[!this.isShown ? 'show' : 'hide']()
+ }
+
+ , show: function () {
+ var that = this
+
+ if (this.isShown) return
+
+ $('body').addClass('modal-open')
+
+ this.isShown = true
+ this.$element.trigger('show')
+
+ escape.call(this)
+ backdrop.call(this, function () {
+ var transition = $.support.transition && that.$element.hasClass('fade')
+
+ !that.$element.parent().length && that.$element.appendTo(document.body) //don't move modals dom position
+
+ that.$element
+ .show()
+
+ if (transition) {
+ that.$element[0].offsetWidth // force reflow
+ }
+
+ that.$element.addClass('in')
+
+ transition ?
+ that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) :
+ that.$element.trigger('shown')
+
+ })
+ }
+
+ , hide: function ( e ) {
+ e && e.preventDefault()
+
+ if (!this.isShown) return
+
+ var that = this
+ this.isShown = false
+
+ $('body').removeClass('modal-open')
+
+ escape.call(this)
+
+ this.$element
+ .trigger('hide')
+ .removeClass('in')
+
+ $.support.transition && this.$element.hasClass('fade') ?
+ hideWithTransition.call(this) :
+ hideModal.call(this)
+ }
+
+ }
+
+
+ /* MODAL PRIVATE METHODS
+ * ===================== */
+
+ function hideWithTransition() {
+ var that = this
+ , timeout = setTimeout(function () {
+ that.$element.off($.support.transition.end)
+ hideModal.call(that)
+ }, 500)
+
+ this.$element.one($.support.transition.end, function () {
+ clearTimeout(timeout)
+ hideModal.call(that)
+ })
+ }
+
+ function hideModal( that ) {
+ this.$element
+ .hide()
+ .trigger('hidden')
+
+ backdrop.call(this)
+ }
+
+ function backdrop( callback ) {
+ var that = this
+ , animate = this.$element.hasClass('fade') ? 'fade' : ''
+
+ if (this.isShown && this.options.backdrop) {
+ var doAnimate = $.support.transition && animate
+
+ this.$backdrop = $('')
+ .appendTo(document.body)
+
+ if (this.options.backdrop != 'static') {
+ this.$backdrop.click($.proxy(this.hide, this))
+ }
+
+ if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
+
+ this.$backdrop.addClass('in')
+
+ doAnimate ?
+ this.$backdrop.one($.support.transition.end, callback) :
+ callback()
+
+ } else if (!this.isShown && this.$backdrop) {
+ this.$backdrop.removeClass('in')
+
+ $.support.transition && this.$element.hasClass('fade')?
+ this.$backdrop.one($.support.transition.end, $.proxy(removeBackdrop, this)) :
+ removeBackdrop.call(this)
+
+ } else if (callback) {
+ callback()
+ }
+ }
+
+ function removeBackdrop() {
+ this.$backdrop.remove()
+ this.$backdrop = null
+ }
+
+ function escape() {
+ var that = this
+ if (this.isShown && this.options.keyboard) {
+ $(document).on('keyup.dismiss.modal', function ( e ) {
+ e.which == 27 && that.hide()
+ })
+ } else if (!this.isShown) {
+ $(document).off('keyup.dismiss.modal')
+ }
+ }
+
+
+ /* MODAL PLUGIN DEFINITION
+ * ======================= */
+
+ $.fn.modal = function ( option ) {
+ return this.each(function () {
+ var $this = $(this)
+ , data = $this.data('modal')
+ , options = typeof option == 'object' && option
+ if (!data) $this.data('modal', (data = new Modal(this, options)))
+ if (typeof option == 'string') data[option]()
+ else data.show()
+ })
+ }
+
+ $.fn.modal.defaults = {
+ backdrop: true
+ , keyboard: true
+ }
+
+ $.fn.modal.Constructor = Modal
+
+
+ /* MODAL DATA-API
+ * ============== */
+
+ $(function () {
+ $('body').on('click.modal.data-api', '[data-toggle="modal"]', function ( e ) {
+ var $this = $(this), href
+ , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
+ , option = $target.data('modal') ? 'toggle' : $.extend({}, $target.data(), $this.data())
+
+ e.preventDefault()
+ $target.modal(option)
+ })
+ })
+
+}( window.jQuery )
diff --git a/app/assets/javascripts/external/jquery.dataTables.js b/app/assets/javascripts/external/jquery.dataTables.js
new file mode 100644
index 0000000..9a94cac
--- /dev/null
+++ b/app/assets/javascripts/external/jquery.dataTables.js
@@ -0,0 +1,11838 @@
+/**
+ * @summary DataTables
+ * @description Paginate, search and sort HTML tables
+ * @version 1.9.1
+ * @file jquery.dataTables.js
+ * @author Allan Jardine (www.sprymedia.co.uk)
+ * @contact www.sprymedia.co.uk/contact
+ *
+ * @copyright Copyright 2008-2012 Allan Jardine, all rights reserved.
+ *
+ * This source file is free software, under either the GPL v2 license or a
+ * BSD style license, available at:
+ * http://datatables.net/license_gpl2
+ * http://datatables.net/license_bsd
+ *
+ * This source file is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
+ *
+ * For details please refer to: http://www.datatables.net
+ */
+
+/*jslint evil: true, undef: true, browser: true */
+/*globals $, jQuery,_fnExternApiFunc,_fnInitialise,_fnInitComplete,_fnLanguageCompat,_fnAddColumn,_fnColumnOptions,_fnAddData,_fnCreateTr,_fnGatherData,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnServerParams,_fnAddOptionsHtml,_fnFeatureHtmlTable,_fnScrollDraw,_fnAdjustColumnSizing,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnBuildSearchArray,_fnBuildSearchRow,_fnFilterCreateSearch,_fnDataToSearch,_fnSort,_fnSortAttachListener,_fnSortingClasses,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnFeatureHtmlLength,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnNodeToDataIndex,_fnVisbleColumns,_fnCalculateEnd,_fnConvertToWidth,_fnCalculateColumnWidths,_fnScrollingWidthAdjust,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnDetectType,_fnSettingsFromNode,_fnGetDataMaster,_fnGetTrNodes,_fnGetTdNodes,_fnEscapeRegex,_fnDeleteIndex,_fnReOrderIndex,_fnColumnOrdering,_fnLog,_fnClearTable,_fnSaveState,_fnLoadState,_fnCreateCookie,_fnReadCookie,_fnDetectHeader,_fnGetUniqueThs,_fnScrollBarWidth,_fnApplyToChildren,_fnMap,_fnGetRowData,_fnGetCellData,_fnSetCellData,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnApplyColumnDefs,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnJsonString,_fnRender,_fnNodeToColumnIndex,_fnInfoMacros*/
+
+(/** @lends */function($, window, document, undefined) {
+ /**
+ * DataTables is a plug-in for the jQuery Javascript library. It is a
+ * highly flexible tool, based upon the foundations of progressive
+ * enhancement, which will add advanced interaction controls to any
+ * HTML table. For a full list of features please refer to
+ * DataTables.net.
+ *
+ * Note that the DataTable object is not a global variable but is
+ * aliased to jQuery.fn.DataTable and jQuery.fn.dataTable through which
+ * it may be accessed.
+ *
+ * @class
+ * @param {object} [oInit={}] Configuration object for DataTables. Options
+ * are defined by {@link DataTable.defaults}
+ * @requires jQuery 1.3+
+ *
+ * @example
+ * // Basic initialisation
+ * $(document).ready( function {
+ * $('#example').dataTable();
+ * } );
+ *
+ * @example
+ * // Initialisation with configuration options - in this case, disable
+ * // pagination and sorting.
+ * $(document).ready( function {
+ * $('#example').dataTable( {
+ * "bPaginate": false,
+ * "bSort": false
+ * } );
+ * } );
+ */
+ var DataTable = function( oInit )
+ {
+
+
+ /**
+ * Add a column to the list used for the table with default values
+ * @param {object} oSettings dataTables settings object
+ * @param {node} nTh The th element for this column
+ * @memberof DataTable#oApi
+ */
+ function _fnAddColumn( oSettings, nTh )
+ {
+ var oDefaults = DataTable.defaults.columns;
+ var iCol = oSettings.aoColumns.length;
+ var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {
+ "sSortingClass": oSettings.oClasses.sSortable,
+ "sSortingClassJUI": oSettings.oClasses.sSortJUI,
+ "nTh": nTh ? nTh : document.createElement('th'),
+ "sTitle": oDefaults.sTitle ? oDefaults.sTitle : nTh ? nTh.innerHTML : '',
+ "aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],
+ "mDataProp": oDefaults.mDataProp ? oDefaults.oDefaults : iCol
+ } );
+ oSettings.aoColumns.push( oCol );
+
+ /* Add a column specific filter */
+ if ( oSettings.aoPreSearchCols[ iCol ] === undefined || oSettings.aoPreSearchCols[ iCol ] === null )
+ {
+ oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
+ }
+ else
+ {
+ var oPre = oSettings.aoPreSearchCols[ iCol ];
+
+ /* Don't require that the user must specify bRegex, bSmart or bCaseInsensitive */
+ if ( oPre.bRegex === undefined )
+ {
+ oPre.bRegex = true;
+ }
+
+ if ( oPre.bSmart === undefined )
+ {
+ oPre.bSmart = true;
+ }
+
+ if ( oPre.bCaseInsensitive === undefined )
+ {
+ oPre.bCaseInsensitive = true;
+ }
+ }
+
+ /* Use the column options function to initialise classes etc */
+ _fnColumnOptions( oSettings, iCol, null );
+ }
+
+
+ /**
+ * Apply options for a column
+ * @param {object} oSettings dataTables settings object
+ * @param {int} iCol column index to consider
+ * @param {object} oOptions object with sType, bVisible and bSearchable
+ * @memberof DataTable#oApi
+ */
+ function _fnColumnOptions( oSettings, iCol, oOptions )
+ {
+ var oCol = oSettings.aoColumns[ iCol ];
+
+ /* User specified column options */
+ if ( oOptions !== undefined && oOptions !== null )
+ {
+ if ( oOptions.sType !== undefined )
+ {
+ oCol.sType = oOptions.sType;
+ oCol._bAutoType = false;
+ }
+
+ $.extend( oCol, oOptions );
+ _fnMap( oCol, oOptions, "sWidth", "sWidthOrig" );
+
+ /* iDataSort to be applied (backwards compatibility), but aDataSort will take
+ * priority if defined
+ */
+ if ( oOptions.iDataSort !== undefined )
+ {
+ oCol.aDataSort = [ oOptions.iDataSort ];
+ }
+ _fnMap( oCol, oOptions, "aDataSort" );
+ }
+
+ /* Cache the data get and set functions for speed */
+ oCol.fnGetData = _fnGetObjectDataFn( oCol.mDataProp );
+ oCol.fnSetData = _fnSetObjectDataFn( oCol.mDataProp );
+
+ /* Feature sorting overrides column specific when off */
+ if ( !oSettings.oFeatures.bSort )
+ {
+ oCol.bSortable = false;
+ }
+
+ /* Check that the class assignment is correct for sorting */
+ if ( !oCol.bSortable ||
+ ($.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) == -1) )
+ {
+ oCol.sSortingClass = oSettings.oClasses.sSortableNone;
+ oCol.sSortingClassJUI = "";
+ }
+ else if ( oCol.bSortable ||
+ ($.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) == -1) )
+ {
+ oCol.sSortingClass = oSettings.oClasses.sSortable;
+ oCol.sSortingClassJUI = oSettings.oClasses.sSortJUI;
+ }
+ else if ( $.inArray('asc', oCol.asSorting) != -1 && $.inArray('desc', oCol.asSorting) == -1 )
+ {
+ oCol.sSortingClass = oSettings.oClasses.sSortableAsc;
+ oCol.sSortingClassJUI = oSettings.oClasses.sSortJUIAscAllowed;
+ }
+ else if ( $.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) != -1 )
+ {
+ oCol.sSortingClass = oSettings.oClasses.sSortableDesc;
+ oCol.sSortingClassJUI = oSettings.oClasses.sSortJUIDescAllowed;
+ }
+ }
+
+
+ /**
+ * Adjust the table column widths for new data. Note: you would probably want to
+ * do a redraw after calling this function!
+ * @param {object} oSettings dataTables settings object
+ * @memberof DataTable#oApi
+ */
+ function _fnAdjustColumnSizing ( oSettings )
+ {
+ /* Not interested in doing column width calculation if autowidth is disabled */
+ if ( oSettings.oFeatures.bAutoWidth === false )
+ {
+ return false;
+ }
+
+ _fnCalculateColumnWidths( oSettings );
+ for ( var i=0 , iLen=oSettings.aoColumns.length ; i=0 ; i-- )
+ {
+ /* Each definition can target multiple columns, as it is an array */
+ var aTargets = aoColDefs[i].aTargets;
+ if ( !$.isArray( aTargets ) )
+ {
+ _fnLog( oSettings, 1, 'aTargets must be an array of targets, not a '+(typeof aTargets) );
+ }
+
+ for ( j=0, jLen=aTargets.length ; j= 0 )
+ {
+ /* Add columns that we don't yet know about */
+ while( oSettings.aoColumns.length <= aTargets[j] )
+ {
+ _fnAddColumn( oSettings );
+ }
+
+ /* Integer, basic index */
+ fn( aTargets[j], aoColDefs[i] );
+ }
+ else if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )
+ {
+ /* Negative integer, right to left column counting */
+ fn( oSettings.aoColumns.length+aTargets[j], aoColDefs[i] );
+ }
+ else if ( typeof aTargets[j] === 'string' )
+ {
+ /* Class name matching on TH element */
+ for ( k=0, kLen=oSettings.aoColumns.length ; k=0 if successful (index of new aoData entry), -1 if failed
+ * @memberof DataTable#oApi
+ */
+ function _fnAddData ( oSettings, aDataSupplied )
+ {
+ var oCol;
+
+ /* Take an independent copy of the data source so we can bash it about as we wish */
+ var aDataIn = ($.isArray(aDataSupplied)) ?
+ aDataSupplied.slice() :
+ $.extend( true, {}, aDataSupplied );
+
+ /* Create the object for storing information about this new row */
+ var iRow = oSettings.aoData.length;
+ var oData = $.extend( true, {}, DataTable.models.oRow );
+ oData._aData = aDataIn;
+ oSettings.aoData.push( oData );
+
+ /* Create the cells */
+ var nTd, sThisType;
+ for ( var i=0, iLen=oSettings.aoColumns.length ; i iTarget )
+ {
+ a[i]--;
+ }
+ }
+
+ if ( iTargetIndex != -1 )
+ {
+ a.splice( iTargetIndex, 1 );
+ }
+ }
+
+
+ /**
+ * Call the developer defined fnRender function for a given cell (row/column) with
+ * the required parameters and return the result.
+ * @param {object} oSettings dataTables settings object
+ * @param {int} iRow aoData index for the row
+ * @param {int} iCol aoColumns index for the column
+ * @returns {*} Return of the developer's fnRender function
+ * @memberof DataTable#oApi
+ */
+ function _fnRender( oSettings, iRow, iCol )
+ {
+ var oCol = oSettings.aoColumns[iCol];
+
+ return oCol.fnRender( {
+ "iDataRow": iRow,
+ "iDataColumn": iCol,
+ "oSettings": oSettings,
+ "aData": oSettings.aoData[iRow]._aData,
+ "mDataProp": oCol.mDataProp
+ }, _fnGetCellData(oSettings, iRow, iCol, 'display') );
+ }
+
+
+ /**
+ * Create a new TR element (and it's TD children) for a row
+ * @param {object} oSettings dataTables settings object
+ * @param {int} iRow Row to consider
+ * @memberof DataTable#oApi
+ */
+ function _fnCreateTr ( oSettings, iRow )
+ {
+ var oData = oSettings.aoData[iRow];
+ var nTd;
+
+ if ( oData.nTr === null )
+ {
+ oData.nTr = document.createElement('tr');
+
+ /* Use a private property on the node to allow reserve mapping from the node
+ * to the aoData array for fast look up
+ */
+ oData.nTr._DT_RowIndex = iRow;
+
+ /* Special parameters can be given by the data source to be used on the row */
+ if ( oData._aData.DT_RowId )
+ {
+ oData.nTr.id = oData._aData.DT_RowId;
+ }
+
+ if ( oData._aData.DT_RowClass )
+ {
+ $(oData.nTr).addClass( oData._aData.DT_RowClass );
+ }
+
+ /* Process each column */
+ for ( var i=0, iLen=oSettings.aoColumns.length ; i=0 ; j-- )
+ {
+ if ( !oSettings.aoColumns[j].bVisible && !bIncludeHidden )
+ {
+ aoLocal[i].splice( j, 1 );
+ }
+ }
+
+ /* Prep the applied array - it needs an element for each row */
+ aApplied.push( [] );
+ }
+
+ for ( i=0, iLen=aoLocal.length ; i= oSettings.fnRecordsDisplay()) ?
+ 0 : oSettings.iInitDisplayStart;
+ }
+ oSettings.iInitDisplayStart = -1;
+ _fnCalculateEnd( oSettings );
+ }
+
+ /* Server-side processing draw intercept */
+ if ( oSettings.bDeferLoading )
+ {
+ oSettings.bDeferLoading = false;
+ oSettings.iDraw++;
+ }
+ else if ( !oSettings.oFeatures.bServerSide )
+ {
+ oSettings.iDraw++;
+ }
+ else if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) )
+ {
+ return;
+ }
+
+ if ( oSettings.aiDisplay.length !== 0 )
+ {
+ var iStart = oSettings._iDisplayStart;
+ var iEnd = oSettings._iDisplayEnd;
+
+ if ( oSettings.oFeatures.bServerSide )
+ {
+ iStart = 0;
+ iEnd = oSettings.aoData.length;
+ }
+
+ for ( var j=iStart ; j')[0];
+ oSettings.nTable.parentNode.insertBefore( nHolding, oSettings.nTable );
+
+ /*
+ * All DataTables are wrapped in a div
+ */
+ oSettings.nTableWrapper = $('')[0];
+ oSettings.nTableReinsertBefore = oSettings.nTable.nextSibling;
+
+ /* Track where we want to insert the option */
+ var nInsertNode = oSettings.nTableWrapper;
+
+ /* Loop over the user set positioning and place the elements as needed */
+ var aDom = oSettings.sDom.split('');
+ var nTmp, iPushFeature, cOption, nNewNode, cNext, sAttr, j;
+ for ( var i=0 ; i')[0];
+
+ /* Check to see if we should append an id and/or a class name to the container */
+ cNext = aDom[i+1];
+ if ( cNext == "'" || cNext == '"' )
+ {
+ sAttr = "";
+ j = 2;
+ while ( aDom[i+j] != cNext )
+ {
+ sAttr += aDom[i+j];
+ j++;
+ }
+
+ /* Replace jQuery UI constants */
+ if ( sAttr == "H" )
+ {
+ sAttr = "fg-toolbar ui-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix";
+ }
+ else if ( sAttr == "F" )
+ {
+ sAttr = "fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix";
+ }
+
+ /* The attribute can be in the format of "#id.class", "#id" or "class" This logic
+ * breaks the string into parts and applies them as needed
+ */
+ if ( sAttr.indexOf('.') != -1 )
+ {
+ var aSplit = sAttr.split('.');
+ nNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);
+ nNewNode.className = aSplit[1];
+ }
+ else if ( sAttr.charAt(0) == "#" )
+ {
+ nNewNode.id = sAttr.substr(1, sAttr.length-1);
+ }
+ else
+ {
+ nNewNode.className = sAttr;
+ }
+
+ i += j; /* Move along the position array */
+ }
+
+ nInsertNode.appendChild( nNewNode );
+ nInsertNode = nNewNode;
+ }
+ else if ( cOption == '>' )
+ {
+ /* End container div */
+ nInsertNode = nInsertNode.parentNode;
+ }
+ else if ( cOption == 'l' && oSettings.oFeatures.bPaginate && oSettings.oFeatures.bLengthChange )
+ {
+ /* Length */
+ nTmp = _fnFeatureHtmlLength( oSettings );
+ iPushFeature = 1;
+ }
+ else if ( cOption == 'f' && oSettings.oFeatures.bFilter )
+ {
+ /* Filter */
+ nTmp = _fnFeatureHtmlFilter( oSettings );
+ iPushFeature = 1;
+ }
+ else if ( cOption == 'r' && oSettings.oFeatures.bProcessing )
+ {
+ /* pRocessing */
+ nTmp = _fnFeatureHtmlProcessing( oSettings );
+ iPushFeature = 1;
+ }
+ else if ( cOption == 't' )
+ {
+ /* Table */
+ nTmp = _fnFeatureHtmlTable( oSettings );
+ iPushFeature = 1;
+ }
+ else if ( cOption == 'i' && oSettings.oFeatures.bInfo )
+ {
+ /* Info */
+ nTmp = _fnFeatureHtmlInfo( oSettings );
+ iPushFeature = 1;
+ }
+ else if ( cOption == 'p' && oSettings.oFeatures.bPaginate )
+ {
+ /* Pagination */
+ nTmp = _fnFeatureHtmlPaginate( oSettings );
+ iPushFeature = 1;
+ }
+ else if ( DataTable.ext.aoFeatures.length !== 0 )
+ {
+ /* Plug-in features */
+ var aoFeatures = DataTable.ext.aoFeatures;
+ for ( var k=0, kLen=aoFeatures.length ; k') :
+ sSearchStr==="" ? '' : sSearchStr+' ';
+
+ var nFilter = document.createElement( 'div' );
+ nFilter.className = oSettings.oClasses.sFilter;
+ nFilter.innerHTML = '';
+ if ( !oSettings.aanFeatures.f )
+ {
+ nFilter.id = oSettings.sTableId+'_filter';
+ }
+
+ var jqFilter = $('input[type="text"]', nFilter);
+
+ // Store a reference to the input element, so other input elements could be
+ // added to the filter wrapper if needed (submit button for example)
+ nFilter._DT_Input = jqFilter[0];
+
+ jqFilter.val( oPreviousSearch.sSearch.replace('"','"') );
+ jqFilter.bind( 'keyup.DT', function(e) {
+ /* Update all other filter input elements for the new display */
+ var n = oSettings.aanFeatures.f;
+ var val = this.value==="" ? "" : this.value; // mental IE8 fix :-(
+
+ for ( var i=0, iLen=n.length ; i=0 ; i-- )
+ {
+ var sData = _fnDataToSearch( _fnGetCellData( oSettings, oSettings.aiDisplay[i], iColumn, 'filter' ),
+ oSettings.aoColumns[iColumn].sType );
+ if ( ! rpSearch.test( sData ) )
+ {
+ oSettings.aiDisplay.splice( i, 1 );
+ iIndexCorrector++;
+ }
+ }
+ }
+
+
+ /**
+ * Filter the data table based on user input and draw the table
+ * @param {object} oSettings dataTables settings object
+ * @param {string} sInput string to filter on
+ * @param {int} iForce optional - force a research of the master array (1) or not (undefined or 0)
+ * @param {bool} bRegex treat as a regular expression or not
+ * @param {bool} bSmart perform smart filtering or not
+ * @param {bool} bCaseInsensitive Do case insenstive matching or not
+ * @memberof DataTable#oApi
+ */
+ function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart, bCaseInsensitive )
+ {
+ var i;
+ var rpSearch = _fnFilterCreateSearch( sInput, bRegex, bSmart, bCaseInsensitive );
+ var oPrevSearch = oSettings.oPreviousSearch;
+
+ /* Check if we are forcing or not - optional parameter */
+ if ( !iForce )
+ {
+ iForce = 0;
+ }
+
+ /* Need to take account of custom filtering functions - always filter */
+ if ( DataTable.ext.afnFiltering.length !== 0 )
+ {
+ iForce = 1;
+ }
+
+ /*
+ * If the input is blank - we want the full data set
+ */
+ if ( sInput.length <= 0 )
+ {
+ oSettings.aiDisplay.splice( 0, oSettings.aiDisplay.length);
+ oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
+ }
+ else
+ {
+ /*
+ * We are starting a new search or the new search string is smaller
+ * then the old one (i.e. delete). Search from the master array
+ */
+ if ( oSettings.aiDisplay.length == oSettings.aiDisplayMaster.length ||
+ oPrevSearch.sSearch.length > sInput.length || iForce == 1 ||
+ sInput.indexOf(oPrevSearch.sSearch) !== 0 )
+ {
+ /* Nuke the old display array - we are going to rebuild it */
+ oSettings.aiDisplay.splice( 0, oSettings.aiDisplay.length);
+
+ /* Force a rebuild of the search array */
+ _fnBuildSearchArray( oSettings, 1 );
+
+ /* Search through all records to populate the search array
+ * The the oSettings.aiDisplayMaster and asDataSearch arrays have 1 to 1
+ * mapping
+ */
+ for ( i=0 ; i tag - remove it */
+ sSearch = sSearch.replace(/\n/g," ").replace(/\r/g,"");
+ }
+
+ return sSearch;
+ }
+
+ /**
+ * Build a regular expression object suitable for searching a table
+ * @param {string} sSearch string to search for
+ * @param {bool} bRegex treat as a regular expression or not
+ * @param {bool} bSmart perform smart filtering or not
+ * @param {bool} bCaseInsensitive Do case insenstive matching or not
+ * @returns {RegExp} constructed object
+ * @memberof DataTable#oApi
+ */
+ function _fnFilterCreateSearch( sSearch, bRegex, bSmart, bCaseInsensitive )
+ {
+ var asSearch, sRegExpString;
+
+ if ( bSmart )
+ {
+ /* Generate the regular expression to use. Something along the lines of:
+ * ^(?=.*?\bone\b)(?=.*?\btwo\b)(?=.*?\bthree\b).*$
+ */
+ asSearch = bRegex ? sSearch.split( ' ' ) : _fnEscapeRegex( sSearch ).split( ' ' );
+ sRegExpString = '^(?=.*?'+asSearch.join( ')(?=.*?' )+').*$';
+ return new RegExp( sRegExpString, bCaseInsensitive ? "i" : "" );
+ }
+ else
+ {
+ sSearch = bRegex ? sSearch : _fnEscapeRegex( sSearch );
+ return new RegExp( sSearch, bCaseInsensitive ? "i" : "" );
+ }
+ }
+
+
+ /**
+ * Convert raw data into something that the user can search on
+ * @param {string} sData data to be modified
+ * @param {string} sType data type
+ * @returns {string} search string
+ * @memberof DataTable#oApi
+ */
+ function _fnDataToSearch ( sData, sType )
+ {
+ if ( typeof DataTable.ext.ofnSearch[sType] === "function" )
+ {
+ return DataTable.ext.ofnSearch[sType]( sData );
+ }
+ else if ( sData === null )
+ {
+ return '';
+ }
+ else if ( sType == "html" )
+ {
+ return sData.replace(/[\r\n]/g," ").replace( /<.*?>/g, "" );
+ }
+ else if ( typeof sData === "string" )
+ {
+ return sData.replace(/[\r\n]/g," ");
+ }
+ return sData;
+ }
+
+
+ /**
+ * scape a string stuch that it can be used in a regular expression
+ * @param {string} sVal string to escape
+ * @returns {string} escaped string
+ * @memberof DataTable#oApi
+ */
+ function _fnEscapeRegex ( sVal )
+ {
+ var acEscape = [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\', '$', '^' ];
+ var reReplace = new RegExp( '(\\' + acEscape.join('|\\') + ')', 'g' );
+ return sVal.replace(reReplace, '\\$1');
+ }
+
+
+
+ /**
+ * Generate the node required for the info display
+ * @param {object} oSettings dataTables settings object
+ * @returns {node} Information element
+ * @memberof DataTable#oApi
+ */
+ function _fnFeatureHtmlInfo ( oSettings )
+ {
+ var nInfo = document.createElement( 'div' );
+ nInfo.className = oSettings.oClasses.sInfo;
+
+ /* Actions that are to be taken once only for this feature */
+ if ( !oSettings.aanFeatures.i )
+ {
+ /* Add draw callback */
+ oSettings.aoDrawCallback.push( {
+ "fn": _fnUpdateInfo,
+ "sName": "information"
+ } );
+
+ /* Add id */
+ nInfo.id = oSettings.sTableId+'_info';
+ }
+ oSettings.nTable.setAttribute( 'aria-describedby', oSettings.sTableId+'_info' );
+
+ return nInfo;
+ }
+
+
+ /**
+ * Update the information elements in the display
+ * @param {object} oSettings dataTables settings object
+ * @memberof DataTable#oApi
+ */
+ function _fnUpdateInfo ( oSettings )
+ {
+ /* Show information about the table */
+ if ( !oSettings.oFeatures.bInfo || oSettings.aanFeatures.i.length === 0 )
+ {
+ return;
+ }
+
+ var
+ oLang = oSettings.oLanguage,
+ iStart = oSettings._iDisplayStart+1,
+ iEnd = oSettings.fnDisplayEnd(),
+ iMax = oSettings.fnRecordsTotal(),
+ iTotal = oSettings.fnRecordsDisplay(),
+ sOut;
+
+ if ( iTotal === 0 && iTotal == iMax )
+ {
+ /* Empty record set */
+ sOut = oLang.sInfoEmpty;
+ }
+ else if ( iTotal === 0 )
+ {
+ /* Empty record set after filtering */
+ sOut = oLang.sInfoEmpty +' '+ oLang.sInfoFiltered;
+ }
+ else if ( iTotal == iMax )
+ {
+ /* Normal record set */
+ sOut = oLang.sInfo;
+ }
+ else
+ {
+ /* Record set after filtering */
+ sOut = oLang.sInfo +' '+ oLang.sInfoFiltered;
+ }
+
+ // Convert the macros
+ sOut += oLang.sInfoPostFix;
+ sOut = _fnInfoMacros( oSettings, sOut );
+
+ if ( oLang.fnInfoCallback !== null )
+ {
+ sOut = oLang.fnInfoCallback.call( oSettings.oInstance,
+ oSettings, iStart, iEnd, iMax, iTotal, sOut );
+ }
+
+ var n = oSettings.aanFeatures.i;
+ for ( var i=0, iLen=n.length ; i';
+ var i, iLen;
+ var aLengthMenu = oSettings.aLengthMenu;
+
+ if ( aLengthMenu.length == 2 && typeof aLengthMenu[0] === 'object' &&
+ typeof aLengthMenu[1] === 'object' )
+ {
+ for ( i=0, iLen=aLengthMenu[0].length ; i'+aLengthMenu[1][i]+'';
+ }
+ }
+ else
+ {
+ for ( i=0, iLen=aLengthMenu.length ; i'+aLengthMenu[i]+'';
+ }
+ }
+ sStdMenu += '';
+
+ var nLength = document.createElement( 'div' );
+ if ( !oSettings.aanFeatures.l )
+ {
+ nLength.id = oSettings.sTableId+'_length';
+ }
+ nLength.className = oSettings.oClasses.sLength;
+ nLength.innerHTML = '';
+
+ /*
+ * Set the length to the current display length - thanks to Andrea Pavlovic for this fix,
+ * and Stefan Skopnik for fixing the fix!
+ */
+ $('select option[value="'+oSettings._iDisplayLength+'"]', nLength).attr("selected", true);
+
+ $('select', nLength).bind( 'change.DT', function(e) {
+ var iVal = $(this).val();
+
+ /* Update all other length options for the new display */
+ var n = oSettings.aanFeatures.l;
+ for ( i=0, iLen=n.length ; i oSettings.aiDisplay.length ||
+ oSettings._iDisplayLength == -1 )
+ {
+ oSettings._iDisplayEnd = oSettings.aiDisplay.length;
+ }
+ else
+ {
+ oSettings._iDisplayEnd = oSettings._iDisplayStart + oSettings._iDisplayLength;
+ }
+ }
+ }
+
+
+
+ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ * Note that most of the paging logic is done in
+ * DataTable.ext.oPagination
+ */
+
+ /**
+ * Generate the node required for default pagination
+ * @param {object} oSettings dataTables settings object
+ * @returns {node} Pagination feature node
+ * @memberof DataTable#oApi
+ */
+ function _fnFeatureHtmlPaginate ( oSettings )
+ {
+ if ( oSettings.oScroll.bInfinite )
+ {
+ return null;
+ }
+
+ var nPaginate = document.createElement( 'div' );
+ nPaginate.className = oSettings.oClasses.sPaging+oSettings.sPaginationType;
+
+ DataTable.ext.oPagination[ oSettings.sPaginationType ].fnInit( oSettings, nPaginate,
+ function( oSettings ) {
+ _fnCalculateEnd( oSettings );
+ _fnDraw( oSettings );
+ }
+ );
+
+ /* Add a draw callback for the pagination on first instance, to update the paging display */
+ if ( !oSettings.aanFeatures.p )
+ {
+ oSettings.aoDrawCallback.push( {
+ "fn": function( oSettings ) {
+ DataTable.ext.oPagination[ oSettings.sPaginationType ].fnUpdate( oSettings, function( oSettings ) {
+ _fnCalculateEnd( oSettings );
+ _fnDraw( oSettings );
+ } );
+ },
+ "sName": "pagination"
+ } );
+ }
+ return nPaginate;
+ }
+
+
+ /**
+ * Alter the display settings to change the page
+ * @param {object} oSettings dataTables settings object
+ * @param {string|int} mAction Paging action to take: "first", "previous", "next" or "last"
+ * or page number to jump to (integer)
+ * @returns {bool} true page has changed, false - no change (no effect) eg 'first' on page 1
+ * @memberof DataTable#oApi
+ */
+ function _fnPageChange ( oSettings, mAction )
+ {
+ var iOldStart = oSettings._iDisplayStart;
+
+ if ( typeof mAction === "number" )
+ {
+ oSettings._iDisplayStart = mAction * oSettings._iDisplayLength;
+ if ( oSettings._iDisplayStart > oSettings.fnRecordsDisplay() )
+ {
+ oSettings._iDisplayStart = 0;
+ }
+ }
+ else if ( mAction == "first" )
+ {
+ oSettings._iDisplayStart = 0;
+ }
+ else if ( mAction == "previous" )
+ {
+ oSettings._iDisplayStart = oSettings._iDisplayLength>=0 ?
+ oSettings._iDisplayStart - oSettings._iDisplayLength :
+ 0;
+
+ /* Correct for underrun */
+ if ( oSettings._iDisplayStart < 0 )
+ {
+ oSettings._iDisplayStart = 0;
+ }
+ }
+ else if ( mAction == "next" )
+ {
+ if ( oSettings._iDisplayLength >= 0 )
+ {
+ /* Make sure we are not over running the display array */
+ if ( oSettings._iDisplayStart + oSettings._iDisplayLength < oSettings.fnRecordsDisplay() )
+ {
+ oSettings._iDisplayStart += oSettings._iDisplayLength;
+ }
+ }
+ else
+ {
+ oSettings._iDisplayStart = 0;
+ }
+ }
+ else if ( mAction == "last" )
+ {
+ if ( oSettings._iDisplayLength >= 0 )
+ {
+ var iPages = parseInt( (oSettings.fnRecordsDisplay()-1) / oSettings._iDisplayLength, 10 ) + 1;
+ oSettings._iDisplayStart = (iPages-1) * oSettings._iDisplayLength;
+ }
+ else
+ {
+ oSettings._iDisplayStart = 0;
+ }
+ }
+ else
+ {
+ _fnLog( oSettings, 0, "Unknown paging action: "+mAction );
+ }
+ $(oSettings.oInstance).trigger('page', oSettings);
+
+ return iOldStart != oSettings._iDisplayStart;
+ }
+
+
+
+ /**
+ * Generate the node required for the processing node
+ * @param {object} oSettings dataTables settings object
+ * @returns {node} Processing element
+ * @memberof DataTable#oApi
+ */
+ function _fnFeatureHtmlProcessing ( oSettings )
+ {
+ var nProcessing = document.createElement( 'div' );
+
+ if ( !oSettings.aanFeatures.r )
+ {
+ nProcessing.id = oSettings.sTableId+'_processing';
+ }
+ nProcessing.innerHTML = oSettings.oLanguage.sProcessing;
+ nProcessing.className = oSettings.oClasses.sProcessing;
+ oSettings.nTable.parentNode.insertBefore( nProcessing, oSettings.nTable );
+
+ return nProcessing;
+ }
+
+
+ /**
+ * Display or hide the processing indicator
+ * @param {object} oSettings dataTables settings object
+ * @param {bool} bShow Show the processing indicator (true) or not (false)
+ * @memberof DataTable#oApi
+ */
+ function _fnProcessingDisplay ( oSettings, bShow )
+ {
+ if ( oSettings.oFeatures.bProcessing )
+ {
+ var an = oSettings.aanFeatures.r;
+ for ( var i=0, iLen=an.length ; i 0 )
+ {
+ nCaption = nCaption[0];
+ if ( nCaption._captionSide === "top" )
+ {
+ nScrollHeadTable.appendChild( nCaption );
+ }
+ else if ( nCaption._captionSide === "bottom" && nTfoot )
+ {
+ nScrollFootTable.appendChild( nCaption );
+ }
+ }
+
+ /*
+ * Sizing
+ */
+ /* When xscrolling add the width and a scroller to move the header with the body */
+ if ( oSettings.oScroll.sX !== "" )
+ {
+ nScrollHead.style.width = _fnStringToCss( oSettings.oScroll.sX );
+ nScrollBody.style.width = _fnStringToCss( oSettings.oScroll.sX );
+
+ if ( nTfoot !== null )
+ {
+ nScrollFoot.style.width = _fnStringToCss( oSettings.oScroll.sX );
+ }
+
+ /* When the body is scrolled, then we also want to scroll the headers */
+ $(nScrollBody).scroll( function (e) {
+ nScrollHead.scrollLeft = this.scrollLeft;
+
+ if ( nTfoot !== null )
+ {
+ nScrollFoot.scrollLeft = this.scrollLeft;
+ }
+ } );
+ }
+
+ /* When yscrolling, add the height */
+ if ( oSettings.oScroll.sY !== "" )
+ {
+ nScrollBody.style.height = _fnStringToCss( oSettings.oScroll.sY );
+ }
+
+ /* Redraw - align columns across the tables */
+ oSettings.aoDrawCallback.push( {
+ "fn": _fnScrollDraw,
+ "sName": "scrolling"
+ } );
+
+ /* Infinite scrolling event handlers */
+ if ( oSettings.oScroll.bInfinite )
+ {
+ $(nScrollBody).scroll( function() {
+ /* Use a blocker to stop scrolling from loading more data while other data is still loading */
+ if ( !oSettings.bDrawing && $(this).scrollTop() !== 0 )
+ {
+ /* Check if we should load the next data set */
+ if ( $(this).scrollTop() + $(this).height() >
+ $(oSettings.nTable).height() - oSettings.oScroll.iLoadGap )
+ {
+ /* Only do the redraw if we have to - we might be at the end of the data */
+ if ( oSettings.fnDisplayEnd() < oSettings.fnRecordsDisplay() )
+ {
+ _fnPageChange( oSettings, 'next' );
+ _fnCalculateEnd( oSettings );
+ _fnDraw( oSettings );
+ }
+ }
+ }
+ } );
+ }
+
+ oSettings.nScrollHead = nScrollHead;
+ oSettings.nScrollFoot = nScrollFoot;
+
+ return nScroller;
+ }
+
+
+ /**
+ * Update the various tables for resizing. It's a bit of a pig this function, but
+ * basically the idea to:
+ * 1. Re-create the table inside the scrolling div
+ * 2. Take live measurements from the DOM
+ * 3. Apply the measurements
+ * 4. Clean up
+ * @param {object} o dataTables settings object
+ * @returns {node} Node to add to the DOM
+ * @memberof DataTable#oApi
+ */
+ function _fnScrollDraw ( o )
+ {
+ var
+ nScrollHeadInner = o.nScrollHead.getElementsByTagName('div')[0],
+ nScrollHeadTable = nScrollHeadInner.getElementsByTagName('table')[0],
+ nScrollBody = o.nTable.parentNode,
+ i, iLen, j, jLen, anHeadToSize, anHeadSizers, anFootSizers, anFootToSize, oStyle, iVis,
+ nTheadSize, nTfootSize,
+ iWidth, aApplied=[], iSanityWidth,
+ nScrollFootInner = (o.nTFoot !== null) ? o.nScrollFoot.getElementsByTagName('div')[0] : null,
+ nScrollFootTable = (o.nTFoot !== null) ? nScrollFootInner.getElementsByTagName('table')[0] : null,
+ ie67 = $.browser.msie && $.browser.version <= 7;
+
+ /*
+ * 1. Re-create the table inside the scrolling div
+ */
+
+ /* Remove the old minimised thead and tfoot elements in the inner table */
+ $(o.nTable).children('thead, tfoot').remove();
+
+ /* Clone the current header and footer elements and then place it into the inner table */
+ nTheadSize = $(o.nTHead).clone()[0];
+ o.nTable.insertBefore( nTheadSize, o.nTable.childNodes[0] );
+
+ if ( o.nTFoot !== null )
+ {
+ nTfootSize = $(o.nTFoot).clone()[0];
+ o.nTable.insertBefore( nTfootSize, o.nTable.childNodes[1] );
+ }
+
+ /*
+ * 2. Take live measurements from the DOM - do not alter the DOM itself!
+ */
+
+ /* Remove old sizing and apply the calculated column widths
+ * Get the unique column headers in the newly created (cloned) header. We want to apply the
+ * calclated sizes to this header
+ */
+ if ( o.oScroll.sX === "" )
+ {
+ nScrollBody.style.width = '100%';
+ nScrollHeadInner.parentNode.style.width = '100%';
+ }
+
+ var nThs = _fnGetUniqueThs( o, nTheadSize );
+ for ( i=0, iLen=nThs.length ; i nScrollBody.offsetHeight ||
+ $(nScrollBody).css('overflow-y') == "scroll") )
+ {
+ o.nTable.style.width = _fnStringToCss( $(o.nTable).outerWidth() - o.oScroll.iBarWidth);
+ }
+ }
+ else
+ {
+ if ( o.oScroll.sXInner !== "" )
+ {
+ /* x scroll inner has been given - use it */
+ o.nTable.style.width = _fnStringToCss(o.oScroll.sXInner);
+ }
+ else if ( iSanityWidth == $(nScrollBody).width() &&
+ $(nScrollBody).height() < $(o.nTable).height() )
+ {
+ /* There is y-scrolling - try to take account of the y scroll bar */
+ o.nTable.style.width = _fnStringToCss( iSanityWidth-o.oScroll.iBarWidth );
+ if ( $(o.nTable).outerWidth() > iSanityWidth-o.oScroll.iBarWidth )
+ {
+ /* Not possible to take account of it */
+ o.nTable.style.width = _fnStringToCss( iSanityWidth );
+ }
+ }
+ else
+ {
+ /* All else fails */
+ o.nTable.style.width = _fnStringToCss( iSanityWidth );
+ }
+ }
+
+ /* Recalculate the sanity width - now that we've applied the required width, before it was
+ * a temporary variable. This is required because the column width calculation is done
+ * before this table DOM is created.
+ */
+ iSanityWidth = $(o.nTable).outerWidth();
+
+ /* We want the hidden header to have zero height, so remove padding and borders. Then
+ * set the width based on the real headers
+ */
+ anHeadToSize = o.nTHead.getElementsByTagName('tr');
+ anHeadSizers = nTheadSize.getElementsByTagName('tr');
+
+ _fnApplyToChildren( function(nSizer, nToSize) {
+ oStyle = nSizer.style;
+ oStyle.paddingTop = "0";
+ oStyle.paddingBottom = "0";
+ oStyle.borderTopWidth = "0";
+ oStyle.borderBottomWidth = "0";
+ oStyle.height = 0;
+
+ iWidth = $(nSizer).width();
+ nToSize.style.width = _fnStringToCss( iWidth );
+ aApplied.push( iWidth );
+ }, anHeadSizers, anHeadToSize );
+ $(anHeadSizers).height(0);
+
+ if ( o.nTFoot !== null )
+ {
+ /* Clone the current footer and then place it into the body table as a "hidden header" */
+ anFootSizers = nTfootSize.getElementsByTagName('tr');
+ anFootToSize = o.nTFoot.getElementsByTagName('tr');
+
+ _fnApplyToChildren( function(nSizer, nToSize) {
+ oStyle = nSizer.style;
+ oStyle.paddingTop = "0";
+ oStyle.paddingBottom = "0";
+ oStyle.borderTopWidth = "0";
+ oStyle.borderBottomWidth = "0";
+ oStyle.height = 0;
+
+ iWidth = $(nSizer).width();
+ nToSize.style.width = _fnStringToCss( iWidth );
+ aApplied.push( iWidth );
+ }, anFootSizers, anFootToSize );
+ $(anFootSizers).height(0);
+ }
+
+ /*
+ * 3. Apply the measurements
+ */
+
+ /* "Hide" the header and footer that we used for the sizing. We want to also fix their width
+ * to what they currently are
+ */
+ _fnApplyToChildren( function(nSizer) {
+ nSizer.innerHTML = "";
+ nSizer.style.width = _fnStringToCss( aApplied.shift() );
+ }, anHeadSizers );
+
+ if ( o.nTFoot !== null )
+ {
+ _fnApplyToChildren( function(nSizer) {
+ nSizer.innerHTML = "";
+ nSizer.style.width = _fnStringToCss( aApplied.shift() );
+ }, anFootSizers );
+ }
+
+ /* Sanity check that the table is of a sensible width. If not then we are going to get
+ * misalignment - try to prevent this by not allowing the table to shrink below its min width
+ */
+ if ( $(o.nTable).outerWidth() < iSanityWidth )
+ {
+ /* The min width depends upon if we have a vertical scrollbar visible or not */
+ var iCorrection = ((nScrollBody.scrollHeight > nScrollBody.offsetHeight ||
+ $(nScrollBody).css('overflow-y') == "scroll")) ?
+ iSanityWidth+o.oScroll.iBarWidth : iSanityWidth;
+
+ /* IE6/7 are a law unto themselves... */
+ if ( ie67 && (nScrollBody.scrollHeight >
+ nScrollBody.offsetHeight || $(nScrollBody).css('overflow-y') == "scroll") )
+ {
+ o.nTable.style.width = _fnStringToCss( iCorrection-o.oScroll.iBarWidth );
+ }
+
+ /* Apply the calculated minimum width to the table wrappers */
+ nScrollBody.style.width = _fnStringToCss( iCorrection );
+ nScrollHeadInner.parentNode.style.width = _fnStringToCss( iCorrection );
+
+ if ( o.nTFoot !== null )
+ {
+ nScrollFootInner.parentNode.style.width = _fnStringToCss( iCorrection );
+ }
+
+ /* And give the user a warning that we've stopped the table getting too small */
+ if ( o.oScroll.sX === "" )
+ {
+ _fnLog( o, 1, "The table cannot fit into the current element which will cause column"+
+ " misalignment. The table has been drawn at its minimum possible width." );
+ }
+ else if ( o.oScroll.sXInner !== "" )
+ {
+ _fnLog( o, 1, "The table cannot fit into the current element which will cause column"+
+ " misalignment. Increase the sScrollXInner value or remove it to allow automatic"+
+ " calculation" );
+ }
+ }
+ else
+ {
+ nScrollBody.style.width = _fnStringToCss( '100%' );
+ nScrollHeadInner.parentNode.style.width = _fnStringToCss( '100%' );
+
+ if ( o.nTFoot !== null )
+ {
+ nScrollFootInner.parentNode.style.width = _fnStringToCss( '100%' );
+ }
+ }
+
+
+ /*
+ * 4. Clean up
+ */
+ if ( o.oScroll.sY === "" )
+ {
+ /* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting
+ * the scrollbar height from the visible display, rather than adding it on. We need to
+ * set the height in order to sort this. Don't want to do it in any other browsers.
+ */
+ if ( ie67 )
+ {
+ nScrollBody.style.height = _fnStringToCss( o.nTable.offsetHeight+o.oScroll.iBarWidth );
+ }
+ }
+
+ if ( o.oScroll.sY !== "" && o.oScroll.bCollapse )
+ {
+ nScrollBody.style.height = _fnStringToCss( o.oScroll.sY );
+
+ var iExtra = (o.oScroll.sX !== "" && o.nTable.offsetWidth > nScrollBody.offsetWidth) ?
+ o.oScroll.iBarWidth : 0;
+ if ( o.nTable.offsetHeight < nScrollBody.offsetHeight )
+ {
+ nScrollBody.style.height = _fnStringToCss( o.nTable.offsetHeight+iExtra );
+ }
+ }
+
+ /* Finally set the width's of the header and footer tables */
+ var iOuterWidth = $(o.nTable).outerWidth();
+ nScrollHeadTable.style.width = _fnStringToCss( iOuterWidth );
+ nScrollHeadInner.style.width = _fnStringToCss( iOuterWidth );
+
+ // Figure out if there are scrollbar present - if so then we need a the header and footer to
+ // provide a bit more space to allow "overflow" scrolling (i.e. past the scrollbar)
+ var bScrolling = $(o.nTable).height() > nScrollBody.clientHeight || $(nScrollBody).css('overflow-y') == "scroll";
+ nScrollHeadInner.style.paddingRight = bScrolling ? o.oScroll.iBarWidth+"px" : "0px";
+
+ if ( o.nTFoot !== null )
+ {
+ nScrollFootTable.style.width = _fnStringToCss( iOuterWidth );
+ nScrollFootInner.style.width = _fnStringToCss( iOuterWidth );
+ nScrollFootInner.style.paddingRight = bScrolling ? o.oScroll.iBarWidth+"px" : "0px";
+ }
+
+ /* Adjust the position of the header incase we loose the y-scrollbar */
+ $(nScrollBody).scroll();
+
+ /* If sorting or filtering has occurred, jump the scrolling back to the top */
+ if ( o.bSorted || o.bFiltered )
+ {
+ nScrollBody.scrollTop = 0;
+ }
+ }
+
+
+ /**
+ * Apply a given function to the display child nodes of an element array (typically
+ * TD children of TR rows
+ * @param {function} fn Method to apply to the objects
+ * @param array {nodes} an1 List of elements to look through for display children
+ * @param array {nodes} an2 Another list (identical structure to the first) - optional
+ * @memberof DataTable#oApi
+ */
+ function _fnApplyToChildren( fn, an1, an2 )
+ {
+ for ( var i=0, iLen=an1.length ; itd', nCalcTmp);
+ }
+
+ /* Apply custom sizing to the cloned header */
+ var nThs = _fnGetUniqueThs( oSettings, nTheadClone );
+ iCorrector = 0;
+ for ( i=0 ; i 0 )
+ {
+ oSettings.aoColumns[i].sWidth = _fnStringToCss( iWidth );
+ }
+ iCorrector++;
+ }
+ }
+
+ var cssWidth = $(nCalcTmp).css('width');
+ oSettings.nTable.style.width = (cssWidth.indexOf('%') !== -1) ?
+ cssWidth : _fnStringToCss( $(nCalcTmp).outerWidth() );
+ nCalcTmp.parentNode.removeChild( nCalcTmp );
+ }
+
+ if ( widthAttr )
+ {
+ oSettings.nTable.style.width = _fnStringToCss( widthAttr );
+ }
+ }
+
+
+ /**
+ * Adjust a table's width to take account of scrolling
+ * @param {object} oSettings dataTables settings object
+ * @param {node} n table node
+ * @memberof DataTable#oApi
+ */
+ function _fnScrollingWidthAdjust ( oSettings, n )
+ {
+ if ( oSettings.oScroll.sX === "" && oSettings.oScroll.sY !== "" )
+ {
+ /* When y-scrolling only, we want to remove the width of the scroll bar so the table
+ * + scroll bar will fit into the area avaialble.
+ */
+ var iOrigWidth = $(n).width();
+ n.style.width = _fnStringToCss( $(n).outerWidth()-oSettings.oScroll.iBarWidth );
+ }
+ else if ( oSettings.oScroll.sX !== "" )
+ {
+ /* When x-scrolling both ways, fix the table at it's current size, without adjusting */
+ n.style.width = _fnStringToCss( $(n).outerWidth() );
+ }
+ }
+
+
+ /**
+ * Get the widest node
+ * @param {object} oSettings dataTables settings object
+ * @param {int} iCol column of interest
+ * @returns {string} max strlens for each column
+ * @memberof DataTable#oApi
+ */
+ function _fnGetWidestNode( oSettings, iCol )
+ {
+ var iMaxIndex = _fnGetMaxLenString( oSettings, iCol );
+ if ( iMaxIndex < 0 )
+ {
+ return null;
+ }
+
+ if ( oSettings.aoData[iMaxIndex].nTr === null )
+ {
+ var n = document.createElement('td');
+ n.innerHTML = _fnGetCellData( oSettings, iMaxIndex, iCol, '' );
+ return n;
+ }
+ return _fnGetTdNodes(oSettings, iMaxIndex)[iCol];
+ }
+
+
+ /**
+ * Get the maximum strlen for each data column
+ * @param {object} oSettings dataTables settings object
+ * @param {int} iCol column of interest
+ * @returns {string} max strlens for each column
+ * @memberof DataTable#oApi
+ */
+ function _fnGetMaxLenString( oSettings, iCol )
+ {
+ var iMax = -1;
+ var iMaxIndex = -1;
+
+ for ( var i=0 ; i/g, "" );
+ if ( s.length > iMax )
+ {
+ iMax = s.length;
+ iMaxIndex = i;
+ }
+ }
+
+ return iMaxIndex;
+ }
+
+
+ /**
+ * Append a CSS unit (only if required) to a string
+ * @param {array} aArray1 first array
+ * @param {array} aArray2 second array
+ * @returns {int} 0 if match, 1 if length is different, 2 if no match
+ * @memberof DataTable#oApi
+ */
+ function _fnStringToCss( s )
+ {
+ if ( s === null )
+ {
+ return "0px";
+ }
+
+ if ( typeof s == 'number' )
+ {
+ if ( s < 0 )
+ {
+ return "0px";
+ }
+ return s+"px";
+ }
+
+ /* Check if the last character is not 0-9 */
+ var c = s.charCodeAt( s.length-1 );
+ if (c < 0x30 || c > 0x39)
+ {
+ return s;
+ }
+ return s+"px";
+ }
+
+
+ /**
+ * Get the width of a scroll bar in this browser being used
+ * @returns {int} width in pixels
+ * @memberof DataTable#oApi
+ */
+ function _fnScrollBarWidth ()
+ {
+ var inner = document.createElement('p');
+ var style = inner.style;
+ style.width = "100%";
+ style.height = "200px";
+ style.padding = "0px";
+
+ var outer = document.createElement('div');
+ style = outer.style;
+ style.position = "absolute";
+ style.top = "0px";
+ style.left = "0px";
+ style.visibility = "hidden";
+ style.width = "200px";
+ style.height = "150px";
+ style.padding = "0px";
+ style.overflow = "hidden";
+ outer.appendChild(inner);
+
+ document.body.appendChild(outer);
+ var w1 = inner.offsetWidth;
+ outer.style.overflow = 'scroll';
+ var w2 = inner.offsetWidth;
+ if ( w1 == w2 )
+ {
+ w2 = outer.clientWidth;
+ }
+
+ document.body.removeChild(outer);
+ return (w1 - w2);
+ }
+
+
+
+ /**
+ * Change the order of the table
+ * @param {object} oSettings dataTables settings object
+ * @param {bool} bApplyClasses optional - should we apply classes or not
+ * @memberof DataTable#oApi
+ */
+ function _fnSort ( oSettings, bApplyClasses )
+ {
+ var
+ i, iLen, j, jLen, k, kLen,
+ sDataType, nTh,
+ aaSort = [],
+ aiOrig = [],
+ oSort = DataTable.ext.oSort,
+ aoData = oSettings.aoData,
+ aoColumns = oSettings.aoColumns,
+ oAria = oSettings.oLanguage.oAria;
+
+ /* No sorting required if server-side or no sorting array */
+ if ( !oSettings.oFeatures.bServerSide &&
+ (oSettings.aaSorting.length !== 0 || oSettings.aaSortingFixed !== null) )
+ {
+ aaSort = ( oSettings.aaSortingFixed !== null ) ?
+ oSettings.aaSortingFixed.concat( oSettings.aaSorting ) :
+ oSettings.aaSorting.slice();
+
+ /* If there is a sorting data type, and a fuction belonging to it, then we need to
+ * get the data from the developer's function and apply it for this column
+ */
+ for ( i=0 ; i/g, "" );
+ nTh = aoColumns[i].nTh;
+ nTh.removeAttribute('aria-sort');
+ nTh.removeAttribute('aria-label');
+
+ /* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */
+ if ( aoColumns[i].bSortable )
+ {
+ if ( aaSort.length > 0 && aaSort[0][0] == i )
+ {
+ nTh.setAttribute('aria-sort', aaSort[0][1]=="asc" ? "ascending" : "descending" );
+
+ var nextSort = (aoColumns[i].asSorting[ aaSort[0][2]+1 ]) ?
+ aoColumns[i].asSorting[ aaSort[0][2]+1 ] : aoColumns[i].asSorting[0];
+ nTh.setAttribute('aria-label', sTitle+
+ (nextSort=="asc" ? oAria.sSortAscending : oAria.sSortDescending) );
+ }
+ else
+ {
+ nTh.setAttribute('aria-label', sTitle+
+ (aoColumns[i].asSorting[0]=="asc" ? oAria.sSortAscending : oAria.sSortDescending) );
+ }
+ }
+ else
+ {
+ nTh.setAttribute('aria-label', sTitle);
+ }
+ }
+
+ /* Tell the draw function that we have sorted the data */
+ oSettings.bSorted = true;
+ $(oSettings.oInstance).trigger('sort', oSettings);
+
+ /* Copy the master data into the draw array and re-draw */
+ if ( oSettings.oFeatures.bFilter )
+ {
+ /* _fnFilter() will redraw the table for us */
+ _fnFilterComplete( oSettings, oSettings.oPreviousSearch, 1 );
+ }
+ else
+ {
+ oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
+ oSettings._iDisplayStart = 0; /* reset display back to page 0 */
+ _fnCalculateEnd( oSettings );
+ _fnDraw( oSettings );
+ }
+ }
+
+
+ /**
+ * Attach a sort handler (click) to a node
+ * @param {object} oSettings dataTables settings object
+ * @param {node} nNode node to attach the handler to
+ * @param {int} iDataIndex column sorting index
+ * @param {function} [fnCallback] callback function
+ * @memberof DataTable#oApi
+ */
+ function _fnSortAttachListener ( oSettings, nNode, iDataIndex, fnCallback )
+ {
+ _fnBindAction( nNode, {}, function (e) {
+ /* If the column is not sortable - don't to anything */
+ if ( oSettings.aoColumns[iDataIndex].bSortable === false )
+ {
+ return;
+ }
+
+ /*
+ * This is a little bit odd I admit... I declare a temporary function inside the scope of
+ * _fnBuildHead and the click handler in order that the code presented here can be used
+ * twice - once for when bProcessing is enabled, and another time for when it is
+ * disabled, as we need to perform slightly different actions.
+ * Basically the issue here is that the Javascript engine in modern browsers don't
+ * appear to allow the rendering engine to update the display while it is still excuting
+ * it's thread (well - it does but only after long intervals). This means that the
+ * 'processing' display doesn't appear for a table sort. To break the js thread up a bit
+ * I force an execution break by using setTimeout - but this breaks the expected
+ * thread continuation for the end-developer's point of view (their code would execute
+ * too early), so we on;y do it when we absolutely have to.
+ */
+ var fnInnerSorting = function () {
+ var iColumn, iNextSort;
+
+ /* If the shift key is pressed then we are multipe column sorting */
+ if ( e.shiftKey )
+ {
+ /* Are we already doing some kind of sort on this column? */
+ var bFound = false;
+ for ( var i=0 ; i= iColumns )
+ {
+ for ( i=0 ; i 4096 ) /* Magic 10 for padding */
+ {
+ var aCookies =document.cookie.split(';');
+ for ( var i=0, iLen=aCookies.length ; i=0 ; i-- )
+ {
+ aRet.push( aoStore[i].fn.apply( oSettings.oInstance, aArgs ) );
+ }
+
+ if ( sTrigger !== null )
+ {
+ $(oSettings.oInstance).trigger(sTrigger, aArgs);
+ }
+
+ return aRet;
+ }
+
+
+ /**
+ * JSON stringify. If JSON.stringify it provided by the browser, json2.js or any other
+ * library, then we use that as it is fast, safe and accurate. If the function isn't
+ * available then we need to built it ourselves - the insperation for this function comes
+ * from Craig Buckler ( http://www.sitepoint.com/javascript-json-serialization/ ). It is
+ * not perfect and absolutely should not be used as a replacement to json2.js - but it does
+ * do what we need, without requiring a dependency for DataTables.
+ * @param {object} o JSON object to be converted
+ * @returns {string} JSON string
+ * @memberof DataTable#oApi
+ */
+ var _fnJsonString = (window.JSON) ? JSON.stringify : function( o )
+ {
+ /* Not an object or array */
+ var sType = typeof o;
+ if (sType !== "object" || o === null)
+ {
+ // simple data type
+ if (sType === "string")
+ {
+ o = '"'+o+'"';
+ }
+ return o+"";
+ }
+
+ /* If object or array, need to recurse over it */
+ var
+ sProp, mValue,
+ json = [],
+ bArr = $.isArray(o);
+
+ for (sProp in o)
+ {
+ mValue = o[sProp];
+ sType = typeof mValue;
+
+ if (sType === "string")
+ {
+ mValue = '"'+mValue+'"';
+ }
+ else if (sType === "object" && mValue !== null)
+ {
+ mValue = _fnJsonString(mValue);
+ }
+
+ json.push((bArr ? "" : '"'+sProp+'":') + mValue);
+ }
+
+ return (bArr ? "[" : "{") + json + (bArr ? "]" : "}");
+ };
+
+
+
+
+ /**
+ * Perform a jQuery selector action on the table's TR elements (from the tbody) and
+ * return the resulting jQuery object.
+ * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
+ * @param {object} [oOpts] Optional parameters for modifying the rows to be included
+ * @param {string} [oOpts.filter=none] Select TR elements that meet the current filter
+ * criterion ("applied") or all TR elements (i.e. no filter).
+ * @param {string} [oOpts.order=current] Order of the TR elements in the processed array.
+ * Can be either 'current', whereby the current sorting of the table is used, or
+ * 'original' whereby the original order the data was read into the table is used.
+ * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
+ * ("current") or not ("all"). If 'current' is given, then order is assumed to be
+ * 'current' and filter is 'applied', regardless of what they might be given as.
+ * @returns {object} jQuery object, filtered by the given selector.
+ * @dtopt API
+ *
+ * @example
+ * $(document).ready(function() {
+ * var oTable = $('#example').dataTable();
+ *
+ * // Highlight every second row
+ * oTable.$('tr:odd').css('backgroundColor', 'blue');
+ * } );
+ *
+ * @example
+ * $(document).ready(function() {
+ * var oTable = $('#example').dataTable();
+ *
+ * // Filter to rows with 'Webkit' in them, add a background colour and then
+ * // remove the filter, thus highlighting the 'Webkit' rows only.
+ * oTable.fnFilter('Webkit');
+ * oTable.$('tr', {"filter": "applied"}).css('backgroundColor', 'blue');
+ * oTable.fnFilter('');
+ * } );
+ */
+ this.$ = function ( sSelector, oOpts )
+ {
+ var i, iLen, a = [];
+ var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
+
+ if ( !oOpts )
+ {
+ oOpts = {};
+ }
+
+ oOpts = $.extend( {}, {
+ "filter": "none", // applied
+ "order": "current", // "original"
+ "page": "all" // current
+ }, oOpts );
+
+ // Current page implies that order=current and fitler=applied, since it is fairly
+ // senseless otherwise
+ if ( oOpts.page == 'current' )
+ {
+ for ( i=oSettings._iDisplayStart, iLen=oSettings.fnDisplayEnd() ; i
+ *
1D array of data - add a single row with the data provided
+ *
2D array of arrays - add multiple rows in a single call
+ *
object - data object when using mDataProp
+ *
array of objects - multiple data objects when using mDataProp
+ *
+ * @param {bool} [bRedraw=true] redraw the table or not
+ * @returns {array} An array of integers, representing the list of indexes in
+ * aoData ({@link DataTable.models.oSettings}) that have been added to
+ * the table.
+ * @dtopt API
+ *
+ * @example
+ * // Global var for counter
+ * var giCount = 2;
+ *
+ * $(document).ready(function() {
+ * $('#example').dataTable();
+ * } );
+ *
+ * function fnClickAddRow() {
+ * $('#example').dataTable().fnAddData( [
+ * giCount+".1",
+ * giCount+".2",
+ * giCount+".3",
+ * giCount+".4" ]
+ * );
+ *
+ * giCount++;
+ * }
+ */
+ this.fnAddData = function( mData, bRedraw )
+ {
+ if ( mData.length === 0 )
+ {
+ return [];
+ }
+
+ var aiReturn = [];
+ var iTest;
+
+ /* Find settings from table node */
+ var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
+
+ /* Check if we want to add multiple rows or not */
+ if ( typeof mData[0] === "object" && mData[0] !== null )
+ {
+ for ( var i=0 ; i= oSettings.aiDisplay.length )
+ {
+ oSettings._iDisplayStart -= oSettings._iDisplayLength;
+ if ( oSettings._iDisplayStart < 0 )
+ {
+ oSettings._iDisplayStart = 0;
+ }
+ }
+
+ if ( bRedraw === undefined || bRedraw )
+ {
+ _fnCalculateEnd( oSettings );
+ _fnDraw( oSettings );
+ }
+
+ return oData;
+ };
+
+
+ /**
+ * Restore the table to it's original state in the DOM by removing all of DataTables
+ * enhancements, alterations to the DOM structure of the table and event listeners.
+ * @param {boolean} [bRemove=false] Completely remove the table from the DOM
+ * @dtopt API
+ *
+ * @example
+ * $(document).ready(function() {
+ * // This example is fairly pointless in reality, but shows how fnDestroy can be used
+ * var oTable = $('#example').dataTable();
+ * oTable.fnDestroy();
+ * } );
+ */
+ this.fnDestroy = function ( bRemove )
+ {
+ var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
+ var nOrig = oSettings.nTableWrapper.parentNode;
+ var nBody = oSettings.nTBody;
+ var i, iLen;
+
+ bRemove = (bRemove===undefined) ? false : true;
+
+ /* Flag to note that the table is currently being destroyed - no action should be taken */
+ oSettings.bDestroying = true;
+
+ /* Fire off the destroy callbacks for plug-ins etc */
+ _fnCallbackFire( oSettings, "aoDestroyCallback", "destroy", [oSettings] );
+
+ /* Restore hidden columns */
+ for ( i=0, iLen=oSettings.aoColumns.length ; itr>td.'+oSettings.oClasses.sRowEmpty, oSettings.nTable).parent().remove();
+
+ /* When scrolling we had to break the table up - restore it */
+ if ( oSettings.nTable != oSettings.nTHead.parentNode )
+ {
+ $(oSettings.nTable).children('thead').remove();
+ oSettings.nTable.appendChild( oSettings.nTHead );
+ }
+
+ if ( oSettings.nTFoot && oSettings.nTable != oSettings.nTFoot.parentNode )
+ {
+ $(oSettings.nTable).children('tfoot').remove();
+ oSettings.nTable.appendChild( oSettings.nTFoot );
+ }
+
+ /* Remove the DataTables generated nodes, events and classes */
+ oSettings.nTable.parentNode.removeChild( oSettings.nTable );
+ $(oSettings.nTableWrapper).remove();
+
+ oSettings.aaSorting = [];
+ oSettings.aaSortingFixed = [];
+ _fnSortingClasses( oSettings );
+
+ $(_fnGetTrNodes( oSettings )).removeClass( oSettings.asStripeClasses.join(' ') );
+
+ $('th, td', oSettings.nTHead).removeClass( [
+ oSettings.oClasses.sSortable,
+ oSettings.oClasses.sSortableAsc,
+ oSettings.oClasses.sSortableDesc,
+ oSettings.oClasses.sSortableNone ].join(' ')
+ );
+ if ( oSettings.bJUI )
+ {
+ $('th span.'+oSettings.oClasses.sSortIcon
+ + ', td span.'+oSettings.oClasses.sSortIcon, oSettings.nTHead).remove();
+
+ $('th, td', oSettings.nTHead).each( function () {
+ var jqWrapper = $('div.'+oSettings.oClasses.sSortJUIWrapper, this);
+ var kids = jqWrapper.contents();
+ $(this).append( kids );
+ jqWrapper.remove();
+ } );
+ }
+
+ /* Add the TR elements back into the table in their original order */
+ if ( !bRemove && oSettings.nTableReinsertBefore )
+ {
+ nOrig.insertBefore( oSettings.nTable, oSettings.nTableReinsertBefore );
+ }
+ else if ( !bRemove )
+ {
+ nOrig.appendChild( oSettings.nTable );
+ }
+
+ for ( i=0, iLen=oSettings.aoData.length ; i= _fnVisbleColumns( oSettings ));
+
+ /* Which coloumn should we be inserting before? */
+ if ( !bAppend )
+ {
+ for ( i=iCol ; i= oSettings.aoColumns.length )
+ {
+ oSettings.aaSorting[i][0] = 0;
+ }
+ var oColumn = oSettings.aoColumns[ oSettings.aaSorting[i][0] ];
+
+ /* Add a default sorting index */
+ if ( oSettings.aaSorting[i][2] === undefined )
+ {
+ oSettings.aaSorting[i][2] = 0;
+ }
+
+ /* If aaSorting is not defined, then we use the first indicator in asSorting */
+ if ( oInit.aaSorting === undefined && oSettings.saved_aaSorting === undefined )
+ {
+ oSettings.aaSorting[i][1] = oColumn.asSorting[0];
+ }
+
+ /* Set the current sorting index based on aoColumns.asSorting */
+ for ( j=0, jLen=oColumn.asSorting.length ; j 0 && (oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "") )
+ {
+ // If we are a scrolling table, and no footer has been given, then we need to create
+ // a tfoot element for the caption element to be appended to
+ tfoot = [ document.createElement( 'tfoot' ) ];
+ this.appendChild( tfoot[0] );
+ }
+
+ if ( tfoot.length > 0 )
+ {
+ oSettings.nTFoot = tfoot[0];
+ _fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );
+ }
+
+ /* Check if there is data passing into the constructor */
+ if ( bUsePassedData )
+ {
+ for ( i=0 ; i= parseInt(sThat, 10);
+ };
+
+
+ /**
+ * Check if a TABLE node is a DataTable table already or not.
+ * @param {node} nTable The TABLE node to check if it is a DataTable or not (note that other
+ * node types can be passed in, but will always return false).
+ * @returns {boolean} true the table given is a DataTable, or false otherwise
+ * @static
+ * @dtopt API-Static
+ *
+ * @example
+ * var ex = document.getElementById('example');
+ * if ( ! $.fn.DataTable.fnIsDataTable( ex ) ) {
+ * $(ex).dataTable();
+ * }
+ */
+ DataTable.fnIsDataTable = function ( nTable )
+ {
+ var o = DataTable.settings;
+
+ for ( var i=0 ; i 0 ) {
+ * $(table).dataTable().fnAdjustColumnSizing();
+ * }
+ */
+ DataTable.fnTables = function ( bVisible )
+ {
+ var out = [];
+
+ jQuery.each( DataTable.settings, function (i, o) {
+ if ( !bVisible || (bVisible === true && $(o.nTable).is(':visible')) )
+ {
+ out.push( o.nTable );
+ }
+ } );
+
+ return out;
+ };
+
+
+ /**
+ * Version string for plug-ins to check compatibility. Allowed format is
+ * a.b.c.d.e where: a:int, b:int, c:int, d:string(dev|beta), e:int. d and
+ * e are optional
+ * @member
+ * @type string
+ * @default Version number
+ */
+ DataTable.version = "1.9.1";
+
+ /**
+ * Private data store, containing all of the settings objects that are created for the
+ * tables on a given page.
+ *
+ * Note that the DataTable.settings object is aliased to jQuery.fn.dataTableExt
+ * through which it may be accessed and manipulated, or jQuery.fn.dataTable.settings.
+ * @member
+ * @type array
+ * @default []
+ * @private
+ */
+ DataTable.settings = [];
+
+ /**
+ * Object models container, for the various models that DataTables has available
+ * to it. These models define the objects that are used to hold the active state
+ * and configuration of the table.
+ * @namespace
+ */
+ DataTable.models = {};
+
+
+ /**
+ * DataTables extension options and plug-ins. This namespace acts as a collection "area"
+ * for plug-ins that can be used to extend the default DataTables behaviour - indeed many
+ * of the build in methods use this method to provide their own capabilities (sorting methods
+ * for example).
+ *
+ * Note that this namespace is aliased to jQuery.fn.dataTableExt so it can be readily accessed
+ * and modified by plug-ins.
+ * @namespace
+ */
+ DataTable.models.ext = {
+ /**
+ * Plug-in filtering functions - this method of filtering is complimentary to the default
+ * type based filtering, and a lot more comprehensive as it allows you complete control
+ * over the filtering logic. Each element in this array is a function (parameters
+ * described below) that is called for every row in the table, and your logic decides if
+ * it should be included in the filtered data set or not.
+ *
+ *
+ * Function input parameters:
+ *
+ *
{object} DataTables settings object: see {@link DataTable.models.oSettings}.
+ *
{array|object} Data for the row to be processed (same as the original format
+ * that was passed in as the data source, or an array from a DOM data source
+ *
{int} Row index in aoData ({@link DataTable.models.oSettings.aoData}), which can
+ * be useful to retrieve the TR element if you need DOM interaction.
+ *
+ *
+ *
+ * Function return:
+ *
+ *
{boolean} Include the row in the filtered result set (true) or not (false)
+ *
+ *
+ *
+ * @type array
+ * @default []
+ *
+ * @example
+ * // The following example shows custom filtering being applied to the fourth column (i.e.
+ * // the aData[3] index) based on two input values from the end-user, matching the data in
+ * // a certain range.
+ * $.fn.dataTableExt.afnFiltering.push(
+ * function( oSettings, aData, iDataIndex ) {
+ * var iMin = document.getElementById('min').value * 1;
+ * var iMax = document.getElementById('max').value * 1;
+ * var iVersion = aData[3] == "-" ? 0 : aData[3]*1;
+ * if ( iMin == "" && iMax == "" ) {
+ * return true;
+ * }
+ * else if ( iMin == "" && iVersion < iMax ) {
+ * return true;
+ * }
+ * else if ( iMin < iVersion && "" == iMax ) {
+ * return true;
+ * }
+ * else if ( iMin < iVersion && iVersion < iMax ) {
+ * return true;
+ * }
+ * return false;
+ * }
+ * );
+ */
+ "afnFiltering": [],
+
+
+ /**
+ * Plug-in sorting functions - this method of sorting is complimentary to the default type
+ * based sorting that DataTables does automatically, allowing much greater control over the
+ * the data that is being used to sort a column. This is useful if you want to do sorting
+ * based on live data (for example the contents of an 'input' element) rather than just the
+ * static string that DataTables knows of. The way these plug-ins work is that you create
+ * an array of the values you wish to be sorted for the column in question and then return
+ * that array. Which pre-sorting function is run here depends on the sSortDataType parameter
+ * that is used for the column (if any). This is the corollary of ofnSearch for sort
+ * data.
+ *
+ *
+ * Function input parameters:
+ *
+ *
{object} DataTables settings object: see {@link DataTable.models.oSettings}.
+ *
{int} Target column index
+ *
+ *
+ *
+ * Function return:
+ *
+ *
{array} Data for the column to be sorted upon
+ *
+ *
+ *
+ *
+ * Note that as of v1.9, it is typically preferable to use mDataProp to prepare data for
+ * the different uses that DataTables can put the data to. Specifically mDataProp when
+ * used as a function will give you a 'type' (sorting, filtering etc) that you can use to
+ * prepare the data as required for the different types. As such, this method is deprecated.
+ * @type array
+ * @default []
+ * @deprecated
+ *
+ * @example
+ * // Updating the cached sorting information with user entered values in HTML input elements
+ * jQuery.fn.dataTableExt.afnSortData['dom-text'] = function ( oSettings, iColumn )
+ * {
+ * var aData = [];
+ * $( 'td:eq('+iColumn+') input', oSettings.oApi._fnGetTrNodes(oSettings) ).each( function () {
+ * aData.push( this.value );
+ * } );
+ * return aData;
+ * }
+ */
+ "afnSortData": [],
+
+
+ /**
+ * Feature plug-ins - This is an array of objects which describe the feature plug-ins that are
+ * available to DataTables. These feature plug-ins are accessible through the sDom initialisation
+ * option. As such, each feature plug-in must describe a function that is used to initialise
+ * itself (fnInit), a character so the feature can be enabled by sDom (cFeature) and the name
+ * of the feature (sFeature). Thus the objects attached to this method must provide:
+ *
+ *
{function} fnInit Initialisation of the plug-in
+ *
+ *
+ * Function input parameters:
+ *
+ *
{object} DataTables settings object: see {@link DataTable.models.oSettings}.
+ *
+ *
+ *
+ * Function return:
+ *
+ *
{node|null} The element which contains your feature. Note that the return
+ * may also be void if your plug-in does not require to inject any DOM elements
+ * into DataTables control (sDom) - for example this might be useful when
+ * developing a plug-in which allows table control via keyboard entry.
+ *
+ *
+ *
+ *
+ *
{character} cFeature Character that will be matched in sDom - case sensitive
+ *
{string} sFeature Feature name
+ *
+ * @type array
+ * @default []
+ *
+ * @example
+ * // How TableTools initialises itself.
+ * $.fn.dataTableExt.aoFeatures.push( {
+ * "fnInit": function( oSettings ) {
+ * return new TableTools( { "oDTSettings": oSettings } );
+ * },
+ * "cFeature": "T",
+ * "sFeature": "TableTools"
+ * } );
+ */
+ "aoFeatures": [],
+
+
+ /**
+ * Type detection plug-in functions - DataTables utilises types to define how sorting and
+ * filtering behave, and types can be either be defined by the developer (sType for the
+ * column) or they can be automatically detected by the methods in this array. The functions
+ * defined in the array are quite simple, taking a single parameter (the data to analyse)
+ * and returning the type if it is a known type, or null otherwise.
+ *
+ *
+ * Function input parameters:
+ *
+ *
{*} Data from the column cell to be analysed
+ *
+ *
+ *
+ * Function return:
+ *
+ *
{string|null} Data type detected, or null if unknown (and thus pass it
+ * on to the other type detection functions.
+ *
+ *
+ *
+ * @type array
+ * @default []
+ *
+ * @example
+ * // Currency type detection plug-in:
+ * jQuery.fn.dataTableExt.aTypes.push(
+ * function ( sData ) {
+ * var sValidChars = "0123456789.-";
+ * var Char;
+ *
+ * // Check the numeric part
+ * for ( i=1 ; iafnSortData for filtering data.
+ *
+ *
+ * Function input parameters:
+ *
+ *
{*} Data from the column cell to be prepared for filtering
+ *
+ *
+ *
+ * Function return:
+ *
+ *
{string|null} Formatted string that will be used for the filtering.
+ *
+ *
+ *
+ *
+ * Note that as of v1.9, it is typically preferable to use mDataProp to prepare data for
+ * the different uses that DataTables can put the data to. Specifically mDataProp when
+ * used as a function will give you a 'type' (sorting, filtering etc) that you can use to
+ * prepare the data as required for the different types. As such, this method is deprecated.
+ * @type object
+ * @default {}
+ * @deprecated
+ *
+ * @example
+ * $.fn.dataTableExt.ofnSearch['title-numeric'] = function ( sData ) {
+ * return sData.replace(/\n/g," ").replace( /<.*?>/g, "" );
+ * }
+ */
+ "ofnSearch": {},
+
+
+ /**
+ * Container for all private functions in DataTables so they can be exposed externally
+ * @type object
+ * @default {}
+ */
+ "oApi": {},
+
+
+ /**
+ * Storage for the various classes that DataTables uses
+ * @type object
+ * @default {}
+ */
+ "oStdClasses": {},
+
+
+ /**
+ * Storage for the various classes that DataTables uses - jQuery UI suitable
+ * @type object
+ * @default {}
+ */
+ "oJUIClasses": {},
+
+
+ /**
+ * Pagination plug-in methods - The style and controls of the pagination can significantly
+ * impact on how the end user interacts with the data in your table, and DataTables allows
+ * the addition of pagination controls by extending this object, which can then be enabled
+ * through the sPaginationType initialisation parameter. Each pagination type that
+ * is added is an object (the property name of which is what sPaginationType refers
+ * to) that has two properties, both methods that are used by DataTables to update the
+ * control's state.
+ *
+ *
+ * fnInit - Initialisation of the paging controls. Called only during initialisation
+ * of the table. It is expected that this function will add the required DOM elements
+ * to the page for the paging controls to work. The element pointer
+ * 'oSettings.aanFeatures.p' array is provided by DataTables to contain the paging
+ * controls (note that this is a 2D array to allow for multiple instances of each
+ * DataTables DOM element). It is suggested that you add the controls to this element
+ * as children
+ *
+ *
+ * Function input parameters:
+ *
+ *
{object} DataTables settings object: see {@link DataTable.models.oSettings}.
+ *
{node} Container into which the pagination controls must be inserted
+ *
{function} Draw callback function - whenever the controls cause a page
+ * change, this method must be called to redraw the table.
+ *
+ *
+ *
+ * Function return:
+ *
+ *
No return required
+ *
+ *
+ *
+ *
+ *
+ * fnInit - This function is called whenever the paging status of the table changes and is
+ * typically used to update classes and/or text of the paging controls to reflex the new
+ * status.
+ *
+ *
+ * Function input parameters:
+ *
+ *
{object} DataTables settings object: see {@link DataTable.models.oSettings}.
+ *
{function} Draw callback function - in case you need to redraw the table again
+ * or attach new event listeners
{int} Sorting match: <0 if first parameter should be sorted lower than
+ * the second parameter, ===0 if the two parameters are equal and >0 if
+ * the first parameter should be sorted height than the second parameter.
+ *
+ *
+ *
+ * @type object
+ * @default {}
+ *
+ * @example
+ * // Case-sensitive string sorting, with no pre-formatting method
+ * $.extend( $.fn.dataTableExt.oSort, {
+ * "string-case-asc": function(x,y) {
+ * return ((x < y) ? -1 : ((x > y) ? 1 : 0));
+ * },
+ * "string-case-desc": function(x,y) {
+ * return ((x < y) ? 1 : ((x > y) ? -1 : 0));
+ * }
+ * } );
+ *
+ * @example
+ * // Case-insensitive string sorting, with pre-formatting
+ * $.extend( $.fn.dataTableExt.oSort, {
+ * "string-pre": function(x) {
+ * return x.toLowerCase();
+ * },
+ * "string-asc": function(x,y) {
+ * return ((x < y) ? -1 : ((x > y) ? 1 : 0));
+ * },
+ * "string-desc": function(x,y) {
+ * return ((x < y) ? 1 : ((x > y) ? -1 : 0));
+ * }
+ * } );
+ */
+ "oSort": {},
+
+
+ /**
+ * Version string for plug-ins to check compatibility. Allowed format is
+ * a.b.c.d.e where: a:int, b:int, c:int, d:string(dev|beta), e:int. d and
+ * e are optional
+ * @type string
+ * @default Version number
+ */
+ "sVersion": DataTable.version,
+
+
+ /**
+ * How should DataTables report an error. Can take the value 'alert' or 'throw'
+ * @type string
+ * @default alert
+ */
+ "sErrMode": "alert",
+
+
+ /**
+ * Store information for DataTables to access globally about other instances
+ * @namespace
+ * @private
+ */
+ "_oExternConfig": {
+ /* int:iNextUnique - next unique number for an instance */
+ "iNextUnique": 0
+ }
+ };
+
+
+
+
+ /**
+ * Template object for the way in which DataTables holds information about
+ * search information for the global filter and individual column filters.
+ * @namespace
+ */
+ DataTable.models.oSearch = {
+ /**
+ * Flag to indicate if the filtering should be case insensitive or not
+ * @type boolean
+ * @default true
+ */
+ "bCaseInsensitive": true,
+
+ /**
+ * Applied search term
+ * @type string
+ * @default Empty string
+ */
+ "sSearch": "",
+
+ /**
+ * Flag to indicate if the search term should be interpreted as a
+ * regular expression (true) or not (false) and therefore and special
+ * regex characters escaped.
+ * @type boolean
+ * @default false
+ */
+ "bRegex": false,
+
+ /**
+ * Flag to indicate if DataTables is to use its smart filtering or not.
+ * @type boolean
+ * @default true
+ */
+ "bSmart": true
+ };
+
+
+
+
+ /**
+ * Template object for the way in which DataTables holds information about
+ * each individual row. This is the object format used for the settings
+ * aoData array.
+ * @namespace
+ */
+ DataTable.models.oRow = {
+ /**
+ * TR element for the row
+ * @type node
+ * @default null
+ */
+ "nTr": null,
+
+ /**
+ * Data object from the original data source for the row. This is either
+ * an array if using the traditional form of DataTables, or an object if
+ * using mDataProp options. The exact type will depend on the passed in
+ * data from the data source, or will be an array if using DOM a data
+ * source.
+ * @type array|object
+ * @default []
+ */
+ "_aData": [],
+
+ /**
+ * Sorting data cache - this array is ostensibly the same length as the
+ * number of columns (although each index is generated only as it is
+ * needed), and holds the data that is used for sorting each column in the
+ * row. We do this cache generation at the start of the sort in order that
+ * the formatting of the sort data need be done only once for each cell
+ * per sort. This array should not be read from or written to by anything
+ * other than the master sorting methods.
+ * @type array
+ * @default []
+ * @private
+ */
+ "_aSortData": [],
+
+ /**
+ * Array of TD elements that are cached for hidden rows, so they can be
+ * reinserted into the table if a column is made visible again (or to act
+ * as a store if a column is made hidden). Only hidden columns have a
+ * reference in the array. For non-hidden columns the value is either
+ * undefined or null.
+ * @type array nodes
+ * @default []
+ * @private
+ */
+ "_anHidden": [],
+
+ /**
+ * Cache of the class name that DataTables has applied to the row, so we
+ * can quickly look at this variable rather than needing to do a DOM check
+ * on className for the nTr property.
+ * @type string
+ * @default Empty string
+ * @private
+ */
+ "_sRowStripe": ""
+ };
+
+
+
+ /**
+ * Template object for the column information object in DataTables. This object
+ * is held in the settings aoColumns array and contains all the information that
+ * DataTables needs about each individual column.
+ *
+ * Note that this object is related to {@link DataTable.defaults.columns}
+ * but this one is the internal data store for DataTables's cache of columns.
+ * It should NOT be manipulated outside of DataTables. Any configuration should
+ * be done through the initialisation options.
+ * @namespace
+ */
+ DataTable.models.oColumn = {
+ /**
+ * A list of the columns that sorting should occur on when this column
+ * is sorted. That this property is an array allows multi-column sorting
+ * to be defined for a column (for example first name / last name columns
+ * would benefit from this). The values are integers pointing to the
+ * columns to be sorted on (typically it will be a single integer pointing
+ * at itself, but that doesn't need to be the case).
+ * @type array
+ */
+ "aDataSort": null,
+
+ /**
+ * Define the sorting directions that are applied to the column, in sequence
+ * as the column is repeatedly sorted upon - i.e. the first value is used
+ * as the sorting direction when the column if first sorted (clicked on).
+ * Sort it again (click again) and it will move on to the next index.
+ * Repeat until loop.
+ * @type array
+ */
+ "asSorting": null,
+
+ /**
+ * Flag to indicate if the column is searchable, and thus should be included
+ * in the filtering or not.
+ * @type boolean
+ */
+ "bSearchable": null,
+
+ /**
+ * Flag to indicate if the column is sortable or not.
+ * @type boolean
+ */
+ "bSortable": null,
+
+ /**
+ * When using fnRender, you have two options for what to do with the data,
+ * and this property serves as the switch. Firstly, you can have the sorting
+ * and filtering use the rendered value (true - default), or you can have
+ * the sorting and filtering us the original value (false).
+ *
+ * *NOTE* It is it is advisable now to use mDataProp as a function and make
+ * use of the 'type' that it gives, allowing (potentially) different data to
+ * be used for sorting, filtering, display and type detection.
+ * @type boolean
+ * @deprecated
+ */
+ "bUseRendered": null,
+
+ /**
+ * Flag to indicate if the column is currently visible in the table or not
+ * @type boolean
+ */
+ "bVisible": null,
+
+ /**
+ * Flag to indicate to the type detection method if the automatic type
+ * detection should be used, or if a column type (sType) has been specified
+ * @type boolean
+ * @default true
+ * @private
+ */
+ "_bAutoType": true,
+
+ /**
+ * Developer definable function that is called whenever a cell is created (Ajax source,
+ * etc) or processed for input (DOM source). This can be used as a compliment to fnRender
+ * allowing you to modify the DOM element (add background colour for example) when the
+ * element is available (since it is not when fnRender is called).
+ * @type function
+ * @param {element} nTd The TD node that has been created
+ * @param {*} sData The Data for the cell
+ * @param {array|object} oData The data for the whole row
+ * @param {int} iRow The row index for the aoData data store
+ * @default null
+ */
+ "fnCreatedCell": null,
+
+ /**
+ * Function to get data from a cell in a column. You should never
+ * access data directly through _aData internally in DataTables - always use
+ * the method attached to this property. It allows mDataProp to function as
+ * required. This function is automatically assigned by the column
+ * initialisation method
+ * @type function
+ * @param {array|object} oData The data array/object for the array
+ * (i.e. aoData[]._aData)
+ * @param {string} sSpecific The specific data type you want to get -
+ * 'display', 'type' 'filter' 'sort'
+ * @returns {*} The data for the cell from the given row's data
+ * @default null
+ */
+ "fnGetData": null,
+
+ /**
+ * Custom display function that will be called for the display of each cell
+ * in this column.
+ * @type function
+ * @param {object} o Object with the following parameters:
+ * @param {int} o.iDataRow The row in aoData
+ * @param {int} o.iDataColumn The column in question
+ * @param {array o.aData The data for the row in question
+ * @param {object} o.oSettings The settings object for this DataTables instance
+ * @returns {string} The string you which to use in the display
+ * @default null
+ */
+ "fnRender": null,
+
+ /**
+ * Function to set data for a cell in the column. You should never
+ * set the data directly to _aData internally in DataTables - always use
+ * this method. It allows mDataProp to function as required. This function
+ * is automatically assigned by the column initialisation method
+ * @type function
+ * @param {array|object} oData The data array/object for the array
+ * (i.e. aoData[]._aData)
+ * @param {*} sValue Value to set
+ * @default null
+ */
+ "fnSetData": null,
+
+ /**
+ * Property to read the value for the cells in the column from the data
+ * source array / object. If null, then the default content is used, if a
+ * function is given then the return from the function is used.
+ * @type function|int|string|null
+ * @default null
+ */
+ "mDataProp": null,
+
+ /**
+ * Unique header TH/TD element for this column - this is what the sorting
+ * listener is attached to (if sorting is enabled.)
+ * @type node
+ * @default null
+ */
+ "nTh": null,
+
+ /**
+ * Unique footer TH/TD element for this column (if there is one). Not used
+ * in DataTables as such, but can be used for plug-ins to reference the
+ * footer for each column.
+ * @type node
+ * @default null
+ */
+ "nTf": null,
+
+ /**
+ * The class to apply to all TD elements in the table's TBODY for the column
+ * @type string
+ * @default null
+ */
+ "sClass": null,
+
+ /**
+ * When DataTables calculates the column widths to assign to each column,
+ * it finds the longest string in each column and then constructs a
+ * temporary table and reads the widths from that. The problem with this
+ * is that "mmm" is much wider then "iiii", but the latter is a longer
+ * string - thus the calculation can go wrong (doing it properly and putting
+ * it into an DOM object and measuring that is horribly(!) slow). Thus as
+ * a "work around" we provide this option. It will append its value to the
+ * text that is found to be the longest string for the column - i.e. padding.
+ * @type string
+ */
+ "sContentPadding": null,
+
+ /**
+ * Allows a default value to be given for a column's data, and will be used
+ * whenever a null data source is encountered (this can be because mDataProp
+ * is set to null, or because the data source itself is null).
+ * @type string
+ * @default null
+ */
+ "sDefaultContent": null,
+
+ /**
+ * Name for the column, allowing reference to the column by name as well as
+ * by index (needs a lookup to work by name).
+ * @type string
+ */
+ "sName": null,
+
+ /**
+ * Custom sorting data type - defines which of the available plug-ins in
+ * afnSortData the custom sorting will use - if any is defined.
+ * @type string
+ * @default std
+ */
+ "sSortDataType": 'std',
+
+ /**
+ * Class to be applied to the header element when sorting on this column
+ * @type string
+ * @default null
+ */
+ "sSortingClass": null,
+
+ /**
+ * Class to be applied to the header element when sorting on this column -
+ * when jQuery UI theming is used.
+ * @type string
+ * @default null
+ */
+ "sSortingClassJUI": null,
+
+ /**
+ * Title of the column - what is seen in the TH element (nTh).
+ * @type string
+ */
+ "sTitle": null,
+
+ /**
+ * Column sorting and filtering type
+ * @type string
+ * @default null
+ */
+ "sType": null,
+
+ /**
+ * Width of the column
+ * @type string
+ * @default null
+ */
+ "sWidth": null,
+
+ /**
+ * Width of the column when it was first "encountered"
+ * @type string
+ * @default null
+ */
+ "sWidthOrig": null
+ };
+
+
+
+ /**
+ * Initialisation options that can be given to DataTables at initialisation
+ * time.
+ * @namespace
+ */
+ DataTable.defaults = {
+ /**
+ * An array of data to use for the table, passed in at initialisation which
+ * will be used in preference to any data which is already in the DOM. This is
+ * particularly useful for constructing tables purely in Javascript, for
+ * example with a custom Ajax call.
+ * @type array
+ * @default null
+ * @dtopt Option
+ *
+ * @example
+ * // Using a 2D array data source
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "aaData": [
+ * ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],
+ * ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],
+ * ],
+ * "aoColumns": [
+ * { "sTitle": "Engine" },
+ * { "sTitle": "Browser" },
+ * { "sTitle": "Platform" },
+ * { "sTitle": "Version" },
+ * { "sTitle": "Grade" }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using an array of objects as a data source (mDataProp)
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "aaData": [
+ * {
+ * "engine": "Trident",
+ * "browser": "Internet Explorer 4.0",
+ * "platform": "Win 95+",
+ * "version": 4,
+ * "grade": "X"
+ * },
+ * {
+ * "engine": "Trident",
+ * "browser": "Internet Explorer 5.0",
+ * "platform": "Win 95+",
+ * "version": 5,
+ * "grade": "C"
+ * }
+ * ],
+ * "aoColumns": [
+ * { "sTitle": "Engine", "mDataProp": "engine" },
+ * { "sTitle": "Browser", "mDataProp": "browser" },
+ * { "sTitle": "Platform", "mDataProp": "platform" },
+ * { "sTitle": "Version", "mDataProp": "version" },
+ * { "sTitle": "Grade", "mDataProp": "grade" }
+ * ]
+ * } );
+ * } );
+ */
+ "aaData": null,
+
+
+ /**
+ * If sorting is enabled, then DataTables will perform a first pass sort on
+ * initialisation. You can define which column(s) the sort is performed upon,
+ * and the sorting direction, with this variable. The aaSorting array should
+ * contain an array for each column to be sorted initially containing the
+ * column's index and a direction string ('asc' or 'desc').
+ * @type array
+ * @default [[0,'asc']]
+ * @dtopt Option
+ *
+ * @example
+ * // Sort by 3rd column first, and then 4th column
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "aaSorting": [[2,'asc'], [3,'desc']]
+ * } );
+ * } );
+ *
+ * // No initial sorting
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "aaSorting": []
+ * } );
+ * } );
+ */
+ "aaSorting": [[0,'asc']],
+
+
+ /**
+ * This parameter is basically identical to the aaSorting parameter, but
+ * cannot be overridden by user interaction with the table. What this means
+ * is that you could have a column (visible or hidden) which the sorting will
+ * always be forced on first - any sorting after that (from the user) will
+ * then be performed as required. This can be useful for grouping rows
+ * together.
+ * @type array
+ * @default null
+ * @dtopt Option
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "aaSortingFixed": [[0,'asc']]
+ * } );
+ * } )
+ */
+ "aaSortingFixed": null,
+
+
+ /**
+ * This parameter allows you to readily specify the entries in the length drop
+ * down menu that DataTables shows when pagination is enabled. It can be
+ * either a 1D array of options which will be used for both the displayed
+ * option and the value, or a 2D array which will use the array in the first
+ * position as the value, and the array in the second position as the
+ * displayed options (useful for language strings such as 'All').
+ * @type array
+ * @default [ 10, 25, 50, 100 ]
+ * @dtopt Option
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
+ * } );
+ * } );
+ *
+ * @example
+ * // Setting the default display length as well as length menu
+ * // This is likely to be wanted if you remove the '10' option which
+ * // is the iDisplayLength default.
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "iDisplayLength": 25,
+ * "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]]
+ * } );
+ * } );
+ */
+ "aLengthMenu": [ 10, 25, 50, 100 ],
+
+
+ /**
+ * The aoColumns option in the initialisation parameter allows you to define
+ * details about the way individual columns behave. For a full list of
+ * column options that can be set, please see
+ * {@link DataTable.defaults.columns}. Note that if you use aoColumns to
+ * define your columns, you must have an entry in the array for every single
+ * column that you have in your table (these can be null if you don't which
+ * to specify any options).
+ * @member
+ */
+ "aoColumns": null,
+
+ /**
+ * Very similar to aoColumns, aoColumnDefs allows you to target a specific
+ * column, multiple columns, or all columns, using the aTargets property of
+ * each object in the array. This allows great flexibility when creating
+ * tables, as the aoColumnDefs arrays can be of any length, targeting the
+ * columns you specifically want. aoColumnDefs may use any of the column
+ * options available: {@link DataTable.defaults.columns}, but it _must_
+ * have aTargets defined in each object in the array. Values in the aTargets
+ * array may be:
+ *
+ *
a string - class name will be matched on the TH for the column
+ *
0 or a positive integer - column index counting from the left
+ *
a negative integer - column index counting from the right
+ *
the string "_all" - all columns (i.e. assign a default)
+ *
+ * @member
+ */
+ "aoColumnDefs": null,
+
+
+ /**
+ * Basically the same as oSearch, this parameter defines the individual column
+ * filtering state at initialisation time. The array must be of the same size
+ * as the number of columns, and each element be an object with the parameters
+ * "sSearch" and "bEscapeRegex" (the latter is optional). 'null' is also
+ * accepted and the default will be used.
+ * @type array
+ * @default []
+ * @dtopt Option
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "aoSearchCols": [
+ * null,
+ * { "sSearch": "My filter" },
+ * null,
+ * { "sSearch": "^[0-9]", "bEscapeRegex": false }
+ * ]
+ * } );
+ * } )
+ */
+ "aoSearchCols": [],
+
+
+ /**
+ * An array of CSS classes that should be applied to displayed rows. This
+ * array may be of any length, and DataTables will apply each class
+ * sequentially, looping when required.
+ * @type array
+ * @default null Will take the values determinted by the oClasses.sStripe*
+ * options
+ * @dtopt Option
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "asStripeClasses": [ 'strip1', 'strip2', 'strip3' ]
+ * } );
+ * } )
+ */
+ "asStripeClasses": null,
+
+
+ /**
+ * Enable or disable automatic column width calculation. This can be disabled
+ * as an optimisation (it takes some time to calculate the widths) if the
+ * tables widths are passed in using aoColumns.
+ * @type boolean
+ * @default true
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "bAutoWidth": false
+ * } );
+ * } );
+ */
+ "bAutoWidth": true,
+
+
+ /**
+ * Deferred rendering can provide DataTables with a huge speed boost when you
+ * are using an Ajax or JS data source for the table. This option, when set to
+ * true, will cause DataTables to defer the creation of the table elements for
+ * each row until they are needed for a draw - saving a significant amount of
+ * time.
+ * @type boolean
+ * @default false
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready(function() {
+ * var oTable = $('#example').dataTable( {
+ * "sAjaxSource": "sources/arrays.txt",
+ * "bDeferRender": true
+ * } );
+ * } );
+ */
+ "bDeferRender": false,
+
+
+ /**
+ * Replace a DataTable which matches the given selector and replace it with
+ * one which has the properties of the new initialisation object passed. If no
+ * table matches the selector, then the new DataTable will be constructed as
+ * per normal.
+ * @type boolean
+ * @default false
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "sScrollY": "200px",
+ * "bPaginate": false
+ * } );
+ *
+ * // Some time later....
+ * $('#example').dataTable( {
+ * "bFilter": false,
+ * "bDestroy": true
+ * } );
+ * } );
+ */
+ "bDestroy": false,
+
+
+ /**
+ * Enable or disable filtering of data. Filtering in DataTables is "smart" in
+ * that it allows the end user to input multiple words (space separated) and
+ * will match a row containing those words, even if not in the order that was
+ * specified (this allow matching across multiple columns). Note that if you
+ * wish to use filtering in DataTables this must remain 'true' - to remove the
+ * default filtering input box and retain filtering abilities, please use
+ * {@link DataTable.defaults.sDom}.
+ * @type boolean
+ * @default true
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "bFilter": false
+ * } );
+ * } );
+ */
+ "bFilter": true,
+
+
+ /**
+ * Enable or disable the table information display. This shows information
+ * about the data that is currently visible on the page, including information
+ * about filtered data if that action is being performed.
+ * @type boolean
+ * @default true
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "bInfo": false
+ * } );
+ * } );
+ */
+ "bInfo": true,
+
+
+ /**
+ * Enable jQuery UI ThemeRoller support (required as ThemeRoller requires some
+ * slightly different and additional mark-up from what DataTables has
+ * traditionally used).
+ * @type boolean
+ * @default false
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "bJQueryUI": true
+ * } );
+ * } );
+ */
+ "bJQueryUI": false,
+
+
+ /**
+ * Allows the end user to select the size of a formatted page from a select
+ * menu (sizes are 10, 25, 50 and 100). Requires pagination (bPaginate).
+ * @type boolean
+ * @default true
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "bLengthChange": false
+ * } );
+ * } );
+ */
+ "bLengthChange": true,
+
+
+ /**
+ * Enable or disable pagination.
+ * @type boolean
+ * @default true
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "bPaginate": false
+ * } );
+ * } );
+ */
+ "bPaginate": true,
+
+
+ /**
+ * Enable or disable the display of a 'processing' indicator when the table is
+ * being processed (e.g. a sort). This is particularly useful for tables with
+ * large amounts of data where it can take a noticeable amount of time to sort
+ * the entries.
+ * @type boolean
+ * @default false
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "bProcessing": true
+ * } );
+ * } );
+ */
+ "bProcessing": false,
+
+
+ /**
+ * Retrieve the DataTables object for the given selector. Note that if the
+ * table has already been initialised, this parameter will cause DataTables
+ * to simply return the object that has already been set up - it will not take
+ * account of any changes you might have made to the initialisation object
+ * passed to DataTables (setting this parameter to true is an acknowledgement
+ * that you understand this). bDestroy can be used to reinitialise a table if
+ * you need.
+ * @type boolean
+ * @default false
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready(function() {
+ * initTable();
+ * tableActions();
+ * } );
+ *
+ * function initTable ()
+ * {
+ * return $('#example').dataTable( {
+ * "sScrollY": "200px",
+ * "bPaginate": false,
+ * "bRetrieve": true
+ * } );
+ * }
+ *
+ * function tableActions ()
+ * {
+ * var oTable = initTable();
+ * // perform API operations with oTable
+ * }
+ */
+ "bRetrieve": false,
+
+
+ /**
+ * Indicate if DataTables should be allowed to set the padding / margin
+ * etc for the scrolling header elements or not. Typically you will want
+ * this.
+ * @type boolean
+ * @default true
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bScrollAutoCss": false,
+ * "sScrollY": "200px"
+ * } );
+ * } );
+ */
+ "bScrollAutoCss": true,
+
+
+ /**
+ * When vertical (y) scrolling is enabled, DataTables will force the height of
+ * the table's viewport to the given height at all times (useful for layout).
+ * However, this can look odd when filtering data down to a small data set,
+ * and the footer is left "floating" further down. This parameter (when
+ * enabled) will cause DataTables to collapse the table's viewport down when
+ * the result set will fit within the given Y height.
+ * @type boolean
+ * @default false
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "sScrollY": "200",
+ * "bScrollCollapse": true
+ * } );
+ * } );
+ */
+ "bScrollCollapse": false,
+
+
+ /**
+ * Enable infinite scrolling for DataTables (to be used in combination with
+ * sScrollY). Infinite scrolling means that DataTables will continually load
+ * data as a user scrolls through a table, which is very useful for large
+ * dataset. This cannot be used with pagination, which is automatically
+ * disabled. Note - the Scroller extra for DataTables is recommended in
+ * in preference to this option.
+ * @type boolean
+ * @default false
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bScrollInfinite": true,
+ * "bScrollCollapse": true,
+ * "sScrollY": "200px"
+ * } );
+ * } );
+ */
+ "bScrollInfinite": false,
+
+
+ /**
+ * Configure DataTables to use server-side processing. Note that the
+ * sAjaxSource parameter must also be given in order to give DataTables a
+ * source to obtain the required data for each draw.
+ * @type boolean
+ * @default false
+ * @dtopt Features
+ * @dtopt Server-side
+ *
+ * @example
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "bServerSide": true,
+ * "sAjaxSource": "xhr.php"
+ * } );
+ * } );
+ */
+ "bServerSide": false,
+
+
+ /**
+ * Enable or disable sorting of columns. Sorting of individual columns can be
+ * disabled by the "bSortable" option for each column.
+ * @type boolean
+ * @default true
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "bSort": false
+ * } );
+ * } );
+ */
+ "bSort": true,
+
+
+ /**
+ * Allows control over whether DataTables should use the top (true) unique
+ * cell that is found for a single column, or the bottom (false - default).
+ * This is useful when using complex headers.
+ * @type boolean
+ * @default false
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bSortCellsTop": true
+ * } );
+ * } );
+ */
+ "bSortCellsTop": false,
+
+
+ /**
+ * Enable or disable the addition of the classes 'sorting_1', 'sorting_2' and
+ * 'sorting_3' to the columns which are currently being sorted on. This is
+ * presented as a feature switch as it can increase processing time (while
+ * classes are removed and added) so for large data sets you might want to
+ * turn this off.
+ * @type boolean
+ * @default true
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "bSortClasses": false
+ * } );
+ * } );
+ */
+ "bSortClasses": true,
+
+
+ /**
+ * Enable or disable state saving. When enabled a cookie will be used to save
+ * table display information such as pagination information, display length,
+ * filtering and sorting. As such when the end user reloads the page the
+ * display display will match what thy had previously set up.
+ * @type boolean
+ * @default false
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "bStateSave": true
+ * } );
+ * } );
+ */
+ "bStateSave": false,
+
+
+ /**
+ * Customise the cookie and / or the parameters being stored when using
+ * DataTables with state saving enabled. This function is called whenever
+ * the cookie is modified, and it expects a fully formed cookie string to be
+ * returned. Note that the data object passed in is a Javascript object which
+ * must be converted to a string (JSON.stringify for example).
+ * @type function
+ * @param {string} sName Name of the cookie defined by DataTables
+ * @param {object} oData Data to be stored in the cookie
+ * @param {string} sExpires Cookie expires string
+ * @param {string} sPath Path of the cookie to set
+ * @returns {string} Cookie formatted string (which should be encoded by
+ * using encodeURIComponent())
+ * @dtopt Callbacks
+ *
+ * @example
+ * $(document).ready( function () {
+ * $('#example').dataTable( {
+ * "fnCookieCallback": function (sName, oData, sExpires, sPath) {
+ * // Customise oData or sName or whatever else here
+ * return sName + "="+JSON.stringify(oData)+"; expires=" + sExpires +"; path=" + sPath;
+ * }
+ * } );
+ * } );
+ */
+ "fnCookieCallback": null,
+
+
+ /**
+ * This function is called when a TR element is created (and all TD child
+ * elements have been inserted), or registered if using a DOM source, allowing
+ * manipulation of the TR element (adding classes etc).
+ * @type function
+ * @param {node} nRow "TR" element for the current row
+ * @param {array} aData Raw data array for this row
+ * @param {int} iDataIndex The index of this row in aoData
+ * @dtopt Callbacks
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "fnCreatedRow": function( nRow, aData, iDataIndex ) {
+ * // Bold the grade for all 'A' grade browsers
+ * if ( aData[4] == "A" )
+ * {
+ * $('td:eq(4)', nRow).html( 'A' );
+ * }
+ * }
+ * } );
+ * } );
+ */
+ "fnCreatedRow": null,
+
+
+ /**
+ * This function is called on every 'draw' event, and allows you to
+ * dynamically modify any aspect you want about the created DOM.
+ * @type function
+ * @param {object} oSettings DataTables settings object
+ * @dtopt Callbacks
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "fnDrawCallback": function( oSettings ) {
+ * alert( 'DataTables has redrawn the table' );
+ * }
+ * } );
+ * } );
+ */
+ "fnDrawCallback": null,
+
+
+ /**
+ * Identical to fnHeaderCallback() but for the table footer this function
+ * allows you to modify the table footer on every 'draw' even.
+ * @type function
+ * @param {node} nFoot "TR" element for the footer
+ * @param {array} aData Full table data (as derived from the original HTML)
+ * @param {int} iStart Index for the current display starting point in the
+ * display array
+ * @param {int} iEnd Index for the current display ending point in the
+ * display array
+ * @param {array int} aiDisplay Index array to translate the visual position
+ * to the full data array
+ * @dtopt Callbacks
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "fnFooterCallback": function( nFoot, aData, iStart, iEnd, aiDisplay ) {
+ * nFoot.getElementsByTagName('th')[0].innerHTML = "Starting index is "+iStart;
+ * }
+ * } );
+ * } )
+ */
+ "fnFooterCallback": null,
+
+
+ /**
+ * When rendering large numbers in the information element for the table
+ * (i.e. "Showing 1 to 10 of 57 entries") DataTables will render large numbers
+ * to have a comma separator for the 'thousands' units (e.g. 1 million is
+ * rendered as "1,000,000") to help readability for the end user. This
+ * function will override the default method DataTables uses.
+ * @type function
+ * @member
+ * @param {int} iIn number to be formatted
+ * @returns {string} formatted string for DataTables to show the number
+ * @dtopt Callbacks
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "fnFormatNumber": function ( iIn ) {
+ * if ( iIn < 1000 ) {
+ * return iIn;
+ * } else {
+ * var
+ * s=(iIn+""),
+ * a=s.split(""), out="",
+ * iLen=s.length;
+ *
+ * for ( var i=0 ; i<iLen ; i++ ) {
+ * if ( i%3 === 0 && i !== 0 ) {
+ * out = "'"+out;
+ * }
+ * out = a[iLen-i-1]+out;
+ * }
+ * }
+ * return out;
+ * };
+ * } );
+ * } );
+ */
+ "fnFormatNumber": function ( iIn ) {
+ if ( iIn < 1000 )
+ {
+ // A small optimisation for what is likely to be the majority of use cases
+ return iIn;
+ }
+
+ var s=(iIn+""), a=s.split(""), out="", iLen=s.length;
+
+ for ( var i=0 ; iA' );
+ * }
+ * }
+ * } );
+ * } );
+ */
+ "fnRowCallback": null,
+
+
+ /**
+ * This parameter allows you to override the default function which obtains
+ * the data from the server ($.getJSON) so something more suitable for your
+ * application. For example you could use POST data, or pull information from
+ * a Gears or AIR database.
+ * @type function
+ * @member
+ * @param {string} sSource HTTP source to obtain the data from (sAjaxSource)
+ * @param {array} aoData A key/value pair object containing the data to send
+ * to the server
+ * @param {function} fnCallback to be called on completion of the data get
+ * process that will draw the data on the page.
+ * @param {object} oSettings DataTables settings object
+ * @dtopt Callbacks
+ * @dtopt Server-side
+ *
+ * @example
+ * // POST data to server
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bProcessing": true,
+ * "bServerSide": true,
+ * "sAjaxSource": "xhr.php",
+ * "fnServerData": function ( sSource, aoData, fnCallback ) {
+ * $.ajax( {
+ * "dataType": 'json',
+ * "type": "POST",
+ * "url": sSource,
+ * "data": aoData,
+ * "success": fnCallback
+ * } );
+ * }
+ * } );
+ * } );
+ */
+ "fnServerData": function ( sUrl, aoData, fnCallback, oSettings ) {
+ oSettings.jqXHR = $.ajax( {
+ "url": sUrl,
+ "data": aoData,
+ "success": function (json) {
+ $(oSettings.oInstance).trigger('xhr', oSettings);
+ fnCallback( json );
+ },
+ "dataType": "json",
+ "cache": false,
+ "type": oSettings.sServerMethod,
+ "error": function (xhr, error, thrown) {
+ if ( error == "parsererror" ) {
+ oSettings.oApi._fnLog( oSettings, 0, "DataTables warning: JSON data from "+
+ "server could not be parsed. This is caused by a JSON formatting error." );
+ }
+ }
+ } );
+ },
+
+
+ /**
+ * It is often useful to send extra data to the server when making an Ajax
+ * request - for example custom filtering information, and this callback
+ * function makes it trivial to send extra information to the server. The
+ * passed in parameter is the data set that has been constructed by
+ * DataTables, and you can add to this or modify it as you require.
+ * @type function
+ * @param {array} aoData Data array (array of objects which are name/value
+ * pairs) that has been constructed by DataTables and will be sent to the
+ * server. In the case of Ajax sourced data with server-side processing
+ * this will be an empty array, for server-side processing there will be a
+ * significant number of parameters!
+ * @returns {undefined} Ensure that you modify the aoData array passed in,
+ * as this is passed by reference.
+ * @dtopt Callbacks
+ * @dtopt Server-side
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bProcessing": true,
+ * "bServerSide": true,
+ * "sAjaxSource": "scripts/server_processing.php",
+ * "fnServerParams": function ( aoData ) {
+ * aoData.push( { "name": "more_data", "value": "my_value" } );
+ * }
+ * } );
+ * } );
+ */
+ "fnServerParams": null,
+
+
+ /**
+ * Load the table state. With this function you can define from where, and how, the
+ * state of a table is loaded. By default DataTables will load from its state saving
+ * cookie, but you might wish to use local storage (HTML5) or a server-side database.
+ * @type function
+ * @member
+ * @param {object} oSettings DataTables settings object
+ * @return {object} The DataTables state object to be loaded
+ * @dtopt Callbacks
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bStateSave": true,
+ * "fnStateLoad": function (oSettings, oData) {
+ * var o;
+ *
+ * // Send an Ajax request to the server to get the data. Note that
+ * // this is a synchronous request.
+ * $.ajax( {
+ * "url": "/state_load",
+ * "async": false,
+ * "dataType": "json",
+ * "success": function (json) {
+ * o = json;
+ * }
+ * } );
+ *
+ * return o;
+ * }
+ * } );
+ * } );
+ */
+ "fnStateLoad": function ( oSettings ) {
+ var sData = this.oApi._fnReadCookie( oSettings.sCookiePrefix+oSettings.sInstance );
+ var oData;
+
+ try {
+ oData = (typeof $.parseJSON === 'function') ?
+ $.parseJSON(sData) : eval( '('+sData+')' );
+ } catch (e) {
+ oData = null;
+ }
+
+ return oData;
+ },
+
+
+ /**
+ * Callback which allows modification of the saved state prior to loading that state.
+ * This callback is called when the table is loading state from the stored data, but
+ * prior to the settings object being modified by the saved state. Note that for
+ * plug-in authors, you should use the 'stateLoadParams' event to load parameters for
+ * a plug-in.
+ * @type function
+ * @param {object} oSettings DataTables settings object
+ * @param {object} oData The state object that is to be loaded
+ * @dtopt Callbacks
+ *
+ * @example
+ * // Remove a saved filter, so filtering is never loaded
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bStateSave": true,
+ * "fnStateLoadParams": function (oSettings, oData) {
+ * oData.oSearch.sSearch = "";
+ * } );
+ * } );
+ *
+ * @example
+ * // Disallow state loading by returning false
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bStateSave": true,
+ * "fnStateLoadParams": function (oSettings, oData) {
+ * return false;
+ * } );
+ * } );
+ */
+ "fnStateLoadParams": null,
+
+
+ /**
+ * Callback that is called when the state has been loaded from the state saving method
+ * and the DataTables settings object has been modified as a result of the loaded state.
+ * @type function
+ * @param {object} oSettings DataTables settings object
+ * @param {object} oData The state object that was loaded
+ * @dtopt Callbacks
+ *
+ * @example
+ * // Show an alert with the filtering value that was saved
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bStateSave": true,
+ * "fnStateLoaded": function (oSettings, oData) {
+ * alert( 'Saved filter was: '+oData.oSearch.sSearch );
+ * } );
+ * } );
+ */
+ "fnStateLoaded": null,
+
+
+ /**
+ * Save the table state. This function allows you to define where and how the state
+ * information for the table is stored - by default it will use a cookie, but you
+ * might want to use local storage (HTML5) or a server-side database.
+ * @type function
+ * @member
+ * @param {object} oSettings DataTables settings object
+ * @param {object} oData The state object to be saved
+ * @dtopt Callbacks
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bStateSave": true,
+ * "fnStateSave": function (oSettings, oData) {
+ * // Send an Ajax request to the server with the state object
+ * $.ajax( {
+ * "url": "/state_save",
+ * "data": oData,
+ * "dataType": "json",
+ * "method": "POST"
+ * "success": function () {}
+ * } );
+ * }
+ * } );
+ * } );
+ */
+ "fnStateSave": function ( oSettings, oData ) {
+ this.oApi._fnCreateCookie(
+ oSettings.sCookiePrefix+oSettings.sInstance,
+ this.oApi._fnJsonString(oData),
+ oSettings.iCookieDuration,
+ oSettings.sCookiePrefix,
+ oSettings.fnCookieCallback
+ );
+ },
+
+
+ /**
+ * Callback which allows modification of the state to be saved. Called when the table
+ * has changed state a new state save is required. This method allows modification of
+ * the state saving object prior to actually doing the save, including addition or
+ * other state properties or modification. Note that for plug-in authors, you should
+ * use the 'stateSaveParams' event to save parameters for a plug-in.
+ * @type function
+ * @param {object} oSettings DataTables settings object
+ * @param {object} oData The state object to be saved
+ * @dtopt Callbacks
+ *
+ * @example
+ * // Remove a saved filter, so filtering is never saved
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bStateSave": true,
+ * "fnStateSaveParams": function (oSettings, oData) {
+ * oData.oSearch.sSearch = "";
+ * } );
+ * } );
+ */
+ "fnStateSaveParams": null,
+
+
+ /**
+ * Duration of the cookie which is used for storing session information. This
+ * value is given in seconds.
+ * @type int
+ * @default 7200 (2 hours)
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "iCookieDuration": 60*60*24 // 1 day
+ * } );
+ * } )
+ */
+ "iCookieDuration": 7200,
+
+
+ /**
+ * When enabled DataTables will not make a request to the server for the first
+ * page draw - rather it will use the data already on the page (no sorting etc
+ * will be applied to it), thus saving on an XHR at load time. iDeferLoading
+ * is used to indicate that deferred loading is required, but it is also used
+ * to tell DataTables how many records there are in the full table (allowing
+ * the information element and pagination to be displayed correctly). In the case
+ * where a filtering is applied to the table on initial load, this can be
+ * indicated by giving the parameter as an array, where the first element is
+ * the number of records available after filtering and the second element is the
+ * number of records without filtering (allowing the table information element
+ * to be shown correctly).
+ * @type int | array
+ * @default null
+ * @dtopt Options
+ *
+ * @example
+ * // 57 records available in the table, no filtering applied
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bServerSide": true,
+ * "sAjaxSource": "scripts/server_processing.php",
+ * "iDeferLoading": 57
+ * } );
+ * } );
+ *
+ * @example
+ * // 57 records after filtering, 100 without filtering (an initial filter applied)
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bServerSide": true,
+ * "sAjaxSource": "scripts/server_processing.php",
+ * "iDeferLoading": [ 57, 100 ],
+ * "oSearch": {
+ * "sSearch": "my_filter"
+ * }
+ * } );
+ * } );
+ */
+ "iDeferLoading": null,
+
+
+ /**
+ * Number of rows to display on a single page when using pagination. If
+ * feature enabled (bLengthChange) then the end user will be able to override
+ * this to a custom setting using a pop-up menu.
+ * @type int
+ * @default 10
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "iDisplayLength": 50
+ * } );
+ * } )
+ */
+ "iDisplayLength": 10,
+
+
+ /**
+ * Define the starting point for data display when using DataTables with
+ * pagination. Note that this parameter is the number of records, rather than
+ * the page number, so if you have 10 records per page and want to start on
+ * the third page, it should be "20".
+ * @type int
+ * @default 0
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "iDisplayStart": 20
+ * } );
+ * } )
+ */
+ "iDisplayStart": 0,
+
+
+ /**
+ * The scroll gap is the amount of scrolling that is left to go before
+ * DataTables will load the next 'page' of data automatically. You typically
+ * want a gap which is big enough that the scrolling will be smooth for the
+ * user, while not so large that it will load more data than need.
+ * @type int
+ * @default 100
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bScrollInfinite": true,
+ * "bScrollCollapse": true,
+ * "sScrollY": "200px",
+ * "iScrollLoadGap": 50
+ * } );
+ * } );
+ */
+ "iScrollLoadGap": 100,
+
+
+ /**
+ * By default DataTables allows keyboard navigation of the table (sorting, paging,
+ * and filtering) by adding a tabindex attribute to the required elements. This
+ * allows you to tab through the controls and press the enter key to activate them.
+ * The tabindex is default 0, meaning that the tab follows the flow of the document.
+ * You can overrule this using this parameter if you wish. Use a value of -1 to
+ * disable built-in keyboard navigation.
+ * @type int
+ * @default 0
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "iTabIndex": 1
+ * } );
+ * } );
+ */
+ "iTabIndex": 0,
+
+
+ /**
+ * All strings that DataTables uses in the user interface that it creates
+ * are defined in this object, allowing you to modified them individually or
+ * completely replace them all as required.
+ * @namespace
+ */
+ "oLanguage": {
+ /**
+ * Strings that are used for WAI-ARIA labels and controls only (these are not
+ * actually visible on the page, but will be read by screenreaders, and thus
+ * must be internationalised as well).
+ * @namespace
+ */
+ "oAria": {
+ /**
+ * ARIA label that is added to the table headers when the column may be
+ * sorted ascending by activing the column (click or return when focused).
+ * Note that the column header is prefixed to this string.
+ * @type string
+ * @default : activate to sort column ascending
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "oAria": {
+ * "sSortAscending": " - click/return to sort ascending"
+ * }
+ * }
+ * } );
+ * } );
+ */
+ "sSortAscending": ": activate to sort column ascending",
+
+ /**
+ * ARIA label that is added to the table headers when the column may be
+ * sorted descending by activing the column (click or return when focused).
+ * Note that the column header is prefixed to this string.
+ * @type string
+ * @default : activate to sort column ascending
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "oAria": {
+ * "sSortDescending": " - click/return to sort descending"
+ * }
+ * }
+ * } );
+ * } );
+ */
+ "sSortDescending": ": activate to sort column descending"
+ },
+
+ /**
+ * Pagination string used by DataTables for the two built-in pagination
+ * control types ("two_button" and "full_numbers")
+ * @namespace
+ */
+ "oPaginate": {
+ /**
+ * Text to use when using the 'full_numbers' type of pagination for the
+ * button to take the user to the first page.
+ * @type string
+ * @default First
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "oPaginate": {
+ * "sFirst": "First page"
+ * }
+ * }
+ * } );
+ * } );
+ */
+ "sFirst": "First",
+
+
+ /**
+ * Text to use when using the 'full_numbers' type of pagination for the
+ * button to take the user to the last page.
+ * @type string
+ * @default Last
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "oPaginate": {
+ * "sLast": "Last page"
+ * }
+ * }
+ * } );
+ * } );
+ */
+ "sLast": "Last",
+
+
+ /**
+ * Text to use when using the 'full_numbers' type of pagination for the
+ * button to take the user to the next page.
+ * @type string
+ * @default Next
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "oPaginate": {
+ * "sNext": "Next page"
+ * }
+ * }
+ * } );
+ * } );
+ */
+ "sNext": "Next",
+
+
+ /**
+ * Text to use when using the 'full_numbers' type of pagination for the
+ * button to take the user to the previous page.
+ * @type string
+ * @default Previous
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "oPaginate": {
+ * "sPrevious": "Previous page"
+ * }
+ * }
+ * } );
+ * } );
+ */
+ "sPrevious": "Previous"
+ },
+
+ /**
+ * This string is shown in preference to sZeroRecords when the table is
+ * empty of data (regardless of filtering). Note that this is an optional
+ * parameter - if it is not given, the value of sZeroRecords will be used
+ * instead (either the default or given value).
+ * @type string
+ * @default No data available in table
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sEmptyTable": "No data available in table"
+ * }
+ * } );
+ * } );
+ */
+ "sEmptyTable": "No data available in table",
+
+
+ /**
+ * This string gives information to the end user about the information that
+ * is current on display on the page. The _START_, _END_ and _TOTAL_
+ * variables are all dynamically replaced as the table display updates, and
+ * can be freely moved or removed as the language requirements change.
+ * @type string
+ * @default Showing _START_ to _END_ of _TOTAL_ entries
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sInfo": "Got a total of _TOTAL_ entries to show (_START_ to _END_)"
+ * }
+ * } );
+ * } );
+ */
+ "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
+
+
+ /**
+ * Display information string for when the table is empty. Typically the
+ * format of this string should match sInfo.
+ * @type string
+ * @default Showing 0 to 0 of 0 entries
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sInfoEmpty": "No entries to show"
+ * }
+ * } );
+ * } );
+ */
+ "sInfoEmpty": "Showing 0 to 0 of 0 entries",
+
+
+ /**
+ * When a user filters the information in a table, this string is appended
+ * to the information (sInfo) to give an idea of how strong the filtering
+ * is. The variable _MAX_ is dynamically updated.
+ * @type string
+ * @default (filtered from _MAX_ total entries)
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sInfoFiltered": " - filtering from _MAX_ records"
+ * }
+ * } );
+ * } );
+ */
+ "sInfoFiltered": "(filtered from _MAX_ total entries)",
+
+
+ /**
+ * If can be useful to append extra information to the info string at times,
+ * and this variable does exactly that. This information will be appended to
+ * the sInfo (sInfoEmpty and sInfoFiltered in whatever combination they are
+ * being used) at all times.
+ * @type string
+ * @default Empty string
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sInfoPostFix": "All records shown are derived from real information."
+ * }
+ * } );
+ * } );
+ */
+ "sInfoPostFix": "",
+
+
+ /**
+ * DataTables has a build in number formatter (fnFormatNumber) which is used
+ * to format large numbers that are used in the table information. By
+ * default a comma is used, but this can be trivially changed to any
+ * character you wish with this parameter.
+ * @type string
+ * @default ,
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sInfoThousands": "'"
+ * }
+ * } );
+ * } );
+ */
+ "sInfoThousands": ",",
+
+
+ /**
+ * Detail the action that will be taken when the drop down menu for the
+ * pagination length option is changed. The '_MENU_' variable is replaced
+ * with a default select list of 10, 25, 50 and 100, and can be replaced
+ * with a custom select box if required.
+ * @type string
+ * @default Show _MENU_ entries
+ * @dtopt Language
+ *
+ * @example
+ * // Language change only
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sLengthMenu": "Display _MENU_ records"
+ * }
+ * } );
+ * } );
+ *
+ * @example
+ * // Language and options change
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sLengthMenu": 'Display records'
+ * }
+ * } );
+ * } );
+ */
+ "sLengthMenu": "
SHOW PER PAGE
_MENU_",
+
+
+ /**
+ * When using Ajax sourced data and during the first draw when DataTables is
+ * gathering the data, this message is shown in an empty row in the table to
+ * indicate to the end user the the data is being loaded. Note that this
+ * parameter is not used when loading data by server-side processing, just
+ * Ajax sourced data with client-side processing.
+ * @type string
+ * @default Loading...
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sLoadingRecords": "Please wait - loading..."
+ * }
+ * } );
+ * } );
+ */
+ "sLoadingRecords": "Loading...",
+
+
+ /**
+ * Text which is displayed when the table is processing a user action
+ * (usually a sort command or similar).
+ * @type string
+ * @default Processing...
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sProcessing": "DataTables is currently busy"
+ * }
+ * } );
+ * } );
+ */
+ "sProcessing": "Processing...",
+
+
+ /**
+ * Details the actions that will be taken when the user types into the
+ * filtering input text box. The variable "_INPUT_", if used in the string,
+ * is replaced with the HTML text box for the filtering input allowing
+ * control over where it appears in the string. If "_INPUT_" is not given
+ * then the input box is appended to the string automatically.
+ * @type string
+ * @default Search:
+ * @dtopt Language
+ *
+ * @example
+ * // Input text box will be appended at the end automatically
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sSearch": "Filter records:"
+ * }
+ * } );
+ * } );
+ *
+ * @example
+ * // Specify where the filter should appear
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sSearch": "Apply filter _INPUT_ to table"
+ * }
+ * } );
+ * } );
+ */
+ "sSearch": "
Search:
",
+
+
+ /**
+ * All of the language information can be stored in a file on the
+ * server-side, which DataTables will look up if this parameter is passed.
+ * It must store the URL of the language file, which is in a JSON format,
+ * and the object has the same properties as the oLanguage object in the
+ * initialiser object (i.e. the above parameters). Please refer to one of
+ * the example language files to see how this works in action.
+ * @type string
+ * @default Empty string - i.e. disabled
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sUrl": "http://www.sprymedia.co.uk/dataTables/lang.txt"
+ * }
+ * } );
+ * } );
+ */
+ "sUrl": "",
+
+
+ /**
+ * Text shown inside the table records when the is no information to be
+ * displayed after filtering. sEmptyTable is shown when there is simply no
+ * information in the table at all (regardless of filtering).
+ * @type string
+ * @default No matching records found
+ * @dtopt Language
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "oLanguage": {
+ * "sZeroRecords": "No records to display"
+ * }
+ * } );
+ * } );
+ */
+ "sZeroRecords": "No matching records found"
+ },
+
+
+ /**
+ * This parameter allows you to have define the global filtering state at
+ * initialisation time. As an object the "sSearch" parameter must be
+ * defined, but all other parameters are optional. When "bRegex" is true,
+ * the search string will be treated as a regular expression, when false
+ * (default) it will be treated as a straight string. When "bSmart"
+ * DataTables will use it's smart filtering methods (to word match at
+ * any point in the data), when false this will not be done.
+ * @namespace
+ * @extends DataTable.models.oSearch
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "oSearch": {"sSearch": "Initial search"}
+ * } );
+ * } )
+ */
+ "oSearch": $.extend( {}, DataTable.models.oSearch ),
+
+
+ /**
+ * By default DataTables will look for the property 'aaData' when obtaining
+ * data from an Ajax source or for server-side processing - this parameter
+ * allows that property to be changed. You can use Javascript dotted object
+ * notation to get a data source for multiple levels of nesting.
+ * @type string
+ * @default aaData
+ * @dtopt Options
+ * @dtopt Server-side
+ *
+ * @example
+ * // Get data from { "data": [...] }
+ * $(document).ready(function() {
+ * var oTable = $('#example').dataTable( {
+ * "sAjaxSource": "sources/data.txt",
+ * "sAjaxDataProp": "data"
+ * } );
+ * } );
+ *
+ * @example
+ * // Get data from { "data": { "inner": [...] } }
+ * $(document).ready(function() {
+ * var oTable = $('#example').dataTable( {
+ * "sAjaxSource": "sources/data.txt",
+ * "sAjaxDataProp": "data.inner"
+ * } );
+ * } );
+ */
+ "sAjaxDataProp": "aaData",
+
+
+ /**
+ * You can instruct DataTables to load data from an external source using this
+ * parameter (use aData if you want to pass data in you already have). Simply
+ * provide a url a JSON object can be obtained from. This object must include
+ * the parameter 'aaData' which is the data source for the table.
+ * @type string
+ * @default null
+ * @dtopt Options
+ * @dtopt Server-side
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "sAjaxSource": "http://www.sprymedia.co.uk/dataTables/json.php"
+ * } );
+ * } )
+ */
+ "sAjaxSource": null,
+
+
+ /**
+ * This parameter can be used to override the default prefix that DataTables
+ * assigns to a cookie when state saving is enabled.
+ * @type string
+ * @default SpryMedia_DataTables_
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "sCookiePrefix": "my_datatable_",
+ * } );
+ * } );
+ */
+ "sCookiePrefix": "SpryMedia_DataTables_",
+
+
+ /**
+ * This initialisation variable allows you to specify exactly where in the
+ * DOM you want DataTables to inject the various controls it adds to the page
+ * (for example you might want the pagination controls at the top of the
+ * table). DIV elements (with or without a custom class) can also be added to
+ * aid styling. The follow syntax is used:
+ *
+ *
+ * @type string
+ * @default lfrtip (when bJQueryUI is false)or
+ * <"H"lfr>t<"F"ip> (when bJQueryUI is true)
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "sDom": '<"top"i>rt<"bottom"flp><"clear"&lgt;'
+ * } );
+ * } );
+ */
+ "sDom": "lfrtip",
+
+
+ /**
+ * DataTables features two different built-in pagination interaction methods
+ * ('two_button' or 'full_numbers') which present different page controls to
+ * the end user. Further methods can be added using the API (see below).
+ * @type string
+ * @default two_button
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready( function() {
+ * $('#example').dataTable( {
+ * "sPaginationType": "full_numbers"
+ * } );
+ * } )
+ */
+ "sPaginationType": "two_button",
+
+
+ /**
+ * Enable horizontal scrolling. When a table is too wide to fit into a certain
+ * layout, or you have a large number of columns in the table, you can enable
+ * x-scrolling to show the table in a viewport, which can be scrolled. This
+ * property can be any CSS unit, or a number (in which case it will be treated
+ * as a pixel measurement).
+ * @type string
+ * @default blank string - i.e. disabled
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "sScrollX": "100%",
+ * "bScrollCollapse": true
+ * } );
+ * } );
+ */
+ "sScrollX": "",
+
+
+ /**
+ * This property can be used to force a DataTable to use more width than it
+ * might otherwise do when x-scrolling is enabled. For example if you have a
+ * table which requires to be well spaced, this parameter is useful for
+ * "over-sizing" the table, and thus forcing scrolling. This property can by
+ * any CSS unit, or a number (in which case it will be treated as a pixel
+ * measurement).
+ * @type string
+ * @default blank string - i.e. disabled
+ * @dtopt Options
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "sScrollX": "100%",
+ * "sScrollXInner": "110%"
+ * } );
+ * } );
+ */
+ "sScrollXInner": "",
+
+
+ /**
+ * Enable vertical scrolling. Vertical scrolling will constrain the DataTable
+ * to the given height, and enable scrolling for any data which overflows the
+ * current viewport. This can be used as an alternative to paging to display
+ * a lot of data in a small area (although paging and scrolling can both be
+ * enabled at the same time). This property can be any CSS unit, or a number
+ * (in which case it will be treated as a pixel measurement).
+ * @type string
+ * @default blank string - i.e. disabled
+ * @dtopt Features
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "sScrollY": "200px",
+ * "bPaginate": false
+ * } );
+ * } );
+ */
+ "sScrollY": "",
+
+
+ /**
+ * Set the HTTP method that is used to make the Ajax call for server-side
+ * processing or Ajax sourced data.
+ * @type string
+ * @default GET
+ * @dtopt Options
+ * @dtopt Server-side
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "bServerSide": true,
+ * "sAjaxSource": "scripts/post.php",
+ * "sServerMethod": "POST"
+ * } );
+ * } );
+ */
+ "sServerMethod": "GET"
+ };
+
+
+
+ /**
+ * Column options that can be given to DataTables at initialisation time.
+ * @namespace
+ */
+ DataTable.defaults.columns = {
+ /**
+ * Allows a column's sorting to take multiple columns into account when
+ * doing a sort. For example first name / last name columns make sense to
+ * do a multi-column sort over the two columns.
+ * @type array
+ * @default null Takes the value of the column index automatically
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * { "aDataSort": [ 0, 1 ], "aTargets": [ 0 ] },
+ * { "aDataSort": [ 1, 0 ], "aTargets": [ 1 ] },
+ * { "aDataSort": [ 2, 3, 4 ], "aTargets": [ 2 ] }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * { "aDataSort": [ 0, 1 ] },
+ * { "aDataSort": [ 1, 0 ] },
+ * { "aDataSort": [ 2, 3, 4 ] },
+ * null,
+ * null
+ * ]
+ * } );
+ * } );
+ */
+ "aDataSort": null,
+
+
+ /**
+ * You can control the default sorting direction, and even alter the behaviour
+ * of the sort handler (i.e. only allow ascending sorting etc) using this
+ * parameter.
+ * @type array
+ * @default [ 'asc', 'desc' ]
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * { "asSorting": [ "asc" ], "aTargets": [ 1 ] },
+ * { "asSorting": [ "desc", "asc", "asc" ], "aTargets": [ 2 ] },
+ * { "asSorting": [ "desc" ], "aTargets": [ 3 ] }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * null,
+ * { "asSorting": [ "asc" ] },
+ * { "asSorting": [ "desc", "asc", "asc" ] },
+ * { "asSorting": [ "desc" ] },
+ * null
+ * ]
+ * } );
+ * } );
+ */
+ "asSorting": [ 'asc', 'desc' ],
+
+
+ /**
+ * Enable or disable filtering on the data in this column.
+ * @type boolean
+ * @default true
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * { "bSearchable": false, "aTargets": [ 0 ] }
+ * ] } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * { "bSearchable": false },
+ * null,
+ * null,
+ * null,
+ * null
+ * ] } );
+ * } );
+ */
+ "bSearchable": true,
+
+
+ /**
+ * Enable or disable sorting on this column.
+ * @type boolean
+ * @default true
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * { "bSortable": false, "aTargets": [ 0 ] }
+ * ] } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * { "bSortable": false },
+ * null,
+ * null,
+ * null,
+ * null
+ * ] } );
+ * } );
+ */
+ "bSortable": true,
+
+
+ /**
+ * When using fnRender() for a column, you may wish to use the original data
+ * (before rendering) for sorting and filtering (the default is to used the
+ * rendered data that the user can see). This may be useful for dates etc.
+ *
+ * *NOTE* It is it is advisable now to use mDataProp as a function and make
+ * use of the 'type' that it gives, allowing (potentially) different data to
+ * be used for sorting, filtering, display and type detection.
+ * @type boolean
+ * @default true
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * {
+ * "fnRender": function ( oObj ) {
+ * return oObj.aData[0] +' '+ oObj.aData[3];
+ * },
+ * "bUseRendered": false,
+ * "aTargets": [ 0 ]
+ * }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * {
+ * "fnRender": function ( oObj ) {
+ * return oObj.aData[0] +' '+ oObj.aData[3];
+ * },
+ * "bUseRendered": false
+ * },
+ * null,
+ * null,
+ * null,
+ * null
+ * ]
+ * } );
+ * } );
+ */
+ "bUseRendered": true,
+
+
+ /**
+ * Enable or disable the display of this column.
+ * @type boolean
+ * @default true
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * { "bVisible": false, "aTargets": [ 0 ] }
+ * ] } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * { "bVisible": false },
+ * null,
+ * null,
+ * null,
+ * null
+ * ] } );
+ * } );
+ */
+ "bVisible": true,
+
+
+ /**
+ * Developer definable function that is called whenever a cell is created (Ajax source,
+ * etc) or processed for input (DOM source). This can be used as a compliment to fnRender
+ * allowing you to modify the DOM element (add background colour for example) when the
+ * element is available (since it is not when fnRender is called).
+ * @type function
+ * @param {element} nTd The TD node that has been created
+ * @param {*} sData The Data for the cell
+ * @param {array|object} oData The data for the whole row
+ * @param {int} iRow The row index for the aoData data store
+ * @param {int} iCol The column index for aoColumns
+ * @dtopt Columns
+ *
+ * @example
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [ {
+ * "aTargets": [3],
+ * "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
+ * if ( sData == "1.7" ) {
+ * $(nTd).css('color', 'blue')
+ * }
+ * }
+ * } ]
+ * });
+ * } );
+ */
+ "fnCreatedCell": null,
+
+
+ /**
+ * Custom display function that will be called for the display of each cell in
+ * this column.
+ * @type function
+ * @param {object} o Object with the following parameters:
+ * @param {int} o.iDataRow The row in aoData
+ * @param {int} o.iDataColumn The column in question
+ * @param {array} o.aData The data for the row in question
+ * @param {object} o.oSettings The settings object for this DataTables instance
+ * @param {object} o.mDataProp The data property used for this column
+ * @param {*} val The current cell value
+ * @returns {string} The string you which to use in the display
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * {
+ * "fnRender": function ( o, val ) {
+ * return o.aData[0] +' '+ o.aData[3];
+ * },
+ * "aTargets": [ 0 ]
+ * }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * { "fnRender": function ( o, val ) {
+ * return o.aData[0] +' '+ o.aData[3];
+ * } },
+ * null,
+ * null,
+ * null,
+ * null
+ * ]
+ * } );
+ * } );
+ */
+ "fnRender": null,
+
+
+ /**
+ * The column index (starting from 0!) that you wish a sort to be performed
+ * upon when this column is selected for sorting. This can be used for sorting
+ * on hidden columns for example.
+ * @type int
+ * @default -1 Use automatically calculated column index
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * { "iDataSort": 1, "aTargets": [ 0 ] }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * { "iDataSort": 1 },
+ * null,
+ * null,
+ * null,
+ * null
+ * ]
+ * } );
+ * } );
+ */
+ "iDataSort": -1,
+
+
+ /**
+ * This property can be used to read data from any JSON data source property,
+ * including deeply nested objects / properties. mDataProp can be given in a
+ * number of different ways which effect its behaviour:
+ *
+ *
integer - treated as an array index for the data source. This is the
+ * default that DataTables uses (incrementally increased for each column).
+ *
string - read an object property from the data source. Note that you can
+ * use Javascript dotted notation to read deep properties/arrays from the
+ * data source.
+ *
null - the sDefaultContent option will be used for the cell (null
+ * by default, so you will need to specify the default content you want -
+ * typically an empty string). This can be useful on generated columns such
+ * as edit / delete action columns.
+ *
function - the function given will be executed whenever DataTables
+ * needs to set or get the data for a cell in the column. The function
+ * takes three parameters:
+ *
+ *
{array|object} The data source for the row
+ *
{string} The type call data requested - this will be 'set' when
+ * setting data or 'filter', 'display', 'type', 'sort' or undefined when
+ * gathering data. Note that when undefined is given for the type
+ * DataTables expects to get the raw data for the object back
+ *
{*} Data to set when the second parameter is 'set'.
+ *
+ * The return value from the function is not required when 'set' is the type
+ * of call, but otherwise the return is what will be used for the data
+ * requested.
+ *
+ * @type string|int|function|null
+ * @default null Use automatically calculated column index
+ * @dtopt Columns
+ *
+ * @example
+ * // Read table data from objects
+ * $(document).ready(function() {
+ * var oTable = $('#example').dataTable( {
+ * "sAjaxSource": "sources/deep.txt",
+ * "aoColumns": [
+ * { "mDataProp": "engine" },
+ * { "mDataProp": "browser" },
+ * { "mDataProp": "platform.inner" },
+ * { "mDataProp": "platform.details.0" },
+ * { "mDataProp": "platform.details.1" }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using mDataProp as a function to provide different information for
+ * // sorting, filtering and display. In this case, currency (price)
+ * $(document).ready(function() {
+ * var oTable = $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * {
+ * "aTargets": [ 0 ],
+ * "mDataProp": function ( source, type, val ) {
+ * if (type === 'set') {
+ * source.price = val;
+ * // Store the computed dislay and filter values for efficiency
+ * source.price_display = val=="" ? "" : "$"+numberFormat(val);
+ * source.price_filter = val=="" ? "" : "$"+numberFormat(val)+" "+val;
+ * return;
+ * }
+ * else if (type === 'display') {
+ * return source.price_display;
+ * }
+ * else if (type === 'filter') {
+ * return source.price_filter;
+ * }
+ * // 'sort', 'type' and undefined all just use the integer
+ * return source.price;
+ * }
+ * ]
+ * } );
+ * } );
+ */
+ "mDataProp": null,
+
+
+ /**
+ * Change the cell type created for the column - either TD cells or TH cells. This
+ * can be useful as TH cells have semantic meaning in the table body, allowing them
+ * to act as a header for a row (you may wish to add scope='row' to the TH elements).
+ * @type string
+ * @default td
+ * @dtopt Columns
+ *
+ * @example
+ * // Make the first column use TH cells
+ * $(document).ready(function() {
+ * var oTable = $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * {
+ * "aTargets": [ 0 ],
+ * "sCellType": "th"
+ * ]
+ * } );
+ * } );
+ */
+ "sCellType": "td",
+
+
+ /**
+ * Class to give to each cell in this column.
+ * @type string
+ * @default Empty string
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * { "sClass": "my_class", "aTargets": [ 0 ] }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * { "sClass": "my_class" },
+ * null,
+ * null,
+ * null,
+ * null
+ * ]
+ * } );
+ * } );
+ */
+ "sClass": "",
+
+ /**
+ * When DataTables calculates the column widths to assign to each column,
+ * it finds the longest string in each column and then constructs a
+ * temporary table and reads the widths from that. The problem with this
+ * is that "mmm" is much wider then "iiii", but the latter is a longer
+ * string - thus the calculation can go wrong (doing it properly and putting
+ * it into an DOM object and measuring that is horribly(!) slow). Thus as
+ * a "work around" we provide this option. It will append its value to the
+ * text that is found to be the longest string for the column - i.e. padding.
+ * Generally you shouldn't need this, and it is not documented on the
+ * general DataTables.net documentation
+ * @type string
+ * @default Empty string
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * null,
+ * null,
+ * null,
+ * {
+ * "sContentPadding": "mmm"
+ * }
+ * ]
+ * } );
+ * } );
+ */
+ "sContentPadding": "",
+
+
+ /**
+ * Allows a default value to be given for a column's data, and will be used
+ * whenever a null data source is encountered (this can be because mDataProp
+ * is set to null, or because the data source itself is null).
+ * @type string
+ * @default null
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * {
+ * "mDataProp": null,
+ * "sDefaultContent": "Edit",
+ * "aTargets": [ -1 ]
+ * }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * null,
+ * null,
+ * null,
+ * {
+ * "mDataProp": null,
+ * "sDefaultContent": "Edit"
+ * }
+ * ]
+ * } );
+ * } );
+ */
+ "sDefaultContent": null,
+
+
+ /**
+ * This parameter is only used in DataTables' server-side processing. It can
+ * be exceptionally useful to know what columns are being displayed on the
+ * client side, and to map these to database fields. When defined, the names
+ * also allow DataTables to reorder information from the server if it comes
+ * back in an unexpected order (i.e. if you switch your columns around on the
+ * client-side, your server-side code does not also need updating).
+ * @type string
+ * @default Empty string
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * { "sName": "engine", "aTargets": [ 0 ] },
+ * { "sName": "browser", "aTargets": [ 1 ] },
+ * { "sName": "platform", "aTargets": [ 2 ] },
+ * { "sName": "version", "aTargets": [ 3 ] },
+ * { "sName": "grade", "aTargets": [ 4 ] }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * { "sName": "engine" },
+ * { "sName": "browser" },
+ * { "sName": "platform" },
+ * { "sName": "version" },
+ * { "sName": "grade" }
+ * ]
+ * } );
+ * } );
+ */
+ "sName": "",
+
+
+ /**
+ * Defines a data source type for the sorting which can be used to read
+ * realtime information from the table (updating the internally cached
+ * version) prior to sorting. This allows sorting to occur on user editable
+ * elements such as form inputs.
+ * @type string
+ * @default std
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * { "sSortDataType": "dom-text", "aTargets": [ 2, 3 ] },
+ * { "sType": "numeric", "aTargets": [ 3 ] },
+ * { "sSortDataType": "dom-select", "aTargets": [ 4 ] },
+ * { "sSortDataType": "dom-checkbox", "aTargets": [ 5 ] }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * null,
+ * null,
+ * { "sSortDataType": "dom-text" },
+ * { "sSortDataType": "dom-text", "sType": "numeric" },
+ * { "sSortDataType": "dom-select" },
+ * { "sSortDataType": "dom-checkbox" }
+ * ]
+ * } );
+ * } );
+ */
+ "sSortDataType": "std",
+
+
+ /**
+ * The title of this column.
+ * @type string
+ * @default null Derived from the 'TH' value for this column in the
+ * original HTML table.
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * { "sTitle": "My column title", "aTargets": [ 0 ] }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * { "sTitle": "My column title" },
+ * null,
+ * null,
+ * null,
+ * null
+ * ]
+ * } );
+ * } );
+ */
+ "sTitle": null,
+
+
+ /**
+ * The type allows you to specify how the data for this column will be sorted.
+ * Four types (string, numeric, date and html (which will strip HTML tags
+ * before sorting)) are currently available. Note that only date formats
+ * understood by Javascript's Date() object will be accepted as type date. For
+ * example: "Mar 26, 2008 5:03 PM". May take the values: 'string', 'numeric',
+ * 'date' or 'html' (by default). Further types can be adding through
+ * plug-ins.
+ * @type string
+ * @default null Auto-detected from raw data
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * { "sType": "html", "aTargets": [ 0 ] }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * { "sType": "html" },
+ * null,
+ * null,
+ * null,
+ * null
+ * ]
+ * } );
+ * } );
+ */
+ "sType": null,
+
+
+ /**
+ * Defining the width of the column, this parameter may take any CSS value
+ * (3em, 20px etc). DataTables applys 'smart' widths to columns which have not
+ * been given a specific width through this interface ensuring that the table
+ * remains readable.
+ * @type string
+ * @default null Automatic
+ * @dtopt Columns
+ *
+ * @example
+ * // Using aoColumnDefs
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumnDefs": [
+ * { "sWidth": "20%", "aTargets": [ 0 ] }
+ * ]
+ * } );
+ * } );
+ *
+ * @example
+ * // Using aoColumns
+ * $(document).ready(function() {
+ * $('#example').dataTable( {
+ * "aoColumns": [
+ * { "sWidth": "20%" },
+ * null,
+ * null,
+ * null,
+ * null
+ * ]
+ * } );
+ * } );
+ */
+ "sWidth": null
+ };
+
+
+
+ /**
+ * DataTables settings object - this holds all the information needed for a
+ * given table, including configuration, data and current application of the
+ * table options. DataTables does not have a single instance for each DataTable
+ * with the settings attached to that instance, but rather instances of the
+ * DataTable "class" are created on-the-fly as needed (typically by a
+ * $().dataTable() call) and the settings object is then applied to that
+ * instance.
+ *
+ * Note that this object is related to {@link DataTable.defaults} but this
+ * one is the internal data store for DataTables's cache of columns. It should
+ * NOT be manipulated outside of DataTables. Any configuration should be done
+ * through the initialisation options.
+ * @namespace
+ * @todo Really should attach the settings object to individual instances so we
+ * don't need to create new instances on each $().dataTable() call (if the
+ * table already exists). It would also save passing oSettings around and
+ * into every single function. However, this is a very significant
+ * architecture change for DataTables and will almost certainly break
+ * backwards compatibility with older installations. This is something that
+ * will be done in 2.0.
+ */
+ DataTable.models.oSettings = {
+ /**
+ * Primary features of DataTables and their enablement state.
+ * @namespace
+ */
+ "oFeatures": {
+
+ /**
+ * Flag to say if DataTables should automatically try to calculate the
+ * optimum table and columns widths (true) or not (false).
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bAutoWidth": null,
+
+ /**
+ * Delay the creation of TR and TD elements until they are actually
+ * needed by a driven page draw. This can give a significant speed
+ * increase for Ajax source and Javascript source data, but makes no
+ * difference at all fro DOM and server-side processing tables.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bDeferRender": null,
+
+ /**
+ * Enable filtering on the table or not. Note that if this is disabled
+ * then there is no filtering at all on the table, including fnFilter.
+ * To just remove the filtering input use sDom and remove the 'f' option.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bFilter": null,
+
+ /**
+ * Table information element (the 'Showing x of y records' div) enable
+ * flag.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bInfo": null,
+
+ /**
+ * Present a user control allowing the end user to change the page size
+ * when pagination is enabled.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bLengthChange": null,
+
+ /**
+ * Pagination enabled or not. Note that if this is disabled then length
+ * changing must also be disabled.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bPaginate": null,
+
+ /**
+ * Processing indicator enable flag whenever DataTables is enacting a
+ * user request - typically an Ajax request for server-side processing.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bProcessing": null,
+
+ /**
+ * Server-side processing enabled flag - when enabled DataTables will
+ * get all data from the server for every draw - there is no filtering,
+ * sorting or paging done on the client-side.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bServerSide": null,
+
+ /**
+ * Sorting enablement flag.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bSort": null,
+
+ /**
+ * Apply a class to the columns which are being sorted to provide a
+ * visual highlight or not. This can slow things down when enabled since
+ * there is a lot of DOM interaction.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bSortClasses": null,
+
+ /**
+ * State saving enablement flag.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bStateSave": null
+ },
+
+
+ /**
+ * Scrolling settings for a table.
+ * @namespace
+ */
+ "oScroll": {
+ /**
+ * Indicate if DataTables should be allowed to set the padding / margin
+ * etc for the scrolling header elements or not. Typically you will want
+ * this.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bAutoCss": null,
+
+ /**
+ * When the table is shorter in height than sScrollY, collapse the
+ * table container down to the height of the table (when true).
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bCollapse": null,
+
+ /**
+ * Infinite scrolling enablement flag. Now deprecated in favour of
+ * using the Scroller plug-in.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bInfinite": null,
+
+ /**
+ * Width of the scrollbar for the web-browser's platform. Calculated
+ * during table initialisation.
+ * @type int
+ * @default 0
+ */
+ "iBarWidth": 0,
+
+ /**
+ * Space (in pixels) between the bottom of the scrolling container and
+ * the bottom of the scrolling viewport before the next page is loaded
+ * when using infinite scrolling.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type int
+ */
+ "iLoadGap": null,
+
+ /**
+ * Viewport width for horizontal scrolling. Horizontal scrolling is
+ * disabled if an empty string.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type string
+ */
+ "sX": null,
+
+ /**
+ * Width to expand the table to when using x-scrolling. Typically you
+ * should not need to use this.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type string
+ * @deprecated
+ */
+ "sXInner": null,
+
+ /**
+ * Viewport height for vertical scrolling. Vertical scrolling is disabled
+ * if an empty string.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type string
+ */
+ "sY": null
+ },
+
+ /**
+ * Language information for the table.
+ * @namespace
+ * @extends DataTable.defaults.oLanguage
+ */
+ "oLanguage": {
+ /**
+ * Information callback function. See
+ * {@link DataTable.defaults.fnInfoCallback}
+ * @type function
+ * @default
+ */
+ "fnInfoCallback": null
+ },
+
+ /**
+ * Array referencing the nodes which are used for the features. The
+ * parameters of this object match what is allowed by sDom - i.e.
+ *
+ *
'l' - Length changing
+ *
'f' - Filtering input
+ *
't' - The table!
+ *
'i' - Information
+ *
'p' - Pagination
+ *
'r' - pRocessing
+ *
+ * @type array
+ * @default []
+ */
+ "aanFeatures": [],
+
+ /**
+ * Store data information - see {@link DataTable.models.oRow} for detailed
+ * information.
+ * @type array
+ * @default []
+ */
+ "aoData": [],
+
+ /**
+ * Array of indexes which are in the current display (after filtering etc)
+ * @type array
+ * @default []
+ */
+ "aiDisplay": [],
+
+ /**
+ * Array of indexes for display - no filtering
+ * @type array
+ * @default []
+ */
+ "aiDisplayMaster": [],
+
+ /**
+ * Store information about each column that is in use
+ * @type array
+ * @default []
+ */
+ "aoColumns": [],
+
+ /**
+ * Store information about the table's header
+ * @type array
+ * @default []
+ */
+ "aoHeader": [],
+
+ /**
+ * Store information about the table's footer
+ * @type array
+ * @default []
+ */
+ "aoFooter": [],
+
+ /**
+ * Search data array for regular expression searching
+ * @type array
+ * @default []
+ */
+ "asDataSearch": [],
+
+ /**
+ * Store the applied global search information in case we want to force a
+ * research or compare the old search to a new one.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @namespace
+ * @extends DataTable.models.oSearch
+ */
+ "oPreviousSearch": {},
+
+ /**
+ * Store the applied search for each column - see
+ * {@link DataTable.models.oSearch} for the format that is used for the
+ * filtering information for each column.
+ * @type array
+ * @default []
+ */
+ "aoPreSearchCols": [],
+
+ /**
+ * Sorting that is applied to the table. Note that the inner arrays are
+ * used in the following manner:
+ *
+ *
Index 0 - column number
+ *
Index 1 - current sorting direction
+ *
Index 2 - index of asSorting for this column
+ *
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type array
+ * @todo These inner arrays should really be objects
+ */
+ "aaSorting": null,
+
+ /**
+ * Sorting that is always applied to the table (i.e. prefixed in front of
+ * aaSorting).
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type array|null
+ * @default null
+ */
+ "aaSortingFixed": null,
+
+ /**
+ * Classes to use for the striping of a table.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type array
+ * @default []
+ */
+ "asStripeClasses": null,
+
+ /**
+ * If restoring a table - we should restore its striping classes as well
+ * @type array
+ * @default []
+ */
+ "asDestroyStripes": [],
+
+ /**
+ * If restoring a table - we should restore its width
+ * @type int
+ * @default 0
+ */
+ "sDestroyWidth": 0,
+
+ /**
+ * Callback functions array for every time a row is inserted (i.e. on a draw).
+ * @type array
+ * @default []
+ */
+ "aoRowCallback": [],
+
+ /**
+ * Callback functions for the header on each draw.
+ * @type array
+ * @default []
+ */
+ "aoHeaderCallback": [],
+
+ /**
+ * Callback function for the footer on each draw.
+ * @type array
+ * @default []
+ */
+ "aoFooterCallback": [],
+
+ /**
+ * Array of callback functions for draw callback functions
+ * @type array
+ * @default []
+ */
+ "aoDrawCallback": [],
+
+ /**
+ * Array of callback functions for row created function
+ * @type array
+ * @default []
+ */
+ "aoRowCreatedCallback": [],
+
+ /**
+ * Callback functions for just before the table is redrawn. A return of
+ * false will be used to cancel the draw.
+ * @type array
+ * @default []
+ */
+ "aoPreDrawCallback": [],
+
+ /**
+ * Callback functions for when the table has been initialised.
+ * @type array
+ * @default []
+ */
+ "aoInitComplete": [],
+
+
+ /**
+ * Callbacks for modifying the settings to be stored for state saving, prior to
+ * saving state.
+ * @type array
+ * @default []
+ */
+ "aoStateSaveParams": [],
+
+ /**
+ * Callbacks for modifying the settings that have been stored for state saving
+ * prior to using the stored values to restore the state.
+ * @type array
+ * @default []
+ */
+ "aoStateLoadParams": [],
+
+ /**
+ * Callbacks for operating on the settings object once the saved state has been
+ * loaded
+ * @type array
+ * @default []
+ */
+ "aoStateLoaded": [],
+
+ /**
+ * Cache the table ID for quick access
+ * @type string
+ * @default Empty string
+ */
+ "sTableId": "",
+
+ /**
+ * The TABLE node for the main table
+ * @type node
+ * @default null
+ */
+ "nTable": null,
+
+ /**
+ * Permanent ref to the thead element
+ * @type node
+ * @default null
+ */
+ "nTHead": null,
+
+ /**
+ * Permanent ref to the tfoot element - if it exists
+ * @type node
+ * @default null
+ */
+ "nTFoot": null,
+
+ /**
+ * Permanent ref to the tbody element
+ * @type node
+ * @default null
+ */
+ "nTBody": null,
+
+ /**
+ * Cache the wrapper node (contains all DataTables controlled elements)
+ * @type node
+ * @default null
+ */
+ "nTableWrapper": null,
+
+ /**
+ * Indicate if when using server-side processing the loading of data
+ * should be deferred until the second draw.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ * @default false
+ */
+ "bDeferLoading": false,
+
+ /**
+ * Indicate if all required information has been read in
+ * @type boolean
+ * @default false
+ */
+ "bInitialised": false,
+
+ /**
+ * Information about open rows. Each object in the array has the parameters
+ * 'nTr' and 'nParent'
+ * @type array
+ * @default []
+ */
+ "aoOpenRows": [],
+
+ /**
+ * Dictate the positioning of DataTables' control elements - see
+ * {@link DataTable.model.oInit.sDom}.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type string
+ * @default null
+ */
+ "sDom": null,
+
+ /**
+ * Which type of pagination should be used.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type string
+ * @default two_button
+ */
+ "sPaginationType": "two_button",
+
+ /**
+ * The cookie duration (for bStateSave) in seconds.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type int
+ * @default 0
+ */
+ "iCookieDuration": 0,
+
+ /**
+ * The cookie name prefix.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type string
+ * @default Empty string
+ */
+ "sCookiePrefix": "",
+
+ /**
+ * Callback function for cookie creation.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type function
+ * @default null
+ */
+ "fnCookieCallback": null,
+
+ /**
+ * Array of callback functions for state saving. Each array element is an
+ * object with the following parameters:
+ *
+ *
function:fn - function to call. Takes two parameters, oSettings
+ * and the JSON string to save that has been thus far created. Returns
+ * a JSON string to be inserted into a json object
+ * (i.e. '"param": [ 0, 1, 2]')
+ *
string:sName - name of callback
+ *
+ * @type array
+ * @default []
+ */
+ "aoStateSave": [],
+
+ /**
+ * Array of callback functions for state loading. Each array element is an
+ * object with the following parameters:
+ *
+ *
function:fn - function to call. Takes two parameters, oSettings
+ * and the object stored. May return false to cancel state loading
+ *
string:sName - name of callback
+ *
+ * @type array
+ * @default []
+ */
+ "aoStateLoad": [],
+
+ /**
+ * State that was loaded from the cookie. Useful for back reference
+ * @type object
+ * @default null
+ */
+ "oLoadedState": null,
+
+ /**
+ * Source url for AJAX data for the table.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type string
+ * @default null
+ */
+ "sAjaxSource": null,
+
+ /**
+ * Property from a given object from which to read the table data from. This
+ * can be an empty string (when not server-side processing), in which case
+ * it is assumed an an array is given directly.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type string
+ */
+ "sAjaxDataProp": null,
+
+ /**
+ * Note if draw should be blocked while getting data
+ * @type boolean
+ * @default true
+ */
+ "bAjaxDataGet": true,
+
+ /**
+ * The last jQuery XHR object that was used for server-side data gathering.
+ * This can be used for working with the XHR information in one of the
+ * callbacks
+ * @type object
+ * @default null
+ */
+ "jqXHR": null,
+
+ /**
+ * Function to get the server-side data.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type function
+ */
+ "fnServerData": null,
+
+ /**
+ * Functions which are called prior to sending an Ajax request so extra
+ * parameters can easily be sent to the server
+ * @type array
+ * @default []
+ */
+ "aoServerParams": [],
+
+ /**
+ * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if
+ * required).
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type string
+ */
+ "sServerMethod": null,
+
+ /**
+ * Format numbers for display.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type function
+ */
+ "fnFormatNumber": null,
+
+ /**
+ * List of options that can be used for the user selectable length menu.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type array
+ * @default []
+ */
+ "aLengthMenu": null,
+
+ /**
+ * Counter for the draws that the table does. Also used as a tracker for
+ * server-side processing
+ * @type int
+ * @default 0
+ */
+ "iDraw": 0,
+
+ /**
+ * Indicate if a redraw is being done - useful for Ajax
+ * @type boolean
+ * @default false
+ */
+ "bDrawing": false,
+
+ /**
+ * Draw index (iDraw) of the last error when parsing the returned data
+ * @type int
+ * @default -1
+ */
+ "iDrawError": -1,
+
+ /**
+ * Paging display length
+ * @type int
+ * @default 10
+ */
+ "_iDisplayLength": 10,
+
+ /**
+ * Paging start point - aiDisplay index
+ * @type int
+ * @default 0
+ */
+ "_iDisplayStart": 0,
+
+ /**
+ * Paging end point - aiDisplay index. Use fnDisplayEnd rather than
+ * this property to get the end point
+ * @type int
+ * @default 10
+ * @private
+ */
+ "_iDisplayEnd": 10,
+
+ /**
+ * Server-side processing - number of records in the result set
+ * (i.e. before filtering), Use fnRecordsTotal rather than
+ * this property to get the value of the number of records, regardless of
+ * the server-side processing setting.
+ * @type int
+ * @default 0
+ * @private
+ */
+ "_iRecordsTotal": 0,
+
+ /**
+ * Server-side processing - number of records in the current display set
+ * (i.e. after filtering). Use fnRecordsDisplay rather than
+ * this property to get the value of the number of records, regardless of
+ * the server-side processing setting.
+ * @type boolean
+ * @default 0
+ * @private
+ */
+ "_iRecordsDisplay": 0,
+
+ /**
+ * Flag to indicate if jQuery UI marking and classes should be used.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bJUI": null,
+
+ /**
+ * The classes to use for the table
+ * @type object
+ * @default {}
+ */
+ "oClasses": {},
+
+ /**
+ * Flag attached to the settings object so you can check in the draw
+ * callback if filtering has been done in the draw. Deprecated in favour of
+ * events.
+ * @type boolean
+ * @default false
+ * @deprecated
+ */
+ "bFiltered": false,
+
+ /**
+ * Flag attached to the settings object so you can check in the draw
+ * callback if sorting has been done in the draw. Deprecated in favour of
+ * events.
+ * @type boolean
+ * @default false
+ * @deprecated
+ */
+ "bSorted": false,
+
+ /**
+ * Indicate that if multiple rows are in the header and there is more than
+ * one unique cell per column, if the top one (true) or bottom one (false)
+ * should be used for sorting / title by DataTables.
+ * Note that this parameter will be set by the initialisation routine. To
+ * set a default use {@link DataTable.defaults}.
+ * @type boolean
+ */
+ "bSortCellsTop": null,
+
+ /**
+ * Initialisation object that is used for the table
+ * @type object
+ * @default null
+ */
+ "oInit": null,
+
+ /**
+ * Destroy callback functions - for plug-ins to attach themselves to the
+ * destroy so they can clean up markup and events.
+ * @type array
+ * @default []
+ */
+ "aoDestroyCallback": [],
+
+
+ /**
+ * Get the number of records in the current record set, before filtering
+ * @type function
+ */
+ "fnRecordsTotal": function ()
+ {
+ if ( this.oFeatures.bServerSide ) {
+ return parseInt(this._iRecordsTotal, 10);
+ } else {
+ return this.aiDisplayMaster.length;
+ }
+ },
+
+ /**
+ * Get the number of records in the current record set, after filtering
+ * @type function
+ */
+ "fnRecordsDisplay": function ()
+ {
+ if ( this.oFeatures.bServerSide ) {
+ return parseInt(this._iRecordsDisplay, 10);
+ } else {
+ return this.aiDisplay.length;
+ }
+ },
+
+ /**
+ * Set the display end point - aiDisplay index
+ * @type function
+ * @todo Should do away with _iDisplayEnd and calculate it on-the-fly here
+ */
+ "fnDisplayEnd": function ()
+ {
+ if ( this.oFeatures.bServerSide ) {
+ if ( this.oFeatures.bPaginate === false || this._iDisplayLength == -1 ) {
+ return this._iDisplayStart+this.aiDisplay.length;
+ } else {
+ return Math.min( this._iDisplayStart+this._iDisplayLength,
+ this._iRecordsDisplay );
+ }
+ } else {
+ return this._iDisplayEnd;
+ }
+ },
+
+ /**
+ * The DataTables object for this table
+ * @type object
+ * @default null
+ */
+ "oInstance": null,
+
+ /**
+ * Unique identifier for each instance of the DataTables object. If there
+ * is an ID on the table node, then it takes that value, otherwise an
+ * incrementing internal counter is used.
+ * @type string
+ * @default null
+ */
+ "sInstance": null,
+
+ /**
+ * tabindex attribute value that is added to DataTables control elements, allowing
+ * keyboard navigation of the table and its controls.
+ */
+ "iTabIndex": 0,
+
+ /**
+ * DIV container for the footer scrolling table if scrolling
+ */
+ "nScrollHead": null,
+
+ /**
+ * DIV container for the footer scrolling table if scrolling
+ */
+ "nScrollFoot": null
+ };
+
+ /**
+ * Extension object for DataTables that is used to provide all extension options.
+ *
+ * Note that the DataTable.ext object is available through
+ * jQuery.fn.dataTable.ext where it may be accessed and manipulated. It is
+ * also aliased to jQuery.fn.dataTableExt for historic reasons.
+ * @namespace
+ * @extends DataTable.models.ext
+ */
+ DataTable.ext = $.extend( true, {}, DataTable.models.ext );
+
+ $.extend( DataTable.ext.oStdClasses, {
+ "sTable": "dataTable",
+
+ /* Two buttons buttons */
+ "sPagePrevEnabled": "paginate_enabled_previous",
+ "sPagePrevDisabled": "paginate_disabled_previous",
+ "sPageNextEnabled": "paginate_enabled_next",
+ "sPageNextDisabled": "paginate_disabled_next",
+ "sPageJUINext": "",
+ "sPageJUIPrev": "",
+
+ /* Full numbers paging buttons */
+ "sPageButton": "paginate_button",
+ "sPageButtonActive": "paginate_active",
+ "sPageButtonStaticDisabled": "paginate_button paginate_button_disabled",
+ "sPageFirst": "first",
+ "sPagePrevious": "previous",
+ "sPageNext": "next",
+ "sPageLast": "last",
+
+ /* Striping classes */
+ "sStripeOdd": "odd",
+ "sStripeEven": "even",
+
+ /* Empty row */
+ "sRowEmpty": "dataTables_empty",
+
+ /* Features */
+ "sWrapper": "dataTables_wrapper",
+ "sFilter": "dataTables_filter",
+ "sInfo": "dataTables_info",
+ "sPaging": "dataTables_paginate paging_", /* Note that the type is postfixed */
+ "sLength": "dataTables_length",
+ "sProcessing": "dataTables_processing",
+
+ /* Sorting */
+ "sSortAsc": "sorting_asc",
+ "sSortDesc": "sorting_desc",
+ "sSortable": "sorting", /* Sortable in both directions */
+ "sSortableAsc": "sorting_asc_disabled",
+ "sSortableDesc": "sorting_desc_disabled",
+ "sSortableNone": "sorting_disabled",
+ "sSortColumn": "sorting_", /* Note that an int is postfixed for the sorting order */
+ "sSortJUIAsc": "",
+ "sSortJUIDesc": "",
+ "sSortJUI": "",
+ "sSortJUIAscAllowed": "",
+ "sSortJUIDescAllowed": "",
+ "sSortJUIWrapper": "",
+ "sSortIcon": "",
+
+ /* Scrolling */
+ "sScrollWrapper": "dataTables_scroll",
+ "sScrollHead": "dataTables_scrollHead",
+ "sScrollHeadInner": "dataTables_scrollHeadInner",
+ "sScrollBody": "dataTables_scrollBody",
+ "sScrollFoot": "dataTables_scrollFoot",
+ "sScrollFootInner": "dataTables_scrollFootInner",
+
+ /* Misc */
+ "sFooterTH": ""
+ } );
+
+
+ $.extend( DataTable.ext.oJUIClasses, DataTable.ext.oStdClasses, {
+ /* Two buttons buttons */
+ "sPagePrevEnabled": "fg-button ui-button ui-state-default ui-corner-left",
+ "sPagePrevDisabled": "fg-button ui-button ui-state-default ui-corner-left ui-state-disabled",
+ "sPageNextEnabled": "fg-button ui-button ui-state-default ui-corner-right",
+ "sPageNextDisabled": "fg-button ui-button ui-state-default ui-corner-right ui-state-disabled",
+ "sPageJUINext": "ui-icon ui-icon-circle-arrow-e",
+ "sPageJUIPrev": "ui-icon ui-icon-circle-arrow-w",
+
+ /* Full numbers paging buttons */
+ "sPageButton": "fg-button ui-button ui-state-default",
+ "sPageButtonActive": "fg-button ui-button ui-state-default ui-state-disabled",
+ "sPageButtonStaticDisabled": "fg-button ui-button ui-state-default ui-state-disabled",
+ "sPageFirst": "first ui-corner-tl ui-corner-bl",
+ "sPageLast": "last ui-corner-tr ui-corner-br",
+
+ /* Features */
+ "sPaging": "dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi "+
+ "ui-buttonset-multi paging_", /* Note that the type is postfixed */
+
+ /* Sorting */
+ "sSortAsc": "ui-state-default",
+ "sSortDesc": "ui-state-default",
+ "sSortable": "ui-state-default",
+ "sSortableAsc": "ui-state-default",
+ "sSortableDesc": "ui-state-default",
+ "sSortableNone": "ui-state-default",
+ "sSortJUIAsc": "css_right ui-icon ui-icon-triangle-1-n",
+ "sSortJUIDesc": "css_right ui-icon ui-icon-triangle-1-s",
+ "sSortJUI": "css_right ui-icon ui-icon-carat-2-n-s",
+ "sSortJUIAscAllowed": "css_right ui-icon ui-icon-carat-1-n",
+ "sSortJUIDescAllowed": "css_right ui-icon ui-icon-carat-1-s",
+ "sSortJUIWrapper": "DataTables_sort_wrapper",
+ "sSortIcon": "DataTables_sort_icon",
+
+ /* Scrolling */
+ "sScrollHead": "dataTables_scrollHead ui-state-default",
+ "sScrollFoot": "dataTables_scrollFoot ui-state-default",
+
+ /* Misc */
+ "sFooterTH": "ui-state-default"
+ } );
+
+
+ /*
+ * Variable: oPagination
+ * Purpose:
+ * Scope: jQuery.fn.dataTableExt
+ */
+ $.extend( DataTable.ext.oPagination, {
+ /*
+ * Variable: two_button
+ * Purpose: Standard two button (forward/back) pagination
+ * Scope: jQuery.fn.dataTableExt.oPagination
+ */
+ "two_button": {
+ /*
+ * Function: oPagination.two_button.fnInit
+ * Purpose: Initialise dom elements required for pagination with forward/back buttons only
+ * Returns: -
+ * Inputs: object:oSettings - dataTables settings object
+ * node:nPaging - the DIV which contains this pagination control
+ * function:fnCallbackDraw - draw function which must be called on update
+ */
+ "fnInit": function ( oSettings, nPaging, fnCallbackDraw )
+ {
+ var oLang = oSettings.oLanguage.oPaginate;
+ var oClasses = oSettings.oClasses;
+ var fnClickHandler = function ( e ) {
+ if ( oSettings.oApi._fnPageChange( oSettings, e.data.action ) )
+ {
+ fnCallbackDraw( oSettings );
+ }
+ };
+
+ var sAppend = (!oSettings.bJUI) ?
+ ''+oLang.sPrevious+''+
+ ''+oLang.sNext+''
+ :
+ ''+
+ '';
+ $(nPaging).append( sAppend );
+
+ var els = $('a', nPaging);
+ var nPrevious = els[0],
+ nNext = els[1];
+
+ oSettings.oApi._fnBindAction( nPrevious, {action: "previous"}, fnClickHandler );
+ oSettings.oApi._fnBindAction( nNext, {action: "next"}, fnClickHandler );
+
+ /* ID the first elements only */
+ if ( !oSettings.aanFeatures.p )
+ {
+ nPaging.id = oSettings.sTableId+'_paginate';
+ nPrevious.id = oSettings.sTableId+'_previous';
+ nNext.id = oSettings.sTableId+'_next';
+
+ nPrevious.setAttribute('aria-controls', oSettings.sTableId);
+ nNext.setAttribute('aria-controls', oSettings.sTableId);
+ }
+ },
+
+ /*
+ * Function: oPagination.two_button.fnUpdate
+ * Purpose: Update the two button pagination at the end of the draw
+ * Returns: -
+ * Inputs: object:oSettings - dataTables settings object
+ * function:fnCallbackDraw - draw function to call on page change
+ */
+ "fnUpdate": function ( oSettings, fnCallbackDraw )
+ {
+ if ( !oSettings.aanFeatures.p )
+ {
+ return;
+ }
+
+ var oClasses = oSettings.oClasses;
+ var an = oSettings.aanFeatures.p;
+
+ /* Loop over each instance of the pager */
+ for ( var i=0, iLen=an.length ; i'+oLang.sFirst+''+
+ ''+oLang.sPrevious+''+
+ ''+
+ ''+oLang.sNext+''+
+ ''+oLang.sLast+''
+ );
+ var els = $('a', nPaging);
+ var nFirst = els[0],
+ nPrev = els[1],
+ nNext = els[2],
+ nLast = els[3];
+
+ oSettings.oApi._fnBindAction( nFirst, {action: "first"}, fnClickHandler );
+ oSettings.oApi._fnBindAction( nPrev, {action: "previous"}, fnClickHandler );
+ oSettings.oApi._fnBindAction( nNext, {action: "next"}, fnClickHandler );
+ oSettings.oApi._fnBindAction( nLast, {action: "last"}, fnClickHandler );
+
+ /* ID the first elements only */
+ if ( !oSettings.aanFeatures.p )
+ {
+ nPaging.id = oSettings.sTableId+'_paginate';
+ nFirst.id =oSettings.sTableId+'_first';
+ nPrev.id =oSettings.sTableId+'_previous';
+ nNext.id =oSettings.sTableId+'_next';
+ nLast.id =oSettings.sTableId+'_last';
+ }
+ },
+
+ /*
+ * Function: oPagination.full_numbers.fnUpdate
+ * Purpose: Update the list of page buttons shows
+ * Returns: -
+ * Inputs: object:oSettings - dataTables settings object
+ * function:fnCallbackDraw - draw function to call on page change
+ */
+ "fnUpdate": function ( oSettings, fnCallbackDraw )
+ {
+ if ( !oSettings.aanFeatures.p )
+ {
+ return;
+ }
+
+ var iPageCount = DataTable.ext.oPagination.iFullNumbersShowPages;
+ var iPageCountHalf = Math.floor(iPageCount / 2);
+ var iPages = Math.ceil((oSettings.fnRecordsDisplay()) / oSettings._iDisplayLength);
+ var iCurrentPage = Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;
+ var sList = "";
+ var iStartButton, iEndButton, i, iLen;
+ var oClasses = oSettings.oClasses;
+ var anButtons, anStatic, nPaginateList;
+ var an = oSettings.aanFeatures.p;
+ var fnBind = function (j) {
+ oSettings.oApi._fnBindAction( this, {"page": j+iStartButton-1}, function(e) {
+ /* Use the information in the element to jump to the required page */
+ oSettings.oApi._fnPageChange( oSettings, e.data.page );
+ fnCallbackDraw( oSettings );
+ e.preventDefault();
+ } );
+ };
+
+ /* Pages calculation */
+ if ( oSettings._iDisplayLength === -1 )
+ {
+ iStartButton = 1;
+ iEndButton = 1;
+ iCurrentPage = 1;
+ }
+ else if (iPages < iPageCount)
+ {
+ iStartButton = 1;
+ iEndButton = iPages;
+ }
+ else if (iCurrentPage <= iPageCountHalf)
+ {
+ iStartButton = 1;
+ iEndButton = iPageCount;
+ }
+ else if (iCurrentPage >= (iPages - iPageCountHalf))
+ {
+ iStartButton = iPages - iPageCount + 1;
+ iEndButton = iPages;
+ }
+ else
+ {
+ iStartButton = iCurrentPage - Math.ceil(iPageCount / 2) + 1;
+ iEndButton = iStartButton + iPageCount - 1;
+ }
+
+
+ /* Build the dynamic list */
+ for ( i=iStartButton ; i<=iEndButton ; i++ )
+ {
+ sList += (iCurrentPage !== i) ?
+ ''+oSettings.fnFormatNumber(i)+'' :
+ ''+oSettings.fnFormatNumber(i)+'';
+ }
+
+ /* Loop over each instance of the pager */
+ for ( i=0, iLen=an.length ; i y) ? 1 : 0));
+ },
+
+ "string-desc": function ( x, y )
+ {
+ return ((x < y) ? 1 : ((x > y) ? -1 : 0));
+ },
+
+
+ /*
+ * html sorting (ignore html tags)
+ */
+ "html-pre": function ( a )
+ {
+ return a.replace( /<.*?>/g, "" ).toLowerCase();
+ },
+
+ "html-asc": function ( x, y )
+ {
+ return ((x < y) ? -1 : ((x > y) ? 1 : 0));
+ },
+
+ "html-desc": function ( x, y )
+ {
+ return ((x < y) ? 1 : ((x > y) ? -1 : 0));
+ },
+
+
+ /*
+ * date sorting
+ */
+ "date-pre": function ( a )
+ {
+ var x = Date.parse( a );
+
+ if ( isNaN(x) || x==="" )
+ {
+ x = Date.parse( "01/01/1970 00:00:00" );
+ }
+ return x;
+ },
+
+ "date-asc": function ( x, y )
+ {
+ return x - y;
+ },
+
+ "date-desc": function ( x, y )
+ {
+ return y - x;
+ },
+
+
+ /*
+ * numerical sorting
+ */
+ "numeric-pre": function ( a )
+ {
+ return (a=="-" || a==="") ? 0 : a*1;
+ },
+
+ "numeric-asc": function ( x, y )
+ {
+ return x - y;
+ },
+
+ "numeric-desc": function ( x, y )
+ {
+ return y - x;
+ }
+ } );
+
+
+ $.extend( DataTable.ext.aTypes, [
+ /*
+ * Function: -
+ * Purpose: Check to see if a string is numeric
+ * Returns: string:'numeric' or null
+ * Inputs: mixed:sText - string to check
+ */
+ function ( sData )
+ {
+ /* Allow zero length strings as a number */
+ if ( typeof sData === 'number' )
+ {
+ return 'numeric';
+ }
+ else if ( typeof sData !== 'string' )
+ {
+ return null;
+ }
+
+ var sValidFirstChars = "0123456789-";
+ var sValidChars = "0123456789.";
+ var Char;
+ var bDecimal = false;
+
+ /* Check for a valid first char (no period and allow negatives) */
+ Char = sData.charAt(0);
+ if (sValidFirstChars.indexOf(Char) == -1)
+ {
+ return null;
+ }
+
+ /* Check all the other characters are valid */
+ for ( var i=1 ; i') != -1 )
+ {
+ return 'html';
+ }
+ return null;
+ }
+ ] );
+
+
+ // jQuery aliases
+ $.fn.DataTable = DataTable;
+ $.fn.dataTable = DataTable;
+ $.fn.dataTableSettings = DataTable.settings;
+ $.fn.dataTableExt = DataTable.ext;
+
+
+ // Information about events fired by DataTables - for documentation.
+ /**
+ * Draw event, fired whenever the table is redrawn on the page, at the same point as
+ * fnDrawCallback. This may be useful for binding events or performing calculations when
+ * the table is altered at all.
+ * @name DataTable#draw
+ * @event
+ * @param {event} e jQuery event object
+ * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
+ */
+
+ /**
+ * Filter event, fired when the filtering applied to the table (using the build in global
+ * global filter, or column filters) is altered.
+ * @name DataTable#filter
+ * @event
+ * @param {event} e jQuery event object
+ * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
+ */
+
+ /**
+ * Page change event, fired when the paging of the table is altered.
+ * @name DataTable#page
+ * @event
+ * @param {event} e jQuery event object
+ * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
+ */
+
+ /**
+ * Sort event, fired when the sorting applied to the table is altered.
+ * @name DataTable#sort
+ * @event
+ * @param {event} e jQuery event object
+ * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
+ */
+
+ /**
+ * DataTables initialisation complete event, fired when the table is fully drawn,
+ * including Ajax data loaded, if Ajax data is required.
+ * @name DataTable#init
+ * @event
+ * @param {event} e jQuery event object
+ * @param {object} oSettings DataTables settings object
+ * @param {object} json The JSON object request from the server - only
+ * present if client-side Ajax sourced data is used
+ */
+
+ /**
+ * State save event, fired when the table has changed state a new state save is required.
+ * This method allows modification of the state saving object prior to actually doing the
+ * save, including addition or other state properties (for plug-ins) or modification
+ * of a DataTables core property.
+ * @name DataTable#stateSaveParams
+ * @event
+ * @param {event} e jQuery event object
+ * @param {object} oSettings DataTables settings object
+ * @param {object} json The state information to be saved
+ */
+
+ /**
+ * State load event, fired when the table is loading state from the stored data, but
+ * prior to the settings object being modified by the saved state - allowing modification
+ * of the saved state is required or loading of state for a plug-in.
+ * @name DataTable#stateLoadParams
+ * @event
+ * @param {event} e jQuery event object
+ * @param {object} oSettings DataTables settings object
+ * @param {object} json The saved state information
+ */
+
+ /**
+ * State loaded event, fired when state has been loaded from stored data and the settings
+ * object has been modified by the loaded data.
+ * @name DataTable#stateLoaded
+ * @event
+ * @param {event} e jQuery event object
+ * @param {object} oSettings DataTables settings object
+ * @param {object} json The saved state information
+ */
+
+ /**
+ * Processing event, fired when DataTables is doing some kind of processing (be it,
+ * sort, filter or anything else). Can be used to indicate to the end user that
+ * there is something happening, or that something has finished.
+ * @name DataTable#processing
+ * @event
+ * @param {event} e jQuery event object
+ * @param {object} oSettings DataTables settings object
+ * @param {boolean} bShow Flag for if DataTables is doing processing or not
+ */
+
+ /**
+ * Ajax (XHR) event, fired whenever an Ajax request is completed from a request to
+ * made to the server for new data (note that this trigger is called in fnServerData,
+ * if you override fnServerData and which to use this event, you need to trigger it in
+ * you success function).
+ * @name DataTable#xhr
+ * @event
+ * @param {event} e jQuery event object
+ * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
+ */
+
+ /**
+ * Destroy event, fired when the DataTable is destroyed by calling fnDestroy or passing
+ * the bDestroy:true parameter in the initialisation object. This can be used to remove
+ * bound events, added DOM nodes, etc.
+ * @name DataTable#destroy
+ * @event
+ * @param {event} e jQuery event object
+ * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
+ */
+}(jQuery, window, document, undefined));
diff --git a/app/assets/javascripts/popup.js b/app/assets/javascripts/popup.js
new file mode 100644
index 0000000..32d98dd
--- /dev/null
+++ b/app/assets/javascripts/popup.js
@@ -0,0 +1,37 @@
+function show_post(path){
+ $.ajax({
+ url: path,
+ success: function(data){
+ console.log(data)
+ $(" #popup_pg .main_text").html(data);
+ }
+ });
+}
+
+// popup close and show functions for topic and comments actions
+function close_popup(){
+ $("#popup_pg").modal("hide");
+}
+
+function show_common_popup(path, header_text){
+ $(".modal #action_click").attr('onclick','').unbind('click');
+
+ $(".modal .button_text").show();
+ if(header_text!='' && header_text != undefined)
+ $(".modal .header_text").html(header_text);
+ else
+ $(".modal .header_text").html('');
+
+ show_post(path)
+
+ $(".modal #action_click").click(function(){close_popup()});
+ $(".modal .button_primary").html('Close');
+
+ // Show the dialog/popup
+ $(" #popup_pg").modal({backdrop: true});
+}
+
+function disable_click(){
+ $(".modal #action_click").attr('onclick','').unbind('click');
+ $(".modal #action_click").click(function(e){e.preventDefault();});
+}
\ No newline at end of file
diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js
new file mode 100644
index 0000000..e69de29
diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss
new file mode 100644
index 0000000..62d5b77
--- /dev/null
+++ b/app/assets/stylesheets/application.css.scss
@@ -0,0 +1,14 @@
+/*
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
+ * listed below.
+ *
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
+ *
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
+ * compiled file, but it's generally better to create a new file per style scope.
+ *
+ *= require_self
+ *= require_tree .
+ */
+@import "bootstrap";
\ No newline at end of file
diff --git a/app/assets/stylesheets/custom.sass b/app/assets/stylesheets/custom.sass
new file mode 100644
index 0000000..fcfe67f
--- /dev/null
+++ b/app/assets/stylesheets/custom.sass
@@ -0,0 +1,202 @@
+@import "bootstrap"
+
+/* mixins, variables, etc. */
+
+$grayMediumLight: #eaeaea
+
+@mixin box_sizing
+ -moz-box-sizing: border-box
+ -webkit-box-sizing: border-box
+ box-sizing: border-box
+
+/* universal */
+
+.alert-timedout
+ display: none
+html
+ overflow-y: scroll
+
+body
+ padding-top: 60px
+
+section
+ overflow: auto
+
+textarea
+ resize: vertical
+
+.center
+ text-align: center
+ h1
+ margin-bottom: 10px
+
+/* typography */
+
+h1, h2, h3, h4, h5, h6
+ line-height: 1
+
+h1
+ font-size: 3em
+ letter-spacing: -2px
+ margin-bottom: 30px
+ text-align: center
+
+h2
+ font-size: 1.7em
+ letter-spacing: -1px
+ margin-bottom: 30px
+ text-align: center
+ font-weight: normal
+ color: $grayLight
+
+p
+ font-size: 1.1em
+ line-height: 1.7em
+
+
+/* header */
+
+#logo
+ float: left
+ margin-right: 10px
+ font-size: 1.7em
+ color: white
+ text-transform: uppercase
+ letter-spacing: -1px
+ padding-top: 9px
+ font-weight: bold
+ line-height: 1
+ &:hover
+ color: white
+ text-decoration: none
+
+/* footer */
+
+footer
+ margin-top: 45px
+ padding-top: 5px
+ border-top: 1px solid $grayMediumLight
+ color: $grayLight
+ a
+ color: $gray
+ &:hover
+ color: $grayDarker
+
+
+ small
+ float: left
+
+ ul
+ float: right
+ list-style: none
+ li
+ float: left
+ margin-left: 10px
+
+
+
+/* miscellaneous */
+
+.debug_dump
+ clear: both
+ float: left
+ width: 100%
+ margin-top: 45px
+ @include box_sizing
+
+/* sidebar */
+
+aside
+ section
+ padding: 10px 0
+ border-top: 1px solid $grayLighter
+ &:first-child
+ border: 0
+ padding-top: 0
+
+ span
+ display: block
+ margin-bottom: 3px
+ line-height: 1
+
+ h1
+ font-size: 1.6em
+ text-align: left
+ letter-spacing: -1px
+ margin-bottom: 3px
+
+
+
+
+.gravatar
+ float: left
+ margin-right: 10px
+
+
+
+
+/* forms */
+
+input, textarea, select, .uneditable-input
+ border: 1px solid #bbb
+ width: 100%
+ padding: 10px
+ height: auto
+ margin-bottom: 15px
+ @include box_sizing
+
+
+#error_explanation
+ color: #f00
+ ul
+ list-style: none
+ margin: 0 0 18px 0
+
+
+
+.field_with_errors
+ @extend .control-group
+ @extend .error
+
+
+/* users index */
+
+.users
+ list-style: none
+ margin: 0
+ li
+ overflow: auto
+ padding: 10px 0
+ border-top: 1px solid $grayLighter
+ &:last-child
+ border-bottom: 1px solid $grayLighter
+
+
+
+
+/* microposts */
+
+.microposts
+ list-style: none
+ margin: 10px 0 0 0
+
+ li
+ padding: 10px 0
+ border-top: 1px solid #e8e8e8
+
+
+.content
+ display: block
+
+.timestamp
+ color: $grayLight
+
+.gravatar
+ float: left
+ margin-right: 10px
+
+aside
+ textarea
+ height: 100px
+ margin-bottom: 5px
+
diff --git a/app/assets/stylesheets/data_tables.sass b/app/assets/stylesheets/data_tables.sass
new file mode 100644
index 0000000..6b1bfe7
--- /dev/null
+++ b/app/assets/stylesheets/data_tables.sass
@@ -0,0 +1,102 @@
+.create_header
+ padding-left: 100px
+
+.container
+ .dataTables_processing
+ position: fixed
+ top: 40%
+ left: 60%
+ width: 150px
+ height: 50px
+ float: left
+ margin-left: -125px
+ margin-top: -15px
+ padding: 10px
+ font-weight: bold
+ text-align: center
+ color: #999
+ font-size: 12px
+ background-color: #FFF
+ color: black
+ border-radius: 3px
+ border: 1px solid #c11428
+
+ .data_container .data_table_program_access
+ width: 800px !important
+ label
+ float: left
+ .data_container
+ padding-top: 20px
+ padding-bottom: 20px
+ margin-top: 20px
+ table.data_table
+ min-width: 550px
+ width: 800px
+ border-collapse: collapse
+ border-style: solid
+ border-width: 1px
+ border-color: #c9c9c9
+ clear: both
+ thead
+ tr
+ color: black
+ font-weight: 900
+ &.odd
+ background-color: white
+ th
+ min-width: 80px
+ padding: 0px
+ text-align: left
+ height: 28px
+ border: 1px solid #c9c9c9
+ padding-left: 8px
+ color: #454545
+ font-size: 12px
+ font-family: Helvetica
+ font-weight: bold
+ text-transform: uppercase
+ tbody
+ tr
+ &.even
+ background-color: #ebebeb
+ td
+ min-width: 50px
+ border: 1px solid #c9c9c9
+ height: 35px
+ max-height: 35px
+ min-height: 35px
+ padding-left: 8px
+ padding-right: 14px
+ max-width: 300px
+ word-wrap: break-word
+ font-family: Helvetica
+ font-size: 12px
+
+ .dataTables_length
+ float: left
+ .show_per_page
+ float: left
+ font-family: Helvetica
+ label
+ padding-top: 0
+ .dataTables_wrapper
+ width: 800px
+ margin: 0px auto
+ .bottom
+ display: inline-block
+ width: 100%
+ margin-top: 25px
+ .dataTables_paginate
+ display: inline-block
+ float: right
+ .ui-state-default
+ cursor: pointer
+ &.ui-state-disabled
+ pointer-events: none
+ cursor: auto
+ .ui-button
+ margin: 0 5px
+ border: none
+ background: #FFF
+ .button
+ padding: none
\ No newline at end of file
diff --git a/app/assets/stylesheets/popup.sass b/app/assets/stylesheets/popup.sass
new file mode 100644
index 0000000..7f0d035
--- /dev/null
+++ b/app/assets/stylesheets/popup.sass
@@ -0,0 +1,78 @@
+.popup_container
+ height: auto
+ width: auto
+
+ #popup_pg
+ background: none
+
+.popup
+ display: none
+ position: fixed
+ background: #FFFFFF
+ border: 2px solid #cecece
+ z-index: 35
+ padding: 12px
+ font-size: 13px
+ max-width: 400px
+
+ span
+ font-weight: bold
+ text-transform: uppercase
+ font-size: 16px
+ line-height: 35px
+
+ .content
+ float: left
+
+ .close_popup
+ cursor: pointer
+ float: right
+
+ .main_text
+ float: left
+ width: 100%
+ //@include clearfix
+
+ h1
+ text-align: left
+ color: #6FA5FD
+ font-size: 22px
+ font-weight: 700
+ border-bottom: 1px dotted #D3D3D3
+ padding-bottom: 2px
+ margin-bottom: 20px
+
+ .pop_close
+ font-size: 14px
+ line-height: 14px
+ right: 6px
+ top: 4px
+ position: absolute
+ color: #6fa5fd
+ font-weight: 700
+ display: block
+ cursor: pointer
+
+.popup_down_right
+ bottom: 0
+ right: 0
+ margin-bottom: 10px
+ margin-top: 12px
+ float: right
+
+ .btn_wrapper
+ float: right
+ margin-top: 6px
+
+ a
+ outline: none
+
+ a:hover
+ text-decoration: none
+
+.checkbox_label
+ cursor: pointer
+
+
+.asterik
+ font-weight: bold
\ No newline at end of file
diff --git a/app/assets/stylesheets/utilities.sass b/app/assets/stylesheets/utilities.sass
new file mode 100644
index 0000000..e1c3273
--- /dev/null
+++ b/app/assets/stylesheets/utilities.sass
@@ -0,0 +1,43 @@
+@mixin clearfix
+ &:after,
+ &:before
+ content: " "
+ display: table
+
+ &:after
+ clear: both
+
+#post_id
+ display: none
+
+.table_body
+ @include clearfix
+
+ // Table Items
+ .table_list_item
+ clear: both
+ padding: 0.5em 0
+ @include clearfix
+
+
+ // Deleted List Item
+ &.deleted_list_item
+ // Each Column item within a table row
+ // this is on every column class; style widths and column styles (fonts, icons, etc) in each app
+ .table_column_item
+ display: inline-block
+ padding-left: 1em
+ width: 10%
+ width: 13% // mobile-half-1 is still too big!
+ padding: 8px 0 0 0
+
+ // filenames, dashboard names, etc
+ .item_title
+ font-weight: 600
+
+#popup_pg
+ z-index: 1050
+
+#new_post
+ .table_column_item
+ width: 70%
\ No newline at end of file
diff --git a/app/controllers/admin/application_controller.rb b/app/controllers/admin/application_controller.rb
new file mode 100644
index 0000000..caf92a2
--- /dev/null
+++ b/app/controllers/admin/application_controller.rb
@@ -0,0 +1,13 @@
+module Admin
+ class ApplicationController < ::ApplicationController
+ before_filter :restrict_access!
+
+ private
+ def restrict_access!
+ unless current_user.is_admin?
+ flash[:notice] = "You are not authorised to view this page"
+ redirect_to root_path
+ end
+ end
+ end
+end
diff --git a/app/controllers/admin/home_controller.rb b/app/controllers/admin/home_controller.rb
new file mode 100644
index 0000000..626adb1
--- /dev/null
+++ b/app/controllers/admin/home_controller.rb
@@ -0,0 +1,4 @@
+class Admin::HomeController < Admin::ApplicationController
+ def index
+ end
+end
\ No newline at end of file
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb
new file mode 100644
index 0000000..e86ee4e
--- /dev/null
+++ b/app/controllers/admin/users_controller.rb
@@ -0,0 +1,34 @@
+class Admin::UsersController < Admin::ApplicationController
+
+ def index
+ end
+
+ def new
+ @user = User.new
+ end
+
+ def create
+ user = User.new
+ @errors = []
+ ActiveRecord::Base.transaction do
+ update_new_user user, params["user"]
+ end
+ redirect_to admin_home_index_path if @errors.blank?
+ end
+
+ private
+
+ def update_new_user user, new_user_hash
+ user.update_attributes(new_user_hash)
+ if user.errors.blank?
+ user.save!
+ user.roles << Role.find_by_name("Editor")
+ else
+ @errors = user.errors.full_messages
+ @errors.each do |e|
+ flash[:error] = e
+ end
+ redirect_to new_admin_user_path
+ end
+ end
+end
\ No newline at end of file
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
new file mode 100644
index 0000000..ae953a2
--- /dev/null
+++ b/app/controllers/application_controller.rb
@@ -0,0 +1,4 @@
+class ApplicationController < ActionController::Base
+ protect_from_forgery
+ before_filter :authenticate_user!
+end
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
new file mode 100644
index 0000000..91b8086
--- /dev/null
+++ b/app/controllers/home_controller.rb
@@ -0,0 +1,5 @@
+class HomeController < ApplicationController
+ def index
+
+ end
+end
\ No newline at end of file
diff --git a/app/controllers/post_controller.rb b/app/controllers/post_controller.rb
new file mode 100644
index 0000000..682ace1
--- /dev/null
+++ b/app/controllers/post_controller.rb
@@ -0,0 +1,61 @@
+class PostController < ApplicationController
+
+ include ApplicationHelper
+ skip_before_filter :authenticate_user!, :only => [:index, :show]
+
+ def index
+ @posts = current_user ? (current_user.is_admin? ? Post.all : (Post.published + current_user.posts)) : Post.published
+ end
+
+ def new
+ @post = Post.new
+ end
+
+ def create
+ post = Post.new
+ @errors = []
+ ActiveRecord::Base.transaction do
+ update_new_post post, params["post"]
+ end
+ redirect_to create_redirector_path if @errors.blank?
+ end
+
+
+ def published
+ @posts = Post.published
+ end
+
+ def drafts
+ @posts = Post.drafts
+ end
+
+ def publish_draft
+ post = Post.find(params["post_id"].to_i)
+ post.draft = false
+ post.save!
+ flash[:success] = "The article has been successfully published."
+ redirect_to posts_drafts_path
+ end
+
+ def show
+ post = Post.find(params["id"].to_i)
+ render :partial => "show_post", :locals => {:post => post}
+ end
+
+ private
+
+ def update_new_post post, new_post_hash
+ post.update_attributes(new_post_hash)
+ if post.errors.blank?
+ post.owner_id = current_user.id
+ current_user.can_publish? ? (post.draft = false) : (post.draft = true)
+ post.save!
+ else
+ @errors = post.errors.full_messages
+ @errors.each do |e|
+ flash[:error] = e
+ end
+ redirect_to new_post_path
+ end
+ end
+end
\ No newline at end of file
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
new file mode 100644
index 0000000..3ab7800
--- /dev/null
+++ b/app/controllers/registrations_controller.rb
@@ -0,0 +1,9 @@
+class RegistrationsController < Devise::RegistrationsController
+
+ def create
+ @user = User.create(params["user"])
+ @user.roles << Role.find_by_name("Reporter")
+ sign_in @user
+ redirect_to root_path
+ end
+end
\ No newline at end of file
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
new file mode 100644
index 0000000..3becc99
--- /dev/null
+++ b/app/controllers/sessions_controller.rb
@@ -0,0 +1,9 @@
+class SessionsController < Devise::SessionsController
+ def after_sign_in_path_for(resource)
+ if resource.is_a?(User)
+ resource.is_admin? ? admin_home_index_path : root_path
+ else
+ super
+ end
+ end
+end
\ No newline at end of file
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb
new file mode 100644
index 0000000..995236f
--- /dev/null
+++ b/app/controllers/user_controller.rb
@@ -0,0 +1,6 @@
+class UserController < ApplicationController
+
+ def index
+ @users = User.all
+ end
+end
\ No newline at end of file
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
new file mode 100644
index 0000000..1e90ac9
--- /dev/null
+++ b/app/helpers/application_helper.rb
@@ -0,0 +1,6 @@
+module ApplicationHelper
+
+ def create_redirector_path
+ current_user.is_admin? ? admin_home_index_path : root_path
+ end
+end
diff --git a/app/mailers/.gitkeep b/app/mailers/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/app/models/.gitkeep b/app/models/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/app/models/permission.rb b/app/models/permission.rb
new file mode 100644
index 0000000..c64c080
--- /dev/null
+++ b/app/models/permission.rb
@@ -0,0 +1,3 @@
+class Permission < ActiveRecord::Base
+ has_and_belongs_to_many :roles
+end
diff --git a/app/models/post.rb b/app/models/post.rb
new file mode 100644
index 0000000..851fd38
--- /dev/null
+++ b/app/models/post.rb
@@ -0,0 +1,8 @@
+class Post < ActiveRecord::Base
+ belongs_to :users
+ validates :title, :presence => true, :length => {:maximum => 30}
+ validates :body, :presence => true, :length => {:maximum => 500}
+
+ scope :drafts, where("draft = ?", true)
+ scope :published, where("draft = ?", false)
+end
diff --git a/app/models/role.rb b/app/models/role.rb
new file mode 100644
index 0000000..4828b44
--- /dev/null
+++ b/app/models/role.rb
@@ -0,0 +1,4 @@
+class Role < ActiveRecord::Base
+ has_and_belongs_to_many :users
+ has_and_belongs_to_many :permissions
+end
diff --git a/app/models/user.rb b/app/models/user.rb
new file mode 100644
index 0000000..d721376
--- /dev/null
+++ b/app/models/user.rb
@@ -0,0 +1,34 @@
+class User < ActiveRecord::Base
+ devise :database_authenticatable, :registerable,
+ :recoverable, :rememberable, :trackable, :validatable, :timeoutable
+
+ # Setup accessible (or protected) attributes for your model
+
+ validates :name, presence: true, length: { maximum: 50 }
+ VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
+ validates :email, presence: true,
+ format: { with: VALID_EMAIL_REGEX },
+ uniqueness: { case_sensitive: false }
+
+ has_and_belongs_to_many :roles
+ has_many :permissions, :through => :roles
+ has_many :posts, :foreign_key => "owner_id"
+
+ accepts_nested_attributes_for :roles
+
+ def has_permission? perm
+ self.permissions.pluck(:name).include? perm
+ end
+
+ def has_role? role
+ self.roles.include? role
+ end
+
+ def is_admin?
+ self.has_permission? "application_admin"
+ end
+
+ def can_publish?
+ self.has_permission? "can_publish"
+ end
+end
diff --git a/app/views/admin/home/index.html.erb b/app/views/admin/home/index.html.erb
new file mode 100644
index 0000000..1bea26b
--- /dev/null
+++ b/app/views/admin/home/index.html.erb
@@ -0,0 +1,5 @@
+
<%= link_to "Create New Editor", new_admin_user_path %>
+
<%= link_to "View All Users", user_index_path %>
+
<%= link_to "View All Drafted Posts", posts_drafts_path %>
+
<%= link_to "View All Published Posts", posts_published_path %>
+
<%= link_to "Create new post", new_post_path %>
\ No newline at end of file
diff --git a/app/views/admin/users/new.html.erb b/app/views/admin/users/new.html.erb
new file mode 100644
index 0000000..89f236b
--- /dev/null
+++ b/app/views/admin/users/new.html.erb
@@ -0,0 +1,29 @@
+<%= form_for @user, :url => admin_users_path, :html=>{:multipart=>true, :novalidate => "novalidate"} do |f| %>
+
+<% end %>
\ No newline at end of file
diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb
new file mode 100644
index 0000000..691f2a5
--- /dev/null
+++ b/app/views/devise/registrations/new.html.erb
@@ -0,0 +1,20 @@
+
<%= link_to "Publish", post_publish_draft_path(:post_id => post.id), :id => "publish_post_link",
+ :confirm=>"Are you sure you want to publish this article?" %>
+ <% end %>
+
+ <% end %>
+
+
+
+
+
\ No newline at end of file
diff --git a/app/views/post/index.html.erb b/app/views/post/index.html.erb
new file mode 100644
index 0000000..4d61d14
--- /dev/null
+++ b/app/views/post/index.html.erb
@@ -0,0 +1,44 @@
+
+
All Published Posts
+ <%= link_to "Create new post", new_post_path %>
+
+<% end %>
\ No newline at end of file
diff --git a/app/views/post/published.html.erb b/app/views/post/published.html.erb
new file mode 100644
index 0000000..7d249fc
--- /dev/null
+++ b/app/views/post/published.html.erb
@@ -0,0 +1,41 @@
+
+
Published Articles
+ <%= link_to "Create new post", new_post_path %>
+
+
+
\ No newline at end of file
diff --git a/app/views/shared/_common_popup.html.erb b/app/views/shared/_common_popup.html.erb
new file mode 100644
index 0000000..f700688
--- /dev/null
+++ b/app/views/shared/_common_popup.html.erb
@@ -0,0 +1,12 @@
+
diff --git a/app/views/user/index.html.erb b/app/views/user/index.html.erb
new file mode 100644
index 0000000..2e1b688
--- /dev/null
+++ b/app/views/user/index.html.erb
@@ -0,0 +1,40 @@
+
+
All Users
+ <%= link_to "Create User", new_admin_user_path if current_user.is_admin? %>
+
+
+
+
+
+
User Id
+
User Name
+
User Email
+
+
+
+ <% @users.each do |user| %>
+
+
<%= user.id %>
+
<%= user.name %>
+
+
<%= user.email %>
+
+ <% end %>
+
+
+
+
+
\ No newline at end of file
diff --git a/config.ru b/config.ru
new file mode 100644
index 0000000..65bd7ac
--- /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 Blogger::Application
diff --git a/config/application.rb b/config/application.rb
new file mode 100644
index 0000000..90caef1
--- /dev/null
+++ b/config/application.rb
@@ -0,0 +1,68 @@
+require File.expand_path('../boot', __FILE__)
+
+# Pick the frameworks you want:
+require "active_record/railtie"
+require "action_controller/railtie"
+require "action_mailer/railtie"
+require "active_resource/railtie"
+require "sprockets/railtie"
+# require "rails/test_unit/railtie"
+
+if defined?(Bundler)
+ # If you precompile assets before deploying to production, use this line
+ Bundler.require(*Rails.groups(:assets => %w(development test)))
+ # If you want your assets lazily compiled in production, use this line
+ # Bundler.require(:default, :assets, Rails.env)
+end
+
+module Blogger
+ 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.
+
+ # Custom directories with classes and modules you want to be autoloadable.
+ # config.autoload_paths += %W(#{config.root}/extras)
+
+ # Only load the plugins named here, in the order given (default is alphabetical).
+ # :all can be used as a placeholder for all plugins not explicitly named.
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
+
+ # Activate observers that should always be running.
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
+
+ # 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
+
+ # Configure the default encoding used in templates for Ruby 1.9.
+ config.encoding = "utf-8"
+
+ # Configure sensitive parameters which will be filtered from the log file.
+ config.filter_parameters += [:password]
+
+ # Enable escaping HTML in JSON.
+ config.active_support.escape_html_entities_in_json = true
+
+ # Use SQL instead of Active Record's schema dumper when creating the database.
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
+ # like if you have constraints or database-specific column types
+ # config.active_record.schema_format = :sql
+
+ # Enforce whitelist mode for mass assignment.
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
+ # parameters by using an attr_accessible or attr_protected declaration.
+ config.active_record.whitelist_attributes = false
+
+ # Enable the asset pipeline
+ config.assets.enabled = true
+
+ # Version of your assets, change this if you want to expire all your assets
+ config.assets.version = '1.0'
+ end
+end
diff --git a/config/boot.rb b/config/boot.rb
new file mode 100644
index 0000000..4489e58
--- /dev/null
+++ b/config/boot.rb
@@ -0,0 +1,6 @@
+require 'rubygems'
+
+# Set up gems listed in the Gemfile.
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
+
+require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
diff --git a/config/database.yml b/config/database.yml
new file mode 100644
index 0000000..0333eb0
--- /dev/null
+++ b/config/database.yml
@@ -0,0 +1,27 @@
+development:
+ adapter: mysql2
+ encoding: utf8
+ reconnect: false
+ database: study_db
+ pool: 5
+ username: root
+ password: root
+
+test:
+ adapter: mysql2
+ encoding: utf8
+ reconnect: false
+ database: study_db_test
+ pool: 5
+ username: root
+ password: root
+# socket: /var/lib/mysql/mysql.sock
+
+production:
+ adapter: mysql2
+ encoding: utf8
+ reconnect: false
+ database: study_db_test
+ pool: 50
+ username: root
+ password: root
diff --git a/config/environment.rb b/config/environment.rb
new file mode 100644
index 0000000..919ee1a
--- /dev/null
+++ b/config/environment.rb
@@ -0,0 +1,5 @@
+# Load the rails application
+require File.expand_path('../application', __FILE__)
+
+# Initialize the rails application
+Blogger::Application.initialize!
diff --git a/config/environments/development.rb b/config/environments/development.rb
new file mode 100644
index 0000000..396eba0
--- /dev/null
+++ b/config/environments/development.rb
@@ -0,0 +1,37 @@
+Blogger::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
+
+ # In the development environment your application's code is reloaded on
+ # every request. This slows down response time but is perfect for development
+ # since you don't have to restart the web server when you make code changes.
+ config.cache_classes = false
+
+ # Log error messages when you accidentally call methods on nil.
+ config.whiny_nils = true
+
+ # Show full error reports and disable caching
+ config.consider_all_requests_local = true
+ config.action_controller.perform_caching = false
+
+ # Don't care if the mailer can't send
+ config.action_mailer.raise_delivery_errors = false
+
+ # Print deprecation notices to the Rails logger
+ config.active_support.deprecation = :log
+
+ # Only use best-standards-support built into browsers
+ config.action_dispatch.best_standards_support = :builtin
+
+ # Raise exception on mass assignment protection for Active Record models
+ config.active_record.mass_assignment_sanitizer = :strict
+
+ # Log the query plan for queries taking more than this (works
+ # with SQLite, MySQL, and PostgreSQL)
+ config.active_record.auto_explain_threshold_in_seconds = 0.5
+
+ # Do not compress assets
+ config.assets.compress = false
+
+ # Expands the lines which load the assets
+ config.assets.debug = false
+end
diff --git a/config/environments/production.rb b/config/environments/production.rb
new file mode 100644
index 0000000..d3a0b26
--- /dev/null
+++ b/config/environments/production.rb
@@ -0,0 +1,67 @@
+Blogger::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
+
+ # Code is not reloaded between requests
+ config.cache_classes = true
+
+ # Full error reports are disabled and caching is turned on
+ config.consider_all_requests_local = false
+ config.action_controller.perform_caching = true
+
+ # Disable Rails's static asset server (Apache or nginx will already do this)
+ config.serve_static_assets = false
+
+ # Compress JavaScripts and CSS
+ config.assets.compress = true
+
+ # Don't fallback to assets pipeline if a precompiled asset is missed
+ config.assets.compile = false
+
+ # Generate digests for assets URLs
+ config.assets.digest = true
+
+ # Defaults to nil and saved in location specified by config.assets.prefix
+ # config.assets.manifest = YOUR_PATH
+
+ # Specifies the header that your server uses for sending files
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
+
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
+ # config.force_ssl = true
+
+ # See everything in the log (default is :info)
+ # config.log_level = :debug
+
+ # Prepend all log lines with the following tags
+ # config.log_tags = [ :subdomain, :uuid ]
+
+ # Use a different logger for distributed setups
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
+
+ # Use a different cache store in production
+ # config.cache_store = :mem_cache_store
+
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
+ # config.action_controller.asset_host = "http://assets.example.com"
+
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
+ # config.assets.precompile += %w( search.js )
+
+ # Disable delivery errors, bad email addresses will be ignored
+ # config.action_mailer.raise_delivery_errors = false
+
+ # Enable threaded mode
+ # config.threadsafe!
+
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
+ # the I18n.default_locale when a translation can not be found)
+ config.i18n.fallbacks = true
+
+ # Send deprecation notices to registered listeners
+ config.active_support.deprecation = :notify
+
+ # Log the query plan for queries taking more than this (works
+ # with SQLite, MySQL, and PostgreSQL)
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
+end
diff --git a/config/environments/test.rb b/config/environments/test.rb
new file mode 100644
index 0000000..53b3fc2
--- /dev/null
+++ b/config/environments/test.rb
@@ -0,0 +1,37 @@
+Blogger::Application.configure do
+ # Settings specified here will take precedence over those in config/application.rb
+
+ # The test environment is used exclusively to run your application's
+ # test suite. You never need to work with it otherwise. Remember that
+ # your test database is "scratch space" for the test suite and is wiped
+ # and recreated between test runs. Don't rely on the data there!
+ config.cache_classes = true
+
+ # Configure static asset server for tests with Cache-Control for performance
+ config.serve_static_assets = true
+ config.static_cache_control = "public, max-age=3600"
+
+ # Log error messages when you accidentally call methods on nil
+ config.whiny_nils = true
+
+ # Show full error reports and disable caching
+ config.consider_all_requests_local = true
+ config.action_controller.perform_caching = false
+
+ # Raise exceptions instead of rendering exception templates
+ config.action_dispatch.show_exceptions = false
+
+ # Disable request forgery protection in test environment
+ config.action_controller.allow_forgery_protection = false
+
+ # Tell Action Mailer not to deliver emails to the real world.
+ # The :test delivery method accumulates sent emails in the
+ # ActionMailer::Base.deliveries array.
+ config.action_mailer.delivery_method = :test
+
+ # Raise exception on mass assignment protection for Active Record models
+ config.active_record.mass_assignment_sanitizer = :strict
+
+ # Print deprecation notices to the stderr
+ config.active_support.deprecation = :stderr
+end
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/devise.rb b/config/initializers/devise.rb
new file mode 100644
index 0000000..df9a37b
--- /dev/null
+++ b/config/initializers/devise.rb
@@ -0,0 +1,247 @@
+# Use this hook to configure devise mailer, warden hooks and so forth.
+# Many of these configuration options can be set straight in your model.
+Devise.setup do |config|
+ # ==> Mailer Configuration
+ # Configure the e-mail address which will be shown in Devise::Mailer,
+ # note that it will be overwritten if you use your own mailer class with default "from" parameter.
+ config.mailer_sender = "shanil.puri@gmail.com"
+
+ config.timeout_in = 2.hours
+ # Configure the class responsible to send e-mails.
+ # config.mailer = "Devise::Mailer"
+
+ # ==> ORM configuration
+ # Load and configure the ORM. Supports :active_record (default) and
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
+ # available as additional gems.
+ require 'devise/orm/active_record'
+
+ # ==> Configuration for any authentication mechanism
+ # Configure which keys are used when authenticating a user. The default is
+ # just :email. You can configure it to use [:username, :subdomain], so for
+ # authenticating a user, both parameters are required. Remember that those
+ # parameters are used only when authenticating and not when retrieving from
+ # session. If you need permissions, you should implement that in a before filter.
+ # You can also supply a hash where the value is a boolean determining whether
+ # or not authentication should be aborted when the value is not present.
+ # config.authentication_keys = [ :email ]
+
+ # Configure parameters from the request object used for authentication. Each entry
+ # given should be a request method and it will automatically be passed to the
+ # find_for_authentication method and considered in your model lookup. For instance,
+ # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
+ # The same considerations mentioned for authentication_keys also apply to request_keys.
+ # config.request_keys = []
+
+ # Configure which authentication keys should be case-insensitive.
+ # These keys will be downcased upon creating or modifying a user and when used
+ # to authenticate or find a user. Default is :email.
+ config.case_insensitive_keys = [ :email ]
+
+ # Configure which authentication keys should have whitespace stripped.
+ # These keys will have whitespace before and after removed upon creating or
+ # modifying a user and when used to authenticate or find a user. Default is :email.
+ config.strip_whitespace_keys = [ :email ]
+
+ # Tell if authentication through request.params is enabled. True by default.
+ # It can be set to an array that will enable params authentication only for the
+ # given strategies, for example, `config.params_authenticatable = [:database]` will
+ # enable it only for database (email + password) authentication.
+ # config.params_authenticatable = true
+
+ # Tell if authentication through HTTP Auth is enabled. False by default.
+ # It can be set to an array that will enable http authentication only for the
+ # given strategies, for example, `config.http_authenticatable = [:token]` will
+ # enable it only for token authentication. The supported strategies are:
+ # :database = Support basic authentication with authentication key + password
+ # :token = Support basic authentication with token authentication key
+ # :token_options = Support token authentication with options as defined in
+ # http://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Token.html
+ # config.http_authenticatable = false
+
+ # If http headers should be returned for AJAX requests. True by default.
+ # config.http_authenticatable_on_xhr = true
+
+ # The realm used in Http Basic Authentication. "Application" by default.
+ # config.http_authentication_realm = "Application"
+
+ # It will change confirmation, password recovery and other workflows
+ # to behave the same regardless if the e-mail provided was right or wrong.
+ # Does not affect registerable.
+ # config.paranoid = true
+
+ # By default Devise will store the user in session. You can skip storage for
+ # :http_auth and :token_auth by adding those symbols to the array below.
+ # Notice that if you are skipping storage for all authentication paths, you
+ # may want to disable generating routes to Devise's sessions controller by
+ # passing :skip => :sessions to `devise_for` in your config/routes.rb
+ config.skip_session_storage = [:http_auth]
+
+ # ==> Configuration for :database_authenticatable
+ # For bcrypt, this is the cost for hashing the password and defaults to 10. If
+ # using other encryptors, it sets how many times you want the password re-encrypted.
+ #
+ # Limiting the stretches to just one in testing will increase the performance of
+ # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
+ # a value less than 10 in other environments.
+ config.stretches = Rails.env.test? ? 1 : 10
+
+ # Setup a pepper to generate the encrypted password.
+ # config.pepper = "c02de8d17a49fb55e695bf5eb454474ba33ac56259df935511a960aa1510d51cfcad7b75a7037cc968c0b12f0f7bff0e691ff5b340ca35f89ff67000116ed44a"
+
+ # ==> Configuration for :confirmable
+ # A period that the user is allowed to access the website even without
+ # confirming his account. For instance, if set to 2.days, the user will be
+ # able to access the website for two days without confirming his account,
+ # access will be blocked just in the third day. Default is 0.days, meaning
+ # the user cannot access the website without confirming his account.
+ # config.allow_unconfirmed_access_for = 2.days
+
+ # A period that the user is allowed to confirm their account before their
+ # token becomes invalid. For example, if set to 3.days, the user can confirm
+ # their account within 3 days after the mail was sent, but on the fourth day
+ # their account can't be confirmed with the token any more.
+ # Default is nil, meaning there is no restriction on how long a user can take
+ # before confirming their account.
+ # config.confirm_within = 3.days
+
+ # If true, requires any email changes to be confirmed (exactly the same way as
+ # initial account confirmation) to be applied. Requires additional unconfirmed_email
+ # db field (see migrations). Until confirmed new email is stored in
+ # unconfirmed email column, and copied to email column on successful confirmation.
+ config.reconfirmable = true
+
+ # Defines which key will be used when confirming an account
+ # config.confirmation_keys = [ :email ]
+
+ # ==> Configuration for :rememberable
+ # The time the user will be remembered without asking for credentials again.
+ # config.remember_for = 2.weeks
+
+ # If true, extends the user's remember period when remembered via cookie.
+ # config.extend_remember_period = false
+
+ # Options to be passed to the created cookie. For instance, you can set
+ # :secure => true in order to force SSL only cookies.
+ # config.rememberable_options = {}
+
+ # ==> Configuration for :validatable
+ # Range for password length. Default is 8..128.
+ config.password_length = 8..128
+
+ # Email regex used to validate email formats. It simply asserts that
+ # one (and only one) @ exists in the given string. This is mainly
+ # to give user feedback and not to assert the e-mail validity.
+ # config.email_regexp = /\A[^@]+@[^@]+\z/
+
+ # ==> Configuration for :timeoutable
+ # The time you want to timeout the user session without activity. After this
+ # time the user will be asked for credentials again. Default is 30 minutes.
+ # config.timeout_in = 30.minutes
+
+ # If true, expires auth token on session timeout.
+ # config.expire_auth_token_on_timeout = false
+
+ # ==> Configuration for :lockable
+ # Defines which strategy will be used to lock an account.
+ # :failed_attempts = Locks an account after a number of failed attempts to sign in.
+ # :none = No lock strategy. You should handle locking by yourself.
+ # config.lock_strategy = :failed_attempts
+
+ # Defines which key will be used when locking and unlocking an account
+ # config.unlock_keys = [ :email ]
+
+ # Defines which strategy will be used to unlock an account.
+ # :email = Sends an unlock link to the user email
+ # :time = Re-enables login after a certain amount of time (see :unlock_in below)
+ # :both = Enables both strategies
+ # :none = No unlock strategy. You should handle unlocking by yourself.
+ # config.unlock_strategy = :both
+
+ # Number of authentication tries before locking an account if lock_strategy
+ # is failed attempts.
+ # config.maximum_attempts = 20
+
+ # Time interval to unlock the account if :time is enabled as unlock_strategy.
+ # config.unlock_in = 1.hour
+
+ # ==> Configuration for :recoverable
+ #
+ # Defines which key will be used when recovering the password for an account
+ # config.reset_password_keys = [ :email ]
+
+ # Time interval you can reset your password with a reset password key.
+ # Don't put a too small interval or your users won't have the time to
+ # change their passwords.
+ config.reset_password_within = 6.hours
+
+ # ==> Configuration for :encryptable
+ # Allow you to use another encryption algorithm besides bcrypt (default). You can use
+ # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
+ # :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
+ # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
+ # REST_AUTH_SITE_KEY to pepper).
+ #
+ # Require the `devise-encryptable` gem when using anything other than bcrypt
+ # config.encryptor = :sha512
+
+ # ==> Configuration for :token_authenticatable
+ # Defines name of the authentication token params key
+ # config.token_authentication_key = :auth_token
+
+ # ==> Scopes configuration
+ # Turn scoped views on. Before rendering "sessions/new", it will first check for
+ # "users/sessions/new". It's turned off by default because it's slower if you
+ # are using only default views.
+ # config.scoped_views = false
+
+ # Configure the default scope given to Warden. By default it's the first
+ # devise role declared in your routes (usually :user).
+ # config.default_scope = :user
+
+ # Set this configuration to false if you want /users/sign_out to sign out
+ # only the current scope. By default, Devise signs out all scopes.
+ # config.sign_out_all_scopes = true
+
+ # ==> Navigation configuration
+ # Lists the formats that should be treated as navigational. Formats like
+ # :html, should redirect to the sign in page when the user does not have
+ # access, but formats like :xml or :json, should return 401.
+ #
+ # If you have any extra navigational formats, like :iphone or :mobile, you
+ # should add them to the navigational formats lists.
+ #
+ # The "*/*" below is required to match Internet Explorer requests.
+ # config.navigational_formats = ["*/*", :html]
+
+ # The default HTTP method used to sign out a resource. Default is :delete.
+ config.sign_out_via = :delete
+
+ # ==> OmniAuth
+ # Add a new OmniAuth provider. Check the wiki for more information on setting
+ # up on your models and hooks.
+ # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
+
+ # ==> Warden configuration
+ # If you want to use other strategies, that are not supported by Devise, or
+ # change the failure app, you can configure them inside the config.warden block.
+ #
+ # config.warden do |manager|
+ # manager.intercept_401 = false
+ # manager.default_strategies(:scope => :user).unshift :some_external_strategy
+ # end
+
+ # ==> Mountable engine configurations
+ # When using Devise inside an engine, let's call it `MyEngine`, and this engine
+ # is mountable, there are some extra configurations to be taken into account.
+ # The following options are available, assuming the engine is mounted as:
+ #
+ # mount MyEngine, at: "/my_engine"
+ #
+ # The router that invoked `devise_for`, in the example above, would be:
+ # config.router_name = :my_engine
+ #
+ # When using omniauth, Devise cannot automatically set Omniauth path,
+ # so you need to do it manually. For the users scope, it would be:
+ # config.omniauth_path_prefix = "/my_engine/users/auth"
+end
diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb
new file mode 100644
index 0000000..5d8d9be
--- /dev/null
+++ b/config/initializers/inflections.rb
@@ -0,0 +1,15 @@
+# Be sure to restart your server when you modify this file.
+
+# Add new inflection rules using the following format
+# (all these examples are active by default):
+# ActiveSupport::Inflector.inflections 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 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..72aca7e
--- /dev/null
+++ b/config/initializers/mime_types.rb
@@ -0,0 +1,5 @@
+# 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
+# Mime::Type.register_alias "text/html", :iphone
diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb
new file mode 100644
index 0000000..725ced8
--- /dev/null
+++ b/config/initializers/secret_token.rb
@@ -0,0 +1,7 @@
+# Be sure to restart your server when you modify this file.
+
+# Your secret key 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.
+Blogger::Application.config.secret_token = 'e7c6a61ced4840ac6b7dd58bb2b6d8708836d4ac201fdd0210a0444ca49f78f918240b5344349db97884eb57ddc476eeeba75eb7796d907f820776929a64a1fe'
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb
new file mode 100644
index 0000000..bb0e10a
--- /dev/null
+++ b/config/initializers/session_store.rb
@@ -0,0 +1,8 @@
+# Be sure to restart your server when you modify this file.
+
+Blogger::Application.config.session_store :cookie_store, key: '_blogger_session'
+
+# Use the database for sessions instead of the cookie-based default,
+# which shouldn't be used to store highly confidential information
+# (create the session table with "rails generate session_migration")
+# Blogger::Application.config.session_store :active_record_store
diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb
new file mode 100644
index 0000000..999df20
--- /dev/null
+++ b/config/initializers/wrap_parameters.rb
@@ -0,0 +1,14 @@
+# 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]
+end
+
+# Disable root element in JSON by default.
+ActiveSupport.on_load(:active_record) do
+ self.include_root_in_json = false
+end
diff --git a/config/locales/database.yml.copy b/config/locales/database.yml.copy
new file mode 100644
index 0000000..2311d25
--- /dev/null
+++ b/config/locales/database.yml.copy
@@ -0,0 +1,26 @@
+development:
+ adapter: mysql2
+ encoding: utf8
+ reconnect: false
+ database: study_db
+ pool: 5
+ username: root
+ password:
+
+test:
+ adapter: mysql2
+ encoding: utf8
+ reconnect: false
+ database: study_db_test
+ pool: 5
+ username: root
+ password:
+
+production:
+ adapter: mysql2
+ encoding: utf8
+ reconnect: false
+ database: study_db_prod
+ pool: 50
+ username: root
+ password:
\ No newline at end of file
diff --git a/config/locales/devise.en.yml b/config/locales/devise.en.yml
new file mode 100644
index 0000000..d01f375
--- /dev/null
+++ b/config/locales/devise.en.yml
@@ -0,0 +1,59 @@
+# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
+
+en:
+ devise:
+ confirmations:
+ confirmed: "Your account was successfully confirmed. You are now signed in."
+ send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
+ send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes."
+ failure:
+ already_authenticated: "You are already signed in."
+ inactive: "Your account was not activated yet."
+ invalid: "Invalid email or password."
+ invalid_token: "Invalid authentication token."
+ locked: "Your account is locked."
+ not_found_in_database: "Invalid email or password."
+ timeout: "Your session expired, please sign in again to continue."
+ unauthenticated: "You need to sign in or sign up before continuing."
+ unconfirmed: "You have to confirm your account before continuing."
+ mailer:
+ confirmation_instructions:
+ subject: "Confirmation instructions"
+ reset_password_instructions:
+ subject: "Reset password instructions"
+ unlock_instructions:
+ subject: "Unlock Instructions"
+ omniauth_callbacks:
+ failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
+ success: "Successfully authenticated from %{kind} account."
+ passwords:
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
+ send_instructions: "You will receive an email with instructions about how to reset your password in a few minutes."
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
+ updated: "Your password was changed successfully. You are now signed in."
+ updated_not_active: "Your password was changed successfully."
+ registrations:
+ destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
+ signed_up: "Welcome! You have signed up successfully."
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
+ signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account."
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
+ updated: "You updated your account successfully."
+ sessions:
+ signed_in: "Signed in successfully."
+ signed_out: "Signed out successfully."
+ unlocks:
+ send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
+ send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
+ errors:
+ messages:
+ already_confirmed: "was already confirmed, please try signing in"
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
+ expired: "has expired, please request a new one"
+ not_found: "not found"
+ not_locked: "was not locked"
+ not_saved:
+ one: "1 error prohibited this %{resource} from being saved:"
+ other: "%{count} errors prohibited this %{resource} from being saved:"
diff --git a/config/locales/en.yml b/config/locales/en.yml
new file mode 100644
index 0000000..179c14c
--- /dev/null
+++ b/config/locales/en.yml
@@ -0,0 +1,5 @@
+# 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:
+ hello: "Hello world"
diff --git a/config/routes.rb b/config/routes.rb
new file mode 100644
index 0000000..84a895e
--- /dev/null
+++ b/config/routes.rb
@@ -0,0 +1,75 @@
+Blogger::Application.routes.draw do
+ devise_for :users, :controllers => {:registrations => "registrations", :sessions=>"sessions"}
+
+ root :to => "home#index"
+
+ namespace :admin do
+ resources :home , :only => [:index]
+ resources :users
+ end
+
+ resources :user
+
+ match "posts/published", :to => "post#published"
+ match "posts/drafts", :to => "post#drafts"
+ resources :post do
+ get :show_post_body
+ get :publish_draft
+ end
+ # The priority is based upon order of creation:
+ # first created -> highest priority.
+
+ # Sample of regular route:
+ # match 'products/:id' => 'catalog#view'
+ # Keep in mind you can assign values other than :controller and :action
+
+ # Sample of named route:
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
+ # This route can be invoked with purchase_url(:id => product.id)
+
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
+ # resources :products
+
+ # Sample resource route with options:
+ # resources :products do
+ # member do
+ # get 'short'
+ # post 'toggle'
+ # end
+ #
+ # collection do
+ # get 'sold'
+ # end
+ # end
+
+ # Sample resource route with sub-resources:
+ # resources :products do
+ # resources :comments, :sales
+ # resource :seller
+ # end
+
+ # Sample resource route with more complex sub-resources
+ # resources :products do
+ # resources :comments
+ # resources :sales do
+ # get 'recent', :on => :collection
+ # end
+ # end
+
+ # Sample resource route within a namespace:
+ # namespace :admin do
+ # # Directs /admin/products/* to Admin::ProductsController
+ # # (app/controllers/admin/products_controller.rb)
+ # resources :products
+ # end
+
+ # You can have the root of your site routed with "root"
+ # just remember to delete public/index.html.
+ # root :to => 'welcome#index'
+
+ # See how all your routes lay out with "rake routes"
+
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
+ # Note: This route will make all actions in every controller accessible via GET requests.
+ # match ':controller(/:action(/:id))(.:format)'
+end
diff --git a/db/migrate/20130618222432_devise_create_users.rb b/db/migrate/20130618222432_devise_create_users.rb
new file mode 100644
index 0000000..0c2baf4
--- /dev/null
+++ b/db/migrate/20130618222432_devise_create_users.rb
@@ -0,0 +1,28 @@
+class DeviseCreateUsers < ActiveRecord::Migration
+ def change
+ create_table(:users) do |t|
+ ## Database authenticatable
+ t.string :email, :null => false, :default => ""
+ t.string :encrypted_password, :null => false, :default => ""
+
+ ## Recoverable
+ t.string :reset_password_token
+ t.datetime :reset_password_sent_at
+
+ ## Rememberable
+ t.datetime :remember_created_at
+
+ ## Trackable
+ t.integer :sign_in_count, :default => 0
+ t.datetime :current_sign_in_at
+ t.datetime :last_sign_in_at
+ t.string :current_sign_in_ip
+ t.string :last_sign_in_ip
+
+ t.timestamps
+ end
+
+ add_index :users, :email, :unique => true
+ add_index :users, :reset_password_token, :unique => true
+ end
+end
diff --git a/db/migrate/20130618224052_create_roles.rb b/db/migrate/20130618224052_create_roles.rb
new file mode 100644
index 0000000..88be80d
--- /dev/null
+++ b/db/migrate/20130618224052_create_roles.rb
@@ -0,0 +1,7 @@
+class CreateRoles < ActiveRecord::Migration
+ def change
+ create_table :roles do |t|
+ t.string :name
+ end
+ end
+end
diff --git a/db/migrate/20130618224239_roles_users.rb b/db/migrate/20130618224239_roles_users.rb
new file mode 100644
index 0000000..a5b6ae6
--- /dev/null
+++ b/db/migrate/20130618224239_roles_users.rb
@@ -0,0 +1,10 @@
+class RolesUsers < ActiveRecord::Migration
+ def change
+ create_table :roles_users, :id=>false do |t|
+ t.integer :role_id
+ t.string :user_id
+ end
+ add_index :roles_users, :role_id
+ add_index :roles_users, :user_id
+ end
+end
diff --git a/db/migrate/20130618232522_create_permissions.rb b/db/migrate/20130618232522_create_permissions.rb
new file mode 100644
index 0000000..8307d57
--- /dev/null
+++ b/db/migrate/20130618232522_create_permissions.rb
@@ -0,0 +1,7 @@
+class CreatePermissions < ActiveRecord::Migration
+ def change
+ create_table :permissions do |t|
+ t.string :name
+ end
+ end
+end
diff --git a/db/migrate/20130619074955_permissions_roles.rb b/db/migrate/20130619074955_permissions_roles.rb
new file mode 100644
index 0000000..f66ad77
--- /dev/null
+++ b/db/migrate/20130619074955_permissions_roles.rb
@@ -0,0 +1,8 @@
+class PermissionsRoles < ActiveRecord::Migration
+ def change
+ create_table :permissions_roles, :id=>false do |t|
+ t.integer :permission_id
+ t.string :role_id
+ end
+ end
+end
diff --git a/db/migrate/20130619124042_create_posts.rb b/db/migrate/20130619124042_create_posts.rb
new file mode 100644
index 0000000..195b1f7
--- /dev/null
+++ b/db/migrate/20130619124042_create_posts.rb
@@ -0,0 +1,11 @@
+class CreatePosts < ActiveRecord::Migration
+ def change
+ create_table :posts do |t|
+ t.integer :owner_id
+ t.text :title
+ t.text :body
+
+ t.timestamps
+ end
+ end
+end
diff --git a/db/migrate/20130619130938_add_username_to_users.rb b/db/migrate/20130619130938_add_username_to_users.rb
new file mode 100644
index 0000000..3b71a27
--- /dev/null
+++ b/db/migrate/20130619130938_add_username_to_users.rb
@@ -0,0 +1,5 @@
+class AddUsernameToUsers < ActiveRecord::Migration
+ def change
+ add_column :users, :username, :string
+ end
+end
diff --git a/db/migrate/20130619131328_add_name_to_users.rb b/db/migrate/20130619131328_add_name_to_users.rb
new file mode 100644
index 0000000..bac750e
--- /dev/null
+++ b/db/migrate/20130619131328_add_name_to_users.rb
@@ -0,0 +1,5 @@
+class AddNameToUsers < ActiveRecord::Migration
+ def change
+ add_column :users, :name, :string
+ end
+end
diff --git a/db/migrate/20130619173956_add_published_to_posts.rb b/db/migrate/20130619173956_add_published_to_posts.rb
new file mode 100644
index 0000000..d117d2e
--- /dev/null
+++ b/db/migrate/20130619173956_add_published_to_posts.rb
@@ -0,0 +1,5 @@
+class AddPublishedToPosts < ActiveRecord::Migration
+ def change
+ add_column :posts, :draft, :boolean
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
new file mode 100644
index 0000000..0483e9b
--- /dev/null
+++ b/db/schema.rb
@@ -0,0 +1,66 @@
+# encoding: UTF-8
+# This file is auto-generated from the current state of the database. Instead
+# of editing this file, please use the migrations feature of Active Record to
+# incrementally modify your database, and then regenerate this schema definition.
+#
+# Note that this schema.rb definition is the authoritative source for your
+# database schema. If you need to create the application database on another
+# system, you should be using db:schema:load, not running all the migrations
+# from scratch. The latter is a flawed and unsustainable approach (the more migrations
+# you'll amass, the slower it'll run and the greater likelihood for issues).
+#
+# It's strongly recommended to check this file into your version control system.
+
+ActiveRecord::Schema.define(:version => 20130619173956) do
+
+ create_table "permissions", :force => true do |t|
+ t.string "name"
+ end
+
+ create_table "permissions_roles", :id => false, :force => true do |t|
+ t.integer "permission_id"
+ t.string "role_id"
+ end
+
+ create_table "posts", :force => true do |t|
+ t.integer "owner_id"
+ t.text "title"
+ t.text "body"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ t.boolean "draft"
+ end
+
+ create_table "roles", :force => true do |t|
+ t.string "name"
+ end
+
+ create_table "roles_users", :id => false, :force => true do |t|
+ t.integer "role_id"
+ t.string "user_id"
+ end
+
+ add_index "roles_users", ["role_id"], :name => "index_roles_users_on_role_id"
+ add_index "roles_users", ["user_id"], :name => "index_roles_users_on_user_id"
+
+ create_table "users", :force => true do |t|
+ t.string "email", :default => "", :null => false
+ t.string "encrypted_password", :default => "", :null => false
+ t.string "reset_password_token"
+ t.datetime "reset_password_sent_at"
+ t.datetime "remember_created_at"
+ t.integer "sign_in_count", :default => 0
+ t.datetime "current_sign_in_at"
+ t.datetime "last_sign_in_at"
+ t.string "current_sign_in_ip"
+ t.string "last_sign_in_ip"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ t.string "username"
+ t.string "name"
+ end
+
+ add_index "users", ["email"], :name => "index_users_on_email", :unique => true
+ add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
+
+end
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/doc/README_FOR_APP b/doc/README_FOR_APP
new file mode 100644
index 0000000..fe41f5c
--- /dev/null
+++ b/doc/README_FOR_APP
@@ -0,0 +1,2 @@
+Use this README file to introduce your application and point to useful places in the API for learning more.
+Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
diff --git a/lib/assets/.gitkeep b/lib/assets/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/lib/tasks/.gitkeep b/lib/tasks/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/lib/tasks/setup.rake b/lib/tasks/setup.rake
new file mode 100644
index 0000000..752e4ed
--- /dev/null
+++ b/lib/tasks/setup.rake
@@ -0,0 +1,20 @@
+desc "setup the application for use"
+task :setup_sample_application => [:environment] do
+ puts "Application is being prepared. Please wait."
+ perm_list = ['application_admin', 'can_publish']
+ perm_list.each do |p|
+ Permission.find_or_create_by_name(p)
+ end
+ role_list = ["Admin", "Editor", "Reporter"]
+ role_list.each do |r|
+ Role.find_or_create_by_name(r)
+ end
+
+ Role.find_by_name("Admin").permissions << Permission.all
+ Role.find_by_name("Editor").permissions << Permission.find_by_name("can_publish")
+
+ # Create Dummy Admin User
+ user = User.create(:name => "Puneet Goyal", :email => "puneet.goyal@studypadinc.com", :password => "1234567x", :password_confirmation => "1234567x")
+ user.roles << Role.find_by_name("Admin")
+ puts "==============> Setup is complete. You may now use the application. :)"
+end
\ No newline at end of file
diff --git a/log/.gitkeep b/log/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/log/development.log b/log/development.log
new file mode 100644
index 0000000..6bb59de
--- /dev/null
+++ b/log/development.log
@@ -0,0 +1,15439 @@
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+
+
+Started GET "/assets/rails.png" for 127.0.0.1 at 2013-06-18 19:58:56 +0530
+Served asset /rails.png - 200 OK (6ms)
+Connecting to database specified by database.yml
+
+
+Started GET "/assets/rails.png" for 127.0.0.1 at 2013-06-18 20:04:39 +0530
+Served asset /rails.png - 304 Not Modified (2ms)
+
+
+Started GET "/assets/rails.png" for 127.0.0.1 at 2013-06-18 20:04:41 +0530
+Served asset /rails.png - 200 OK (0ms)
+
+
+Started GET "/assets/rails.png" for 127.0.0.1 at 2013-06-18 20:04:41 +0530
+Served asset /rails.png - 200 OK (0ms)
+
+
+Started GET "/assets/rails.png" for 127.0.0.1 at 2013-06-18 20:04:42 +0530
+Served asset /rails.png - 200 OK (0ms)
+
+
+Started GET "/redirect_to_login" for 127.0.0.1 at 2013-06-18 20:35:31 +0530
+
+ActionController::RoutingError (No route matches [GET] "/redirect_to_login"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (7.8ms)
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+ [1m[36m (228.1ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
+ [1m[35m (364.1ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
+ [1m[36m (13.7ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+ [1m[35m (130.6ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
+ [1m[36m (308.9ms)[0m [1mCREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`)[0m
+ [1m[35m (397.3ms)[0m CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)
+ [1m[36m (166.4ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618222432')[0m
+ [1m[35m (0.3ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+ [1m[36m (1.4ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+Migrating to CreateRoles (20130618224052)
+ [1m[35m (125.2ms)[0m CREATE TABLE `roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
+ [1m[36m (53.7ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224052')[0m
+Migrating to RolesUsers (20130618224239)
+ [1m[35m (118.5ms)[0m CREATE TABLE `roles_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `role_id` int(11), `user_id` varchar(255)) ENGINE=InnoDB
+ [1m[36m (53.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224239')[0m
+ [1m[35m (0.5ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+ [1m[36m (1.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+Migrating to CreateRoles (20130618224052)
+Migrating to RolesUsers (20130618224239)
+ [1m[35m (0.1ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
+Connecting to database specified by database.yml
+ [1m[36m (1.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+Migrating to CreateRoles (20130618224052)
+Migrating to RolesUsers (20130618224239)
+ [1m[35m (0.1ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+ [1m[36m (1.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+Migrating to CreateRoles (20130618224052)
+Migrating to RolesUsers (20130618224239)
+Migrating to CreatePermissions (20130618232522)
+ [1m[35m (205.2ms)[0m CREATE TABLE `permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
+ [1m[36m (53.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618232522')[0m
+ [1m[35m (0.5ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+ [1m[36m (133.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
+ [1m[35m (275.4ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
+ [1m[36m (3.6ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+ [1m[35m (117.7ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
+ [1m[36m (221.1ms)[0m [1mCREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`)[0m
+ [1m[35m (208.8ms)[0m CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)
+ [1m[36m (53.9ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618222432')[0m
+Migrating to CreateRoles (20130618224052)
+ [1m[35m (118.6ms)[0m CREATE TABLE `roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (42.9ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224052')[0m
+Migrating to RolesUsers (20130618224239)
+ [1m[35m (443.3ms)[0m CREATE TABLE `roles_users` (`role_id` int(11), `user_id` varchar(255)) ENGINE=InnoDB
+ [1m[36m (43.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224239')[0m
+Migrating to CreatePermissions (20130618232522)
+ [1m[35m (130.7ms)[0m CREATE TABLE `permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (43.1ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618232522')[0m
+ [1m[35m (0.4ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+ [1m[36m (136.1ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
+ [1m[35m (286.5ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
+ [1m[36m (3.8ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+ [1m[35m (109.9ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
+ [1m[36m (241.7ms)[0m [1mCREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`)[0m
+ [1m[35m (243.3ms)[0m CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)
+ [1m[36m (53.7ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618222432')[0m
+Migrating to CreateRoles (20130618224052)
+ [1m[35m (175.2ms)[0m CREATE TABLE `roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (53.9ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224052')[0m
+Migrating to RolesUsers (20130618224239)
+ [1m[35m (154.1ms)[0m CREATE TABLE `roles_users` (`role_id` int(11), `user_id` varchar(255)) ENGINE=InnoDB
+ [1m[36m (242.5ms)[0m [1mCREATE INDEX `index_roles_users_on_role_id` ON `roles_users` (`role_id`)[0m
+ [1m[35m (230.9ms)[0m CREATE INDEX `index_roles_users_on_user_id` ON `roles_users` (`user_id`)
+ [1m[36m (43.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224239')[0m
+Migrating to CreatePermissions (20130618232522)
+ [1m[35m (153.4ms)[0m CREATE TABLE `permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (54.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618232522')[0m
+ [1m[35m (0.4ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+ [1m[36m (213.2ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
+ [1m[35m (232.5ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
+ [1m[36m (3.6ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+ [1m[35m (156.5ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
+ [1m[36m (187.0ms)[0m [1mCREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`)[0m
+ [1m[35m (188.3ms)[0m CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)
+ [1m[36m (53.9ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618222432')[0m
+Migrating to CreateRoles (20130618224052)
+ [1m[35m (107.1ms)[0m CREATE TABLE `roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (53.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224052')[0m
+Migrating to RolesUsers (20130618224239)
+ [1m[35m (108.3ms)[0m CREATE TABLE `roles_users` (`role_id` int(11), `user_id` varchar(255)) ENGINE=InnoDB
+ [1m[36m (176.2ms)[0m [1mCREATE INDEX `index_roles_users_on_role_id` ON `roles_users` (`role_id`)[0m
+ [1m[35m (186.6ms)[0m CREATE INDEX `index_roles_users_on_user_id` ON `roles_users` (`user_id`)
+ [1m[36m (54.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224239')[0m
+Migrating to CreatePermissions (20130618232522)
+ [1m[35m (109.7ms)[0m CREATE TABLE `permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (54.0ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618232522')[0m
+ [1m[35m (0.4ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
+Connecting to database specified by database.yml
+ [1m[36m (172.9ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
+ [1m[35m (231.5ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
+ [1m[36m (3.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+ [1m[35m (102.4ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
+ [1m[36m (232.3ms)[0m [1mCREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`)[0m
+ [1m[35m (209.7ms)[0m CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)
+ [1m[36m (43.1ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618222432')[0m
+Migrating to CreateRoles (20130618224052)
+ [1m[35m (87.2ms)[0m CREATE TABLE `roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (42.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224052')[0m
+Migrating to RolesUsers (20130618224239)
+ [1m[35m (108.8ms)[0m CREATE TABLE `roles_users` (`role_id` int(11), `user_id` varchar(255)) ENGINE=InnoDB
+ [1m[36m (176.2ms)[0m [1mCREATE INDEX `index_roles_users_on_role_id` ON `roles_users` (`role_id`)[0m
+ [1m[35m (186.9ms)[0m CREATE INDEX `index_roles_users_on_user_id` ON `roles_users` (`user_id`)
+ [1m[36m (43.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224239')[0m
+Migrating to CreatePermissions (20130618232522)
+ [1m[35m (131.5ms)[0m CREATE TABLE `permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (43.7ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618232522')[0m
+ [1m[35m (0.5ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Mysql2::Error: Table 'study_db.permissions_roles' doesn't exist: INSERT INTO `permissions_roles` (`role_id`, `permission_id`) VALUES (1, 1)
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+ [1m[36m (1.4ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+Migrating to CreateRoles (20130618224052)
+Migrating to RolesUsers (20130618224239)
+Migrating to CreatePermissions (20130618232522)
+Migrating to PermissionsRoles (20130619074955)
+ [1m[35m (126.1ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20130619074955')
+ [1m[36m (0.4ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Connecting to database specified by database.yml
+Mysql2::Error: Table 'study_db.permissions_roles' doesn't exist: INSERT INTO `permissions_roles` (`role_id`, `permission_id`) VALUES (1, 1)
+Connecting to database specified by database.yml
+ [1m[36m (1.4ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+Migrating to CreateRoles (20130618224052)
+Migrating to RolesUsers (20130618224239)
+Migrating to CreatePermissions (20130618232522)
+Migrating to PermissionsRoles (20130619074955)
+ [1m[35m (0.1ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
+Connecting to database specified by database.yml
+ [1m[36m (228.6ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
+ [1m[35m (242.5ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
+ [1m[36m (3.6ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+ [1m[35m (133.0ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
+ [1m[36m (274.7ms)[0m [1mCREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`)[0m
+ [1m[35m (243.5ms)[0m CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)
+ [1m[36m (54.4ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618222432')[0m
+Migrating to CreateRoles (20130618224052)
+ [1m[35m (153.0ms)[0m CREATE TABLE `roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (43.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224052')[0m
+Migrating to RolesUsers (20130618224239)
+ [1m[35m (150.9ms)[0m CREATE TABLE `roles_users` (`role_id` int(11), `user_id` varchar(255)) ENGINE=InnoDB
+ [1m[36m (208.9ms)[0m [1mCREATE INDEX `index_roles_users_on_role_id` ON `roles_users` (`role_id`)[0m
+ [1m[35m (219.7ms)[0m CREATE INDEX `index_roles_users_on_user_id` ON `roles_users` (`user_id`)
+ [1m[36m (43.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224239')[0m
+Migrating to CreatePermissions (20130618232522)
+ [1m[35m (154.0ms)[0m CREATE TABLE `permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (43.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618232522')[0m
+Migrating to PermissionsRoles (20130619074955)
+ [1m[35m (143.1ms)[0m CREATE TABLE `permissions_roles` (`permission_id` int(11), `role_id` varchar(255)) ENGINE=InnoDB
+ [1m[36m (220.1ms)[0m [1mCREATE INDEX `index_permissions_roles_on_permission_id` ON `permissions_roles` (`permission_id`)[0m
+Connecting to database specified by database.yml
+ [1m[36m (1.7ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+Migrating to CreateRoles (20130618224052)
+Migrating to RolesUsers (20130618224239)
+Migrating to CreatePermissions (20130618232522)
+Migrating to PermissionsRoles (20130619074955)
+ [1m[35m (0.6ms)[0m CREATE TABLE `permissions_roles` (`permission_id` int(11), `role_id` varchar(255)) ENGINE=InnoDB
+Mysql2::Error: Table 'permissions_roles' already exists: CREATE TABLE `permissions_roles` (`permission_id` int(11), `role_id` varchar(255)) ENGINE=InnoDB
+Connecting to database specified by database.yml
+ [1m[36m (232.3ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
+ [1m[35m (242.4ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
+ [1m[36m (3.5ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+ [1m[35m (100.1ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
+ [1m[36m (186.5ms)[0m [1mCREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`)[0m
+ [1m[35m (197.4ms)[0m CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)
+ [1m[36m (54.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618222432')[0m
+Migrating to CreateRoles (20130618224052)
+ [1m[35m (108.9ms)[0m CREATE TABLE `roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (54.0ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224052')[0m
+Migrating to RolesUsers (20130618224239)
+ [1m[35m (109.7ms)[0m CREATE TABLE `roles_users` (`role_id` int(11), `user_id` varchar(255)) ENGINE=InnoDB
+ [1m[36m (197.9ms)[0m [1mCREATE INDEX `index_roles_users_on_role_id` ON `roles_users` (`role_id`)[0m
+ [1m[35m (197.8ms)[0m CREATE INDEX `index_roles_users_on_user_id` ON `roles_users` (`user_id`)
+ [1m[36m (54.5ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224239')[0m
+Migrating to CreatePermissions (20130618232522)
+ [1m[35m (98.2ms)[0m CREATE TABLE `permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (43.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618232522')[0m
+Migrating to PermissionsRoles (20130619074955)
+ [1m[35m (86.5ms)[0m CREATE TABLE `permissions_roles` (`permission_id` int(11), `role_id` varchar(255)) ENGINE=InnoDB
+ [1m[36m (42.9ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130619074955')[0m
+ [1m[35m (0.4ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+
+
+Started GET "/assets/rails.png" for 127.0.0.1 at 2013-06-19 17:22:00 +0530
+Served asset /rails.png - 304 Not Modified (32ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-19 17:22:14 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 7ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-19 17:22:15 +0530
+Processing by Devise::SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (1.6ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (29.5ms)
+ Rendered layouts/_header.html.erb (43.1ms)
+Completed 500 Internal Server Error in 189ms
+
+ActionView::Template::Error (undefined local variable or method `help_path' for #<#:0x00000004e7adc0>):
+ 5:
+ app/views/layouts/_header.html.erb:25:in `_app_views_layouts__header_html_erb__593181575349719438_70123227009460'
+ app/views/layouts/application.html.erb:10:in `_app_views_layouts_application_html_erb__3355239784092458717_70123328929780'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.2ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-19 17:23:17 +0530
+Processing by Devise::SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.5ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.8ms)
+ Rendered layouts/_header.html.erb (22.8ms)
+Completed 500 Internal Server Error in 32ms
+
+ActionView::Template::Error (undefined local variable or method `signin_path' for #<#:0x007f8dac199808>):
+ 22:
+ 23:
+ 24: <% else %>
+ 25:
<%= link_to "Sign in", signin_path %>
+ 26: <% end %>
+ 27:
+ 28:
+ app/views/layouts/_header.html.erb:25:in `_app_views_layouts__header_html_erb__593181575349719438_70123227009460'
+ app/views/layouts/application.html.erb:10:in `_app_views_layouts_application_html_erb__3355239784092458717_70123328929780'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.5ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-19 17:23:31 +0530
+Processing by Devise::SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.3ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered layouts/_footer.html.erb (0.4ms)
+Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-19 17:23:31 +0530
+Compiled custom.css (1371ms) (pid 17344)
+Compiled application.css (1379ms) (pid 17344)
+Served asset /application.css - 200 OK (1407ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-19 17:23:32 +0530
+Compiled jquery.js (2ms) (pid 17344)
+Compiled jquery_ujs.js (0ms) (pid 17344)
+Compiled application.js (65ms) (pid 17344)
+Served asset /application.js - 200 OK (109ms)
+Connecting to database specified by database.yml
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-19 17:28:15 +0530
+Processing by Devise::SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.4ms)
+ Rendered layouts/_header.html.erb (1.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-19 17:28:15 +0530
+Served asset /application.css - 304 Not Modified (0ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-19 17:28:28 +0530
+Processing by Devise::SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"vOvKmiEO/y4UjVNbrPI+uZAXaXcVa+1Jzsrj/L28aQE=", "user"=>{"email"=>"shanil.puri@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ [1m[36mUser Load (0.7ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'shanil.puri@gmail.com' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.7ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-06-19 11:58:28', `current_sign_in_at` = '2013-06-19 11:58:28', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-06-19 11:58:28' WHERE `users`.`id` = 1[0m
+ [1m[35m (59.6ms)[0m COMMIT
+Redirected to http://localhost:3000/
+Completed 302 Found in 250ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-19 17:28:28 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered text template (0.0ms)
+Completed 200 OK in 17ms (Views: 15.0ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-19 17:48:26 +0530
+Processing by Devise::SessionsController#new as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+Redirected to http://localhost:3000/
+Filter chain halted as :require_no_authentication rendered or redirected
+Completed 302 Found in 3ms (ActiveRecord: 0.1ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-19 17:48:39 +0530
+Processing by Devise::SessionsController#new as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+Redirected to http://localhost:3000/
+Filter chain halted as :require_no_authentication rendered or redirected
+Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-19 17:48:39 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered text template (0.0ms)
+Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/users/sign_out" for 127.0.0.1 at 2013-06-19 17:48:42 +0530
+
+ActionController::RoutingError (No route matches [GET] "/users/sign_out"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-19 17:49:18 +0530
+Processing by Devise::SessionsController#new as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+Redirected to http://localhost:3000/
+Filter chain halted as :require_no_authentication rendered or redirected
+Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-19 17:49:18 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered text template (0.0ms)
+Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/users/sign_out" for 127.0.0.1 at 2013-06-19 17:49:28 +0530
+
+ActionController::RoutingError (No route matches [GET] "/users/sign_out"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)
+
+
+Started GET "/users/sign_out" for 127.0.0.1 at 2013-06-19 17:50:42 +0530
+
+ActionController::RoutingError (No route matches [GET] "/users/sign_out"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-19 17:50:44 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered home/index.html.erb within layouts/application (0.7ms)
+ Rendered layouts/_header.html.erb (15.6ms)
+Completed 500 Internal Server Error in 76ms
+
+ActionView::Template::Error (undefined method `user_path' for #<#:0x007f8dac32efd8>):
+ 13: Account
+ 14:
+ 15:
+ 16:
<%= link_to "Profile", current_user %>
+ 17:
<%= link_to "Settings", "#" %>
+ 18:
+ 19:
+ app/views/layouts/_header.html.erb:16:in `_app_views_layouts__header_html_erb__593181575349719438_70123228069240'
+ app/views/layouts/application.html.erb:10:in `_app_views_layouts_application_html_erb__3355239784092458717_70123328929780'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.2ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-19 17:51:03 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered home/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 66ms (Views: 5.5ms | ActiveRecord: 2.8ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-19 17:51:03 +0530
+Served asset /application.js - 304 Not Modified (0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-19 17:51:03 +0530
+Served asset /application.css - 304 Not Modified (0ms)
+
+
+Started GET "/users/sign_out" for 127.0.0.1 at 2013-06-19 17:51:10 +0530
+
+ActionController::RoutingError (No route matches [GET] "/users/sign_out"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-19 17:52:14 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered home/index.html.erb within layouts/application (7.5ms)
+Completed 500 Internal Server Error in 13ms
+
+ActionView::Template::Error (undefined local variable or method `delete' for #<#:0x007f8dac832250>):
+ 1:
+ 18: <% end %>
+ actionpack (3.2.13) lib/action_view/template.rb:297:in `module_eval'
+ actionpack (3.2.13) lib/action_view/template.rb:297:in `compile'
+ actionpack (3.2.13) lib/action_view/template.rb:244:in `block in compile!'
+ :10:in `synchronize'
+ actionpack (3.2.13) lib/action_view/template.rb:232:in `compile!'
+ actionpack (3.2.13) lib/action_view/template.rb:144:in `block in render'
+ activesupport (3.2.13) lib/active_support/notifications.rb:125:in `instrument'
+ actionpack (3.2.13) lib/action_view/template.rb:143:in `render'
+ actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
+ actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
+ actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
+ actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
+ actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:45:in `render_template'
+ actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:18:in `render'
+ actionpack (3.2.13) lib/action_view/renderer/renderer.rb:36:in `render_template'
+ actionpack (3.2.13) lib/action_view/renderer/renderer.rb:17:in `render'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:110:in `_render_template'
+ actionpack (3.2.13) lib/action_controller/metal/streaming.rb:225:in `_render_template'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:103:in `render_to_body'
+ actionpack (3.2.13) lib/action_controller/metal/renderers.rb:28:in `render_to_body'
+ actionpack (3.2.13) lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:88:in `render'
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:16:in `render'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
+ activesupport (3.2.13) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
+ activesupport (3.2.13) lib/active_support/core_ext/benchmark.rb:5:in `ms'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:39:in `render'
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:425:in `_run__3752288846281965097__process_action__156332750145986131__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
+ warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
+ warden (1.2.1) lib/warden/manager.rb:34:in `catch'
+ warden (1.2.1) lib/warden/manager.rb:34:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__2097884470545126438__call__4448437540864477517__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.4ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-19 23:36:14 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/new.html.erb within layouts/application (5.2ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-19 23:36:14 +0530
+Served asset /application.css - 200 OK (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-19 23:36:14 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-19 23:36:28 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/new.html.erb within layouts/application (1.5ms)
+ Rendered layouts/_header.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-19 23:36:28 +0530
+Error compiling asset application.css:
+Sass::SyntaxError: Indenting at the beginning of the document is illegal.
+ (in /home/shanil/office_work/blogger/app/assets/stylesheets/utilities.sass)
+Served asset /application.css - 500 Internal Server Error
+
+
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-19 23:36:28 +0530
+Served asset /application.js - 200 OK (5ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-19 23:36:35 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/new.html.erb within layouts/application (1.7ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-19 23:36:35 +0530
+Compiled utilities.css (1ms) (pid 22680)
+Compiled application.css (1ms) (pid 22680)
+Served asset /application.css - 200 OK (49ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-19 23:36:44 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/new.html.erb within layouts/application (1.8ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-19 23:36:44 +0530
+Compiled utilities.css (8ms) (pid 22680)
+Compiled application.css (1ms) (pid 22680)
+Served asset /application.css - 200 OK (57ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-19 23:36:44 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-19 23:37:22 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/new.html.erb within layouts/application (2.3ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-19 23:37:22 +0530
+Served asset /application.css - 200 OK (3ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-19 23:37:22 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-19 23:37:28 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"NPTqN25MaPLVejNCeKYOFaiqtf6+eqA1ULFrBSZD9S4=", "post"=>{"title"=>"", "body"=>""}, "commit"=>"Create"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+Completed 500 Internal Server Error in 3ms
+
+ActionView::MissingTemplate (Missing template post/create, application/create with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in:
+ * "/home/shanil/office_work/blogger/app/views"
+ * "/home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views"
+):
+ actionpack (3.2.13) lib/action_view/path_set.rb:58:in `find'
+ actionpack (3.2.13) lib/action_view/lookup_context.rb:109:in `find'
+ actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:3:in `find_template'
+ actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:34:in `determine_template'
+ actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:10:in `render'
+ actionpack (3.2.13) lib/action_view/renderer/renderer.rb:36:in `render_template'
+ actionpack (3.2.13) lib/action_view/renderer/renderer.rb:17:in `render'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:110:in `_render_template'
+ actionpack (3.2.13) lib/action_controller/metal/streaming.rb:225:in `_render_template'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:103:in `render_to_body'
+ actionpack (3.2.13) lib/action_controller/metal/renderers.rb:28:in `render_to_body'
+ actionpack (3.2.13) lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:88:in `render'
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:16:in `render'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
+ activesupport (3.2.13) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
+ activesupport (3.2.13) lib/active_support/core_ext/benchmark.rb:5:in `ms'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:39:in `render'
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:425:in `_run__3752288846281965097__process_action__4530973737408941645__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
+ warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
+ warden (1.2.1) lib/warden/manager.rb:34:in `catch'
+ warden (1.2.1) lib/warden/manager.rb:34:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
+ rack (1.4.5) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__2097884470545126438__call__4448437540864477517__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.4ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-19 23:48:14 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered post/new.html.erb within layouts/application (20.1ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 72ms (Views: 20.1ms | ActiveRecord: 6.8ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-19 23:48:14 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-19 23:48:14 +0530
+Served asset /application.js - 200 OK (26ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-19 23:48:20 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"NPTqN25MaPLVejNCeKYOFaiqtf6+eqA1ULFrBSZD9S4=", "post"=>{"title"=>"blah", "body"=>"balh"}, "commit"=>"Create"}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO `posts` (`body`, `created_at`, `draft`, `owner_id`, `title`, `updated_at`) VALUES ('balh', '2013-06-19 18:18:20', NULL, NULL, 'blah', '2013-06-19 18:18:20')[0m
+ [1m[35m (0.4ms)[0m UPDATE `posts` SET `owner_id` = 1, `updated_at` = '2013-06-19 18:18:20' WHERE `posts`.`id` = 2
+ [1m[36m (57.5ms)[0m [1mCOMMIT[0m
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+Redirected to http://localhost:3000/admin/home
+Completed 302 Found in 77ms (ActiveRecord: 59.3ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-19 23:48:20 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered admin/home/index.html.erb within layouts/application (0.6ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-19 23:55:12 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered post/new.html.erb within layouts/application (18.9ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 96ms (Views: 19.9ms | ActiveRecord: 6.2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-19 23:55:12 +0530
+Served asset /application.css - 304 Not Modified (3ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-19 23:55:18 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"NPTqN25MaPLVejNCeKYOFaiqtf6+eqA1ULFrBSZD9S4=", "post"=>{"title"=>"blah 1", "body"=>"balh1"}, "commit"=>"Create"}
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO `posts` (`body`, `created_at`, `draft`, `owner_id`, `title`, `updated_at`) VALUES ('balh1', '2013-06-19 18:25:18', NULL, NULL, 'blah 1', '2013-06-19 18:25:18')
+ [1m[36m (0.8ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ [1m[35m (0.7ms)[0m UPDATE `posts` SET `owner_id` = 1, `draft` = 0, `updated_at` = '2013-06-19 18:25:19' WHERE `posts`.`id` = 3
+ [1m[36m (50.0ms)[0m [1mCOMMIT[0m
+ [1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+Redirected to http://localhost:3000/admin/home
+Completed 302 Found in 112ms (ActiveRecord: 56.3ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-19 23:55:19 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.3ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered admin/home/index.html.erb within layouts/application (0.6ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-19 23:55:19 +0530
+Served asset /application.css - 304 Not Modified (4ms)
+Connecting to database specified by database.yml
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 00:01:31 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (6.9ms)
+Completed 500 Internal Server Error in 46ms
+
+ActionView::Template::Error (undefined local variable or method `post_published' for #<#:0x007f1fdce130e0>):
+ 2:
<%= link_to "Create New Editor", new_admin_user_path %>
+ 3:
<%= link_to "View All Users", user_index_path %>
+ 4:
<%= link_to "View All Drafted Posts", "#" %>
+ 5:
<%= link_to "View All Published Posts", post_published %>
+ 6:
<%= link_to "Create new post", new_post_path %>
+ app/views/admin/home/index.html.erb:5:in `_app_views_admin_home_index_html_erb___87837492189975546_69887413244960'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (8.1ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 00:01:41 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.3ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered admin/home/index.html.erb within layouts/application (3.8ms)
+Completed 500 Internal Server Error in 15ms
+
+ActionController::RoutingError (No route matches {:action=>"published", :controller=>"post"}):
+ app/views/admin/home/index.html.erb:5:in `_app_views_admin_home_index_html_erb___87837492189975546_69887410934220'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 00:02:17 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (1.3ms)
+Completed 500 Internal Server Error in 63ms
+
+ActionController::RoutingError (No route matches {:action=>"published", :controller=>"post"}):
+ app/views/admin/home/index.html.erb:5:in `_app_views_admin_home_index_html_erb___87837492189975546_69887410934220'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (25.0ms)
+Connecting to database specified by database.yml
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 00:02:36 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mRole Load (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (25.8ms)
+Completed 500 Internal Server Error in 224ms
+
+ActionController::RoutingError (No route matches {:action=>"published", :controller=>"post"}):
+ app/views/admin/home/index.html.erb:5:in `_app_views_admin_home_index_html_erb___4182980019633593747_30513120'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 00:02:55 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered admin/home/index.html.erb within layouts/application (1.1ms)
+Completed 500 Internal Server Error in 6ms
+
+ActionController::RoutingError (No route matches {:action=>"published", :controller=>"post"}):
+ app/views/admin/home/index.html.erb:5:in `_app_views_admin_home_index_html_erb___4182980019633593747_30513120'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 00:04:16 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (28.2ms)
+Completed 500 Internal Server Error in 66ms
+
+ActionView::Template::Error (undefined local variable or method `post_published_path' for #<#:0x007ff5840bf708>):
+ 2:
<%= link_to "Create New Editor", new_admin_user_path %>
+ 3:
<%= link_to "View All Users", user_index_path %>
+ 4:
<%= link_to "View All Drafted Posts", "#" %>
+ 5:
<%= link_to "View All Published Posts", post_published_path %>
+ 6:
<%= link_to "Create new post", new_post_path %>
+ app/views/admin/home/index.html.erb:5:in `_app_views_admin_home_index_html_erb___4182980019633593747_30513120'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (11.7ms)
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 00:04:39 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered admin/home/index.html.erb within layouts/application (1.3ms)
+Completed 500 Internal Server Error in 63ms
+
+ActionController::RoutingError (No route matches {:action=>"published", :controller=>"post"}):
+ app/views/admin/home/index.html.erb:5:in `_app_views_admin_home_index_html_erb___4182980019633593747_30513120'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 00:06:40 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (1.7ms)
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered layouts/_footer.html.erb (0.5ms)
+Completed 200 OK in 54ms (Views: 12.1ms | ActiveRecord: 7.2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:06:40 +0530
+Compiled custom.css (1312ms) (pid 23706)
+Compiled data_tables.css (46ms) (pid 23706)
+Compiled utilities.css (9ms) (pid 23706)
+Compiled application.css (1387ms) (pid 23706)
+Served asset /application.css - 200 OK (1399ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:06:41 +0530
+Compiled jquery.js (1ms) (pid 23706)
+Compiled jquery_ujs.js (0ms) (pid 23706)
+Compiled bootstrap-transition.js (0ms) (pid 23706)
+Compiled bootstrap-alert.js (0ms) (pid 23706)
+Compiled bootstrap-button.js (0ms) (pid 23706)
+Compiled bootstrap-carousel.js (0ms) (pid 23706)
+Compiled bootstrap-collapse.js (0ms) (pid 23706)
+Compiled bootstrap-dropdown.js (0ms) (pid 23706)
+Compiled bootstrap-modal.js (0ms) (pid 23706)
+Compiled bootstrap-scrollspy.js (0ms) (pid 23706)
+Compiled bootstrap-tab.js (0ms) (pid 23706)
+Compiled bootstrap-tooltip.js (0ms) (pid 23706)
+Compiled bootstrap-popover.js (0ms) (pid 23706)
+Compiled bootstrap-typeahead.js (0ms) (pid 23706)
+Compiled bootstrap.js (83ms) (pid 23706)
+Compiled external/bootstrap-modal.js (0ms) (pid 23706)
+Compiled external/jquery.dataTables.js (2ms) (pid 23706)
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (176ms) (pid 23706)
+Served asset /application.js - 200 OK (211ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:06:45 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (9.1ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 12.8ms | ActiveRecord: 0.4ms)
+
+
+Started DELETE "/users/sign_out" for 127.0.0.1 at 2013-06-20 00:07:00 +0530
+Processing by SessionsController#destroy as HTML
+ Parameters: {"authenticity_token"=>"NPTqN25MaPLVejNCeKYOFaiqtf6+eqA1ULFrBSZD9S4="}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 12ms (ActiveRecord: 0.5ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 00:07:00 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 00:07:00 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (1.6ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (6.0ms)
+ Rendered layouts/_header.html.erb (0.6ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-20 00:07:28 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y/RXM1u4/CgncZ+1Mrk9kBXyJlTCZrTeLW3LxRu6cgc=", "user"=>{"email"=>"shanil.puri@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ [1m[35mUser Load (0.8ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`email` = 'shanil.puri@gmail.com' LIMIT 1
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.9ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-06-19 16:46:04', `current_sign_in_at` = '2013-06-19 18:37:28', `sign_in_count` = 9, `updated_at` = '2013-06-19 18:37:28' WHERE `users`.`id` = 1
+ [1m[36m (63.2ms)[0m [1mCOMMIT[0m
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+Redirected to http://localhost:3000/admin/home
+Completed 302 Found in 187ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 00:07:28 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.7ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.3ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered admin/home/index.html.erb within layouts/application (2.3ms)
+ Rendered layouts/_header.html.erb (1.1ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 21ms (Views: 14.0ms | ActiveRecord: 1.3ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:07:31 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (2.2ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:08:46 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (2.2ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:08:46 +0530
+Served asset /application.css - 200 OK (0ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:08:46 +0530
+Served asset /application.js - 200 OK (0ms)
+Connecting to database specified by database.yml
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:18:56 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.4ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (9.6ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+Completed 500 Internal Server Error in 73ms
+
+ActionView::Template::Error (Missing partial shared/common_popup with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in:
+ * "/home/shanil/office_work/blogger/app/views"
+ * "/home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views"
+):
+ 8:
+ 9:
+ 10: <%= render 'layouts/header' %>
+ 11: <%= render 'shared/common_popup' %>
+ 12:
+ 13: <% flash.each do |key, value| %>
+ 14:
<%= value %>
+ app/views/layouts/application.html.erb:11:in `_app_views_layouts_application_html_erb___127281836067101390_70346234859240'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.7ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:19:16 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (2.0ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+Completed 500 Internal Server Error in 9ms
+
+ActionView::Template::Error (Missing partial /shared/common_popup with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in:
+ * "/home/shanil/office_work/blogger/app/views"
+ * "/home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views"
+):
+ 8:
+ 9:
+ 10: <%= render 'layouts/header' %>
+ 11: <%= render '/shared/common_popup' %>
+ 12:
+ 13: <% flash.each do |key, value| %>
+ 14:
<%= value %>
+ app/views/layouts/application.html.erb:11:in `_app_views_layouts_application_html_erb___127281836067101390_70346235594920'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.3ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:19:19 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.4ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (5.0ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+Completed 500 Internal Server Error in 15ms
+
+ActionView::Template::Error (Missing partial shared/common_popup with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in:
+ * "/home/shanil/office_work/blogger/app/views"
+ * "/home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views"
+):
+ 8:
+ 9:
+ 10: <%= render 'layouts/header' %>
+ 11: <%= render 'shared/common_popup' %>
+ 12:
+ 13: <% flash.each do |key, value| %>
+ 14:
<%= value %>
+ app/views/layouts/application.html.erb:11:in `_app_views_layouts_application_html_erb___127281836067101390_70346234196480'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.1ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:19:29 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (2.0ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+Completed 500 Internal Server Error in 8ms
+
+ActionView::Template::Error (Missing partial shared/common_popup with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in:
+ * "/home/shanil/office_work/blogger/app/views"
+ * "/home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views"
+):
+ 8:
+ 9:
+ 10: <%= render 'layouts/header' %>
+ 11: <%= render 'shared/common_popup' %>
+ 12:
+ 13: <% flash.each do |key, value| %>
+ 14:
<%= value %>
+ app/views/layouts/application.html.erb:11:in `_app_views_layouts_application_html_erb___127281836067101390_70346234196480'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.2ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:19:46 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (1.8ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+Completed 500 Internal Server Error in 8ms
+
+ActionView::Template::Error (Missing partial shared/common_popup with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in:
+ * "/home/shanil/office_work/blogger/app/views"
+ * "/home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views"
+):
+ 8:
+ 9:
+ 10: <%= render 'layouts/header' %>
+ 11: <%= render :partial => 'shared/common_popup' %>
+ 12:
+ 13: <% flash.each do |key, value| %>
+ 14:
<%= value %>
+ app/views/layouts/application.html.erb:11:in `_app_views_layouts_application_html_erb___127281836067101390_70346236726240'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.5ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:20:23 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (2.8ms)
+ Rendered layouts/_header.html.erb (0.6ms)
+ Rendered shared/_common_popup.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:20:23 +0530
+Served asset /application.css - 200 OK (0ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:20:23 +0530
+Served asset /application.js - 200 OK (0ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:22:59 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (1.7ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.0ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:22:59 +0530
+Error compiling asset application.css:
+Sass::SyntaxError: Undefined mixin 'clearfix'.
+ (in /home/shanil/office_work/blogger/app/assets/stylesheets/popup.sass)
+Served asset /application.css - 500 Internal Server Error
+
+
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:22:59 +0530
+Served asset /application.js - 200 OK (0ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:23:08 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (2.8ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.0ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:23:08 +0530
+Compiled popup.css (17ms) (pid 23706)
+Compiled application.css (45ms) (pid 23706)
+Served asset /application.css - 200 OK (74ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:23:08 +0530
+Served asset /application.js - 200 OK (0ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:42:19 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (9.1ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.8ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 75ms (Views: 14.1ms | ActiveRecord: 1.3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:42:19 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:42:19 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled posts.js (0ms) (pid 23706)
+Compiled application.js (30ms) (pid 23706)
+Served asset /application.js - 200 OK (70ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:42:19 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (4ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.3ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:42:19 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:42:56 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (2.1ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:42:56 +0530
+Compiled utilities.css (9ms) (pid 23706)
+Compiled application.css (1ms) (pid 23706)
+Served asset /application.css - 200 OK (64ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:42:56 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:42:56 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:42:56 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:42:57 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:42:57 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (4ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:43:14 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (3.9ms)
+ Rendered layouts/_header.html.erb (1.1ms)
+ Rendered shared/_common_popup.html.erb (0.9ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 21ms (Views: 15.5ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:43:14 +0530
+Served asset /application.css - 200 OK (7ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:43:14 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (4ms) (pid 23706)
+Served asset /application.js - 200 OK (80ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:43:14 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:43:14 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:43:14 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:43:14 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:43:26 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.4ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (4.9ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 16ms (Views: 11.5ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:43:26 +0530
+Served asset /application.css - 200 OK (4ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:43:26 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (4ms) (pid 23706)
+Served asset /application.js - 200 OK (65ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:43:26 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:43:26 +0530
+Served asset /community20/x.png - 404 Not Found (3ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:43:26 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:43:26 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:46:14 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (2.0ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:46:14 +0530
+Served asset /application.css - 200 OK (3ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:46:14 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (4ms) (pid 23706)
+Served asset /application.js - 200 OK (62ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:46:14 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:46:14 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (4ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:46:15 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:46:15 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:46:29 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (2.7ms)
+ Rendered layouts/_header.html.erb (22.8ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 34ms (Views: 30.6ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:46:29 +0530
+Served asset /application.css - 200 OK (7ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:46:29 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (4ms) (pid 23706)
+Served asset /application.js - 200 OK (66ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:46:29 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:46:29 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:46:29 +0530
+Served asset /community20/x.png - 404 Not Found (3ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:46:29 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:46:59 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.4ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (6.3ms)
+ Rendered layouts/_header.html.erb (1.1ms)
+ Rendered shared/_common_popup.html.erb (0.8ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 21ms (Views: 17.4ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:46:59 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:46:59 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (4ms) (pid 23706)
+Served asset /application.js - 200 OK (87ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:46:59 +0530
+Served asset /community20/x.png - 404 Not Found (3ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:46:59 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:47:00 +0530
+Served asset /community20/x.png - 404 Not Found (4ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:48:25 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (2.8ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:48:25 +0530
+Served asset /application.css - 200 OK (3ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:48:25 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:48:25 +0530
+Served asset /community20/x.png - 404 Not Found (3ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:48:25 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:48:25 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:48:25 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (3ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:48:36 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (3.5ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:48:36 +0530
+Served asset /application.css - 200 OK (28ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:48:36 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:48:36 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (4ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:48:36 +0530
+Served asset /community20/x.png - 404 Not Found (4ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.0ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:48:37 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (3ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:48:37 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 00:48:59 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 00:48:59 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.5ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (4.0ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:48:59 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:48:59 +0530
+Served asset /application.css - 200 OK (4ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:48:59 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:48:59 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-20 00:49:04 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"nlXv+YIdWMRBQHS13LbnpMdmRhdt3YNPHdUtUCSB8DM=", "user"=>{"email"=>"shanil.puri@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`email` = 'shanil.puri@gmail.com' LIMIT 1
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.6ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-06-19 18:37:28', `current_sign_in_at` = '2013-06-19 19:19:04', `sign_in_count` = 10, `updated_at` = '2013-06-19 19:19:04' WHERE `users`.`id` = 1
+ [1m[36m (68.4ms)[0m [1mCOMMIT[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+Redirected to http://localhost:3000/admin/home
+Completed 302 Found in 191ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 00:49:04 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered admin/home/index.html.erb within layouts/application (1.2ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:49:05 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:49:05 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:49:09 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (1.8ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/community20/x.png" for 127.0.0.1 at 2013-06-20 00:49:09 +0530
+Served asset /community20/x.png - 404 Not Found (2ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/x.png"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:49:09 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (5ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:52:07 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (1.8ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.7ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:52:07 +0530
+Served asset /application.css - 304 Not Modified (4ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:52:07 +0530
+Served asset /application.js - 304 Not Modified (4ms)
+
+
+Started GET "/assets/community20/modal_divider.jpg" for 127.0.0.1 at 2013-06-20 00:52:08 +0530
+Served asset /community20/modal_divider.jpg - 404 Not Found (5ms)
+
+ActionController::RoutingError (No route matches [GET] "/assets/community20/modal_divider.jpg"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:52:20 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (1.9ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.5ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:52:20 +0530
+Served asset /application.css - 200 OK (3ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:52:20 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:53:09 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (3.8ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.0ms)
+Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:53:09 +0530
+Served asset /application.css - 200 OK (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:53:09 +0530
+Compiled application.js (5ms) (pid 23706)
+Served asset /application.js - 200 OK (63ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:54:16 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.4ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (5.3ms)
+ Rendered layouts/_header.html.erb (1.1ms)
+ Rendered shared/_common_popup.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 21ms (Views: 16.7ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:54:16 +0530
+Served asset /application.css - 200 OK (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:54:16 +0530
+Compiled application.js (5ms) (pid 23706)
+Served asset /application.js - 200 OK (61ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:55:02 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (9.1ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 84ms (Views: 36.2ms | ActiveRecord: 3.1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:55:02 +0530
+Served asset /application.css - 200 OK (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:55:02 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (6ms) (pid 23706)
+Served asset /application.js - 200 OK (74ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:55:41 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (1.8ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:55:41 +0530
+Served asset /application.css - 200 OK (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:55:41 +0530
+Compiled popup.js (1ms) (pid 23706)
+Compiled application.js (6ms) (pid 23706)
+Served asset /application.js - 200 OK (69ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:56:34 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (1.9ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:56:34 +0530
+Served asset /application.css - 200 OK (27ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:56:34 +0530
+Compiled posts.js (0ms) (pid 23706)
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (5ms) (pid 23706)
+Served asset /application.js - 200 OK (68ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:57:21 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (1.8ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:57:21 +0530
+Served asset /application.css - 200 OK (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:57:21 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (5ms) (pid 23706)
+Served asset /application.js - 200 OK (99ms)
+
+
+Started GET "/posts/published?post_id=3" for 127.0.0.1 at 2013-06-20 00:57:22 +0530
+Processing by PostController#published as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (4.3ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 12.1ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.js?_=1371670042878" for 127.0.0.1 at 2013-06-20 00:57:22 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/posts/published?post_id=3" for 127.0.0.1 at 2013-06-20 00:57:29 +0530
+Processing by PostController#published as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (1.9ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/assets/application.js?_=1371670049183" for 127.0.0.1 at 2013-06-20 00:57:29 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:58:17 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (1.6ms)
+ Rendered layouts/_header.html.erb (0.3ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:58:17 +0530
+Compiled application.css (1ms) (pid 23706)
+Served asset /application.css - 200 OK (47ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:58:17 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/assets/bootstrap" for 127.0.0.1 at 2013-06-20 00:58:17 +0530
+Served asset /bootstrap - 200 OK (17ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 00:59:19 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (1.9ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:59:19 +0530
+Compiled application.css (574ms) (pid 23706)
+Served asset /application.css - 200 OK (588ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 00:59:19 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/posts/published?post_id=3" for 127.0.0.1 at 2013-06-20 00:59:21 +0530
+Processing by PostController#published as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (1.8ms)
+ Rendered layouts/_header.html.erb (28.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 38ms (Views: 36.0ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/assets/application.js?_=1371670161109" for 127.0.0.1 at 2013-06-20 00:59:21 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/posts/published?post_id=3" for 127.0.0.1 at 2013-06-20 00:59:28 +0530
+Processing by PostController#published as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (2.2ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:59:28 +0530
+Served asset /application.css - 304 Not Modified (8ms)
+
+
+Started GET "/assets/application.js?_=1371670168614" for 127.0.0.1 at 2013-06-20 00:59:28 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/posts/published?post_id=3" for 127.0.0.1 at 2013-06-20 00:59:40 +0530
+Processing by PostController#published as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (1.8ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 00:59:40 +0530
+Served asset /application.css - 304 Not Modified (5ms)
+
+
+Started GET "/assets/application.js?_=1371670180368" for 127.0.0.1 at 2013-06-20 00:59:40 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:00:07 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (9.2ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 53ms (Views: 14.0ms | ActiveRecord: 2.8ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:00:07 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:00:07 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/posts/published?post_id=3" for 127.0.0.1 at 2013-06-20 01:00:09 +0530
+Processing by PostController#published as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (1.9ms)
+ Rendered layouts/_header.html.erb (0.3ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.0ms)
+Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/assets/application.js?_=1371670209676" for 127.0.0.1 at 2013-06-20 01:00:09 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/posts/published?post_id=3" for 127.0.0.1 at 2013-06-20 01:00:14 +0530
+Processing by PostController#published as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (1.7ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.0ms)
+Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/assets/application.js?_=1371670214885" for 127.0.0.1 at 2013-06-20 01:00:14 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:01:17 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (2.7ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 6.5ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:01:18 +0530
+Served asset /application.css - 200 OK (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:01:18 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/posts/published?post_id=3" for 127.0.0.1 at 2013-06-20 01:01:20 +0530
+Processing by PostController#published as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (3.0ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/application.js?_=1371670280818" for 127.0.0.1 at 2013-06-20 01:01:20 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:01:46 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (7.3ms)
+ Rendered layouts/_header.html.erb (1.1ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 21ms (Views: 17.0ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:01:46 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:01:46 +0530
+Served asset /application.css - 200 OK (26ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:01:47 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.4ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1
+ Rendered post/_post_display.html.erb (0.5ms)
+Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:02:16 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1
+ Rendered post/_post_display.html.erb (0.1ms)
+Completed 200 OK in 6ms (Views: 1.9ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:03:03 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (16.4ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 62ms (Views: 21.0ms | ActiveRecord: 3.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:03:03 +0530
+Served asset /application.css - 200 OK (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:03:03 +0530
+Served asset /application.js - 200 OK (32ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:03:07 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1[0m
+ Rendered post/_post_display.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:03:50 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (1.7ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:03:50 +0530
+Served asset /application.css - 200 OK (4ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:03:50 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (5ms) (pid 23706)
+Served asset /application.js - 200 OK (69ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:03:57 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1
+ Rendered post/_post_display.html.erb (0.2ms)
+Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:04:59 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (4.1ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 19ms (Views: 14.8ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:04:59 +0530
+Served asset /application.css - 200 OK (4ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:04:59 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (5ms) (pid 23706)
+Served asset /application.js - 200 OK (75ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:05:21 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1[0m
+ Rendered post/_post_display.html.erb (0.1ms)
+Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:07:46 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (3.5ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.6ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:07:46 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:07:46 +0530
+Served asset /application.js - 200 OK (33ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:08:16 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (1.9ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.5ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:08:16 +0530
+Served asset /application.css - 200 OK (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:08:16 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:08:19 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1[0m
+ Rendered post/_post_display.html.erb (0.1ms)
+Completed 200 OK in 7ms (Views: 2.7ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:08:26 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1[0m
+ Rendered post/_post_display.html.erb (0.2ms)
+Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:09:09 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (1.9ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.5ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:09:09 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:09:09 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (5ms) (pid 23706)
+Served asset /application.js - 200 OK (73ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:09:10 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1
+ Rendered post/_post_display.html.erb (0.1ms)
+Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:10:01 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1
+ Rendered post/_post_display.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:10:59 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (3.4ms)
+ Rendered layouts/_header.html.erb (0.3ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:10:59 +0530
+Compiled utilities.css (9ms) (pid 23706)
+Compiled application.css (556ms) (pid 23706)
+Served asset /application.css - 200 OK (624ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:10:59 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:11:01 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1[0m
+ Rendered post/_post_display.html.erb (0.1ms)
+Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:11:37 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (1.8ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:11:37 +0530
+Compiled utilities.css (9ms) (pid 23706)
+Compiled application.css (568ms) (pid 23706)
+Served asset /application.css - 200 OK (615ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:11:38 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:11:40 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1
+ Rendered post/_post_display.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:12:21 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (1.7ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.5ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:12:21 +0530
+Served asset /application.css - 200 OK (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:12:21 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:12:22 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1[0m
+ Rendered post/_post_display.html.erb (0.1ms)
+Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:13:10 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (4.2ms)
+ Rendered layouts/_header.html.erb (1.1ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 18ms (Views: 14.6ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:13:10 +0530
+Served asset /application.css - 200 OK (4ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:13:10 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (5ms) (pid 23706)
+Served asset /application.js - 200 OK (66ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:13:11 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1
+ Rendered post/_post_display.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:13:35 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (4.4ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 11.5ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:13:35 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:13:35 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (6ms) (pid 23706)
+Served asset /application.js - 200 OK (73ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:13:38 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1[0m
+ Rendered post/_post_display.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/post/3/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 01:13:41 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"3"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1[0m
+ Rendered post/_post_display.html.erb (0.0ms)
+Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)
+Connecting to database specified by database.yml
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:28:39 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (10.0ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 41ms (Views: 14.4ms | ActiveRecord: 3.2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:28:39 +0530
+Served asset /application.css - 200 OK (10ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:28:39 +0530
+Served asset /application.js - 200 OK (5ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 01:28:50 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 55ms (Views: 29.5ms | ActiveRecord: 4.1ms)
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-20 01:28:53 +0530
+Processing by PostController#drafts as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ [1m[35mPost Load (0.7ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 1)
+ Rendered post/drafts.html.erb within layouts/application (27.5ms)
+ Rendered layouts/_header.html.erb (1.1ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 40ms (Views: 33.8ms | ActiveRecord: 4.0ms)
+
+
+Started DELETE "/users/sign_out" for 127.0.0.1 at 2013-06-20 01:29:33 +0530
+Processing by SessionsController#destroy as HTML
+ Parameters: {"authenticity_token"=>"nlXv+YIdWMRBQHS13LbnpMdmRhdt3YNPHdUtUCSB8DM="}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 01:29:33 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 01:29:33 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.5ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.9ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 12.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/sign_up" for 127.0.0.1 at 2013-06-20 01:29:36 +0530
+Processing by RegistrationsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered devise/registrations/new.html.erb within layouts/application (4.6ms)
+ Rendered layouts/_header.html.erb (0.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 36ms (Views: 35.5ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/users" for 127.0.0.1 at 2013-06-20 01:29:46 +0530
+Processing by RegistrationsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"VrqHbHlnvthTOxedVUXmr9muCJBPi25yMkL9CAKuB8w=", "user"=>{"name"=>"Shanil Puri", "email"=>"shan@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mUser Exists (0.9ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'shan@gmail.com' LIMIT 1[0m
+ [1m[35mUser Exists (0.4ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = 'shan@gmail.com' LIMIT 1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO `users` (`created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `updated_at`, `username`) VALUES ('2013-06-19 19:59:46', NULL, NULL, 'shan@gmail.com', '$2a$10$BB7EMste8rkMOYnrM9Bns.YTj/qi46Zwn73v49oskgu3Ot0iBjG/i', NULL, NULL, 'Shanil Puri', NULL, NULL, NULL, 0, '2013-06-19 19:59:46', NULL)[0m
+ [1m[35m (45.7ms)[0m COMMIT
+ [1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Reporter' LIMIT 1[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.5ms)[0m [1mINSERT INTO `roles_users` (`user_id`, `role_id`) VALUES (9, 4)[0m
+ [1m[35m (40.4ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-06-19 19:59:46', `current_sign_in_at` = '2013-06-19 19:59:46', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-06-19 19:59:46' WHERE `users`.`id` = 9
+ [1m[36m (42.0ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 242ms (ActiveRecord: 131.6ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 01:29:46 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ Rendered home/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/posts/new" for 127.0.0.1 at 2013-06-20 01:29:57 +0530
+
+ActionController::RoutingError (No route matches [GET] "/posts/new"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.4ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 01:30:07 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.8ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 9 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered post/new.html.erb within layouts/application (6.7ms)
+ Rendered layouts/_header.html.erb (0.6ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 11.7ms | ActiveRecord: 1.3ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-20 01:30:18 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"VrqHbHlnvthTOxedVUXmr9muCJBPi25yMkL9CAKuB8w=", "post"=>{"title"=>"Hello world", "body"=>"Hello World"}, "commit"=>"Create"}
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO `posts` (`body`, `created_at`, `draft`, `owner_id`, `title`, `updated_at`) VALUES ('Hello World', '2013-06-19 20:00:18', NULL, NULL, 'Hello world', '2013-06-19 20:00:18')
+ [1m[36m (0.3ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 9[0m
+ [1m[35m (0.3ms)[0m UPDATE `posts` SET `owner_id` = 9, `draft` = 1, `updated_at` = '2013-06-19 20:00:18' WHERE `posts`.`id` = 4
+ [1m[36m (139.5ms)[0m [1mCOMMIT[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 9 AND `roles`.`id` = 2 LIMIT 1[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 156ms (ActiveRecord: 140.9ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 01:30:18 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ Rendered home/index.html.erb within layouts/application (0.0ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:30:18 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-20 01:30:29 +0530
+Processing by PostController#drafts as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ [1m[35m (0.4ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 9
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 1)[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ Rendered post/drafts.html.erb within layouts/application (3.7ms)
+ Rendered layouts/_header.html.erb (0.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:30:29 +0530
+Served asset /application.css - 304 Not Modified (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:30:29 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started GET "/post/4/show_post_body?post_id=4" for 127.0.0.1 at 2013-06-20 01:30:31 +0530
+Processing by PostController#show_post_body as */*
+ Parameters: {"post_id"=>"4"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 4 LIMIT 1
+ Rendered post/_post_display.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.5ms)
+
+
+Started DELETE "/users/sign_out" for 127.0.0.1 at 2013-06-20 01:30:47 +0530
+Processing by SessionsController#destroy as HTML
+ Parameters: {"authenticity_token"=>"VrqHbHlnvthTOxedVUXmr9muCJBPi25yMkL9CAKuB8w="}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 01:30:47 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 01:30:47 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.5ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.2ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:30:47 +0530
+Served asset /application.css - 304 Not Modified (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:30:47 +0530
+Served asset /application.js - 304 Not Modified (36ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-20 01:30:53 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"isrBb7n2DvNm6MTkTCMPsAp1/qKZ1jMnfsl8kpnVRIk=", "user"=>{"email"=>"shanil.puri@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`email` = 'shanil.puri@gmail.com' LIMIT 1
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.6ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-06-19 19:19:04', `current_sign_in_at` = '2013-06-19 20:00:53', `sign_in_count` = 11, `updated_at` = '2013-06-19 20:00:53' WHERE `users`.`id` = 1
+ [1m[36m (56.4ms)[0m [1mCOMMIT[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+Redirected to http://localhost:3000/admin/home
+Completed 302 Found in 168ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 01:30:54 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered admin/home/index.html.erb within layouts/application (0.8ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:30:54 +0530
+Served asset /application.css - 304 Not Modified (3ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:30:54 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-20 01:30:56 +0530
+Processing by PostController#drafts as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.4ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 1)[0m
+ [1m[35mUser Load (0.6ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ Rendered post/drafts.html.erb within layouts/application (6.2ms)
+ Rendered layouts/_header.html.erb (0.6ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 17ms (Views: 12.7ms | ActiveRecord: 1.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:30:56 +0530
+Served asset /application.css - 304 Not Modified (7ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:30:56 +0530
+Served asset /application.js - 304 Not Modified (4ms)
+
+
+Started GET "/post/4/publish_post" for 127.0.0.1 at 2013-06-20 01:31:02 +0530
+
+AbstractController::ActionNotFound (The action 'publish_post' could not be found for PostController):
+ actionpack (3.2.13) lib/abstract_controller/base.rb:116:in `process'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
+ warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
+ warden (1.2.1) lib/warden/manager.rb:34:in `catch'
+ warden (1.2.1) lib/warden/manager.rb:34:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__545535644493610080__call__1745577610070079851__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb within rescues/layout (0.6ms)
+Connecting to database specified by database.yml
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-20 01:31:50 +0530
+Processing by PostController#drafts as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 1)[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ Rendered post/drafts.html.erb within layouts/application (43.1ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 83ms (Views: 41.8ms | ActiveRecord: 9.0ms)
+
+
+Started GET "/post/4/publish_draft" for 127.0.0.1 at 2013-06-20 01:31:53 +0530
+Processing by PostController#publish_draft as HTML
+ Parameters: {"post_id"=>"4"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 4 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.5ms)[0m UPDATE `posts` SET `draft` = 0, `updated_at` = '2013-06-19 20:01:53' WHERE `posts`.`id` = 4
+ [1m[36m (57.4ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/posts/drafts
+Completed 302 Found in 68ms (ActiveRecord: 58.4ms)
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-20 01:31:53 +0530
+Processing by PostController#drafts as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ [1m[35mPost Load (0.8ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 1)
+ Rendered post/drafts.html.erb within layouts/application (3.6ms)
+ Rendered layouts/_header.html.erb (0.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 1.3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:31:53 +0530
+Served asset /application.css - 304 Not Modified (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:31:53 +0530
+Served asset /application.js - 304 Not Modified (4ms)
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-20 01:47:34 +0530
+Processing by PostController#drafts as HTML
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 1)[0m
+ Rendered post/drafts.html.erb within layouts/application (27.8ms)
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.4ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (16.7ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 105ms (Views: 45.8ms | ActiveRecord: 9.7ms)
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-20 01:48:08 +0530
+Processing by PostController#drafts as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 1)
+ Rendered post/drafts.html.erb within layouts/application (4.9ms)
+ [1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.2ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (6.9ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 23ms (Views: 19.2ms | ActiveRecord: 1.2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:48:09 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:48:09 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 01:48:15 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (1.0ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (2.2ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 7.6ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 01:49:15 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered admin/home/index.html.erb within layouts/application (0.7ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.4ms)
+Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:49:15 +0530
+Served asset /application.css - 304 Not Modified (7ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:49:15 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 01:50:56 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (0.8ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (3.1ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 18ms (Views: 10.7ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:50:56 +0530
+Served asset /application.css - 200 OK (7ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:50:56 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/user" for 127.0.0.1 at 2013-06-20 01:50:58 +0530
+Processing by UserController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.6ms)[0m [1mSELECT `users`.* FROM `users` [0m
+ Rendered user/index.html.erb within layouts/application (1.1ms)
+ [1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (3.1ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 1.3ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 01:51:01 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered admin/home/index.html.erb within layouts/application (0.8ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 0.4ms)
+
+
+Started DELETE "/users/sign_out" for 127.0.0.1 at 2013-06-20 01:51:10 +0530
+Processing by SessionsController#destroy as HTML
+ Parameters: {"authenticity_token"=>"isrBb7n2DvNm6MTkTCMPsAp1/qKZ1jMnfsl8kpnVRIk="}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 01:51:10 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 01:51:10 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.5ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (6.0ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+Completed 500 Internal Server Error in 19ms
+
+ActionView::Template::Error (undefined method `is_admin?' for nil:NilClass):
+ 1: <% home_path = current_user.is_admin? ? admin_home_index_path : root_path %>
+ 2:
+ 3:
+ 4:
+ app/views/layouts/_header.html.erb:1:in `_app_views_layouts__header_html_erb___3219253624882401767_70346235420920'
+ app/views/layouts/application.html.erb:10:in `_app_views_layouts_application_html_erb___127281836067101390_70346236726240'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.3ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 01:51:58 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.0ms)
+ Rendered layouts/_header.html.erb (1.3ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:51:58 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:51:58 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 01:52:02 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 0ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 01:52:02 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.8ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/password/new" for 127.0.0.1 at 2013-06-20 01:52:11 +0530
+Processing by Devise::PasswordsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (1.1ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/passwords/new.html.erb within layouts/application (8.7ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 24ms (Views: 23.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 01:52:17 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 0ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 01:52:17 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.5ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (4.7ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 01:52:18 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (1.1ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (5.9ms)
+ Rendered layouts/_header.html.erb (0.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.0ms)
+Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 01:52:20 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 0ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 01:52:20 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (30.1ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (33.4ms)
+ Rendered layouts/_header.html.erb (0.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 41ms (Views: 40.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/sign_up" for 127.0.0.1 at 2013-06-20 01:52:33 +0530
+Processing by RegistrationsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.5ms)
+ Rendered devise/registrations/new.html.erb within layouts/application (3.9ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/users" for 127.0.0.1 at 2013-06-20 01:53:01 +0530
+Processing by RegistrationsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"aT6iV2laKLi3uyrfU3VAIgV+FvC6T/pZX9WW2U372dM=", "user"=>{"name"=>"Latest", "email"=>"latest@test.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'latest@test.com' LIMIT 1[0m
+ [1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = 'latest@test.com' LIMIT 1
+ [1m[36mSQL (10.4ms)[0m [1mINSERT INTO `users` (`created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `updated_at`, `username`) VALUES ('2013-06-19 20:23:01', NULL, NULL, 'latest@test.com', '$2a$10$bEXG1RiXWa9cOGDubfxuSOtESyWzWMTOg5A/ogyuKgFVrX23FFLzS', NULL, NULL, 'Latest', NULL, NULL, NULL, 0, '2013-06-19 20:23:01', NULL)[0m
+ [1m[35m (55.4ms)[0m COMMIT
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Reporter' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mINSERT INTO `roles_users` (`user_id`, `role_id`) VALUES (10, 4)[0m
+ [1m[35m (42.2ms)[0m COMMIT
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-06-19 20:23:01', `current_sign_in_at` = '2013-06-19 20:23:01', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-06-19 20:23:01' WHERE `users`.`id` = 10
+ [1m[36m (41.9ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 263ms (ActiveRecord: 151.2ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 01:53:01 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ Rendered home/index.html.erb within layouts/application (0.0ms)
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.3ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (3.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 01:54:59 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35m (0.8ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10
+ Rendered home/index.html.erb within layouts/application (3.4ms)
+ [1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.3ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (6.1ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 17ms (Views: 14.2ms | ActiveRecord: 1.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:54:59 +0530
+Served asset /application.css - 200 OK (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:54:59 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/user" for 127.0.0.1 at 2013-06-20 01:55:01 +0530
+Processing by UserController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users`
+ Rendered user/index.html.erb within layouts/application (0.6ms)
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (2.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:55:05 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (10.5ms)
+Completed 500 Internal Server Error in 14ms
+
+ActionController::RoutingError (No route matches {:action=>"show", :controller=>"post", :post_id=>3}):
+ app/views/post/published.html.erb:18:in `block in _app_views_post_published_html_erb__577629851726888511_70346232634700'
+ app/views/post/published.html.erb:14:in `_app_views_post_published_html_erb__577629851726888511_70346232634700'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:55:29 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (4.2ms)
+Completed 500 Internal Server Error in 9ms
+
+ActionController::RoutingError (No route matches {:action=>"show", :controller=>"post", :post_id=>3}):
+ app/views/post/published.html.erb:18:in `block in _app_views_post_published_html_erb__577629851726888511_70346232634700'
+ app/views/post/published.html.erb:14:in `_app_views_post_published_html_erb__577629851726888511_70346232634700'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+Connecting to database specified by database.yml
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:56:49 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (5.7ms)
+Completed 500 Internal Server Error in 10ms
+
+ActionController::RoutingError (No route matches {:action=>"show", :controller=>"post", :post_id=>3}):
+ app/views/post/published.html.erb:18:in `block in _app_views_post_published_html_erb__577629851726888511_70346232634700'
+ app/views/post/published.html.erb:14:in `_app_views_post_published_html_erb__577629851726888511_70346232634700'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (26.0ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:57:38 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (2.6ms)
+Completed 500 Internal Server Error in 6ms
+
+ActionController::RoutingError (No route matches {:action=>"show", :controller=>"post", :post_id=>3}):
+ app/views/post/published.html.erb:18:in `block in _app_views_post_published_html_erb__577629851726888511_70346232634700'
+ app/views/post/published.html.erb:14:in `_app_views_post_published_html_erb__577629851726888511_70346232634700'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 01:58:48 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.6ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ Rendered post/published.html.erb within layouts/application (11.4ms)
+ [1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (19.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 87ms (Views: 31.2ms | ActiveRecord: 8.2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:58:49 +0530
+Served asset /application.css - 304 Not Modified (4ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:58:49 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 01:58:52 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mRole Load (0.4ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered post/new.html.erb within layouts/application (5.9ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (5.1ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 46ms (Views: 18.6ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 01:58:53 +0530
+Served asset /application.css - 304 Not Modified (15ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 01:58:53 +0530
+Served asset /application.js - 304 Not Modified (5ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-20 02:02:27 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"aT6iV2laKLi3uyrfU3VAIgV+FvC6T/pZX9WW2U372dM=", "post"=>{"title"=>"Blah", "body"=>"Blah"}, "commit"=>"Create"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO `posts` (`body`, `created_at`, `draft`, `owner_id`, `title`, `updated_at`) VALUES ('Blah', '2013-06-19 20:32:27', NULL, NULL, 'Blah', '2013-06-19 20:32:27')
+ [1m[36m (0.3ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10[0m
+ [1m[35m (0.2ms)[0m UPDATE `posts` SET `owner_id` = 10, `draft` = 1, `updated_at` = '2013-06-19 20:32:27' WHERE `posts`.`id` = 5
+ [1m[36m (145.5ms)[0m [1mCOMMIT[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 217ms (ActiveRecord: 150.5ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:02:27 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10[0m
+ Rendered home/index.html.erb within layouts/application (2.2ms)
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (2.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 8.6ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:02:27 +0530
+Served asset /application.css - 304 Not Modified (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:02:27 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 02:02:31 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mPost Load (0.4ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (9.3ms)
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (3.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 26ms (Views: 20.5ms | ActiveRecord: 1.8ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:02:31 +0530
+Served asset /application.css - 304 Not Modified (7ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:02:31 +0530
+Served asset /application.js - 304 Not Modified (3ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-20 02:02:36 +0530
+Processing by PostController#published as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (2.9ms)
+ [1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (5.2ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 17ms (Views: 13.0ms | ActiveRecord: 1.1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:02:36 +0530
+Served asset /application.css - 304 Not Modified (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:02:36 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:03:22 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10[0m
+ Rendered home/index.html.erb within layouts/application (2.8ms)
+ [1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (2.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:03:23 +0530
+Processing by PostController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (3.7ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (2.3ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 17ms (Views: 9.5ms | ActiveRecord: 1.1ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:03:24 +0530
+Served asset /application.js - 304 Not Modified (4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:03:24 +0530
+Served asset /application.css - 304 Not Modified (33ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:03:54 +0530
+Processing by PostController#index as HTML
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (5.7ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (4.9ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 28ms (Views: 19.0ms | ActiveRecord: 1.6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:03:54 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:03:54 +0530
+Served asset /application.css - 304 Not Modified (2ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:05:41 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.2ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered post/new.html.erb within layouts/application (5.3ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (1.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 11.0ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:05:41 +0530
+Served asset /application.css - 304 Not Modified (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:05:41 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:05:43 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35m (0.3ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10
+ Rendered home/index.html.erb within layouts/application (2.6ms)
+ [1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.2ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (2.7ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 9.7ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:05:43 +0530
+Served asset /application.css - 304 Not Modified (4ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:05:43 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/user" for 127.0.0.1 at 2013-06-20 02:05:44 +0530
+Processing by UserController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users`
+ Rendered user/index.html.erb within layouts/application (0.6ms)
+ [1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (2.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:05:44 +0530
+Served asset /application.css - 304 Not Modified (27ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:05:44 +0530
+Served asset /application.js - 304 Not Modified (3ms)
+
+
+Started GET "/admin/users/new" for 127.0.0.1 at 2013-06-20 02:05:52 +0530
+Processing by Admin::UsersController#new as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+Redirected to http://localhost:3000/
+Filter chain halted as :restrict_access! rendered or redirected
+Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:05:52 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36m (0.3ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10[0m
+ Rendered home/index.html.erb within layouts/application (5.3ms)
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (5.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 22ms (Views: 19.5ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:05:52 +0530
+Served asset /application.js - 304 Not Modified (3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:05:52 +0530
+Served asset /application.css - 304 Not Modified (5ms)
+
+
+Started GET "/user" for 127.0.0.1 at 2013-06-20 02:06:01 +0530
+Processing by UserController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` [0m
+ Rendered user/index.html.erb within layouts/application (1.5ms)
+ [1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (4.5ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 17ms (Views: 14.4ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:06:01 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:06:01 +0530
+Served asset /application.css - 304 Not Modified (2ms)
+
+
+Started GET "/user" for 127.0.0.1 at 2013-06-20 02:06:49 +0530
+Processing by UserController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` [0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered user/index.html.erb within layouts/application (2.9ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:06:49 +0530
+Served asset /application.css - 304 Not Modified (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:06:49 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:07:04 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10[0m
+ Rendered home/index.html.erb within layouts/application (2.4ms)
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (4.0ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:07:04 +0530
+Served asset /application.css - 304 Not Modified (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:07:04 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:07:06 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.2ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered post/new.html.erb within layouts/application (7.2ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 16ms (Views: 12.5ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:07:06 +0530
+Served asset /application.css - 304 Not Modified (4ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:07:06 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-20 02:07:10 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"aT6iV2laKLi3uyrfU3VAIgV+FvC6T/pZX9WW2U372dM=", "post"=>{"title"=>"vblah", "body"=>"baldshfa"}, "commit"=>"Create"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO `posts` (`body`, `created_at`, `draft`, `owner_id`, `title`, `updated_at`) VALUES ('baldshfa', '2013-06-19 20:37:10', NULL, NULL, 'vblah', '2013-06-19 20:37:10')[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10
+ [1m[36m (0.3ms)[0m [1mUPDATE `posts` SET `owner_id` = 10, `draft` = 1, `updated_at` = '2013-06-19 20:37:10' WHERE `posts`.`id` = 6[0m
+ [1m[35m (83.3ms)[0m COMMIT
+ [1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+Redirected to http://localhost:3000/
+Completed 302 Found in 97ms (ActiveRecord: 84.8ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:07:10 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10
+ Rendered home/index.html.erb within layouts/application (2.1ms)
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (2.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:07:10 +0530
+Served asset /application.js - 304 Not Modified (4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:07:11 +0530
+Served asset /application.css - 304 Not Modified (5ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:07:12 +0530
+Processing by PostController#index as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ [1m[35mPost Load (0.6ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (3.5ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (2.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 8.7ms | ActiveRecord: 2.1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:07:12 +0530
+Served asset /application.css - 304 Not Modified (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:07:12 +0530
+Served asset /application.js - 304 Not Modified (3ms)
+
+
+Started GET "/post/5/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 02:07:14 +0530
+
+AbstractController::ActionNotFound (The action 'show_post_body' could not be found for PostController):
+ actionpack (3.2.13) lib/abstract_controller/base.rb:116:in `process'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
+ warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
+ warden (1.2.1) lib/warden/manager.rb:34:in `catch'
+ warden (1.2.1) lib/warden/manager.rb:34:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__545535644493610080__call__1745577610070079851__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb within rescues/layout (0.4ms)
+
+
+Started GET "/post/5/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 02:09:06 +0530
+
+AbstractController::ActionNotFound (The action 'show_post_body' could not be found for PostController):
+ actionpack (3.2.13) lib/abstract_controller/base.rb:116:in `process'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
+ warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
+ warden (1.2.1) lib/warden/manager.rb:34:in `catch'
+ warden (1.2.1) lib/warden/manager.rb:34:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__545535644493610080__call__1745577610070079851__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb within rescues/layout (0.6ms)
+
+
+Started GET "/post/5/show_post_body?post_id=3" for 127.0.0.1 at 2013-06-20 02:09:30 +0530
+
+AbstractController::ActionNotFound (The action 'show_post_body' could not be found for PostController):
+ actionpack (3.2.13) lib/abstract_controller/base.rb:116:in `process'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
+ warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
+ warden (1.2.1) lib/warden/manager.rb:34:in `catch'
+ warden (1.2.1) lib/warden/manager.rb:34:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__545535644493610080__call__1745577610070079851__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/unknown_action.erb within rescues/layout (0.5ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:10:55 +0530
+Processing by PostController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ Rendered post/index.html.erb within layouts/application (4.2ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (1.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 9.6ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:10:55 +0530
+Served asset /application.css - 304 Not Modified (4ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:10:55 +0530
+Served asset /application.js - 304 Not Modified (3ms)
+
+
+Started GET "/post/5?post_id=3" for 127.0.0.1 at 2013-06-20 02:10:59 +0530
+Processing by PostController#show as */*
+ Parameters: {"post_id"=>"3", "id"=>"5"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 5 LIMIT 1
+Completed 500 Internal Server Error in 12ms
+
+ActionView::MissingTemplate (Missing partial post/post_display, application/post_display with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :handlers=>[:erb, :builder, :coffee]}. Searched in:
+ * "/home/shanil/office_work/blogger/app/views"
+ * "/home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views"
+):
+ app/controllers/post_controller.rb:41:in `show'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.5ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:11:01 +0530
+Processing by PostController#index as HTML
+ [1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (4.9ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 25ms (Views: 12.2ms | ActiveRecord: 2.1ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:11:01 +0530
+Served asset /application.js - 200 OK (4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:11:01 +0530
+Served asset /application.css - 200 OK (9ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:11:01 +0530
+Processing by PostController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ Rendered post/index.html.erb within layouts/application (3.0ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:11:01 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:11:01 +0530
+Served asset /application.css - 200 OK (29ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:11:01 +0530
+Processing by PostController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (4.9ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (2.6ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 17ms (Views: 11.8ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:11:01 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:11:01 +0530
+Served asset /application.css - 200 OK (3ms)
+
+
+Started GET "/post/5?post_id=3" for 127.0.0.1 at 2013-06-20 02:11:03 +0530
+Processing by PostController#show as */*
+ Parameters: {"post_id"=>"3", "id"=>"5"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 5 LIMIT 1[0m
+Completed 500 Internal Server Error in 8ms
+
+ActionView::MissingTemplate (Missing partial post/post_display, application/post_display with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :handlers=>[:erb, :builder, :coffee]}. Searched in:
+ * "/home/shanil/office_work/blogger/app/views"
+ * "/home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views"
+):
+ app/controllers/post_controller.rb:41:in `show'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.5ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:12:53 +0530
+Processing by PostController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ [1m[36mPost Load (0.0ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ Rendered post/index.html.erb within layouts/application (4.6ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (2.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 10.1ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:12:53 +0530
+Served asset /application.css - 200 OK (7ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:12:53 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (6ms) (pid 23706)
+Served asset /application.js - 200 OK (63ms)
+
+
+Started GET "/post/5" for 127.0.0.1 at 2013-06-20 02:12:55 +0530
+Processing by PostController#show as */*
+ Parameters: {"id"=>"5"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 5 LIMIT 1
+Completed 500 Internal Server Error in 9ms
+
+ActionView::MissingTemplate (Missing partial post/post_display, application/post_display with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :handlers=>[:erb, :builder, :coffee]}. Searched in:
+ * "/home/shanil/office_work/blogger/app/views"
+ * "/home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views"
+):
+ app/controllers/post_controller.rb:41:in `show'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.6ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:13:57 +0530
+Processing by PostController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (4.0ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (2.2ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 89ms (Views: 10.0ms | ActiveRecord: 7.7ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:13:57 +0530
+Served asset /application.css - 200 OK (4ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:13:57 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/post/5" for 127.0.0.1 at 2013-06-20 02:14:12 +0530
+Processing by PostController#show as */*
+ Parameters: {"id"=>"5"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 5 LIMIT 1[0m
+Completed 500 Internal Server Error in 9ms
+
+ActionView::MissingTemplate (Missing partial post/post_display, application/post_display with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :handlers=>[:erb, :builder, :coffee]}. Searched in:
+ * "/home/shanil/office_work/blogger/app/views"
+ * "/home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views"
+):
+ app/controllers/post_controller.rb:43:in `show'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.6ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:14:29 +0530
+Processing by PostController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.2ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ Rendered post/index.html.erb within layouts/application (12.3ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (2.1ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 105ms (Views: 21.9ms | ActiveRecord: 7.9ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:14:29 +0530
+Served asset /application.css - 200 OK (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:14:29 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/post/5" for 127.0.0.1 at 2013-06-20 02:14:31 +0530
+Processing by PostController#show as */*
+ Parameters: {"id"=>"5"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 5 LIMIT 1
+ Rendered post/show.html.erb within layouts/application (7.0ms)
+Completed 500 Internal Server Error in 13ms
+
+ActionView::Template::Error (undefined local variable or method `post' for #<#:0x0000000290f388>):
+ 1:
+ 2: <%= post.title %>
+ 3:
+ 4:
+ 5: <%= post.body %>
+ app/views/post/show.html.erb:2:in `_app_views_post_show_html_erb__261942384658035030_21614440'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (8.0ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:14:44 +0530
+Processing by PostController#index as HTML
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (3.6ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (1.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 18ms (Views: 8.7ms | ActiveRecord: 1.7ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:14:44 +0530
+Served asset /application.css - 200 OK (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:14:44 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:14:44 +0530
+Processing by PostController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ Rendered post/index.html.erb within layouts/application (3.2ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.0ms)
+Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:14:44 +0530
+Served asset /application.css - 200 OK (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:14:44 +0530
+Served asset /application.js - 200 OK (5ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:14:44 +0530
+Processing by PostController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (3.5ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (24.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 36ms (Views: 31.9ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:14:44 +0530
+Served asset /application.css - 200 OK (3ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:14:44 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/post/5" for 127.0.0.1 at 2013-06-20 02:14:46 +0530
+Processing by PostController#show as */*
+ Parameters: {"id"=>"5"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 5 LIMIT 1[0m
+ Rendered post/show.html.erb within layouts/application (7.5ms)
+Completed 500 Internal Server Error in 12ms
+
+ActionView::Template::Error (undefined local variable or method `post' for #<#:0x000000039c1168>):
+ 1:
+ 2: <%= post.title %>
+ 3:
+ 4:
+ 5: <%= post.body %>
+ app/views/post/show.html.erb:2:in `_app_views_post_show_html_erb__261942384658035030_21614440'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.6ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:15:14 +0530
+Processing by PostController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ Rendered post/index.html.erb within layouts/application (9.7ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (2.7ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 26ms (Views: 17.4ms | ActiveRecord: 1.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:15:14 +0530
+Served asset /application.css - 200 OK (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:15:14 +0530
+Compiled popup.js (0ms) (pid 23706)
+Compiled application.js (5ms) (pid 23706)
+Served asset /application.js - 200 OK (75ms)
+
+
+Started GET "/post/5" for 127.0.0.1 at 2013-06-20 02:15:18 +0530
+Processing by PostController#show as */*
+ Parameters: {"id"=>"5"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 5 LIMIT 1
+ Rendered post/show.html.erb within layouts/application (8.0ms)
+Completed 500 Internal Server Error in 15ms
+
+ActionView::Template::Error (undefined local variable or method `post' for #<#:0x007ff584c594d8>):
+ 1:
+ 2: <%= post.title %>
+ 3:
+ 4:
+ 5: <%= post.body %>
+ app/views/post/show.html.erb:2:in `_app_views_post_show_html_erb__261942384658035030_21614440'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (8.6ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:15:43 +0530
+Processing by PostController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (4.4ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (2.1ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 91ms (Views: 10.6ms | ActiveRecord: 7.6ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:15:43 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:15:43 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/post/5" for 127.0.0.1 at 2013-06-20 02:15:46 +0530
+Processing by PostController#show as */*
+ Parameters: {"id"=>"5"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 5 LIMIT 1[0m
+ Rendered post/show.html.erb within layouts/application (0.5ms)
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (3.1ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.js?_=1371674746450" for 127.0.0.1 at 2013-06-20 02:15:46 +0530
+Served asset /application.js - 200 OK (32ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:16:48 +0530
+Processing by PostController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ Rendered post/index.html.erb within layouts/application (3.9ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (1.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 81ms (Views: 9.5ms | ActiveRecord: 5.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:16:48 +0530
+Served asset /application.css - 200 OK (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:16:49 +0530
+Served asset /application.js - 200 OK (34ms)
+
+
+Started GET "/post/5" for 127.0.0.1 at 2013-06-20 02:16:50 +0530
+Processing by PostController#show as */*
+ Parameters: {"id"=>"5"}
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 5 LIMIT 1
+Completed 500 Internal Server Error in 11ms
+
+ActionView::MissingTemplate (Missing partial post/_show_post, application/_show_post with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :handlers=>[:erb, :builder, :coffee]}. Searched in:
+ * "/home/shanil/office_work/blogger/app/views"
+ * "/home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views"
+):
+ app/controllers/post_controller.rb:41:in `show'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.4ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:17:06 +0530
+Processing by PostController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 10[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (3.8ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (1.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 83ms (Views: 9.5ms | ActiveRecord: 7.1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:17:06 +0530
+Served asset /application.css - 200 OK (31ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:17:06 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/post/5" for 127.0.0.1 at 2013-06-20 02:17:08 +0530
+Processing by PostController#show as */*
+ Parameters: {"id"=>"5"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 5 LIMIT 1[0m
+ Rendered post/_show_post.html.erb (0.6ms)
+Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/post/5" for 127.0.0.1 at 2013-06-20 02:17:23 +0530
+Processing by PostController#show as */*
+ Parameters: {"id"=>"5"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 5 LIMIT 1[0m
+ Rendered post/_show_post.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:17:26 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.2ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered post/new.html.erb within layouts/application (6.3ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (1.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 19ms (Views: 13.8ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:17:26 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:20:42 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+Completed 401 Unauthorized in 5ms
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:20:43 +0530
+Processing by PostController#new as HTML
+Completed 401 Unauthorized in 0ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:20:43 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.5ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.7ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:20:43 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:20:43 +0530
+Served asset /application.js - 200 OK (1ms)
+Connecting to database specified by database.yml
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:25:16 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (1.6ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (15.7ms)
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered shared/_common_popup.html.erb (0.5ms)
+ Rendered layouts/_footer.html.erb (0.4ms)
+Completed 200 OK in 123ms (Views: 49.9ms | ActiveRecord: 2.3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:25:16 +0530
+Served asset /application.css - 200 OK (22ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:25:16 +0530
+Served asset /application.js - 200 OK (44ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:31:44 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.9ms)
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 64ms (Views: 10.7ms | ActiveRecord: 1.1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:31:44 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:31:44 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:31:46 +0530
+Processing by PostController#index as HTML
+Completed 500 Internal Server Error in 1ms
+
+NoMethodError (undefined method `is_admin?' for nil:NilClass):
+ app/controllers/post_controller.rb:8:in `index'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.4ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:32:47 +0530
+Processing by PostController#index as HTML
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (60.7ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 84ms (Views: 61.8ms | ActiveRecord: 3.7ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:32:47 +0530
+Served asset /application.css - 200 OK (4ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:32:47 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/post/3" for 127.0.0.1 at 2013-06-20 02:32:59 +0530
+Processing by PostController#show as */*
+ Parameters: {"id"=>"3"}
+Completed 401 Unauthorized in 5ms
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:33:14 +0530
+Processing by PostController#index as HTML
+ [1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ Rendered post/index.html.erb within layouts/application (26.2ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 46ms (Views: 29.4ms | ActiveRecord: 1.6ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:33:14 +0530
+Served asset /application.css - 200 OK (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:33:14 +0530
+Served asset /application.js - 200 OK (28ms)
+
+
+Started GET "/post/3" for 127.0.0.1 at 2013-06-20 02:33:17 +0530
+Processing by PostController#show as */*
+ Parameters: {"id"=>"3"}
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 3 LIMIT 1[0m
+ Rendered post/_show_post.html.erb (0.4ms)
+Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:33:29 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.7ms)
+ Rendered layouts/_header.html.erb (0.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:34:21 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.3ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (2.6ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.0ms)
+Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:35:00 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (2.8ms)
+ Rendered layouts/_header.html.erb (1.9ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:35:00 +0530
+Served asset /application.css - 200 OK (7ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:35:01 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:35:06 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y/RXM1u4/CgncZ+1Mrk9kBXyJlTCZrTeLW3LxRu6cgc=", "user"=>{"email"=>"", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+Completed 401 Unauthorized in 1ms
+Processing by SessionsController#new as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y/RXM1u4/CgncZ+1Mrk9kBXyJlTCZrTeLW3LxRu6cgc=", "user"=>{"email"=>"", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.5ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.6ms)
+ Rendered layouts/_header.html.erb (0.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:35:11 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y/RXM1u4/CgncZ+1Mrk9kBXyJlTCZrTeLW3LxRu6cgc=", "user"=>{"email"=>"tmcguire@dealertire.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ [1m[35mUser Load (0.6ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`email` = 'tmcguire@dealertire.com' LIMIT 1
+Completed 401 Unauthorized in 31ms
+Processing by SessionsController#new as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y/RXM1u4/CgncZ+1Mrk9kBXyJlTCZrTeLW3LxRu6cgc=", "user"=>{"email"=>"tmcguire@dealertire.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.1ms)
+ Rendered layouts/_header.html.erb (0.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 104ms (Views: 8.4ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:35:18 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y/RXM1u4/CgncZ+1Mrk9kBXyJlTCZrTeLW3LxRu6cgc=", "user"=>{"email"=>"shanil.puri@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'shanil.puri@gmail.com' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (1.8ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-06-19 20:00:53', `current_sign_in_at` = '2013-06-19 21:05:18', `sign_in_count` = 12, `updated_at` = '2013-06-19 21:05:18' WHERE `users`.`id` = 1[0m
+ [1m[35m (49.3ms)[0m COMMIT
+ [1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.6ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+Redirected to http://localhost:3000/admin/home
+Completed 302 Found in 240ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 02:35:18 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.6ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (1.6ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (2.3ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 32ms (Views: 8.7ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/admin/users/new" for 127.0.0.1 at 2013-06-20 02:35:22 +0530
+Processing by Admin::UsersController#new as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered admin/users/new.html.erb within layouts/application (3.6ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (2.1ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 10.1ms | ActiveRecord: 0.5ms)
+
+
+Started POST "/admin/users" for 127.0.0.1 at 2013-06-20 02:35:45 +0530
+Processing by Admin::UsersController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Y/RXM1u4/CgncZ+1Mrk9kBXyJlTCZrTeLW3LxRu6cgc=", "user"=>{"name"=>"Test Editor", "email"=>"test_editor@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Create"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'test_editor@gmail.com' LIMIT 1[0m
+ [1m[35mUser Exists (0.4ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = 'test_editor@gmail.com' LIMIT 1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO `users` (`created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `updated_at`, `username`) VALUES ('2013-06-19 21:05:45', NULL, NULL, 'test_editor@gmail.com', '$2a$10$gDQ2qhauQ3YCbrlT8TKdZOiRL7oHnc1OHnlJwstk6uVB.ehKkguUG', NULL, NULL, 'Test Editor', NULL, NULL, NULL, 0, '2013-06-19 21:05:45', NULL)[0m
+ [1m[35mUser Exists (0.5ms)[0m SELECT 1 AS one FROM `users` WHERE (`users`.`email` = 'test_editor@gmail.com' AND `users`.`id` != 11) LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Editor' LIMIT 1[0m
+ [1m[35m (0.4ms)[0m INSERT INTO `roles_users` (`user_id`, `role_id`) VALUES (11, 3)
+ [1m[36m (71.7ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/admin/home
+Completed 302 Found in 185ms (ActiveRecord: 74.3ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 02:35:45 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.6ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.6ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered admin/home/index.html.erb within layouts/application (0.8ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 1.5ms)
+
+
+Started DELETE "/users/sign_out" for 127.0.0.1 at 2013-06-20 02:35:48 +0530
+Processing by SessionsController#destroy as HTML
+ Parameters: {"authenticity_token"=>"Y/RXM1u4/CgncZ+1Mrk9kBXyJlTCZrTeLW3LxRu6cgc="}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 11ms (ActiveRecord: 0.7ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:35:48 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:35:48 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.9ms)
+ Rendered layouts/_header.html.erb (0.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 11.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/sign_up" for 127.0.0.1 at 2013-06-20 02:36:19 +0530
+Processing by RegistrationsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered devise/registrations/new.html.erb within layouts/application (4.5ms)
+ Rendered layouts/_header.html.erb (0.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:37:10 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:37:10 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.6ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.6ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:37:10 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:37:15 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"D23HAAan052vqgYG8YdqzetNsQexUZWMEpmRgAxY+n4=", "user"=>{"email"=>"latest@test.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`email` = 'latest@test.com' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.2ms)[0m UPDATE `users` SET `current_sign_in_at` = '2013-06-19 21:07:15', `sign_in_count` = 2, `updated_at` = '2013-06-19 21:07:15' WHERE `users`.`id` = 10
+ [1m[36m (59.2ms)[0m [1mCOMMIT[0m
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.8ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 163ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:37:15 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36m (0.4ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10[0m
+ Rendered home/index.html.erb within layouts/application (39.5ms)
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (6.4ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 58ms (Views: 51.9ms | ActiveRecord: 2.9ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:37:15 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:37:19 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.3ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered post/new.html.erb within layouts/application (5.8ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 10.4ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:37:19 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-20 02:37:29 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"D23HAAan052vqgYG8YdqzetNsQexUZWMEpmRgAxY+n4=", "post"=>{"title"=>"blah", "body"=>"balh test is the last test article."}, "commit"=>"Create"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO `posts` (`body`, `created_at`, `draft`, `owner_id`, `title`, `updated_at`) VALUES ('balh test is the last test article.', '2013-06-19 21:07:29', NULL, NULL, 'blah', '2013-06-19 21:07:29')[0m
+ [1m[35m (0.8ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10
+ [1m[36m (0.4ms)[0m [1mUPDATE `posts` SET `owner_id` = 10, `draft` = 1, `updated_at` = '2013-06-19 21:07:29' WHERE `posts`.`id` = 7[0m
+ [1m[35m (44.1ms)[0m COMMIT
+ [1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.2ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+Redirected to http://localhost:3000/
+Completed 302 Found in 62ms (ActiveRecord: 46.7ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:37:29 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10
+ Rendered home/index.html.erb within layouts/application (2.2ms)
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (2.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:37:30 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started DELETE "/users/sign_out" for 127.0.0.1 at 2013-06-20 02:37:34 +0530
+Processing by SessionsController#destroy as HTML
+ Parameters: {"authenticity_token"=>"D23HAAan052vqgYG8YdqzetNsQexUZWMEpmRgAxY+n4="}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.1ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:37:34 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 0ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:37:34 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.1ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:37:35 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-20 02:37:48 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"KepKbtlAW7S6UB0JPH5UdyhIGOKExFUeT+0+J+F8nsU=", "user"=>{"email"=>"test_editor@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ [1m[35mUser Load (0.6ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`email` = 'test_editor@gmail.com' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.6ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-06-19 21:07:48', `current_sign_in_at` = '2013-06-19 21:07:48', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-06-19 21:07:48' WHERE `users`.`id` = 11
+ [1m[36m (58.7ms)[0m [1mCOMMIT[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11 AND `roles`.`id` = 2 LIMIT 1[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 162ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:37:48 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1
+ [1m[36m (0.4ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11[0m
+ Rendered home/index.html.erb within layouts/application (2.2ms)
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (2.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:37:49 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:37:52 +0530
+Processing by PostController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11 AND `roles`.`id` = 2 LIMIT 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 11
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ Rendered post/index.html.erb within layouts/application (2.7ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11 AND `roles`.`id` = 2 LIMIT 1
+ Rendered layouts/_header.html.erb (1.9ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 38ms (Views: 31.8ms | ActiveRecord: 1.3ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:37:52 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:39:02 +0530
+Processing by PostController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11 AND `roles`.`id` = 2 LIMIT 1[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 11[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (5.9ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (2.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 27ms (Views: 16.3ms | ActiveRecord: 1.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:39:02 +0530
+Served asset /application.css - 200 OK (8ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:39:02 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:39:14 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1
+ [1m[36m (0.6ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11[0m
+ Rendered home/index.html.erb within layouts/application (6.5ms)
+ [1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (3.8ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 17ms (Views: 14.1ms | ActiveRecord: 1.3ms)
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-20 02:39:18 +0530
+Processing by PostController#drafts as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11[0m
+ [1m[35mPost Load (0.6ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 1)
+ [1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/drafts.html.erb within layouts/application (7.1ms)
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (4.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 18ms (Views: 14.0ms | ActiveRecord: 1.9ms)
+
+
+Started GET "/post/5/publish_draft" for 127.0.0.1 at 2013-06-20 02:39:22 +0530
+Processing by PostController#publish_draft as HTML
+ Parameters: {"post_id"=>"5"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1
+ [1m[36mPost Load (0.4ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 5 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.4ms)[0m [1mUPDATE `posts` SET `draft` = 0, `updated_at` = '2013-06-19 21:09:22' WHERE `posts`.`id` = 5[0m
+ [1m[35m (114.4ms)[0m COMMIT
+Redirected to http://localhost:3000/posts/drafts
+Completed 302 Found in 121ms (ActiveRecord: 115.4ms)
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-20 02:39:22 +0530
+Processing by PostController#drafts as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 1)[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/drafts.html.erb within layouts/application (29.9ms)
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mRole Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (2.7ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 38ms (Views: 36.1ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/posts" for 127.0.0.1 at 2013-06-20 02:39:30 +0530
+
+ActionController::RoutingError (No route matches [GET] "/posts"):
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-20 02:39:32 +0530
+Processing by PostController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1
+ [1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Exists (0.1ms)[0m SELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11 AND `roles`.`id` = 2 LIMIT 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 11
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 9 LIMIT 1
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1[0m
+ Rendered post/index.html.erb within layouts/application (3.5ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT 1 AS one FROM `roles` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11 AND `roles`.`id` = 2 LIMIT 1[0m
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 02:54:51 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1
+ [1m[36m (0.3ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11[0m
+ Rendered home/index.html.erb within layouts/application (42.2ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 83ms (Views: 45.5ms | ActiveRecord: 3.9ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:54:51 +0530
+Served asset /application.css - 304 Not Modified (3ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:54:51 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:54:54 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11
+ Rendered post/new.html.erb within layouts/application (4.7ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11[0m
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 19ms (Views: 10.3ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:54:55 +0530
+Served asset /application.css - 304 Not Modified (32ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:54:55 +0530
+Served asset /application.js - 304 Not Modified (5ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:56:05 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11[0m
+ Rendered post/new.html.erb within layouts/application (3.6ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:56:05 +0530
+Compiled utilities.css (14ms) (pid 25701)
+Compiled application.css (538ms) (pid 25701)
+Served asset /application.css - 200 OK (667ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:56:05 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:56:14 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11
+ Rendered post/new.html.erb within layouts/application (3.5ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11[0m
+ Rendered layouts/_header.html.erb (33.3ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 44ms (Views: 41.1ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:56:15 +0530
+Compiled utilities.css (10ms) (pid 25701)
+Compiled application.css (560ms) (pid 25701)
+Served asset /application.css - 200 OK (664ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:56:15 +0530
+Served asset /application.js - 200 OK (4ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-20 02:56:27 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"KepKbtlAW7S6UB0JPH5UdyhIGOKExFUeT+0+J+F8nsU=", "post"=>{"title"=>"", "body"=>""}, "commit"=>"Create"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+Redirected to http://localhost:3000/post/new
+ [1m[35m (0.1ms)[0m COMMIT
+Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:56:27 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1[0m
+ [1m[35m (0.4ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11
+ Rendered post/new.html.erb within layouts/application (3.7ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11[0m
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.7ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:56:28 +0530
+Served asset /application.css - 304 Not Modified (6ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-20 02:56:34 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"KepKbtlAW7S6UB0JPH5UdyhIGOKExFUeT+0+J+F8nsU=", "post"=>{"title"=>"", "body"=>"kasjndasdnc"}, "commit"=>"Create"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+Redirected to http://localhost:3000/post/new
+ [1m[35m (0.1ms)[0m COMMIT
+Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:56:35 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11
+ Rendered post/new.html.erb within layouts/application (3.6ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11[0m
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:56:35 +0530
+Served asset /application.css - 304 Not Modified (3ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:57:47 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (1.7ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 10 LIMIT 1
+ [1m[36m (0.4ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10[0m
+ Rendered post/new.html.erb within layouts/application (4.9ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 10
+ Rendered layouts/_header.html.erb (1.8ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 10.7ms | ActiveRecord: 2.1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:57:47 +0530
+Served asset /application.css - 200 OK (7ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:57:47 +0530
+Served asset /application.js - 304 Not Modified (29ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:58:50 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1[0m
+ [1m[35m (0.3ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11
+ Rendered post/new.html.erb within layouts/application (5.9ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11[0m
+ Rendered layouts/_header.html.erb (4.4ms)
+ Rendered shared/_common_popup.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 22ms (Views: 19.1ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:58:50 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:58:50 +0530
+Served asset /application.js - 200 OK (4ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 02:59:26 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11[0m
+ Rendered post/new.html.erb within layouts/application (5.7ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 11
+ Rendered layouts/_header.html.erb (2.1ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 02:59:26 +0530
+Served asset /application.css - 200 OK (12ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 02:59:26 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started DELETE "/users/sign_out" for 127.0.0.1 at 2013-06-20 03:08:21 +0530
+Processing by SessionsController#destroy as HTML
+ Parameters: {"authenticity_token"=>"KepKbtlAW7S6UB0JPH5UdyhIGOKExFUeT+0+J+F8nsU="}
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 11 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 03:08:21 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 0ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 03:08:21 +0530
+Processing by SessionsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (4.0ms)
+ Rendered layouts/_header.html.erb (0.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 03:08:22 +0530
+Served asset /application.css - 304 Not Modified (7ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 03:08:22 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/users/password/new" for 127.0.0.1 at 2013-06-20 03:08:43 +0530
+Processing by Devise::PasswordsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/passwords/new.html.erb within layouts/application (3.3ms)
+ Rendered layouts/_header.html.erb (0.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 03:08:43 +0530
+Served asset /application.css - 304 Not Modified (29ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 03:08:43 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started POST "/users/password" for 127.0.0.1 at 2013-06-20 03:08:48 +0530
+Processing by Devise::PasswordsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"22ei0G6Z78A7uJkgEDZFqt/nzvf9Hk9hSTTC4M/n+v4=", "user"=>{"email"=>"shanil.puri@gmail.com"}, "commit"=>"Send me reset password instructions"}
+ [1m[35mUser Load (0.6ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`email` = 'shanil.puri@gmail.com' LIMIT 1
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`reset_password_token` = 'qpzcPZPGJuXJkMqJwsZp' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (0.5ms)[0m [1mUPDATE `users` SET `reset_password_token` = 'qpzcPZPGJuXJkMqJwsZp', `reset_password_sent_at` = '2013-06-19 21:38:48', `updated_at` = '2013-06-19 21:38:48' WHERE `users`.`id` = 1[0m
+ [1m[35m (67.2ms)[0m COMMIT
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/mailer/reset_password_instructions.html.erb (3.5ms)
+Completed 500 Internal Server Error in 1153ms
+
+ActionView::Template::Error (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true):
+ 2:
+ 3:
Someone has requested a link to change your password. You can do this through the link below.
+ 4:
+ 5:
<%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %>
+ 6:
+ 7:
If you didn't request this, please ignore this email.
+ 8:
Your password won't change until you access the link above and create a new one.
Someone has requested a link to change your password. You can do this through the link below.
+ 4:
+ 5:
<%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %>
+ 6:
+ 7:
If you didn't request this, please ignore this email.
+ 8:
Your password won't change until you access the link above and create a new one.
+ actionpack (3.2.13) lib/action_dispatch/http/url.rb:25:in `url_for'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:602:in `url_for'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:346:in `url_for'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:220:in `edit_user_password_url'
+ actionpack (3.2.13) lib/action_dispatch/routing/routes_proxy.rb:29:in `edit_user_password_url'
+ actionpack (3.2.13) lib/action_dispatch/routing/routes_proxy.rb:32:in `method_missing'
+ devise (2.2.4) lib/devise/controllers/url_helpers.rb:50:in `edit_password_url'
+ devise (2.2.4) app/views/devise/mailer/reset_password_instructions.html.erb:5:in `__home_shanil__rvm_gems_ruby_______p____gems_devise_______app_views_devise_mailer_reset_password_instructions_html_erb__4315744922969705321_70006591968940'
+ actionpack (3.2.13) lib/action_view/template.rb:145:in `block in render'
+ activesupport (3.2.13) lib/active_support/notifications.rb:125:in `instrument'
+ actionpack (3.2.13) lib/action_view/template.rb:143:in `render'
+ actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
+ actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.13) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
+ actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
+ actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
+ actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:45:in `render_template'
+ actionpack (3.2.13) lib/action_view/renderer/template_renderer.rb:18:in `render'
+ actionpack (3.2.13) lib/action_view/renderer/renderer.rb:36:in `render_template'
+ actionpack (3.2.13) lib/action_view/renderer/renderer.rb:17:in `render'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:110:in `_render_template'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:103:in `render_to_body'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:88:in `render'
+ actionmailer (3.2.13) lib/action_mailer/base.rb:713:in `block in collect_responses_and_parts_order'
+ actionmailer (3.2.13) lib/action_mailer/base.rb:724:in `each'
+ actionmailer (3.2.13) lib/action_mailer/base.rb:724:in `each_template'
+ actionmailer (3.2.13) lib/action_mailer/base.rb:709:in `collect_responses_and_parts_order'
+ actionmailer (3.2.13) lib/action_mailer/base.rb:648:in `mail'
+ devise (2.2.4) lib/devise/mailers/helpers.rb:16:in `devise_mail'
+ devise (2.2.4) app/mailers/devise/mailer.rb:9:in `reset_password_instructions'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
+ actionmailer (3.2.13) lib/action_mailer/base.rb:459:in `process'
+ actionmailer (3.2.13) lib/action_mailer/base.rb:453:in `initialize'
+ actionmailer (3.2.13) lib/action_mailer/base.rb:439:in `new'
+ actionmailer (3.2.13) lib/action_mailer/base.rb:439:in `method_missing'
+ devise (2.2.4) lib/devise/models/authenticatable.rb:174:in `send_devise_notification'
+ devise (2.2.4) lib/devise/models/recoverable.rb:48:in `send_reset_password_instructions'
+ devise (2.2.4) lib/devise/models/recoverable.rb:110:in `send_reset_password_instructions'
+ devise (2.2.4) app/controllers/devise/passwords_controller.rb:13:in `create'
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:447:in `_run__436323806858673471__process_action__2818945394573297195__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/mapper.rb:42:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
+ warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
+ warden (1.2.1) lib/warden/manager.rb:34:in `catch'
+ warden (1.2.1) lib/warden/manager.rb:34:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
+ rack (1.4.5) lib/rack/conditionalget.rb:35:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__4283635023517451902__call__4136185916711238533__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/reloader.rb:65:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.4ms)
+
+
+Started GET "/users/password/new" for 127.0.0.1 at 2013-06-20 03:12:39 +0530
+Processing by Devise::PasswordsController#new as HTML
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/shared/_links.erb (0.4ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/passwords/new.html.erb within layouts/application (2.3ms)
+ Rendered layouts/_header.html.erb (0.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 03:18:44 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/sessions/new.html.erb within layouts/application (3.2ms)
+ Rendered layouts/_header.html.erb (0.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 03:18:44 +0530
+Served asset /application.css - 200 OK (32ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 03:18:44 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 03:20:08 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.8ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (4.2ms)
+ Rendered layouts/_header.html.erb (0.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 13.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 03:20:08 +0530
+Served asset /application.css - 200 OK (6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 03:20:08 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 03:20:12 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (2.6ms)
+ Rendered layouts/_header.html.erb (0.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 03:20:12 +0530
+Served asset /application.css - 200 OK (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 03:20:12 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 03:20:21 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.9ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.0ms)
+ Rendered layouts/_header.html.erb (0.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 03:20:21 +0530
+Served asset /application.css - 200 OK (28ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 03:20:21 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/users/sign_up" for 127.0.0.1 at 2013-06-20 03:20:25 +0530
+Processing by RegistrationsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.3ms)
+ Rendered devise/registrations/new.html.erb within layouts/application (4.0ms)
+ Rendered layouts/_header.html.erb (0.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.0ms)
+Connecting to database specified by database.yml
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-20 03:23:33 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"22ei0G6Z78A7uJkgEDZFqt/nzvf9Hk9hSTTC4M/n+v4=", "user"=>{"email"=>"shanil.puri@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+WARNING: Can't verify CSRF token authenticity
+Completed 401 Unauthorized in 1ms
+Processing by SessionsController#new as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"22ei0G6Z78A7uJkgEDZFqt/nzvf9Hk9hSTTC4M/n+v4=", "user"=>{"email"=>"shanil.puri@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+WARNING: Can't verify CSRF token authenticity
+ Rendered devise/shared/_links.html.erb (1.0ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (10.1ms)
+ Rendered layouts/_header.html.erb (1.4ms)
+ Rendered shared/_common_popup.html.erb (0.5ms)
+ Rendered layouts/_footer.html.erb (0.4ms)
+Completed 200 OK in 211ms (Views: 43.6ms | ActiveRecord: 2.3ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 03:23:34 +0530
+Served asset /application.css - 304 Not Modified (40ms)
+Connecting to database specified by database.yml
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-20 03:24:24 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"22ei0G6Z78A7uJkgEDZFqt/nzvf9Hk9hSTTC4M/n+v4=", "user"=>{"email"=>"shanil.puri@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+WARNING: Can't verify CSRF token authenticity
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'shanil.puri@gmail.com' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (1.6ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-06-19 21:05:18', `current_sign_in_at` = '2013-06-19 21:54:24', `sign_in_count` = 13, `updated_at` = '2013-06-19 21:54:24' WHERE `users`.`id` = 1[0m
+ [1m[35m (122.8ms)[0m COMMIT
+ [1m[36m (0.3ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 374ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 03:24:24 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 03:24:24 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (2.9ms)
+ Rendered layouts/_header.html.erb (0.9ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 03:24:25 +0530
+Served asset /application.css - 200 OK (29ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 03:24:25 +0530
+Served asset /application.js - 200 OK (26ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-20 03:24:31 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"WsxXjHFIU5944XrMM8L5B4T4qB+H6ihpBOBwTTz6rio=", "user"=>{"email"=>"shanil.puri@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`email` = 'shanil.puri@gmail.com' LIMIT 1
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.6ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-06-19 21:54:24', `current_sign_in_at` = '2013-06-19 21:54:32', `sign_in_count` = 14, `updated_at` = '2013-06-19 21:54:32' WHERE `users`.`id` = 1
+ [1m[36m (46.9ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+Redirected to http://localhost:3000/
+Completed 302 Found in 155ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 03:24:32 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered home/index.html.erb within layouts/application (2.9ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 03:24:52 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered post/new.html.erb within layouts/application (4.7ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 18ms (Views: 10.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/user" for 127.0.0.1 at 2013-06-20 03:25:03 +0530
+Processing by UserController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users`
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered user/index.html.erb within layouts/application (2.6ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 03:25:14 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered home/index.html.erb within layouts/application (4.4ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 03:25:25 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+Redirected to http://localhost:3000/
+Filter chain halted as :restrict_access! rendered or redirected
+Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 03:25:26 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered home/index.html.erb within layouts/application (2.3ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 03:26:21 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.3ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered home/index.html.erb within layouts/application (23.3ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (2.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 95ms (Views: 26.8ms | ActiveRecord: 8.8ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 03:26:21 +0530
+Served asset /application.css - 200 OK (10ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 03:26:21 +0530
+Served asset /application.js - 200 OK (28ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 03:26:25 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+Redirected to http://localhost:3000/
+Filter chain halted as :restrict_access! rendered or redirected
+Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 03:26:25 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered home/index.html.erb within layouts/application (2.6ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 03:27:14 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.5ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered home/index.html.erb within layouts/application (4.6ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 03:27:14 +0530
+Served asset /application.css - 200 OK (5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 03:27:14 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 03:27:23 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (1.5ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (2.2ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/admin/users/new" for 127.0.0.1 at 2013-06-20 03:27:32 +0530
+Processing by Admin::UsersController#new as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered admin/users/new.html.erb within layouts/application (4.5ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 0.2ms)
+
+
+Started POST "/admin/users" for 127.0.0.1 at 2013-06-20 03:27:37 +0530
+Processing by Admin::UsersController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"WsxXjHFIU5944XrMM8L5B4T4qB+H6ihpBOBwTTz6rio=", "user"=>{"name"=>"", "email"=>"", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Create"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = '' LIMIT 1[0m
+Redirected to http://localhost:3000/admin/users/new
+ [1m[35m (0.1ms)[0m COMMIT
+Completed 302 Found in 16ms (ActiveRecord: 0.6ms)
+
+
+Started GET "/admin/users/new" for 127.0.0.1 at 2013-06-20 03:27:37 +0530
+Processing by Admin::UsersController#new as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered admin/users/new.html.erb within layouts/application (2.6ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 03:27:39 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (0.9ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/admin/users/new" for 127.0.0.1 at 2013-06-20 03:27:41 +0530
+Processing by Admin::UsersController#new as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered admin/users/new.html.erb within layouts/application (2.6ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 16ms (Views: 8.4ms | ActiveRecord: 0.5ms)
+
+
+Started POST "/admin/users" for 127.0.0.1 at 2013-06-20 03:27:48 +0530
+Processing by Admin::UsersController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"WsxXjHFIU5944XrMM8L5B4T4qB+H6ihpBOBwTTz6rio=", "user"=>{"name"=>"", "email"=>"", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Create"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = '' LIMIT 1[0m
+Redirected to http://localhost:3000/admin/users/new
+ [1m[35m (0.1ms)[0m COMMIT
+Completed 302 Found in 105ms (ActiveRecord: 0.5ms)
+
+
+Started GET "/admin/users/new" for 127.0.0.1 at 2013-06-20 03:27:48 +0530
+Processing by Admin::UsersController#new as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered admin/users/new.html.erb within layouts/application (2.7ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 03:27:52 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (1.6ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (26.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 39ms (Views: 34.6ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/user" for 127.0.0.1 at 2013-06-20 03:27:54 +0530
+Processing by UserController#index as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users`
+ [1m[36m (0.3ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered user/index.html.erb within layouts/application (2.4ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 03:27:56 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered admin/home/index.html.erb within layouts/application (0.9ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 03:28:03 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered post/new.html.erb within layouts/application (4.0ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (2.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 20ms (Views: 11.6ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-20 03:28:07 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered admin/home/index.html.erb within layouts/application (0.9ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.3ms)
+
+
+Started DELETE "/users/sign_out" for 127.0.0.1 at 2013-06-20 03:28:10 +0530
+Processing by SessionsController#destroy as HTML
+ Parameters: {"authenticity_token"=>"WsxXjHFIU5944XrMM8L5B4T4qB+H6ihpBOBwTTz6rio="}
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m COMMIT
+Redirected to http://localhost:3000/
+Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-20 03:28:10 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 03:28:10 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.0ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.0ms)
+Connecting to database specified by database.yml
+ [1m[36m (196.7ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
+ [1m[35m (231.1ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
+ [1m[36m (4.1ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
+Migrating to DeviseCreateUsers (20130618222432)
+ [1m[35m (114.2ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
+ [1m[36m (175.7ms)[0m [1mCREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`)[0m
+ [1m[35m (252.8ms)[0m CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)
+ [1m[36m (53.7ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618222432')[0m
+Migrating to CreateRoles (20130618224052)
+ [1m[35m (229.2ms)[0m CREATE TABLE `roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (64.9ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224052')[0m
+Migrating to RolesUsers (20130618224239)
+ [1m[35m (207.4ms)[0m CREATE TABLE `roles_users` (`role_id` int(11), `user_id` varchar(255)) ENGINE=InnoDB
+ [1m[36m (242.9ms)[0m [1mCREATE INDEX `index_roles_users_on_role_id` ON `roles_users` (`role_id`)[0m
+ [1m[35m (253.6ms)[0m CREATE INDEX `index_roles_users_on_user_id` ON `roles_users` (`user_id`)
+ [1m[36m (109.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618224239')[0m
+Migrating to CreatePermissions (20130618232522)
+ [1m[35m (173.7ms)[0m CREATE TABLE `permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255)) ENGINE=InnoDB
+ [1m[36m (54.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130618232522')[0m
+Migrating to PermissionsRoles (20130619074955)
+ [1m[35m (208.8ms)[0m CREATE TABLE `permissions_roles` (`permission_id` int(11), `role_id` varchar(255)) ENGINE=InnoDB
+ [1m[36m (54.6ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130619074955')[0m
+Migrating to CreatePosts (20130619124042)
+ [1m[35m (208.8ms)[0m CREATE TABLE `posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `owner_id` int(11), `title` text, `body` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
+ [1m[36m (54.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130619124042')[0m
+Migrating to AddUsernameToUsers (20130619130938)
+ [1m[35m (308.9ms)[0m ALTER TABLE `users` ADD `username` varchar(255)
+ [1m[36m (54.7ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130619130938')[0m
+Migrating to AddNameToUsers (20130619131328)
+ [1m[35m (342.4ms)[0m ALTER TABLE `users` ADD `name` varchar(255)
+ [1m[36m (66.4ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130619131328')[0m
+Migrating to AddPublishedToPosts (20130619173956)
+ [1m[35m (363.8ms)[0m ALTER TABLE `posts` ADD `draft` tinyint(1)
+ [1m[36m (54.0ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130619173956')[0m
+ [1m[35m (0.4ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
+Connecting to database specified by database.yml
+ [1m[36mPermission Load (1.8ms)[0m [1mSELECT `permissions`.* FROM `permissions` WHERE `permissions`.`name` = 'application_admin' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO `permissions` (`name`) VALUES ('application_admin')[0m
+ [1m[35m (135.8ms)[0m COMMIT
+ [1m[36mPermission Load (0.7ms)[0m [1mSELECT `permissions`.* FROM `permissions` WHERE `permissions`.`name` = 'can_publish' LIMIT 1[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO `permissions` (`name`) VALUES ('can_publish')[0m
+ [1m[35m (37.9ms)[0m COMMIT
+Connecting to database specified by database.yml
+ [1m[36mPermission Load (1.7ms)[0m [1mSELECT `permissions`.* FROM `permissions` WHERE `permissions`.`name` = 'application_admin' LIMIT 1[0m
+ [1m[35mPermission Load (0.6ms)[0m SELECT `permissions`.* FROM `permissions` WHERE `permissions`.`name` = 'can_publish' LIMIT 1
+ [1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO `roles` (`name`) VALUES ('Admin')[0m
+ [1m[35m (204.8ms)[0m COMMIT
+ [1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Editor' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO `roles` (`name`) VALUES ('Editor')[0m
+ [1m[35m (59.6ms)[0m COMMIT
+ [1m[36mRole Load (0.6ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Reporter' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO `roles` (`name`) VALUES ('Reporter')[0m
+ [1m[35m (62.4ms)[0m COMMIT
+ [1m[36mRole Load (0.6ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mPermission Load (0.5ms)[0m SELECT `permissions`.* FROM `permissions`
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.5ms)[0m INSERT INTO `permissions_roles` (`role_id`, `permission_id`) VALUES (1, 1)
+ [1m[36m (0.4ms)[0m [1mINSERT INTO `permissions_roles` (`role_id`, `permission_id`) VALUES (1, 2)[0m
+ [1m[35m (81.8ms)[0m COMMIT
+ [1m[36mRole Load (0.6ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Editor' LIMIT 1[0m
+ [1m[35mPermission Load (0.3ms)[0m SELECT `permissions`.* FROM `permissions` WHERE `permissions`.`name` = 'can_publish' LIMIT 1
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.4ms)[0m INSERT INTO `permissions_roles` (`role_id`, `permission_id`) VALUES (2, 2)
+ [1m[36m (50.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mUser Exists (0.6ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'puneet.goyal@studypadinc.com' LIMIT 1[0m
+ [1m[35mUser Exists (0.4ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = 'puneet.goyal@studypadinc.com' LIMIT 1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO `users` (`created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `updated_at`, `username`) VALUES ('2013-06-19 22:31:24', NULL, NULL, 'puneet.goyal@studypadinc.com', '$2a$10$NXi9ORNXVoJNyLvBxzPGxOp8znmx4GXNDPuI.hhUNovhRwIooABQK', NULL, NULL, 'Puneet Goyal', NULL, NULL, NULL, 0, '2013-06-19 22:31:24', NULL)[0m
+ [1m[35m (54.3ms)[0m COMMIT
+ [1m[36mRole Load (0.4ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.4ms)[0m [1mINSERT INTO `roles_users` (`user_id`, `role_id`) VALUES (1, 1)[0m
+ [1m[35m (49.8ms)[0m COMMIT
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+ [1m[36mPermission Load (1.4ms)[0m [1mSELECT `permissions`.* FROM `permissions` WHERE `permissions`.`name` = 'application_admin' LIMIT 1[0m
+ [1m[35mPermission Load (0.2ms)[0m SELECT `permissions`.* FROM `permissions` WHERE `permissions`.`name` = 'can_publish' LIMIT 1
+ [1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+ [1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Editor' LIMIT 1
+ [1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Reporter' LIMIT 1[0m
+ [1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1
+ [1m[36mPermission Load (0.2ms)[0m [1mSELECT `permissions`.* FROM `permissions` [0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.5ms)[0m [1mINSERT INTO `permissions_roles` (`role_id`, `permission_id`) VALUES (1, 1)[0m
+ [1m[35m (0.3ms)[0m INSERT INTO `permissions_roles` (`role_id`, `permission_id`) VALUES (1, 2)
+ [1m[36m (59.2ms)[0m [1mCOMMIT[0m
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Editor' LIMIT 1
+ [1m[36mPermission Load (0.2ms)[0m [1mSELECT `permissions`.* FROM `permissions` WHERE `permissions`.`name` = 'can_publish' LIMIT 1[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.4ms)[0m [1mINSERT INTO `permissions_roles` (`role_id`, `permission_id`) VALUES (2, 2)[0m
+ [1m[35m (40.1ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mUser Exists (0.6ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'puneet.goyal@studypadinc.com' LIMIT 1
+ [1m[36mUser Exists (0.6ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = 'puneet.goyal@studypadinc.com' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36mRole Load (0.4ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Admin' LIMIT 1[0m
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 04:12:47 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (1.0ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (33.8ms)
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.5ms)
+ Rendered layouts/_footer.html.erb (0.4ms)
+Completed 200 OK in 118ms (Views: 67.1ms | ActiveRecord: 1.1ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-20 04:12:47 +0530
+Served asset /application.css - 200 OK (20ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-20 04:12:47 +0530
+Served asset /application.js - 200 OK (52ms)
+Connecting to database specified by database.yml
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-25 22:02:54 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 7ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-25 22:02:54 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (1.1ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (54.4ms)
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.7ms)
+ Rendered layouts/_footer.html.erb (0.4ms)
+Completed 200 OK in 517ms (Views: 224.6ms | ActiveRecord: 181.5ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-25 22:02:55 +0530
+Served asset /application.css - 200 OK (228ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-25 22:02:55 +0530
+Served asset /application.js - 200 OK (248ms)
+
+
+Started GET "/users/sign_up" for 127.0.0.1 at 2013-06-25 22:03:21 +0530
+Processing by RegistrationsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered devise/registrations/new.html.erb within layouts/application (4.3ms)
+ Rendered layouts/_header.html.erb (0.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 30ms (Views: 29.2ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/users" for 127.0.0.1 at 2013-06-25 22:03:33 +0530
+Processing by RegistrationsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"oYE0+NBUMAI8Jwk2dyHuDkUUyPE5CAhy1tUgf6zhEj8=", "user"=>{"name"=>"Rahul", "email"=>"rahul@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mUser Exists (107.2ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'rahul@gmail.com' LIMIT 1
+ [1m[36mUser Exists (43.4ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = 'rahul@gmail.com' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36mRole Load (19.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Reporter' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mSQL (50.4ms)[0m [1mINSERT INTO `users` (`created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `updated_at`, `username`) VALUES ('2013-06-25 16:33:34', '2013-06-25 16:33:34', '127.0.0.1', 'rahul@gmail.com', '$2a$10$plonv1B3F9w6GVMsOheW5Ot/0bzL.b55woDPn096n5te4NIo2SETu', '2013-06-25 16:33:34', '127.0.0.1', 'Rahul', NULL, NULL, NULL, 1, '2013-06-25 16:33:34', NULL)[0m
+ [1m[35m (0.6ms)[0m INSERT INTO `roles_users` (`user_id`, `role_id`) VALUES (2, 3)
+ [1m[36m (72.6ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 661ms (ActiveRecord: 296.8ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-25 22:03:34 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` IS NULL LIMIT 1
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-25 22:03:34 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.3ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.4ms)
+ Rendered layouts/_header.html.erb (1.1ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/sign_up" for 127.0.0.1 at 2013-06-25 22:03:40 +0530
+Processing by RegistrationsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.3ms)
+ Rendered devise/registrations/new.html.erb within layouts/application (3.7ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/users" for 127.0.0.1 at 2013-06-25 22:03:57 +0530
+Processing by RegistrationsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"oYE0+NBUMAI8Jwk2dyHuDkUUyPE5CAhy1tUgf6zhEj8=", "user"=>{"name"=>"Shanil Puri", "email"=>"f@fds.como", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mUser Exists (0.7ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'f@fds.como' LIMIT 1
+ [1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = 'f@fds.como' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Reporter' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mSQL (28.0ms)[0m [1mINSERT INTO `users` (`created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `updated_at`, `username`) VALUES ('2013-06-25 16:33:57', '2013-06-25 16:33:57', '127.0.0.1', 'f@fds.como', '$2a$10$QFNdMH786LAeNPdb6P4I8.sUMhGLDQysVp0OhaQTqAgcYXnKBOq8q', '2013-06-25 16:33:57', '127.0.0.1', 'Shanil Puri', NULL, NULL, NULL, 1, '2013-06-25 16:33:57', NULL)[0m
+ [1m[35m (0.4ms)[0m INSERT INTO `roles_users` (`user_id`, `role_id`) VALUES (3, 3)
+ [1m[36m (53.5ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 186ms (ActiveRecord: 84.2ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-25 22:03:57 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` IS NULL LIMIT 1
+Completed 401 Unauthorized in 2ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-25 22:03:57 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (2.5ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/sign_up" for 127.0.0.1 at 2013-06-25 22:04:01 +0530
+Processing by RegistrationsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.3ms)
+ Rendered devise/registrations/new.html.erb within layouts/application (2.7ms)
+ Rendered layouts/_header.html.erb (23.3ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 32ms (Views: 31.3ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/users" for 127.0.0.1 at 2013-06-25 22:04:12 +0530
+Processing by RegistrationsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"oYE0+NBUMAI8Jwk2dyHuDkUUyPE5CAhy1tUgf6zhEj8=", "user"=>{"name"=>"jfsld", "email"=>"rahul@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mUser Exists (0.5ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'rahul@gmail.com' LIMIT 1
+ [1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = 'rahul@gmail.com' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Reporter' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (24.5ms)[0m [1mINSERT INTO `users` (`created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `updated_at`, `username`) VALUES ('2013-06-25 16:34:13', '2013-06-25 16:34:13', '127.0.0.1', 'rahul@gmail.com', '$2a$10$wPGYPi6NlxS/NynnY2nR1.D7jPd4Awu4WS1zrImAwjufjY6n27NIW', '2013-06-25 16:34:13', '127.0.0.1', 'jfsld', NULL, NULL, NULL, 1, '2013-06-25 16:34:13', NULL)[0m
+Mysql2::Error: Duplicate entry 'rahul@gmail.com' for key 'index_users_on_email': INSERT INTO `users` (`created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `updated_at`, `username`) VALUES ('2013-06-25 16:34:13', '2013-06-25 16:34:13', '127.0.0.1', 'rahul@gmail.com', '$2a$10$wPGYPi6NlxS/NynnY2nR1.D7jPd4Awu4WS1zrImAwjufjY6n27NIW', '2013-06-25 16:34:13', '127.0.0.1', 'jfsld', NULL, NULL, NULL, 1, '2013-06-25 16:34:13', NULL)
+ [1m[35m (66.9ms)[0m ROLLBACK
+Completed 500 Internal Server Error in 198ms
+
+ActiveRecord::RecordNotUnique (Mysql2::Error: Duplicate entry 'rahul@gmail.com' for key 'index_users_on_email': INSERT INTO `users` (`created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `updated_at`, `username`) VALUES ('2013-06-25 16:34:13', '2013-06-25 16:34:13', '127.0.0.1', 'rahul@gmail.com', '$2a$10$wPGYPi6NlxS/NynnY2nR1.D7jPd4Awu4WS1zrImAwjufjY6n27NIW', '2013-06-25 16:34:13', '127.0.0.1', 'jfsld', NULL, NULL, NULL, 1, '2013-06-25 16:34:13', NULL)):
+ app/controllers/registrations_controller.rb:6:in `create'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (3.8ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (15.8ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-25 22:04:35 +0530
+Processing by PostController#index as HTML
+ [1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ Rendered post/index.html.erb within layouts/application (2.8ms)
+ Rendered layouts/_header.html.erb (2.0ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 34ms (Views: 32.0ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-25 22:04:37 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-25 22:04:37 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (2.6ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-25 22:04:40 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 0ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-25 22:04:40 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (2.6ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-25 22:04:40 +0530
+Processing by PostController#index as HTML
+ [1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ Rendered post/index.html.erb within layouts/application (1.8ms)
+ Rendered layouts/_header.html.erb (0.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.0ms)
+Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-25 22:05:03 +0530
+Processing by PostController#new as HTML
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-25 22:05:03 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (6.8ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 17ms (Views: 16.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-06-25 22:05:06 +0530
+Processing by PostController#index as HTML
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ Rendered post/index.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.1ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-25 22:05:24 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 0ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-25 22:05:24 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (2.5ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.0ms)
+Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-25 22:05:30 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"oYE0+NBUMAI8Jwk2dyHuDkUUyPE5CAhy1tUgf6zhEj8=", "user"=>{"email"=>"shanil.puri@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ [1m[35mUser Load (0.7ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`email` = 'shanil.puri@gmail.com' LIMIT 1
+Completed 401 Unauthorized in 14ms
+Processing by SessionsController#new as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"oYE0+NBUMAI8Jwk2dyHuDkUUyPE5CAhy1tUgf6zhEj8=", "user"=>{"email"=>"shanil.puri@gmail.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.1ms)
+ Rendered layouts/_header.html.erb (0.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 130ms (Views: 32.3ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-25 22:06:08 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"oYE0+NBUMAI8Jwk2dyHuDkUUyPE5CAhy1tUgf6zhEj8=", "user"=>{"email"=>"puneet.goyal@studypadinc.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ [1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`email` = 'puneet.goyal@studypadinc.com' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (27.4ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-06-25 16:36:08', `current_sign_in_at` = '2013-06-25 16:36:08', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-06-25 16:36:08' WHERE `users`.`id` = 1[0m
+ [1m[35m (79.7ms)[0m COMMIT
+ [1m[36m (1.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+Redirected to http://localhost:3000/admin/home
+Completed 302 Found in 352ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-25 22:06:08 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.7ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (4.1ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (4.7ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 29ms (Views: 24.9ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/admin/users/new" for 127.0.0.1 at 2013-06-25 22:06:14 +0530
+Processing by Admin::UsersController#new as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered admin/users/new.html.erb within layouts/application (3.9ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 11.0ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-25 22:06:17 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (0.8ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/admin/users/new" for 127.0.0.1 at 2013-06-25 22:06:19 +0530
+Processing by Admin::UsersController#new as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered admin/users/new.html.erb within layouts/application (2.9ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 9.6ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-25 22:06:22 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (0.8ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-25 22:06:28 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.3ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered post/new.html.erb within layouts/application (12.8ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 36ms (Views: 22.0ms | ActiveRecord: 0.7ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-25 22:06:34 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"oYE0+NBUMAI8Jwk2dyHuDkUUyPE5CAhy1tUgf6zhEj8=", "post"=>{"title"=>"jfdsajlj", "body"=>""}, "commit"=>"Create"}
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+Redirected to http://localhost:3000/post/new
+ [1m[35m (0.3ms)[0m COMMIT
+Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-25 22:06:34 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered post/new.html.erb within layouts/application (3.4ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.3ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-25 22:06:37 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"oYE0+NBUMAI8Jwk2dyHuDkUUyPE5CAhy1tUgf6zhEj8=", "post"=>{"title"=>"", "body"=>"fjaskl"}, "commit"=>"Create"}
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+Redirected to http://localhost:3000/post/new
+ [1m[35m (0.1ms)[0m COMMIT
+Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-25 22:06:37 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered post/new.html.erb within layouts/application (4.6ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (2.1ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-25 22:06:39 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (0.8ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-25 22:06:43 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ Rendered post/published.html.erb within layouts/application (4.1ms)
+ [1m[36m (0.3ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (3.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 22ms (Views: 16.1ms | ActiveRecord: 0.8ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-25 22:06:45 +0530
+Processing by PostController#new as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered post/new.html.erb within layouts/application (3.3ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.2ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-25 22:06:52 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"oYE0+NBUMAI8Jwk2dyHuDkUUyPE5CAhy1tUgf6zhEj8=", "post"=>{"title"=>"post 1", "body"=>"BLAH"}, "commit"=>"Create"}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36mSQL (10.8ms)[0m [1mINSERT INTO `posts` (`body`, `created_at`, `draft`, `owner_id`, `title`, `updated_at`) VALUES ('BLAH', '2013-06-25 16:36:52', NULL, NULL, 'post 1', '2013-06-25 16:36:52')[0m
+ [1m[35m (0.5ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ [1m[36m (0.4ms)[0m [1mUPDATE `posts` SET `owner_id` = 1, `draft` = 0, `updated_at` = '2013-06-25 16:36:52' WHERE `posts`.`id` = 1[0m
+ [1m[35m (35.3ms)[0m COMMIT
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+Redirected to http://localhost:3000/admin/home
+Completed 302 Found in 59ms (ActiveRecord: 47.2ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-25 22:06:52 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (0.8ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/posts/published" for 127.0.0.1 at 2013-06-25 22:06:56 +0530
+Processing by PostController#published as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mPost Load (0.6ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 0)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ Rendered post/published.html.erb within layouts/application (2.8ms)
+ [1m[35m (2.7ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (28.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 41ms (Views: 34.0ms | ActiveRecord: 3.5ms)
+
+
+Started GET "/post/1" for 127.0.0.1 at 2013-06-25 22:07:00 +0530
+Processing by PostController#show as */*
+ Parameters: {"id"=>"1"}
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
+ Rendered post/_show_post.html.erb (0.5ms)
+Completed 200 OK in 76ms (Views: 74.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-25 22:07:14 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (0.8ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-25 22:07:19 +0530
+Processing by PostController#drafts as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.3ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ [1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 1)[0m
+ Rendered post/drafts.html.erb within layouts/application (7.5ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 21ms (Views: 16.5ms | ActiveRecord: 0.9ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-25 22:07:21 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered post/new.html.erb within layouts/application (3.5ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.2ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-06-25 22:07:26 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"oYE0+NBUMAI8Jwk2dyHuDkUUyPE5CAhy1tUgf6zhEj8=", "post"=>{"title"=>"jfslk", "body"=>"jfks"}, "commit"=>"Create"}
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mSQL (27.1ms)[0m INSERT INTO `posts` (`body`, `created_at`, `draft`, `owner_id`, `title`, `updated_at`) VALUES ('jfks', '2013-06-25 16:37:26', NULL, NULL, 'jfslk', '2013-06-25 16:37:26')
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ [1m[35m (0.6ms)[0m UPDATE `posts` SET `owner_id` = 1, `draft` = 0, `updated_at` = '2013-06-25 16:37:26' WHERE `posts`.`id` = 2
+ [1m[36m (62.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+Redirected to http://localhost:3000/admin/home
+Completed 302 Found in 106ms (ActiveRecord: 91.0ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-25 22:07:27 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered admin/home/index.html.erb within layouts/application (1.0ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (2.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 12ms (Views: 8.4ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-25 22:07:32 +0530
+Processing by PostController#drafts as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ [1m[35mPost Load (0.6ms)[0m SELECT `posts`.* FROM `posts` WHERE (draft = 1)
+ Rendered post/drafts.html.erb within layouts/application (2.8ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-25 22:07:43 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (2.5ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (2.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 20ms (Views: 13.9ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/admin/users/new" for 127.0.0.1 at 2013-06-25 22:07:50 +0530
+Processing by Admin::UsersController#new as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered admin/users/new.html.erb within layouts/application (4.7ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (2.7ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 20ms (Views: 14.3ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-25 22:07:55 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (0.8ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-25 22:07:59 +0530
+Processing by PostController#drafts as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ [1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 1)[0m
+ Rendered post/drafts.html.erb within layouts/application (2.3ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-06-25 22:12:12 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered post/new.html.erb within layouts/application (3.3ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.2ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-25 22:12:14 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered admin/home/index.html.erb within layouts/application (0.8ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/posts/drafts" for 127.0.0.1 at 2013-06-25 22:12:17 +0530
+Processing by PostController#drafts as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.3ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ [1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 1)[0m
+ Rendered post/drafts.html.erb within layouts/application (2.5ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.8ms)
+
+
+Started DELETE "/users/sign_out" for 127.0.0.1 at 2013-06-25 22:12:27 +0530
+Processing by SessionsController#destroy as HTML
+ Parameters: {"authenticity_token"=>"oYE0+NBUMAI8Jwk2dyHuDkUUyPE5CAhy1tUgf6zhEj8="}
+ [1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36m (0.2ms)[0m [1mCOMMIT[0m
+Redirected to http://localhost:3000/
+Completed 302 Found in 173ms (ActiveRecord: 0.5ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-25 22:12:28 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 1ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-25 22:12:28 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (2.7ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/users/sign_in" for 127.0.0.1 at 2013-06-25 23:07:02 +0530
+Processing by SessionsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"/UbWWMCsS3voxWTO1sW4opPfoJn5gL6izYEQpzC1NPY=", "user"=>{"email"=>"puneet.goyal@studypadinc.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"}
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`email` = 'puneet.goyal@studypadinc.com' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.5ms)[0m UPDATE `users` SET `current_sign_in_at` = '2013-06-25 17:37:02', `sign_in_count` = 2, `updated_at` = '2013-06-25 17:37:02' WHERE `users`.`id` = 1
+ [1m[36m (54.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.4ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+Redirected to http://localhost:3000/admin/home
+Completed 302 Found in 165ms (ActiveRecord: 0.0ms)
+
+
+Started GET "/admin/home" for 127.0.0.1 at 2013-06-25 23:07:02 +0530
+Processing by Admin::HomeController#index as HTML
+ [1m[36mUser Load (0.6ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1
+ Rendered admin/home/index.html.erb within layouts/application (0.9ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 1[0m
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 6.5ms | ActiveRecord: 0.8ms)
+
+
+Started DELETE "/users/sign_out" for 127.0.0.1 at 2013-06-25 23:07:09 +0530
+Processing by SessionsController#destroy as HTML
+ Parameters: {"authenticity_token"=>"/UbWWMCsS3voxWTO1sW4opPfoJn5gL6izYEQpzC1NPY="}
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.1ms)[0m COMMIT
+Redirected to http://localhost:3000/
+Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-25 23:07:09 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 0ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-25 23:07:09 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (2.5ms)
+ Rendered layouts/_header.html.erb (0.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.0ms)
+Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/users/sign_up" for 127.0.0.1 at 2013-06-25 23:07:12 +0530
+Processing by RegistrationsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.3ms)
+ Rendered devise/registrations/new.html.erb within layouts/application (4.2ms)
+ Rendered layouts/_header.html.erb (1.1ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 11.9ms | ActiveRecord: 0.0ms)
+
+
+Started POST "/users" for 127.0.0.1 at 2013-06-25 23:07:40 +0530
+Processing by RegistrationsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Xi6+QepHjGPcvLqjf9d09gDk9mnmx/b8RofHD0Yufx8=", "user"=>{"name"=>"Shanil Puri", "email"=>"shanil.puri@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mUser Exists (0.7ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'shanil.puri@gmail.com' LIMIT 1
+ [1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = 'shanil.puri@gmail.com' LIMIT 1[0m
+ [1m[35mSQL (12.4ms)[0m INSERT INTO `users` (`created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `updated_at`, `username`) VALUES ('2013-06-25 17:37:40', NULL, NULL, 'shanil.puri@gmail.com', '$2a$10$TYuNttyazXiO/xj1MW5HVu9aW6tiitniav4eEqhTVNDtGfKSSXVt2', NULL, NULL, 'Shanil Puri', NULL, NULL, NULL, 0, '2013-06-25 17:37:40', NULL)
+ [1m[36m (60.5ms)[0m [1mCOMMIT[0m
+ [1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Reporter' LIMIT 1
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35m (0.5ms)[0m INSERT INTO `roles_users` (`user_id`, `role_id`) VALUES (5, 3)
+ [1m[36m (50.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.6ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-06-25 17:37:40', `current_sign_in_at` = '2013-06-25 17:37:40', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-06-25 17:37:40' WHERE `users`.`id` = 5[0m
+ [1m[35m (49.8ms)[0m COMMIT
+Redirected to http://localhost:3000/
+Completed 302 Found in 289ms (ActiveRecord: 176.6ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-25 23:07:40 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.7ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1[0m
+ [1m[35m (0.5ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 5
+ Rendered home/index.html.erb within layouts/application (7.3ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 5[0m
+ Rendered layouts/_header.html.erb (4.5ms)
+ Rendered shared/_common_popup.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 36ms (Views: 33.2ms | ActiveRecord: 1.2ms)
+
+
+Started GET "/user" for 127.0.0.1 at 2013-06-25 23:07:44 +0530
+Processing by UserController#index as HTML
+ [1m[35mUser Load (0.3ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` [0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 5
+ Rendered user/index.html.erb within layouts/application (3.0ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 5[0m
+ Rendered layouts/_header.html.erb (4.4ms)
+ Rendered shared/_common_popup.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 40ms (Views: 32.2ms | ActiveRecord: 1.0ms)
+Connecting to database specified by database.yml
+
+
+Started GET "/" for 127.0.0.1 at 2013-06-26 20:32:08 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 25ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-26 20:32:08 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.9ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (28.4ms)
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered shared/_common_popup.html.erb (0.5ms)
+ Rendered layouts/_footer.html.erb (0.4ms)
+Completed 200 OK in 114ms (Views: 62.3ms | ActiveRecord: 1.0ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:32:09 +0530
+Served asset /application.js - 200 OK (23ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:32:09 +0530
+Compiled custom.css (794ms) (pid 4588)
+Compiled application.css (544ms) (pid 4588)
+Served asset /application.css - 200 OK (1509ms)
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-26 20:32:39 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.2ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (3.7ms)
+ Rendered layouts/_header.html.erb (0.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 65ms (Views: 9.6ms | ActiveRecord: 1.6ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:32:39 +0530
+Served asset /application.css - 304 Not Modified (0ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:32:39 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:32:43 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_header.html.erb (1.2ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:32:43 +0530
+Served asset /application.css - 304 Not Modified (0ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:32:43 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:36:05 +0530
+Processing by ApplicationController#index as HTML
+Completed 500 Internal Server Error in 1ms
+
+NoMethodError (undefined method `layout' for #):
+ app/controllers/application_controller.rb:8:in `index'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (8.2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:36:57 +0530
+Processing by ApplicationController#index as HTML
+ Rendered shared/_test.html.erb (0.3ms)
+Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:37:06 +0530
+Processing by ApplicationController#index as HTML
+ Rendered shared/_test.html.erb (0.1ms)
+Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:37:06 +0530
+Processing by ApplicationController#index as HTML
+ Rendered shared/_test.html.erb (0.0ms)
+Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:37:06 +0530
+Processing by ApplicationController#index as HTML
+ Rendered shared/_test.html.erb (0.0ms)
+Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:37:12 +0530
+Processing by ApplicationController#index as HTML
+ Rendered shared/_test.html.erb (0.5ms)
+Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:37:47 +0530
+Processing by ApplicationController#index as HTML
+ Rendered shared/_test.html.erb (36.7ms)
+Completed 500 Internal Server Error in 38ms
+
+ActionView::Template::Error (undefined method `stylesheet_include_tag' for #<#:0x007f6fecb2cd08>):
+ 1: <%= stylesheet_include_tag "custom" %>
+ 2:
+ 3:
+ 4:
+ app/views/shared/_test.html.erb:1:in `_app_views_shared__test_html_erb__1025000894623068111_70059344616560'
+ app/controllers/application_controller.rb:8:in `index'
+
+
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.7ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:38:11 +0530
+Processing by ApplicationController#index as HTML
+ Rendered shared/_test.html.erb (2.2ms)
+Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/custom.css" for 127.0.0.1 at 2013-06-26 20:38:11 +0530
+Served asset /custom.css - 200 OK (36ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:40:05 +0530
+Processing by ApplicationController#index as HTML
+ Rendered shared/_test.html.erb (0.9ms)
+Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/custom.css" for 127.0.0.1 at 2013-06-26 20:40:05 +0530
+Served asset /custom.css - 200 OK (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:40:13 +0530
+Processing by ApplicationController#index as HTML
+ Rendered shared/_test.html.erb (0.4ms)
+Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/custom.css" for 127.0.0.1 at 2013-06-26 20:40:13 +0530
+Compiled custom.css (734ms) (pid 4588)
+Served asset /custom.css - 200 OK (809ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:41:03 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.0ms)
+ Rendered layouts/_header.html.erb (15.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 20ms (Views: 19.8ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:41:03 +0530
+Compiled application.css (525ms) (pid 4588)
+Served asset /application.css - 200 OK (630ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:41:04 +0530
+Served asset /application.js - 200 OK (5ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:41:34 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 5.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:41:34 +0530
+Served asset /application.css - 200 OK (38ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:41:34 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:43:29 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:43:29 +0530
+Compiled custom.css (53ms) (pid 4588)
+Compiled data_tables.css (11ms) (pid 4588)
+Compiled utilities.css (4ms) (pid 4588)
+Compiled application.css (553ms) (pid 4588)
+Served asset /application.css - 200 OK (954ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:43:30 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:44:55 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_header.html.erb (1.2ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:44:56 +0530
+Compiled popup.css (12ms) (pid 4588)
+Compiled application.css (523ms) (pid 4588)
+Served asset /application.css - 200 OK (613ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:44:56 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:45:23 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.0ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:45:23 +0530
+Compiled custom.css (30ms) (pid 4588)
+Compiled application.css (549ms) (pid 4588)
+Served asset /application.css - 200 OK (648ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:45:24 +0530
+Served asset /application.js - 200 OK (4ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:45:33 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.0ms)
+ Rendered layouts/_header.html.erb (0.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.0ms)
+Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:45:33 +0530
+Compiled custom.css (58ms) (pid 4588)
+Compiled application.css (544ms) (pid 4588)
+Served asset /application.css - 200 OK (623ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:45:34 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:47:02 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:47:02 +0530
+Served asset /application.css - 200 OK (0ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:47:02 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:47:34 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.3ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:47:34 +0530
+Served asset /application.css - 200 OK (1ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:47:34 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:48:58 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.5ms)
+ Rendered layouts/_header.html.erb (1.4ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:48:58 +0530
+Served asset /application.css - 200 OK (1ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:48:58 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:49:34 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (1.0ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:49:34 +0530
+Served asset /application.css - 200 OK (1ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:49:34 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:50:07 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_header.html.erb (0.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:50:07 +0530
+Served asset /application.css - 200 OK (1ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:50:07 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:50:20 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.9ms)
+ Rendered layouts/_header.html.erb (0.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:50:20 +0530
+Served asset /application.css - 200 OK (1ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:50:20 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:50:52 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:50:52 +0530
+Served asset /application.css - 200 OK (1ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:50:52 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:51:10 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:51:10 +0530
+Served asset /application.css - 200 OK (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:51:10 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:54:04 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_header.html.erb (0.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:54:04 +0530
+Served asset /application.css - 200 OK (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:54:04 +0530
+Served asset /application.js - 200 OK (1ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:55:47 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.4ms)
+ Rendered layouts/_header.html.erb (0.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:55:47 +0530
+Compiled custom.css (39ms) (pid 4588)
+Compiled application.css (561ms) (pid 4588)
+Served asset /application.css - 200 OK (678ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:55:47 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-26 20:58:30 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.6ms)
+ Rendered layouts/_header.html.erb (2.3ms)
+ Rendered shared/_common_popup.html.erb (0.3ms)
+ Rendered layouts/_footer.html.erb (0.2ms)
+Completed 200 OK in 50ms (Views: 50.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-26 20:58:30 +0530
+Served asset /application.css - 200 OK (1ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-26 20:58:30 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-27 01:10:45 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.1ms)
+ Rendered layouts/_header.html.erb (1.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-27 01:10:45 +0530
+Served asset /application.css - 200 OK (1ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-27 01:10:45 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-27 01:11:07 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.0ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-27 01:11:07 +0530
+Served asset /application.css - 200 OK (3ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-27 01:11:07 +0530
+Served asset /application.js - 200 OK (2ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-27 01:11:27 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.1ms)
+ Rendered shared/_common_popup.html.erb (0.4ms)
+Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-27 01:11:27 +0530
+Served asset /application.css - 200 OK (0ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-27 01:11:27 +0530
+Served asset /application.js - 200 OK (3ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-27 01:11:33 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.1ms)
+Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-27 01:11:34 +0530
+Served asset /application.css - 200 OK (2ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-27 01:11:34 +0530
+Served asset /application.js - 200 OK (25ms)
+
+
+Started GET "/test" for 127.0.0.1 at 2013-06-27 02:17:57 +0530
+Processing by ApplicationController#index as HTML
+ Rendered application/index.html.erb within layouts/application (0.1ms)
+Completed 200 OK in 31ms (Views: 30.7ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-06-27 02:17:57 +0530
+Served asset /application.css - 200 OK (128ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-06-27 02:17:57 +0530
+Served asset /application.js - 304 Not Modified (152ms)
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+
+
+Started GET "/" for 127.0.0.1 at 2013-07-25 01:35:12 +0530
+Processing by HomeController#index as HTML
+Completed 401 Unauthorized in 26ms
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-07-25 01:35:13 +0530
+Processing by SessionsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.9ms)
+ Rendered /home/shanil/.rvm/gems/ruby-1.9.3-p392/gems/devise-2.2.4/app/views/devise/sessions/new.html.erb within layouts/application (40.9ms)
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.6ms)
+ Rendered layouts/_footer.html.erb (0.4ms)
+Completed 200 OK in 308ms (Views: 136.1ms | ActiveRecord: 82.2ms)
+
+
+Started GET "/assets/application.css" for 127.0.0.1 at 2013-07-25 01:35:13 +0530
+Compiled custom.css (920ms) (pid 10251)
+Compiled data_tables.css (28ms) (pid 10251)
+Compiled popup.css (16ms) (pid 10251)
+Compiled utilities.css (9ms) (pid 10251)
+Compiled application.css (582ms) (pid 10251)
+Served asset /application.css - 200 OK (1804ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-07-25 01:35:15 +0530
+Compiled popup.js (0ms) (pid 10251)
+Compiled application.js (5ms) (pid 10251)
+Served asset /application.js - 200 OK (184ms)
+
+
+Started GET "/users/sign_up" for 127.0.0.1 at 2013-07-25 01:35:24 +0530
+Processing by RegistrationsController#new as HTML
+ Rendered devise/shared/_links.html.erb (0.4ms)
+ Rendered devise/registrations/new.html.erb within layouts/application (5.5ms)
+ Rendered layouts/_header.html.erb (1.3ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 31ms (Views: 30.3ms | ActiveRecord: 0.0ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-07-25 01:35:24 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started POST "/users" for 127.0.0.1 at 2013-07-25 01:35:40 +0530
+Processing by RegistrationsController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"GHe33BkWdLKbyXZI5wyy6cu55s6JZqZ7yocs82M4Vik=", "user"=>{"name"=>"Shanil Puri", "email"=>"blah@blahblah.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35mUser Exists (37.7ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'blah@blahblah.com' LIMIT 1
+ [1m[36mUser Exists (18.9ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = 'blah@blahblah.com' LIMIT 1[0m
+ [1m[35mSQL (32.4ms)[0m INSERT INTO `users` (`created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `updated_at`, `username`) VALUES ('2013-07-24 20:05:40', NULL, NULL, 'blah@blahblah.com', '$2a$10$YC5Pj/NytQnt5NqE3YDUDu784wID2g3J0SC/FRtEDdchG5RA/qgee', NULL, NULL, 'Shanil Puri', NULL, NULL, NULL, 0, '2013-07-24 20:05:40', NULL)
+ [1m[36m (56.5ms)[0m [1mCOMMIT[0m
+ [1m[35mRole Load (21.9ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`name` = 'Reporter' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+ [1m[35m (0.4ms)[0m INSERT INTO `roles_users` (`user_id`, `role_id`) VALUES (6, 3)
+ [1m[36m (77.7ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.1ms)[0m BEGIN
+ [1m[36m (39.5ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-07-24 20:05:41', `current_sign_in_at` = '2013-07-24 20:05:41', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-07-24 20:05:41' WHERE `users`.`id` = 6[0m
+ [1m[35m (56.6ms)[0m COMMIT
+Redirected to http://localhost:3000/
+Completed 302 Found in 829ms (ActiveRecord: 416.8ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-07-25 01:35:41 +0530
+Processing by HomeController#index as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1[0m
+ [1m[35m (127.9ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6
+ Rendered home/index.html.erb within layouts/application (404.2ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6[0m
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 427ms (Views: 148.7ms | ActiveRecord: 276.5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-07-25 01:35:41 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/user" for 127.0.0.1 at 2013-07-25 01:35:44 +0530
+Processing by UserController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` [0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6
+ Rendered user/index.html.erb within layouts/application (2.3ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6[0m
+ Rendered layouts/_header.html.erb (1.7ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 95ms (Views: 90.3ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-07-25 01:35:44 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-07-25 01:35:48 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6[0m
+ Rendered home/index.html.erb within layouts/application (2.2ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6
+ Rendered layouts/_header.html.erb (1.5ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-07-25 01:35:48 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/post" for 127.0.0.1 at 2013-07-25 01:35:49 +0530
+Processing by PostController#index as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6
+ [1m[36mPost Load (0.9ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (draft = 0)[0m
+ [1m[35mPost Load (0.6ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`owner_id` = 6
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
+ [1m[35mCACHE (0.0ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
+ Rendered post/index.html.erb within layouts/application (3.4ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6[0m
+ Rendered layouts/_header.html.erb (1.9ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 66ms (Views: 29.0ms | ActiveRecord: 2.1ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-07-25 01:35:49 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-07-25 01:35:55 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1
+ [1m[36m (0.3ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6[0m
+ Rendered home/index.html.erb within layouts/application (3.0ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6
+ Rendered layouts/_header.html.erb (3.3ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.5ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-07-25 01:35:55 +0530
+Served asset /application.js - 304 Not Modified (2ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-07-25 01:35:57 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6
+ Rendered post/new.html.erb within layouts/application (7.7ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6[0m
+ Rendered layouts/_header.html.erb (1.8ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 89ms (Views: 85.2ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-07-25 01:35:57 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-07-25 01:36:00 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1
+ [1m[36m (0.3ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6[0m
+ Rendered home/index.html.erb within layouts/application (2.2ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6
+ Rendered layouts/_header.html.erb (1.4ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 11ms (Views: 7.0ms | ActiveRecord: 0.6ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-07-25 01:36:00 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-07-25 01:36:03 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6
+ Rendered post/new.html.erb within layouts/application (4.5ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6[0m
+ Rendered layouts/_header.html.erb (1.8ms)
+ Rendered shared/_common_popup.html.erb (0.4ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 15ms (Views: 13.1ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-07-25 01:36:03 +0530
+Served asset /application.js - 304 Not Modified (1ms)
+
+
+Started POST "/post" for 127.0.0.1 at 2013-07-25 01:36:04 +0530
+Processing by PostController#create as HTML
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"GHe33BkWdLKbyXZI5wyy6cu55s6JZqZ7yocs82M4Vik=", "post"=>{"title"=>"", "body"=>""}, "commit"=>"Create"}
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mBEGIN[0m
+Redirected to http://localhost:3000/post/new
+ [1m[35m (0.1ms)[0m COMMIT
+Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
+
+
+Started GET "/post/new" for 127.0.0.1 at 2013-07-25 01:36:04 +0530
+Processing by PostController#new as HTML
+ [1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6
+ Rendered post/new.html.erb within layouts/application (4.7ms)
+ [1m[36mCACHE (0.0ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6[0m
+ Rendered layouts/_header.html.erb (2.3ms)
+ Rendered shared/_common_popup.html.erb (0.2ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 0.4ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-07-25 01:36:04 +0530
+Served asset /application.js - 304 Not Modified (29ms)
+
+
+Started GET "/" for 127.0.0.1 at 2013-07-25 01:36:07 +0530
+Processing by HomeController#index as HTML
+ [1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1
+ [1m[36m (0.2ms)[0m [1mSELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6[0m
+ Rendered home/index.html.erb within layouts/application (2.4ms)
+ [1m[35mCACHE (0.0ms)[0m SELECT `permissions`.`name` FROM `permissions` INNER JOIN `permissions_roles` ON `permissions`.`id` = `permissions_roles`.`permission_id` INNER JOIN `roles` ON `permissions_roles`.`role_id` = `roles`.`id` INNER JOIN `roles_users` ON `roles`.`id` = `roles_users`.`role_id` WHERE `roles_users`.`user_id` = 6
+ Rendered layouts/_header.html.erb (1.6ms)
+ Rendered shared/_common_popup.html.erb (0.1ms)
+ Rendered layouts/_footer.html.erb (0.1ms)
+Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.3ms)
+
+
+Started GET "/assets/application.js" for 127.0.0.1 at 2013-07-25 01:36:07 +0530
+Served asset /application.js - 304 Not Modified (2ms)
diff --git a/log/production.log b/log/production.log
new file mode 100644
index 0000000..ef4f035
--- /dev/null
+++ b/log/production.log
@@ -0,0 +1,305 @@
+Connecting to database specified by database.yml
+Started GET "/post/new" for 127.0.0.1 at 2013-06-20 04:12:24 +0530
+Processing by PostController#new as HTML
+Completed 401 Unauthorized in 1ms
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 04:12:24 +0530
+Processing by SessionsController#new as HTML
+Completed 500 Internal Server Error in 4ms
+
+ActiveRecord::StatementInvalid (Mysql2::Error: Table 'study_db_test.users' doesn't exist: SHOW FULL FIELDS FROM `users`):
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `block in execute'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `execute'
+ activerecord (3.2.13) lib/active_record/connection_adapters/mysql2_adapter.rb:211:in `execute'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:259:in `execute_and_free'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:426:in `columns'
+ activerecord (3.2.13) lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize'
+ activerecord (3.2.13) lib/active_record/model_schema.rb:228:in `yield'
+ activerecord (3.2.13) lib/active_record/model_schema.rb:228:in `default'
+ activerecord (3.2.13) lib/active_record/model_schema.rb:228:in `columns'
+ activerecord (3.2.13) lib/active_record/model_schema.rb:243:in `column_defaults'
+ activerecord (3.2.13) lib/active_record/base.rb:482:in `initialize'
+ devise (2.2.4) app/controllers/devise_controller.rb:102:in `new'
+ devise (2.2.4) app/controllers/devise_controller.rb:102:in `build_resource'
+ devise (2.2.4) app/controllers/devise/sessions_controller.rb:8:in `new'
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:458:in `_run__4312812447545138808__process_action__2593303422169354382__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/mapper.rb:42:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
+ warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
+ warden (1.2.1) lib/warden/manager.rb:34:in `catch'
+ warden (1.2.1) lib/warden/manager.rb:34:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__1831233152447918228__call__3329071326429662393__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
+ rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
+ rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
+ rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
+ rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 04:12:27 +0530
+Processing by SessionsController#new as HTML
+Completed 500 Internal Server Error in 2ms
+
+ActiveRecord::StatementInvalid (Mysql2::Error: Table 'study_db_test.users' doesn't exist: SHOW FULL FIELDS FROM `users`):
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `block in execute'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `execute'
+ activerecord (3.2.13) lib/active_record/connection_adapters/mysql2_adapter.rb:211:in `execute'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:259:in `execute_and_free'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:426:in `columns'
+ activerecord (3.2.13) lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize'
+ activerecord (3.2.13) lib/active_record/model_schema.rb:228:in `yield'
+ activerecord (3.2.13) lib/active_record/model_schema.rb:228:in `default'
+ activerecord (3.2.13) lib/active_record/model_schema.rb:228:in `columns'
+ activerecord (3.2.13) lib/active_record/model_schema.rb:243:in `column_defaults'
+ activerecord (3.2.13) lib/active_record/base.rb:482:in `initialize'
+ devise (2.2.4) app/controllers/devise_controller.rb:102:in `new'
+ devise (2.2.4) app/controllers/devise_controller.rb:102:in `build_resource'
+ devise (2.2.4) app/controllers/devise/sessions_controller.rb:8:in `new'
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:458:in `_run__4312812447545138808__process_action__2593303422169354382__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/mapper.rb:42:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
+ warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
+ warden (1.2.1) lib/warden/manager.rb:34:in `catch'
+ warden (1.2.1) lib/warden/manager.rb:34:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__1831233152447918228__call__3329071326429662393__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
+ rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
+ rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
+ rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
+ rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
+Connecting to database specified by database.yml
+Started GET "/users/sign_in" for 127.0.0.1 at 2013-06-20 04:13:34 +0530
+Processing by SessionsController#new as HTML
+Completed 500 Internal Server Error in 2ms
+
+ActiveRecord::StatementInvalid (Mysql2::Error: Table 'study_db_test.users' doesn't exist: SHOW FULL FIELDS FROM `users`):
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `block in execute'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `execute'
+ activerecord (3.2.13) lib/active_record/connection_adapters/mysql2_adapter.rb:211:in `execute'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:259:in `execute_and_free'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:426:in `columns'
+ activerecord (3.2.13) lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize'
+ activerecord (3.2.13) lib/active_record/model_schema.rb:228:in `yield'
+ activerecord (3.2.13) lib/active_record/model_schema.rb:228:in `default'
+ activerecord (3.2.13) lib/active_record/model_schema.rb:228:in `columns'
+ activerecord (3.2.13) lib/active_record/model_schema.rb:243:in `column_defaults'
+ activerecord (3.2.13) lib/active_record/base.rb:482:in `initialize'
+ devise (2.2.4) app/controllers/devise_controller.rb:102:in `new'
+ devise (2.2.4) app/controllers/devise_controller.rb:102:in `build_resource'
+ devise (2.2.4) app/controllers/devise/sessions_controller.rb:8:in `new'
+ actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:167:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:458:in `_run__1391222019353336156__process_action__3622748537063014969__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `block in instrument'
+ activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
+ activesupport (3.2.13) lib/active_support/notifications.rb:123:in `instrument'
+ actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
+ actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
+ activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
+ actionpack (3.2.13) lib/abstract_controller/base.rb:121:in `process'
+ actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in `process'
+ actionpack (3.2.13) lib/action_controller/metal.rb:203:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
+ actionpack (3.2.13) lib/action_controller/metal.rb:246:in `block in action'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/mapper.rb:42:in `call'
+ journey (1.0.4) lib/journey/router.rb:68:in `block in call'
+ journey (1.0.4) lib/journey/router.rb:56:in `each'
+ journey (1.0.4) lib/journey/router.rb:56:in `call'
+ actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in `call'
+ warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
+ warden (1.2.1) lib/warden/manager.rb:34:in `catch'
+ warden (1.2.1) lib/warden/manager.rb:34:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
+ rack (1.4.5) lib/rack/etag.rb:23:in `call'
+ rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:in `call'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
+ rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in `call'
+ activerecord (3.2.13) lib/active_record/query_cache.rb:64:in `call'
+ activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `_run__3206173584831494100__call__2381879884957292090__callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:405:in `__run_callback'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
+ activesupport (3.2.13) lib/active_support/callbacks.rb:81:in `run_callbacks'
+ actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
+ rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
+ rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
+ rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
+ rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
+ rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
+ /home/shanil/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
+
+
diff --git a/public/404.html b/public/404.html
new file mode 100644
index 0000000..9a48320
--- /dev/null
+++ b/public/404.html
@@ -0,0 +1,26 @@
+
+
+
+ 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.
+
+
+
diff --git a/public/422.html b/public/422.html
new file mode 100644
index 0000000..83660ab
--- /dev/null
+++ b/public/422.html
@@ -0,0 +1,26 @@
+
+
+
+ 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.
+
+
+
diff --git a/public/500.html b/public/500.html
new file mode 100644
index 0000000..f3648a0
--- /dev/null
+++ b/public/500.html
@@ -0,0 +1,25 @@
+
+
+
+ We're sorry, but something went wrong (500)
+
+
+
+
+
+
+
We're sorry, but something went wrong.
+
+
+
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..085187f
--- /dev/null
+++ b/public/robots.txt
@@ -0,0 +1,5 @@
+# See http://www.robotstxt.org/wc/norobots.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/script/rails b/script/rails
new file mode 100755
index 0000000..f8da2cf
--- /dev/null
+++ b/script/rails
@@ -0,0 +1,6 @@
+#!/usr/bin/env ruby
+# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
+
+APP_PATH = File.expand_path('../../config/application', __FILE__)
+require File.expand_path('../../config/boot', __FILE__)
+require 'rails/commands'
diff --git a/vendor/assets/javascripts/.gitkeep b/vendor/assets/javascripts/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/vendor/assets/stylesheets/.gitkeep b/vendor/assets/stylesheets/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/vendor/plugins/.gitkeep b/vendor/plugins/.gitkeep
new file mode 100644
index 0000000..e69de29