This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - !ruby/object:TApp | |
| attributes: | |
| id: 3 | |
| name: Drive ko Drive Karo | |
| key: 147c5e3a8723af6c617682457a8e199d451656bc | |
| is_active: true | |
| created_at: 2012-10-15 07:11:34.823062000Z | |
| updated_at: 2012-10-15 10:16:33.289104000Z |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace :api do | |
| namespace :v1 do | |
| resources :tokens, :via => :post | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Smartauto::Application.routes.draw do | |
| ActiveAdmin.routes(self) | |
| namespace :api do | |
| namespace :v1 do | |
| resources :tokens,:only => [:create, :destroy] | |
| end | |
| end | |
| devise_for :admin_users, ActiveAdmin::Devise.config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AccountObserver < ActiveRecord::Observer | |
| def after_create(account) | |
| @user = account.user | |
| # Convert a lead into an opportunity | |
| opportunity = create_opportunity(@user, account) | |
| create_eway_vault(@user, account, opportunity) | |
| end | |
| def after_update(account) | |
| raise account.to_yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| == CreateBlogStructure: migrating ============================================ | |
| -- create_table("refinery_blog_posts", {:id=>true}) | |
| NOTICE: CREATE TABLE will create implicit sequence "refinery_blog_posts_id_seq1" for serial column "refinery_blog_posts.id" | |
| rake aborted! | |
| An error has occurred, this and all later migrations canceled: | |
| PG::Error: ERROR: relation "refinery_blog_posts" already exists | |
| : CREATE TABLE "refinery_blog_posts" ("id" serial primary key, "title" character varying(255), "body" text, "draft" boolean, "published_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) | |
| Tasks: TOP => db:migrate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PagesController < ApplicationController | |
| layout 'application_page' | |
| def show | |
| @selected = params[:slug] | |
| @page = Page.find params[:slug] | |
| @menus = Page.all | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - title "#{@page.meta_title} | Autogenie" | |
| - meta_description @page.meta_description | |
| %header.title | |
| %h1= @page.title | |
| = raw textilize(@page.body) | |
| = content_for :sideBar do | |
| %ul.side-bar-menu | |
| = render :partial => "menu", :collection => @menus | |
| = content_for :footer do | |
| = render :partial => '/shared/footer' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ArgumentError in Pages#show | |
| Showing /home/vaibhavrajput/local-autogenie/development/autogenie/autogenie/app/views/pages/_menu.html.erb where line #2 raised: | |
| wrong number of arguments (2 for 1) | |
| Extracted source (around line #2): | |
| 1: <li> | |
| 2: <% @class = menu.slug? @selected ? "selected" : '' %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| When starting a project that includes refinerycms-blog: | |
| $ rake refinery:override view=refinery/pages/* | |
| $ rake refinery:override view=layouts/* | |
| $ rake refinery:override view=refinery/blog/shared/* | |
| $ rake refinery:override view=refinery/blog/posts/* | |
| $ rake refinery:override view=refinery/* | |
| $ rake refinery:override controller=refinery/blog/* | |
| $ rake refinery:override controller=refinery/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def new | |
| @post = ::Refinery::Blog::Post.new(:author => current_refinery_user) | |
| end | |
| uninitialized constant Refinery::Blog::Post::Refinery::User | |
| activerecord (3.2.3) lib/active_record/inheritance.rb:119:in `compute_type' | |
| activerecord (3.2.3) lib/active_record/reflection.rb:172:in `klass' | |
| activerecord (3.2.3) lib/active_record/associations/association.rb:202:in `raise_on_type_mismatch' | |
| activerecord (3.2.3) lib/active_record/associations/belongs_to_association.rb:6:in `replace' |