[ Launch: [dot append: 03] electron ] 6285004 by jgautsch
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
Couldn't find all Roles with IDs (5, ) (found 1 results, but was looking for 2) | |
<div id="role-options-<%= user.id %>" class="modal" style="display: none;"> | |
<%= simple_form_for user, :url => user_path(user), :html => {:method => :put, :class => 'form-horizontal' } do |f| %> | |
<div class="modal-header"> | |
<a class="close" data-dismiss="modal">×</a> | |
<h3>Change Role Test</h3> | |
</div> | |
<div class="modal-body"> | |
<%= f.input :role_ids, :collection => Role.all, :as => :check_boxes, :label_method => lambda {|t| t.name.titleize}, :label => false, :item_wrapper_class => 'vertical', checked: user.role_ids %> |
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 User < ActiveRecord::Base | |
. | |
. # ... = stuff irrelevant to the problem | |
. | |
has_one :schedule | |
. | |
. | |
. | |
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
1.9.3-p374 :015 > @books = @books.where(['substr(title,1,1) in ?', ('A'..'T').to_a]) | |
Book Load (41.2ms) SELECT "books".* FROM "books" WHERE (substr(title,1,1) in 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T') | |
SQLite3::SQLException: near ",": syntax error: SELECT "books".* FROM "books" WHERE (substr(title,1,1) in 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T') | |
ActiveRecord::StatementInvalid: SQLite3::SQLException: near ",": syntax error: SELECT "books".* FROM "books" WHERE (substr(title,1,1) in 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T') |
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
############################################ | |
# Application Controller - CanCan | |
############################################ | |
class ApplicationController < ActionController::Base | |
protect_from_forgery | |
rescue_from CanCan::AccessDenied do |exception| | |
redirect_to root_path, :alert => exception.message | |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<objects type="array"> | |
<object> | |
<service-type-code>1</service-type-code> | |
<description>Medical Care</description> | |
<children type="array"> | |
<child>2</child> | |
<child>42</child> | |
<child>45</child> | |
<child>69</child> |
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
# THis is the controller action | |
def first_step | |
@payers = sorted_payers | |
end | |
private | |
def sorted_payers | |
@label1 = Payer.new(name: "<script>$( document ).ready(function() {alert( 'ready!' );});</script>") | |
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
* 2013-08-13 16:25:28 executing `deploy:assets:precompile' | |
triggering before callbacks for `deploy:assets:precompile' | |
* 2013-08-13 16:25:28 executing `deploy:assets:update_asset_mtimes' | |
* executing "[ -e /mnt/workmein-production/shared/assets/manifest* ] && cat /mnt/workmein-production/shared/assets/manifest* || echo" | |
servers: ["production.foo.com"] | |
[production.foo.com] executing command | |
command finished in 147ms | |
* 2013-08-13 16:25:28 executing `deploy:assets:symlink' | |
* executing "rm -rf /mnt/workmein-production/releases/20130813212515/public/assets && mkdir -p /mnt/workmein-production/releases/20130813212515/public && mkdir -p /mnt/workmein-production/shared/assets && ln -s /mnt/workmein-production/shared/assets /mnt/workmein-production/releases/20130813212515/public/assets" | |
servers: ["production.foo.com"] |
[ Launch: [dot append: 06] simple transition ] 6285836 by jgautsch
[ Launch: [dot enter: 07] stacks ] 6286132 by jgautsch