Hi... I'm new to hobo, first project actually. I'm having problems
with lifecycles. I would l like to implement what is described as the
"secure link" pattern in the manual. What I'd like to do is similar
to the "one-off" request described in under the Keys and secure links
section of the lifecycle part of the manual. I have livecasts that I
would like to allow invited guests to view without having to create an
account.
I have an Order that has_many :livecasts. I'm using an after_create
to create a number of livecasts depending on how many have been
ordered. I would like to have the customer fill out a form with email
addresses and have invites sent to those emails. I'm thinking a
lifecycle in livecasts, but I'm having trouble getting anywhere.
For starters, I can't even get the email with the key out. I have:
lifecycle do
state :assigned
state :unassigned, :default => true
transition :assign, { :unassigned => :assigned }, :params =>
[:email],
:available_to => "User", :new_key => true do
InviteMailer.invite("[email protected]", lifecycle.key)
end
transition :unassign, { :assigned => :unassigned }, :params =>
[:email],
:available_to => "User", :new_key => true do
InviteMailer.invite("[email protected]", lifecycle.key)
end
end
NoMethodError in LivecastsController#do_unassign
undefined method `invite' for InviteMailer:Class
RAILS_ROOT: /home/mike/projects/lnv
Application Trace | Framework Trace | Full Trace
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/action_mailer/
base.rb:400:in `method_missing'
/home/mike/projects/lnv/app/models/livecast.rb:32
Can someone point me in the right direction?
Thanks,
Mike
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en.