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
| Advicecapital::Application.routes.draw do | |
| resources :employees | |
| # Main Menu | |
| match '/about_ac', :to => 'pages#about_ac' | |
| match '/about_ai', :to => 'pages#about_ai' | |
| match '/organisation', :to => 'pages#organisation' | |
| match '/investor_login', :to => 'pages#investor_login' | |
| match '/invest_universe', :to => 'pages#invest_universe' |
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
| Exiting | |
| C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.6/lib/active_support/depen | |
| dencies.rb:239:in `require': no such file to load -- portablecontacts (LoadError | |
| ) | |
| from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.6/lib/active_ | |
| support/dependencies.rb:239:in `block in require' | |
| from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.6/lib/active_ | |
| support/dependencies.rb:225:in `block in load_dependency' | |
| from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.6/lib/active_ | |
| support/dependencies.rb:596:in `new_constants_in' |
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
| C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runtime.rb:68:in | |
| `require': no such file to load -- sqlite3 (LoadError) | |
| from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runt | |
| ime.rb:68:in `block (2 levels) in require' | |
| from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runt | |
| ime.rb:66:in `each' | |
| from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runt | |
| ime.rb:66:in `block in require' | |
| from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runt | |
| ime.rb:55:in `each' |
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
| C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runtime.rb:68:in | |
| `require': no such file to load -- sqlite3 (LoadError) | |
| from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runt | |
| ime.rb:68:in `block (2 levels) in require' | |
| from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runt | |
| ime.rb:66:in `each' | |
| from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runt | |
| ime.rb:66:in `block in require' | |
| from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.12/lib/bundler/runt | |
| ime.rb:55:in `each' |
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
| (function ($) { | |
| $(function () { | |
| $('nav ul li a').mouseover(function () { | |
| $(this).siblings('li ul').addClass('hover'); | |
| $(this).parent().hover( | |
| function () {}, | |
| function () { | |
| $(this).children('ul').removeClass('hover'); | |
| }) |
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
| menu: | |
| %li= link_to 'Formål', '/about_ai/purpose' | |
| Routes file: | |
| match '/about_ac/history', :to => 'pages#history' | |
| Pages_controller: |
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
| ActionController::RoutingError (No route matches "/employees/javascripts/jcarous | |
| ellite_1.0.1.min.js"): | |
| Rendered C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.7/lib/action_dispatc | |
| h/middleware/templates/rescues/routing_error.erb within rescues/layout (1.0ms) |
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
| email_regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i # full regex | |
| validates :name, :length => { :maximum => 50 }, | |
| :presence => true # a validation of :name has to be present and a max character length of 50 | |
| validates :email, :format => { :with => email_regex }, | |
| :uniqueness => { :case_sensitive => false }, # email has to be unique, and it does not effect if case | |
| :presence => true | |
| validates :password, :presence => true, |
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 UsersController < ApplicationController | |
| include SessionsHelper | |
| #before_filter :authenticate, :only => [:index, :show, :edit, :update, :destroy] | |
| #before_filter :correct_user, :only => [:edit, :update] | |
| #before_filter :admin_user, :only => [:index, :destroy] | |
| before_filter :signed_in_user, :only => [:new, :show, :create, :edit, :update, :destroy] | |
| # GET /users | |
| # GET /users.xml |
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
| - if current_user | |
| %ul | |
| %li= link_to 'Profile', current_user | |
| %li= link_to 'Settings', edit_user_path(current_user) | |
| %li= link_to 'Signout', signout_path, :method => :delete |