similar to: alias_method_chain in Facebooker Causing Stack Level Too Deep

Displaying 20 results from an estimated 5000 matches similar to: "alias_method_chain in Facebooker Causing Stack Level Too Deep"

2007 Aug 30
1
alias_method_chain stack level too deep in Rake test only
I have an odd error. I have the following module: module ActionController module SslSupport def self.included(base) raise "#{base} does not define url_for" unless base.method_defined?(:url_for) unless base.respond_to?(:url_for_without_ssl_supprt) base.send :include, InstanceMethods base.send :alias_method_chain, :url_for, :ssl_support end
2008 Mar 28
1
undefined method ''alias_method_chain''
Running Rails 2.0.2, I get this error: ./script/../config/../vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_rewriting.rb:29: undefined method `alias_method_chain'' for ActionController::UrlRewriter:Class (NoMethodError) from /usr/local/rubygems/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from
2007 Apr 12
0
Does Ferret have problems with #alias_method_chain ?
Hi all, I have this in my class: class Party < AR::B acts_as_ferret :store_class_name => true, :remote => true, :fields => (self.content_columns.map(&:name) rescue []) + %w(main_identifier) class << self # #count is also defined, omitted for clarity def find_with_destroyed_scope(*args) with_destroyed_scope do
2009 Oct 21
3
alias_method_chain and ActiveSupport::TestCase
I''m trying to add some functionality to the setup method of all my tests. I added a method called setup_with_ts in the test_helper and chained it using alias_method_chain :setup, :ts and that works great for every test that does not define setup in the test. So for my unit tests i tried also defining the same method setup_with_ts in a class ActiveSupport::TestCase def setup_with_ts
2006 Dec 26
0
alias_method_chain vs. redefined method with super
I''m trying to fully understand the subtleties of using alias_method_chain to refine method behavior versus redefining a method and calling super. I have a simple data model (a music collection) that I often use to evaluate web frameworks, and I''m trying to get it working on Rails 1.2.0RC1. Specifically, I have three classes which subclass a common Artist class: - Band
2006 Aug 16
0
acts_as_paranoid and alias_method_chain
when i require acts_as_paranoid I''m getting: undefined method `alias_method_chain'' for #<Class:ActiveRecord::Base> (NoMethodError) It happens in acts_as_paranoid''s init.rb. here''s the whole file. the alias_method_chain is near the bottom. please advise. class << ActiveRecord::Base def belongs_to_with_deleted(association_id, options = {})
2007 Mar 22
0
`alias_method_chain': undefined method `find' for class `ActiveRecord::Base' (NameError)
I can''t seem to be able to override the :find method in the model base class, for example, in /lib/usermonitor.rb: module ActiveRecord module UserMonitor def self.included(base) base.class_eval do alias_method_chain :find, :user def current_site Thread.current[:user] end end end def find_with_user(*args) ... end end
2009 Dec 29
1
undefined method `alias_method_chain' for I18n::Backend::Simple:Class
Hi, We are running RE: ruby 1.8.7 (2009-06-12 patchlevel 174) [sparc-solaris2.10], MBARI 0x8770, Ruby Enterprise Edition 2009.10 I tried a simple web app with a controller rendering a text and is working in my PC but on the server I get: Error message: undefined method `alias_method_chain'' for I18n::Backend::Simple:Class Exception class: NoMethodError Application root:
2007 Jun 12
1
alias_method_chain and Class methods (a Ruby question)
Hello list, I am trying to override the post_form method of Net::HTTP so that it does something before actually doing the post. I tried the following in environments/development.rb module Net class HTTP alias_method_chain :post_form, :intercept def post_form_with_intercept(url, params) # Do something before post logger.info(''About to post at
2010 Jul 23
0
alias_method_chain with i18n
Hello, I was investigating solutions for i18n with will_paginate and I found a possible solution at http://lawrencesong.net/2009/01/enable-i18n-in-will_paginate-plugin/ The author adds to application_helper.rb the following code: ############################################# include WillPaginate::ViewHelpers def will_paginate_with_i18n(collection, options = {})
2007 Dec 19
0
Using the Facebooker gem? Tell us about your Facebook app - Facebooker Sightings Series
Hello, May I introduce myself - I''m the publisher of the new ruby API for facebook site (for now titled rfacebook questions & answers) - and way back I''ve published the Java Web Start F.A.Q (*1). Anyways, if you''re using the Facebooker gem I invite you to let us know about your Facebook app and if you''re sign-on I will follow-up with sending you four
2008 Mar 11
0
Facebooker-talk Digest, Vol 5, Issue 12
Hi all, I wanted to test requests from internal facebook apps, so I''ve been mimicking FBML requests from facebook in my tests using the following: def test_can_facebook_internal_app_login fb_login_as :facebooker num_of_members = Member.count facebook_request :get, :home assert_response :success assert_equal num_of_members, Member.count
2008 Feb 01
2
Facebooker interfering with existing application
Hi! I have an existing application, basically a very simple Hobo app. It works... When I install the Facebooker plugin and create the facebooker.yml file (with valid or fake content, doesn''t matter), the original app starts behaving strangely. The controller and view logic keeps working, but several static files stop being served from http://localhost:3000/javascripts and start being
2008 Jun 08
0
Test driving Facebooker with Rspec?
I''ve been spiking on a Facebook application so far just to learn the Facebook(er) API, but I''d prefer to test drive. It seems to me (with my limited knowledge) that what''s needed is some sort of mocking framework at the network level. I''m thinking of creating a set of YAML files similar to fixtures that represent the remote Facebook state, then overriding
2008 Jan 26
3
Facebooker::Session::IncorrectSignature
I think I must be missing something obvious on this one, but I can''t get past the initial "ensure_application_is_installed_by_facebook_user" in a rails app that I''m trying to put together. I''m running on edge rails with the latest Facebooker as a plugin. I''ve tried adding my settings to the environment configs and recently I tried the new yaml
2008 Sep 17
0
Facebooker with expanded FJBS library
A few weeks ago I posted an FBJS library that I had been working on. I have now updated that library to be fully compatible with Facebooker and created a publicity accessible fork for people to try it out. I did attempt to maintain backwards compatability, but I strongly recommend switching to the new methods. The fork is located here: http://github.com/gdeglin/facebooker/ A helper has been
2008 Mar 18
0
facebooker - user
Hi i''m new to facebooker. I want to wrap my user model around facebooker user. how do i do it ? does facebooker @user has it''s own model ? can i inherit it ? how do i make user.display_name access @user.name ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2009 Jan 22
0
[OT] New app built with facebooker launched
Hi all, I just launched my new facebooker-based app into public beta. It''s called Head Hunting and is designed to help recruiters, job hunters and employees with access to a "refer a friend" employment scheme. You can take a look and post jobs to your profile at: http://apps.facebook.com/headhunting/ I''d like to say a big thanks to Mike and all the facebooker
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here: http://wiki.developers.facebook.com/index.php/Facebook_Styles I included testing and comments. I hope you find it useful. Curiously, it''s really a small extension of FBML. Richard -------------- next part -------------- Index: test/rails_integration_test.rb
2008 Jan 21
1
Facebooker website
I just wanted to contribute a quick-start page with details about how to get the Facebook session (for internal apps), how to get user info, set profile FBML, post to the news feed, etc. I could even send this as text, or I can add a page using the Radiant CMS if it''s not too cumbersome. I am also working with Dave Clements to augment the configuration options to make it easier for