Displaying 1 result from an estimated 1 matches for "new_invitation_path".
2010 Feb 10
16
nil object - can anyone help?
...tation sent successfully."
      redirect_to hub_url
    else
      render :action => ''new''
    end
  end
end
And finally, the invite count, made visible to the user:
	<% if @user.invitation_limit > 0 %>
						<%= link_to ''Send invitation!'', new_invitation_path %>
						<% end %>
THis page, for some odd reason will not render. Instead I get:
You have a nil object when you didn''t expect it!
The error occurred while evaluating nil.>
Can anyone see the obvious mistake? I could do with a fresh pair of
eyes on this... :-)
Thanks a lot!...