Permalink
Browse files

Adding ajax error code to hopefully help track down intermittent error

  • Loading branch information...
1 parent 469f10d commit 51720af18d173e6f4ca24530038ebf3c11268ab8 @ethanKlein ethanKlein committed Dec 8, 2011
Showing with 50 additions and 47 deletions.
  1. +47 −47 .idea/workspace.xml
  2. +3 −0 public/assets/scroller.js
View
94 .idea/workspace.xml
@@ -2,7 +2,8 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="631c4df5-e7ee-4af0-8d53-0cf4fc343442" name="Default" comment="">
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/controllers/posts_controller.rb" afterPath="$PROJECT_DIR$/app/controllers/posts_controller.rb" />
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/public/assets/scroller.js" afterPath="$PROJECT_DIR$/public/assets/scroller.js" />
</list>
<ignored path="Feedo.iws" />
<ignored path=".idea/workspace.xml" />
@@ -56,10 +57,19 @@
</provider>
</entry>
</file>
- <file leaf-file-name="posts_controller.rb" pinned="false" current="true" current-in-tab="true">
+ <file leaf-file-name="posts_controller.rb" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/controllers/posts_controller.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="32" column="5" selection-start="715" selection-end="715" vertical-scroll-proportion="0.63506067">
+ <state line="7" column="8" selection-start="255" selection-end="255" vertical-scroll-proportion="0.0">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="application.html.haml" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/app/views/layouts/application.html.haml">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="5" column="42" selection-start="118" selection-end="118" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
@@ -83,10 +93,10 @@
</provider>
</entry>
</file>
- <file leaf-file-name="scroller.js" pinned="false" current="false" current-in-tab="false">
+ <file leaf-file-name="scroller.js" pinned="false" current="true" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/public/assets/scroller.js">
<provider selected="true" editor-type-id="text-editor">
- <state line="29" column="12" selection-start="876" selection-end="876" vertical-scroll-proportion="0.0">
+ <state line="32" column="38" selection-start="1017" selection-end="1017" vertical-scroll-proportion="0.63506067">
<folding />
</state>
</provider>
@@ -112,16 +122,16 @@
<option value="$PROJECT_DIR$/config/routes.rb" />
<option value="$PROJECT_DIR$/app/views/posts/index.html.haml" />
<option value="$PROJECT_DIR$/Gemfile" />
- <option value="$PROJECT_DIR$/public/assets/scroller.js" />
<option value="$PROJECT_DIR$/app/models/post.rb" />
<option value="$PROJECT_DIR$/public/stylesheets/site_wide.css" />
<option value="$PROJECT_DIR$/config/application.rb" />
<option value="$PROJECT_DIR$/public/assets/application.css" />
- <option value="$PROJECT_DIR$/app/views/layouts/application.html.haml" />
<option value="$PROJECT_DIR$/public/assets/site_wide.css" />
<option value="$PROJECT_DIR$/app/helpers/posts_helper.rb" />
<option value="$PROJECT_DIR$/app/views/posts/_post.html.haml" />
<option value="$PROJECT_DIR$/app/controllers/posts_controller.rb" />
+ <option value="$PROJECT_DIR$/app/views/layouts/application.html.haml" />
+ <option value="$PROJECT_DIR$/public/assets/scroller.js" />
</list>
</option>
</component>
@@ -151,7 +161,6 @@
<sortByType />
</navigator>
<panes>
- <pane id="Favorites" />
<pane id="ProjectPane">
<subPane>
<PATH>
@@ -299,6 +308,7 @@
</subPane>
</pane>
<pane id="Scope" />
+ <pane id="Favorites" />
<pane id="RailsProjectView" />
</panes>
</component>
@@ -399,6 +409,13 @@
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
<method />
</configuration>
+ <configuration default="true" type="JavascriptDebugSession" factoryName="Remote">
+ <JSRemoteDebuggerConfigurationSettings>
+ <option name="engineId" value="embedded" />
+ <option name="fileUrl" />
+ </JSRemoteDebuggerConfigurationSettings>
+ <method />
+ </configuration>
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
<module name="" />
@@ -432,13 +449,6 @@
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
<method />
</configuration>
- <configuration default="true" type="JavascriptDebugSession" factoryName="Remote">
- <JSRemoteDebuggerConfigurationSettings>
- <option name="engineId" value="embedded" />
- <option name="fileUrl" />
- </JSRemoteDebuggerConfigurationSettings>
- <method />
- </configuration>
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda">
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
<module name="" />
@@ -596,16 +606,16 @@
<window_info id="Data Sources" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.329859" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32799146" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
<window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25966182" sideWeight="0.6713555" order="0" side_tool="false" content_ui="tabs" />
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.2593501" sideWeight="0.6713555" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32799146" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.27564102" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
@@ -685,68 +695,58 @@
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/models/post.rb">
+ <entry file="file://$PROJECT_DIR$/config/application.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="19" column="7" selection-start="490" selection-end="490" vertical-scroll-proportion="0.0" />
+ <state line="45" column="32" selection-start="2031" selection-end="2031" vertical-scroll-proportion="0.73" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/public/assets/scroller.js">
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.1/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="29" column="12" selection-start="876" selection-end="876" vertical-scroll-proportion="0.0" />
+ <state line="135" column="12" selection-start="7420" selection-end="7420" vertical-scroll-proportion="0.68246967" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/config/application.rb">
+ <entry file="file://$PROJECT_DIR$/app/views/posts/_post.html.haml">
<provider selected="true" editor-type-id="text-editor">
- <state line="45" column="32" selection-start="2031" selection-end="2031" vertical-scroll-proportion="0.73">
- <folding />
- </state>
+ <state line="12" column="0" selection-start="436" selection-end="436" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.1/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb">
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.1/lib/action_view/helpers/asset_tag_helper.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="135" column="12" selection-start="7420" selection-end="7420" vertical-scroll-proportion="0.68246967">
- <folding />
- </state>
+ <state line="345" column="10" selection-start="19131" selection-end="19131" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/views/layouts/application.html.haml">
+ <entry file="file://$PROJECT_DIR$/public/assets/site_wide.css">
<provider selected="true" editor-type-id="text-editor">
- <state line="4" column="39" selection-start="74" selection-end="74" vertical-scroll-proportion="0.07938258">
- <folding />
- </state>
+ <state line="36" column="15" selection-start="643" selection-end="643" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p180/gems/actionpack-3.1.1/lib/action_view/helpers/asset_tag_helper.rb">
+ <entry file="file://$PROJECT_DIR$/app/helpers/posts_helper.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="345" column="10" selection-start="19131" selection-end="19131" vertical-scroll-proportion="0.0">
- <folding />
- </state>
+ <state line="9" column="3" selection-start="197" selection-end="197" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/public/assets/site_wide.css">
+ <entry file="file://$PROJECT_DIR$/app/models/post.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="36" column="15" selection-start="643" selection-end="643" vertical-scroll-proportion="0.0">
- <folding />
- </state>
+ <state line="19" column="7" selection-start="490" selection-end="490" vertical-scroll-proportion="0.0" />
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/helpers/posts_helper.rb">
+ <entry file="file://$PROJECT_DIR$/app/controllers/posts_controller.rb">
<provider selected="true" editor-type-id="text-editor">
- <state line="9" column="3" selection-start="197" selection-end="197" vertical-scroll-proportion="0.0">
+ <state line="7" column="8" selection-start="255" selection-end="255" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/views/posts/_post.html.haml">
+ <entry file="file://$PROJECT_DIR$/app/views/layouts/application.html.haml">
<provider selected="true" editor-type-id="text-editor">
- <state line="12" column="0" selection-start="436" selection-end="436" vertical-scroll-proportion="0.0">
+ <state line="5" column="42" selection-start="118" selection-end="118" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/app/controllers/posts_controller.rb">
+ <entry file="file://$PROJECT_DIR$/public/assets/scroller.js">
<provider selected="true" editor-type-id="text-editor">
- <state line="32" column="5" selection-start="715" selection-end="715" vertical-scroll-proportion="0.63506067">
+ <state line="32" column="38" selection-start="1017" selection-end="1017" vertical-scroll-proportion="0.63506067">
<folding />
</state>
</provider>
View
3 public/assets/scroller.js
@@ -28,6 +28,9 @@ var feedo = {
dataType: 'html',
success: function(data) {
feedo.display_new_post(data);
+ },
+ error: function(jqXHR, textStatus, errorThrown) {
+ alert("Argh, Feedo error: " + textStatus + " " + errorThrown);
}
});
}

0 comments on commit 51720af

Please sign in to comment.