Skip to content

Instantly share code, notes, and snippets.

View nfelsen's full-sized avatar

Nathaniel Felsen nfelsen

View GitHub Profile
┌─(nat@nat:pts/3)─────────────────────────────────────────────────────────────────────────────────────────(~/Project/neru/nfelsen3)─┐
└─(17:07:%)── git clone git@github.com:acadopia/insoshi.git ──(Mon,Aug04)─┘
Initialized empty Git repository in /home/nat/Project/neru/nfelsen3/insoshi/.git/
remote: Counting objects: 13038, done.
remote: Compressing objects: 100% (4903/4903), done.
remote: Total 13038 (delta 7519), reused 13015 (delta 7498)
Receiving objects: 100% (13038/13038), 8.77 MiB | 837 KiB/s, done.
Resolving deltas: 100% (7519/7519), done.
┌─(nat@nat:pts/3)─────────────────────────────────────────────────────────────────────────────────────────(~/Project/neru/nfelsen3)─┐
└─(17:07:%)── cd insoshi ──(Mon,Aug04)─┘
<h1>Editing forum</h1>
<%= error_messages_for :forum %>
<% form_for(@forum) do |f| %>
<p>
<%= render :partial => 'fields', :locals => { :f => f } %>
</p>
<p>
<b>Description</b><br />
Section Load (0.000162) SELECT * FROM `sections` WHERE (`sections`.forum_id = 22) (pid:9950)
Analyzing Section Load
select_type | key_len | type | Extra | id | possible_keys | rows | table | ref | key
---------------------------------------------------------------------------------------------
SIMPLE | | ALL | Using where | 1 | | 19 | sections | |
(pid:9950)
Section Columns (0.000903) SHOW FIELDS FROM `sections` (pid:9950)
WARNING: Can't mass-assign these protected attributes: id (pid:9950)
PageView Columns (0.000863) SHOW FIELDS FROM `page_views` (pid:9950)
SQL (0.000101) BEGIN (pid:9950)
PageView Create (0.000295) INSERT INTO `page_views` (`updated_at`, `referer`, `user_agent`, `request_url`, `person_id`, `ip_address`, `created_at`) VALUES('2008-08-07 18:56:02', 'http://localhost:3000/admin/forums', 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1', '/admin/forums/22/edit', 1, '127.0.0.1', '2008-08-07 18:56:02') (pid:9950)
SQL (0.006493) COMMIT (pid:9950)
Person Columns (0.001871) SHOW FIELDS FROM `people` (pid:9950)
Person Load (0.000403) SELECT * FROM `people` WHERE (`people`.`id` = 1) (pid:9950)
Analyzing Person Load
(rdb:206) l
[-2, 7] in /home/nat/Project/neru/nfelsen/nfelsen4/insoshi-private/app/views/forums/show.html.erb
1 <%- column_div :type => :primary do -%>
2 <h2>Discussion topics</h2>
=> 3 <% debugger %>
4 <ol class="list forum full">
5 <%= render :partial => @topics %>
6 </ol>
7 <%= will_paginate(@topics) %>
(rdb:206) pp @topics
<% for section in @sections %>
<h2> <%= section_name(section) %> </h2>
<% @topics = section.topics.find_all_by_section_id(section.id) %>
<% for topic in @topics %>
<%= topic.name %> <br>
<% end %>
<% end %>
$> git push
fatal: protocol error: expected sha/ref, got '
*********'
You can't push to git://github.com/user/repo.git
Use git@github.com:user/repo.git
*********'
Showing forums/_topic.html.erb where line #10 raised:
Mysql::Error: Unknown column 'sections.section_id' in 'where clause': SELECT `forums`.* FROM `forums` INNER JOIN sections ON forums.id = sections.forum_id WHERE ((`sections`.section_id = 6))
Extracted source (around line #10):
7: <p>
8: <%- n = topic.posts.count -%>
9: <%= link_to h(topic.name),
10: forum_path(topic.forum, topic, :posts => n),
ActionController::RoutingError in Home#index
Showing shared/_activity.html.erb where line #9 raised:
forum_section_topic_url failed to generate from {:section_id=>#<Topic id: 11, section_id: 1, person_id: 8, name: "Laboris dolore mollit sin", forum_posts_count: 11, created_at: "2008-08-05 11:25:28", updated_at: "2008-08-05 18:25:28", forum_id: 1>, :controller=>"topics", :action=>"show", :forum_id=>#<Forum id: 1, name: "Discussion forum", description: "The main forum", topics_count: 11, created_at: "2008-08-05 18:25:21", updated_at: "2008-08-05 18:25:21">}, expected: {:controller=>"topics", :action=>"show"}, diff: {:section_id=>#<Topic id: 11, section_id: 1, person_id: 8, name: "Laboris dolore mollit sin", forum_posts_count: 11, created_at: "2008-08-05 11:25:28", updated_at: "2008-08-05 18:25:28", forum_id: 1>, :forum_id=>#<Forum id: 1, name: "Discussion forum", description: "The main forum", topics_count: 11, created_at: "2008-08-05 18:25:21", updated_at: "2008-08-05 18:25:21">}
Extracted source (ar
ActionController::RoutingError in Home#index
Showing shared/_activity.html.erb where line #9 raised:
forum_section_topic_url failed to generate from {:section_id=>#<Topic id: 11, section_id: 1, person_id: 8, name: "Laboris dolore mollit sin", forum_posts_count: 11, created_at: "2008-08-05 11:25:28", updated_at: "2008-08-05 18:25:28", forum_id: 1>, :controller=>"topics", :action=>"show", :forum_id=>#<Forum id: 1, name: "Discussion forum", description: "The main forum", topics_count: 11, created_at: "2008-08-05 18:25:21", updated_at: "2008-08-05 18:25:21">}, expected: {:controller=>"topics", :action=>"show"}, diff: {:section_id=>#<Topic id: 11, section_id: 1, person_id: 8, name: "Laboris dolore mollit sin", forum_posts_count: 11, created_at: "2008-08-05 11:25:28", updated_at: "2008-08-05 18:25:28", forum_id: 1>, :forum_id=>#<Forum id: 1, name: "Discussion forum", description: "The main forum", topics_count: 11, created_at: "2008-08-05 18:25:21", updated_at: "2008-08-05 18:25:21">}
Extracted source (ar