Skip to content

Instantly share code, notes, and snippets.

@elight
Created September 9, 2011 17:34
Show Gist options
  • Save elight/1206833 to your computer and use it in GitHub Desktop.
Save elight/1206833 to your computer and use it in GitHub Desktop.
=> 1: - binding.pry
2: - pres = UserPresenter.new(@user).render do
3: - content_for :title, "#{github_login}'s profile"
4:
5: #user-profile
6: = image_tag gravatar_image_url, class: :avatar
pry(#<#<Class:0x00000105340e30>>)> self.class
=> #<Class:0x00000105340e30>
pry(#<#<Class:0x00000105340e30>>)> self.class.ancestors
=> [#<Class:0x00000105340e30>,
#<Module:0x0000010551f8a0>,
#<Module:0x0000010552f6b0>,
#<Module:0x00000105351d70>,
ActionDispatch::Routing::RouteSet::MountedHelpers,
#<Module:0x000001008c98c0>,
ActionDispatch::Routing::Helpers,
#<Module:0x000001056aa288>,
ActionView::Base,
Sprockets::Helpers::RailsHelper,
AwesomePrintActionView,
ActionView::Helpers,
ActionView::Helpers::TranslationHelper,
ActionView::Helpers::RenderingHelper,
ActionView::Helpers::RecordTagHelper,
ActionController::RecordIdentifier,
ActionView::Helpers::OutputSafetyHelper,
ActionView::Helpers::NumberHelper,
ActionView::Helpers::JavaScriptHelper,
ActionView::Helpers::FormOptionsHelper,
ActionView::Helpers::FormHelper,
ActionView::Helpers::FormTagHelper,
ActionView::Helpers::TextHelper,
ActionView::Helpers::SanitizeHelper,
ActionView::Helpers::DebugHelper,
ActionView::Helpers::DateHelper,
ActionView::Helpers::CsrfHelper,
ActionView::Helpers::ControllerHelper,
ActionView::Helpers::CacheHelper,
ActionView::Helpers::AtomFeedHelper,
ActionView::Helpers::AssetTagHelper,
ActionView::Helpers::AssetTagHelper::StylesheetTagHelpers,
ActionView::Helpers::AssetTagHelper::JavascriptTagHelpers,
ActionView::Helpers::UrlHelper,
ActionView::Helpers::TagHelper,
ActionView::Helpers::CaptureHelper,
ActionView::Helpers::ActiveModelHelper,
ActiveSupport::Benchmarkable,
ActionDispatch::Routing::UrlFor,
ActionDispatch::Routing::PolymorphicRoutes,
ERB::Util,
ActionView::Context,
ActionView::CompiledTemplates,
Object,
ActiveSupport::Dependencies::Loadable,
PP::ObjectMixin,
Mongoid::Extensions::Object::Yoda,
Mongoid::Extensions::Object::Substitutable,
Mongoid::Extensions::Object::Reflections,
Mongoid::Extensions::Object::Checks,
JSON::Ext::Generator::GeneratorMethods::Object,
Kernel,
BasicObject]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment