thanks Bruno, and the other error? rake db:migrate RAILS_ENV=test I get this:
[COMMUNITY ENGINE] You have 3 pending CommunityEngine migrations: CE is at 62, but you have only migrated it to 59 Please run 'script/generate plugin_migration' AND 'rake db:migrate' before continuing, or you will experience errors. --- ** Execute db:migrate == CommunityEngineToVersion57: migrating ===================================== rake aborted! An error has occurred, this and all later migrations canceled: Constant Engines from engines.rb not found Any ideas? Thanks On Jul 14, 4:12 pm, Bruno Bornsztein <[email protected]> wrote: > You need to update your environment.rb as indicated in the > UPGRADING.markdown document (change config.action_controller.session = { > :session_key > > to > > config.action_controller.session = { > :key > > On Tue, Jul 14, 2009 at 12:50 PM, Alejandro <[email protected]> wrote: > > > Another error: > > > Showing vendor/plugins/community_engine/app/views/photos/ > > new.html.haml where line #59 raised: > > > You have a nil object when you didn't expect it! > > The error occurred while evaluating nil.to_sym > > > Extracted source (around line #59): > > > 56: var uploader; > > 57: window.onload = function (){ > > 58: - session_key = ActionController::Base.session_options > > [:key] > > 59: ="uploader = new CommunityEngine.SwfUpload('# > > {swfupload_user_photos_path(:user_id => current_user.id, session_key > > => cookies[session_key], request_forgery_protection_token => > > form_authenticity_token)}');" > > 60: }; > > 61: > > 62: %div{:style=>"margin: 0px 10px;"} > > > On Jul 14, 12:07 pm, Alejandro <[email protected]> wrote: > > > Sorry for bothering again, when I run rake db:migrate RAILS_ENV=test > > > I get this: > > > > [COMMUNITY ENGINE] You have 3 pending CommunityEngine migrations: > > > CE is at 62, but you have only migrated it to 59 > > > Please run 'script/generate plugin_migration' AND 'rake db:migrate' > > > before continuing, or you will experience errors. > > > --- > > > ** Execute db:migrate > > > == CommunityEngineToVersion57: migrating > > > ===================================== > > > rake aborted! > > > An error has occurred, this and all later migrations canceled: > > > > Constant Engines from engines.rb not found > > > > Any ideas? > > > > Thanks > > > > On Jun 29, 9:59 pm, Bruno Bornsztein <[email protected]> > > > wrote: > > > > > Hi Alejandro,Sorry, that error is new to me; don't know what it comes > > from. > > > > > > One question: is there any way to run my migrations on the test db? > > > > > Sure, you can run rake db:migrate RAILS_ENV=test > > > > > Thanks, > > > > Bruno > > > > > > Thanks! > > > > > > On Jun 22, 2:35 pm, Bruno Bornsztein <[email protected]> > > > > > wrote: > > > > > > > 1) Translations like :looking_for_most_x.l :link => link_to("# > > > > > > > {:recent.l}?", recent_path) are not working, it shows "¿Buscando > > lo > > > > > > > más {link}? " > > > > > > > Check your language file. Translations with tokens should be of the > > form: > > > > > > about_site: "About {{site}}" > > > > > > > (Note the double curly braces) > > > > > > > > 2) When a mail is being sent, I have this error: > > > > > > > > TypeError (superclass mismatch for class UserNotifier): > > > > > > > app/models/user_notifier.rb:1 > > > > > > > desert (0.5.0) lib/desert/rails/dependencies.rb:67:in > > > > > > > `define_constant_from_file' > > > > > > > desert (0.5.0) lib/desert/rails/dependencies.rb:66:in `each' > > > > > > > desert (0.5.0) lib/desert/rails/dependencies.rb:66:in > > > > > > > `define_constant_from_file' > > > > > > > desert (0.5.0) lib/desert/rails/dependencies.rb:45:in > > > > > > > `define_constant_with_desert_loading' > > > > > > > desert (0.5.0) lib/desert/rails/dependencies.rb:8:in > > > > > > > `load_missing_constant' > > > /var/lib/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in > > > > > > > `const_missing' > > > > > > > desert (0.5.0) lib/desert/rails/dependencies.rb:54:in > > > > > > > `look_for_constant_in_parent_module' > > > > > > > desert (0.5.0) lib/desert/rails/dependencies.rb:13:in > > > > > > > `load_missin.... > > > > > > > > I'm using ARMailer > > > > > > > I seem to remember something about AR mailer requiring your > > notifier > > > > > class > > > > > > to inherit from ARMailer instead > > > > > > of ActionMailer::Base. Are you overriding the UserNotifer class in > > > > > > your app? If so, are you having it inherit from ARMailer? If so, > > > > > > you'll get a superclass mismatch. I don't know if there's anyway to > > > > > > override a class and change it's parent class dynamically (might > > have > > > > > > to ask someone with better Ruby skills than me). > > > > > > > > 3) In forums/recent: > > > > > > > > forum_url failed to generate from > > > > > > > {:controller=>"forums", :id=>nil, :action=>"show"}, expected: > > > > > > > {:controller=>"forums", :action=>"show"}, diff: {:id=>nil} > > > > > > > Extracted source (around line #49): > > > > > > > > 46: = pluralize @users[post.user_id].sb_posts_count, > > > > > > > 'post' > > > > > > > 47: %td.body.entry-content > > > > > > > 48: %p.topic > > > > > > > 49: = link_to(h(post.forum_name), > > forum_path(post.forum)) > > > > > > > 50: \/ > > > > > > > 51: = link_to h(post.topic_title), forum_topic_path > > > > > > > (post.forum, post.topic) > > > > > > > 52: = post.body_html > > > > > > > Maybe you have a SbPost without an associate Forum object somehow? > > Looks > > > > > > like url_for is trying to call post.forum, and getting nil, so your > > > > > > forum_url has no forum.id or forum.to_param to use when generating > > the > > > > > > route. > > > > > > > > 4) When I run rake community_engine:test, I get this error: > > > > > > > > /usr/bin/ruby1.8 -I"lib:lib" > > "/var/lib/gems/1.8/gems/rake-0.8.7/lib/ > > > > > > > rake/rake_test_loader.rb" "vendor/plugins/community_engine/test/ > > > > > > > functional/posts_controller_test.rb" > > "vendor/plugins/community_engine/ > > > > > > > test/functional/tags_controller_test.rb" "vendor/plugins/ > > > > > > > community_engine/test/functional/moderators_controller_test.rb" > > > > > > > "vendor/plugins/community_engine/test/functional/ > > > > > > > sessions_controller_test.rb" > > "vendor/plugins/community_engine/test/ > > > > > > > functional/activities_controller_test.rb" "vendor/plugins/ > > > > > > > community_engine/test/functional/statistics_controller_test.rb" > > > > > > > "vendor/plugins/community_engine/test/functional/ /..... > > > > > > > Woah. That just indicates to me that something's wrong with your > > setup. > > > > > > Maybe something is calling APP_URL before it has been set, so > > Desert > > > > > tries > > > > > > to look for a file where that constant is defined, but finds none. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CommunityEngine" 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/communityengine?hl=en -~----------~----~----~----~------~----~------~--~---
