Never mind. I magically found my problem. I was moving things around changing names and such, and didn't restart the server. All is well.
On Feb 4, 8:00 pm, Polar <[email protected]> wrote: > I have a question that is probably related., but not quite, so I'll > post here. > > If add my own UsersController in RAILS_ROOT/app/controllers and add > actions to it, I am under the impression that the Engines plugin makes > this an extension of the CE UsersController. I'm not overriding any > functionality just adding to it. > > I'm using some Ajax calls to this controller. It seems that I cannot > the needed actions to be noticed during an Ajax call. I don't think > routes are my problem. > > I set up an action in my own UsersController called > "edit_club_member_info". what I think is happening is that the Engines > plugin is not "mixing" my UsersController with the one in the CE. > > The error I get is "Unknown action > > No action responded to edit_club_member_info. Actions: about, > activate, admin_required, advertise, assume, cache_action?, > change_profile_photo, commentable_comments_url, commentable_url, > create, create_friendship_with_inviter, css_help, dashboard, > deactivate, destroy, edit, edit_account, edit_pro_details, faq, > find_user, footer_content, forgot_password, forgot_username, > get_additional_homepage_data, get_matching_ui_locale, > get_recent_footer_content, get_sorted_langs_from_accept_header, > get_valid_lang_from_accept_header, homepage_features, index, invite, > login_by_token, metro_area_update, new, plaxo, popular_tags, > require_current_user, resend_activation, return_admin, rss_site_index, > set_locale, show, signup_completed, site_index, statistics, teaser, > toggle_featured, toggle_moderator, update, update_account, > update_last_seen_at, update_pro_details, welcome_about, > welcome_complete, welcome_invite, and welcome_photo" > > which only seem to be the actions in the CE UsersController. Is there > a config switch for this? > > Cheers, > -Polar > > On Feb 4, 4:08 pm, Bruno Bornsztein <[email protected]> > wrote: > > > This should work: > > > map.from_plugin :community_engine > > > map.resources :users, :member_path => '/:id', :nested_member_path => > > '/:user_id' do |user| > > user.resources :goosers > > end > > > (note that it has to go beneath the community_engine routes call) > > > On Mon, Feb 2, 2009 at 1:31 AM, Hein <[email protected]> wrote: > > > > I wish to extend the User with a new controller in a similar way that > > > clippings,photos,post etc. are currently in a route under "user_id". > > > > One way of setting up the route is by amending the vendor/plugins/ > > > community_engine/routes.rb and add the controller to the list as with > > > "GOOSERS" below. Is there any way to do this in the default rails app > > > routes file rather than editing the community_engine plugin file ? > > > > resources :users, :member_path => '/:id', :nested_member_path => > > > '/:user_id', :member => { > > > :dashboard => :get, > > > :assume => :get, > > > :toggle_moderator => :put, > > > :toggle_featured => :put, > > > :change_profile_photo => :put, > > > :return_admin => :get, > > > :edit_account => :get, > > > :update_account => :put, > > > :edit_pro_details => :get, > > > :update_pro_details => :put, > > > :forgot_password => [:get, :post], > > > :signup_completed => :get, > > > :invite => :get, > > > :welcome_photo => :get, > > > :welcome_about => :get, > > > :welcome_stylesheet => :get, > > > :welcome_invite => :get, > > > :welcome_complete => :get, > > > :statistics => :any, > > > :deactivate => :put > > > } do |user| > > > user.resources :friendships, :member => { :accept => :put, :deny > > > => :put }, :collection => { :accepted => :get, :pending > > > => :get, :denied => :get } > > > user.resources :photos, :collection => {:swfupload > > > => :post, :slideshow => :get} > > > user.resources :posts, :collection => {:manage => :get}, :member => > > > {:contest => :get, :send_to_friend => :any, :update_views => :any} > > > user.resources :clippings > > > user.resources :GOOSERS > > > user.resources :activities, :collection => {:network => :get} > > > user.resources :invitations > > > user.resources :offerings, :collection => {:replace => :put} > > > user.resources :favorites, :name_prefix => 'user_' > > > user.resources :messages, :collection => { :delete_selected > > > => :post } > > > user.resources :comments > > > end > > > > Regards > > > Hein --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
