Re-registering publishers not working at the console
Joe
4 posts
|
After watching the video, I implemented the publisher and tried following the work flow of editing and updating registering publishers. The stack trace is below my example publisher. When I register a publisher, edit a publisher, reload! the console find the user again and try to reregister the publisher, it seems that the database is erroring out on a transaction somewhere in the publisher.rb file. I have not been able to track this down. I am using mysql and rails 2.1.2. Any ideas? even though it errors out at the console, if I go to facebook tools, and the registered templates console, I see any re-registration there. How come the console or the code is not working properly but it is registering the template properly? class NotifyPublisher def publish_action_template one_line_story_template “{actor} did stuff with {friend}.” one_line_story_template “{actor} did stuff.” short_story_template “{actor} has a title {friend}.”, render(:partial=>”pilot/short_body”) short_story_template “{actor} has a title.”, render(:partial=>”pilot/short_body”) full_story_template “{actor} has a title {friend}.”, render(:partial=>”pilot/full_body”) end
At the console I do:
|
Mike Mangino
176 posts
|
Does this only happen when you reload!? I wonder if we have a bug that has problems with class reloading. I’ll take a look at that. Mike |
Joe
4 posts
|
Hello Mike. This error actually happens whether I reload the console or not. Facebook gets the re-registrations, but the database does not. And in the video, when you register a publisher, your console outputs the bundle_id number such as =>35409812422 as a result of the registration, but as seen above, my output is the actual object such as:
|
Mike Mangino
176 posts
|
It was a conflict between the changed? method in Rails 2.1 and a method in our model. Can you update your facebooker and try again? Mike |
Joe
4 posts
|
Worked like a charm! Thanks for taking a look into this. |
5 posts, 2 voices
