-
-
Save andrewwho/0766d623e66af63619af to your computer and use it in GitHub Desktop.
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
include IdeasHelper | |
def show | |
@idea = Idea.find(params[:id]) | |
# attach open graph meta tags here | |
set_meta_tags :open_graph => { | |
:title => @idea.title ? @idea.title : "", | |
:description => @idea.description ? @idea.description : "", | |
:type => :blog, | |
:url => idea_url(params[:id]), | |
:image => ideas_thumbnail(@idea) | |
} | |
respond_with(@idea) | |
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
ArgumentError in Ideas#index | |
Showing /vagrant/app/views/ideas/index.json.rabl where line #1 raised: | |
wrong number of arguments (0 for 1) | |
Extracted source (around line #1): | |
1: collection @ideas | |
2: extends 'ideas/show' | |
Trace of template inclusion: app/views/ideas/index.html.haml | |
Rails.root: /vagrant | |
Application Trace | Framework Trace | Full Trace | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/sprockets/helpers/rails_helper.rb:54:in `asset_path' | |
app/helpers/ideas_helper.rb:24:in `ideas_thumbnail' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/engine.rb:228:in `method_missing' | |
app/views/ideas/show.json.rabl:7:in `block in render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:76:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:76:in `node' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:41:in `block in compile_hash' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:40:in `each' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:40:in `compile_hash' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:20:in `block in build' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:141:in `cache_results' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:19:in `build' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/engine.rb:46:in `to_hash' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/engine.rb:34:in `block in render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/engine.rb:257:in `cache_results' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/engine.rb:34:in `render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/partials.rb:27:in `object_to_hash' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/partials.rb:14:in `partial' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:111:in `extends' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:33:in `block in compile_hash' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:32:in `each' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:32:in `compile_hash' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:20:in `block in build' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:141:in `cache_results' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/builder.rb:19:in `build' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/engine.rb:48:in `block in to_hash' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/engine.rb:48:in `map' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/engine.rb:48:in `to_hash' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/engine.rb:57:in `to_json' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/engine.rb:34:in `block in render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/engine.rb:257:in `cache_results' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rabl-0.6.10/lib/rabl/engine.rb:34:in `render' | |
app/views/ideas/index.json.rabl:1:in `_app_views_ideas_index_json_rabl__9759940_102273610' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/template.rb:143:in `block in render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/notifications.rb:125:in `instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/template.rb:141:in `render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:41:in `block (2 levels) in render_template' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/notifications.rb:123:in `block in instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/notifications.rb:123:in `instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:40:in `block in render_template' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:48:in `render_with_layout' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:39:in `render_template' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:12:in `render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:156:in `block in render_with_newrelic' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:155:in `render_with_newrelic' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/renderer.rb:36:in `render_template' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/renderer.rb:17:in `render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/helpers/rendering_helper.rb:24:in `render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/haml-3.1.4/lib/haml/helpers/action_view_mods.rb:11:in `block in render_with_haml' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/haml-3.1.4/lib/haml/helpers.rb:90:in `non_haml' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/haml-3.1.4/lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml' | |
app/views/ideas/index.html.haml:4:in `_app_views_ideas_index_html_haml___564713852_98795300' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/template.rb:143:in `block in render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/notifications.rb:125:in `instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/template.rb:141:in `render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:41:in `block (2 levels) in render_template' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/notifications.rb:123:in `block in instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/notifications.rb:123:in `instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:40:in `block in render_template' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:48:in `render_with_layout' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:39:in `render_template' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/template_renderer.rb:12:in `render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:156:in `block in render_with_newrelic' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:155:in `render_with_newrelic' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/renderer.rb:36:in `render_template' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_view/renderer/renderer.rb:17:in `render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/abstract_controller/rendering.rb:109:in `_render_template' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/streaming.rb:225:in `_render_template' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/abstract_controller/rendering.rb:103:in `render_to_body' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/renderers.rb:28:in `render_to_body' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/compatibility.rb:50:in `render_to_body' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/abstract_controller/rendering.rb:88:in `render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/rendering.rb:16:in `render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' | |
/home.rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/benchmark.rb:310:in `realtime' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/core_ext/benchmark.rb:5:in `ms' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/instrumentation.rb:40:in `block in render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activerecord-3.2.0/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/instrumentation.rb:39:in `render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/meta-tags-1.2.6/lib/meta_tags/controller_helper.rb:28:in `render_with_meta_tags' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/implicit_render.rb:10:in `default_render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/mime_responds.rb:268:in `block in retrieve_response_from_mimes' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/responder.rb:229:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/responder.rb:229:in `default_render' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/responder.rb:160:in `to_html' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/responder.rb:153:in `respond' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/responder.rb:146:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/mime_responds.rb:238:in `respond_with' | |
app/controllers/ideas_controller.rb:55:in `index' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/implicit_render.rb:4:in `send_action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/abstract_controller/base.rb:167:in `process_action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/rendering.rb:10:in `process_action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/abstract_controller/callbacks.rb:18:in `block in process_action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/callbacks.rb:425:in `_run__960090965__process_action__839124838__callbacks' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/callbacks.rb:405:in `__run_callback' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/abstract_controller/callbacks.rb:17:in `process_action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/rescue.rb:29:in `process_action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/notifications.rb:123:in `block in instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/notifications.rb:123:in `instrument' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/instrumentation.rb:29:in `process_action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/params_wrapper.rb:205:in `process_action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activerecord-3.2.0/lib/active_record/railties/controller_runtime.rb:18:in `process_action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in `block in process_action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:255:in `block in perform_action_with_newrelic_trace' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:250:in `perform_action_with_newrelic_trace' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in `process_action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/abstract_controller/base.rb:121:in `process' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/abstract_controller/rendering.rb:45:in `process' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal.rb:203:in `dispatch' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_controller/metal.rb:246:in `block in action' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/routing/route_set.rb:66:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/routing/route_set.rb:66:in `dispatch' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/routing/route_set.rb:30:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/journey-1.0.3/lib/journey/router.rb:68:in `block in call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/journey-1.0.3/lib/journey/router.rb:56:in `each' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/journey-1.0.3/lib/journey/router.rb:56:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/routing/route_set.rb:570:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/omniauth-1.1.0/lib/omniauth/strategy.rb:177:in `call!' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/omniauth-1.1.0/lib/omniauth/strategy.rb:157:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/rack/browser_monitoring.rb:23:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/newrelic_rpm-3.3.4.1/lib/new_relic/rack/developer_mode.rb:24:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/airbrake-3.0.9/lib/airbrake/rack.rb:27:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/sass-3.1.16/lib/sass/plugin/rack.rb:54:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/warden-1.1.1/lib/warden/manager.rb:35:in `block in call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/warden-1.1.1/lib/warden/manager.rb:34:in `catch' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/warden-1.1.1/lib/warden/manager.rb:34:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/etag.rb:23:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/conditionalget.rb:25:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/head.rb:14:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/params_parser.rb:21:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/flash.rb:242:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in `context' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/cookies.rb:338:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activerecord-3.2.0/lib/active_record/query_cache.rb:64:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activerecord-3.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/callbacks.rb:405:in `_run__571173378__call__435299988__callbacks' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/callbacks.rb:405:in `__run_callback' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/callbacks.rb:385:in `_run_call_callbacks' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/reloader.rb:65:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/remote_ip.rb:31:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.0/lib/rails/rack/logger.rb:26:in `call_app' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.0/lib/rails/rack/logger.rb:16:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/request_id.rb:22:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.0/lib/active_support/cache/strategy/local_cache.rb:72:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.0/lib/action_dispatch/middleware/static.rb:53:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/airbrake-3.0.9/lib/airbrake/user_informer.rb:12:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.0/lib/rails/engine.rb:479:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.0/lib/rails/application.rb:220:in `call' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.0/lib/rails/railtie/configurable.rb:30:in `method_missing' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/thin-1.3.1/lib/thin/connection.rb:80:in `block in pre_process' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/thin-1.3.1/lib/thin/connection.rb:78:in `catch' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/thin-1.3.1/lib/thin/connection.rb:78:in `pre_process' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/thin-1.3.1/lib/thin/connection.rb:53:in `process' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/thin-1.3.1/lib/thin/connection.rb:38:in `receive_data' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/thin-1.3.1/lib/thin/server.rb:159:in `start' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!' | |
/home.rvm/gems/ruby-1.9.2-p318/gems/thin-1.3.1/bin/thin:6:in `<top (required)>' | |
/home.rvm/gems/ruby-1.9.2-p318/bin/thin:19:in `load' | |
/home.rvm/gems/ruby-1.9.2-p318/bin/thin:19:in `<main>' | |
Request | |
Parameters: | |
None | |
Show session dump | |
Show env dump | |
Response | |
Headers: | |
None |
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
module IdeasHelper | |
def ideas_image_tag(id=nil, size="thumbnail") | |
unless id.nil? | |
idea = Idea.find(id) | |
image_tag("ideas/#{idea.image}/#{size}", | |
:data => {:src => idea.image}, :class => 'image') | |
else | |
raise | |
end | |
end | |
def ideas_image(idea, src=nil, size="thumbnail") | |
if @idea.nil? or @idea.image.nil? | |
image_tag("ideas/#{src}/thumbnail.jpg", | |
:data => {:src => src}, :class => 'image') | |
else | |
image_tag("ideas/#{src}/thumbnail.jpg", | |
:data => {:src => src}, :class => 'image'+(' image-selected' if @idea.image == src).to_s) | |
end | |
end | |
def ideas_thumbnail(idea) | |
request.protocol+request.host_with_port+asset_path+"ideas/#{idea.image}/thumbnail.jpg" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment