search for: invitationscontroller

Displaying 3 results from an estimated 3 matches for "invitationscontroller".

2011 May 21
5
simple home_url question
A silly as this sounds, I''m not sure how to set the route for the home_path and home_url helpers. Google has nothing on this. Where do I define what those paths should resolve to? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2008 Oct 18
0
Link_to + PUT + restful routes problem
...; Accept'', invitation_path, :method => :put, :id => ''1'', :command => ''accept'' %> I can get into the Update action but the parameters are lost. The :id is the of the logged in user instead of 1, and the :command parameter is gone. Processing InvitationsController#update (for 127.0.0.1 at 2008-10-18 23:28:34) [PUT] Session ID: ....65754... Parameters: {"authenticity_token"=>"e88240...96", "_method"=>"put", "action"=>"update", "id"=>"5", "controller"=>...
2010 Feb 10
16
nil object - can anyone help?
...dd_to_base ''You have reached your limit if invitations to send'' end def generate_token self.token = Digest::SHA1.hexdigest([Time.now, rand].join) end def decrement_sender_count sender.decrement! :invitation_limit end end end An invitations controller: class InvitationsController < ApplicationController def new @invitation = Invitation.new end def create @invitation = Invitation.new(params[:invitation]) @invitation.sender = user if @invitation.save flash[:notice] = "Thanks - Invitation sent successfully." redirect_to hub_url...