Thanks Bruno, I figured I was missing something obvious... I think I've been testing by hitting UserController#invite and editing InvitationsController#new....so, that explains some of what is going on.
I have now set all the invite links I have to go to invitations/new, the user/invite controller didn't setup a new Invitation, so that made things awkward for what I wanted to do. This seems to work fine. Is there a specific reason that there are 2? Cole On Fri, Oct 22, 2010 at 8:26 AM, Bruno Bornsztein <[email protected]> wrote: > What URL are you hitting to test this? There are two places where > invitations can be created: InvitationsController#new and > UsersController#invite (actually these are probably redundant, but that's > another question). > So you could go to /invitations/new or /username/invite and hit two > different actions. > Thanks, > Bruno > On Thu, Oct 21, 2010 at 5:32 PM, pixel <[email protected]> wrote: >> >> Hey guys, >> I'm trying to include a default invite message when users go to invite >> their friends. >> I created app/controllers/invitations_controller.rb and created a new >> method in my new controller. >> Now if I try to set @invitation.message = "A default message" nothing >> happens. I've restarted the server. No dice. >> http://gist.github.com/639507 >> I even tried to comment out the creation of the new invitation >> (#...@invitation = Invitation.new) to attempt to get an error message, >> low and behold, no error message. >> >> So I'm clearly not understanding how something works here. Is desert >> loading my controller method AND the one defined in community engine? >> Is there some better way to accomplish what I'm trying to do? >> >> Cole >> >> -- >> 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. >> > > -- > 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. > -- 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.
