Yes... it is working now. Thanks!
Dirk On Nov 14, 6:08 pm, "Pedro Belo" <[EMAIL PROTECTED]> wrote: > Ah, checking the problem in another app I noticed something new. > > open_id_authentication requires ruby-openid for you, so you don't have > to do in your environment. But it's set to load the gem version>=2.0.4, what > was not working since you have 2.1.2 in your vendor and > > Rails don't know how to load newer gems in vendor (that's fixed in > 2.2). > > So changing the config.gem line in the plugin init.rb to use 2.1.2 > fixed the problem. > > > > On Fri, Nov 14, 2008 at 6:01 PM, Pedro Belo <[EMAIL PROTECTED]> wrote: > > Hi Dirk, > > > I think your problem is now fixed, give it a try. > > > The long answer is: your gem is installed correctly. The problem is > > open_id_authentication adds methods to ActionController::Base using > > config.to_prepare, which is a relatively new way in Rails to define > > code that should be executed before every request. > > > For some reason in your app this block is not being called, so methods > > like using_open_id? are not included in your controllers. > > > I'm not sure why it is not being called, but since it is definitely > > working for other apps on Heroku I think it's something related to > > your environment (for instance, another plugin might be introducing a > > conflict). > > > Anyways, I commented out the config.to_prepare block from > > vendor/plugins/open_id_authentication/init.rb and it worked. I don't > > know why they're doing this initialization with to_prepare, but I > > think that running this just once after the framework initialization > > is fine. Give it a try. > > > Pedro > > > For some reason the block that adds this method to > > ActionController::Base is not being called. > > > On Fri, Nov 14, 2008 at 11:37 AM, Dirk <[EMAIL PROTECTED]> wrote: > > >> I am trying to get openid working on my application. > > >> I am using ruby-openid and open_id_authentication. > > >> The application runs fine locally, but on heroku, I get the following > >> error when I try to login: > > >> undefined method `using_open_id?' for #<LoginController:0xb6df0ca8> > > >> Additionally, every time I push (git push) from my local system, I get > >> the warning: > > >> These gems that this application depends on are missing: > >> - ruby-openid > >> Run "rake gems:install" to install them. > > >> I run rake gems:install on heroku, and it says that everything is > >> unpacked in vendor/gems, but alas, when I look in vendor gems, the > >> ruby-openid-2.1.2 folder is there but it is empty. > > >> I then push manually the gem up to heroku, and still get the error. > > >> Additionally, looking at the gems & plugins for honorwar (the name of > >> my app is honorwar), all appear to be installed correctly. > > >> I have also searched the discussions and there are verious posts on > >> openid problems, but none of the solutions seems to help me. > > >> I am at a loss as to what the problem is. > > >> Thanks for any help ya'll may provide, > > >> Dirk Johnson --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~----------~----~----~----~------~----~------~--~---
