Skip to content

Instantly share code, notes, and snippets.

View richdownie's full-sized avatar

Rich Downie richdownie

View GitHub Profile
>> Question.all.each { |q| q.send(:propagate_group_level_permissions!) }
Question Load (2.3ms) SELECT * FROM "questions"
QuestionGroupPermission Load (1.1ms) SELECT * FROM "permissions" WHERE ("permissions"."question_group_id" = 104) AND ( ("permissions"."type" = 'QuestionGroupPermission' ) )
QuestionGroupPermission Load (0.5ms) SELECT * FROM "permissions" WHERE ("permissions"."question_group_id" = 78) AND ( ("permissions"."type" = 'QuestionGroupPermission' ) )
QuestionGroupRight Load (0.7ms) SELECT * FROM "rights" WHERE ("rights"."id" = 1025) AND ( ("rights"."type" = 'QuestionGroupRight' ) ) ORDER BY name
CustomFieldRight Load (0.4ms) SELECT * FROM "rights" WHERE ("rights"."name" = E'custom_field_edit') AND ( ("rights"."type" = 'CustomFieldRight' ) ) ORDER BY name LIMIT 1
SQL (0.7ms) SELECT count(*) AS count_all FROM "permissions" WHERE ("permissions"."role_id" = 9 AND "permissions"."right_id" = 1035 AND "permissions"."question_id" = 105) AND ( ("permissions"."type" = 'CustomFieldP
#Git setup
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(git::\1)/'
}
parse_svn_branch() {
parse_svn_url | sed -e 's#^'"$(parse_svn_repository_root)"'##g' | awk -F / '{print "(svn::"$1 "/" $2 ")"}'
}
parse_svn_url() {
svn info 2>/dev/null | grep -e '^URL*' | sed -e 's#^URL: *\(.*\)#\1#g '
}
NoMethodError in People#index
Showing app/views/search_queries/_link.html.erb where line #2 raised:
undefined method `edit_search_query_path' for #<ActionView::Base:0xf0f6798>
Extracted source (around line #2):
1: <li>
2: <%= construct_search_link(search) %>
Last login: Wed Mar 10 14:23:31 2010 from 66.66.113.160
[rdownie@qaapp1-t ~]$ sudo su - mongrel
[mongrel@qaapp1-t ~]$ cd /var/www/railsapps/auto/current/
[mongrel@qaapp1-t current]$ cat app/views/issue_mailer/assignment_notification.text.html.erb
<h2 style="margin-bottom: 16px; border-bottom: 1px solid #e1e1e1">
New <%=@issue_types.to_sentence%> Notification
</h2>
<p>Dear <%=@name%>, </p>
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') unless $SETUP_LOADED
require 'unittests/setup'
class TC_JavaScript_Test < Test::Unit::TestCase
# include FireWatir::Dialog
def setup
goto_page 'JavascriptClick.html'
end
NoMethodError in Line_items#index
Showing app/views/line_items/_comment.html.erb where line #11 raised:
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.full_name
Extracted source (around line #11):
8: </div>
#Git setup
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(git::\1)/'
}
parse_svn_branch() {
parse_svn_url | sed -e 's#^'"$(parse_svn_repository_root)"'##g' | awk -F / '{print "(svn::"$1 "/" $2 ")"}'
}
parse_svn_url() {
svn info 2>/dev/null | grep -e '^URL*' | sed -e 's#^URL: *\(.*\)#\1#g '
Apr 01 12:49:03 --
Processing IssuesController#dashboard (for 74.220.158.207 at 2010-04-01 12:49:03) [GET]
Apr 01 12:49:03 -- Person Load (0.3ms) SELECT * FROM "people" WHERE ("people"."id" = 1) ORDER BY id asc LIMIT 1
Apr 01 12:49:03 -- IssueType Load (0.2ms) SELECT * FROM "issue_types" WHERE ("issue_types"."id" = 23) ORDER BY name LIMIT 1
Apr 01 12:49:03 -- CommunityMembership Load (0.3ms) SELECT * FROM "memberships" WHERE ("memberships"."person_id" = 1 AND "memberships"."community_id" = 1 AND "memberships"."role_id" = 9) AND ( ("memberships"."type" = 'CommunityMembership' ) )
Apr 01 12:49:03 -- Rendering template within layouts/cs_skin
Apr 01 12:49:03 -- Rendering issues/dashboard
Apr 01 12:49:03 -- SQL (0.3ms) SELECT count(*) AS count_all FROM "memberships" WHERE ("memberships".person_id = 1) AND ( ("memberships"."type" = 'WorkspaceMembership' ) )
db:rollback
[mongrel@qaapp1-t current]$ pwd
/var/www/railsapps/auto/current
[mongrel@qaapp1-t current]$ RAILS_ENV=qa rake db:rollback
(in /var/www/railsapps/auto/releases/20100401170533)
== ChangeAnswerCommentFieldToText: reverting =================================
-- change_column(:answers, :comment, :string)
-> 0.8816s
== ChangeAnswerCommentFieldToText: reverted (0.8821s) ========================
Apr 05 13:44:17 --
Processing IssuesController#dashboard (for 74.220.158.207 at 2010-04-05 13:44:17) [GET]
Apr 05 13:44:17 -- Parameters: {"start_range"=>"1/1/2010", "end_range"=>"2/30/2010"}
Apr 05 13:44:17 -- Person Load (0.3ms) SELECT * FROM "people" WHERE ("people"."id" = 1) ORDER BY id asc LIMIT 1
Apr 05 13:44:17 -- IssueType Load (0.4ms) SELECT * FROM "issue_types" WHERE ("issue_types"."id" = 23) ORDER BY name LIMIT 1
Apr 05 13:44:17 -- CommunityMembership Load (0.4ms) SELECT * FROM "memberships" WHERE ("memberships"."community_id" = 1 AND "memberships"."person_id" = 1 AND "memberships"."role_id" = 9) AND ( ("memberships"."type" = 'CommunityMembership' ) )
Apr 05 13:44:17 -- Rendering template within layouts/cs_skin
Apr 05 13:44:17 -- Rendering issues/dashboard