This file contains 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
require 'spec_helper' | |
describe DcpMeeting do | |
it { should have_one :checkpoint } | |
it { should belong_to :coach } | |
it { should belong_to :organization } | |
it_should_behave_like "Meeting Delegates" | |
it "should be made with blueprints" do |
This file contains 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
require 'spec_helper' | |
describe DcpMeeting do | |
it { should have_one :checkpoint } | |
it { should belong_to :coach } | |
it { should belong_to :organization } | |
it_should_behave_like "Meeting Delegates" | |
it "should be made with blueprints" do |
This file contains 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
WARNING: Cucumber-rails required outside of env.rb. The rest of loading is being defered until env.rb is called. | |
To avoid this warning, move 'gem cucumber-rails' under only group :test in your Gemfile | |
** Invoke db:migrate (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
rake aborted! | |
Unknown alias: test | |
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:239:in `block in visit_Psych_Nodes_Alias' | |
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:239:in `fetch' | |
/home/scott/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:239:in `visit_Psych_Nodes_Alias' |
This file contains 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
# SQLite version 3.x | |
# gem install sqlite3 | |
development: | |
adapter: mysql | |
encoding: utf8 | |
reconnect: false | |
database: activate_development | |
pool: 5 | |
user: | |
password: |
This file contains 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
Using the default profile... | |
undefined method `klass' for nil:NilClass (NoMethodError) | |
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activesupport-3.0.13/lib/active_support/whiny_nil.rb:48:in `method_missing' | |
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activerecord-3.0.13/lib/active_record/reflection.rb:346:in `block in source_reflection' | |
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activerecord-3.0.13/lib/active_record/reflection.rb:346:in `collect' | |
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activerecord-3.0.13/lib/active_record/reflection.rb:346:in `source_reflection' | |
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activerecord-3.0.13/lib/active_record/reflection.rb:407:in `derive_class_name' | |
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activerecord-3.0.13/lib/active_record/reflection.rb:121:in `class_name' | |
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/activerecord-3.0.13/lib/active_record/reflection.rb:162:in `klass' | |
/home/scott/.rvm/gems/ruby-1.9.3-p194@rails3/gems/active_ |
This file contains 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 SubScreensController < ApplicationController | |
load_and_authorize_resource | |
active_scaffold :sub_screen do |conf| | |
end | |
end |
This file contains 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 create_asset | |
@asset = Asset.new(:name => params[:name], | |
:description => params[:description], | |
:serial_number => params[:serial_number], | |
:asset_manufacturer_id => params[:asset_manufacturer_id], | |
:asset_model_id => params[:asset_model_id], | |
:image_filename => params[:image_filename]) | |
respond_to do |format| | |
format.js |
This file contains 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 ActivateUsersController < ApplicationController | |
load_and_authorize_resource :class => false | |
before_filter :populate_roles, :only => [:new_user, :update_user] | |
# GET /users | |
# GET /users.xml | |
def index | |
@users = User.all | |
respond_to do |format| |
This file contains 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
<%= form_for :asset, :url => {:controller => "import", :action => "asset_check", :format => :js }, :options => { :remote => true }, :html => {:method => :post, :class => "well form-horizontal"} do |f| %> | |
<%= f.submit "Check File", :class => "btn" %> </br> | |
<%= f.label 'Configuration', "Field Mapping:", :class => "control-label" %> | |
<div class="controls"> | |
<%= f.select('csv_configurations', options_from_collection_for_select(@csv_configurations, "id", "name"), {:include_blank => true}, {:id => "csv_configuration", :onchange => "load_mapping(this.value)"}) %> | |
</div> | |
<% @csv.headers.each do |head| %> | |
<%= f.label head, head.humanize, :class => "control-label", :id => "#{head}_id" %> | |
<div class="controls"> |
OlderNewer