I'm on Rails 3.0.3 and Hobo 1.3 pre26.

I am using the create step of the lifecycle to create new "events".
The problem I have is that when the user clicks "Submit" (the create
lifecycle step), the only thing that is saved to the database is the
lifecycle state.  The rest of the form data is not used.

I have an event model with this lifecycle:
 lifecycle do

          state :submitted, :approved, :needs_info, :denied

          create :submit, :become => :submitted, :available_to
=> :all, :user_becomes => :requestor

          transition :approve, { :submitted => :approved}, :available_to
=> :all do
                  UserMailer.user_notify(:requestor, "Request
approved.").deliver
          end

          transition :deny, {:submitted => :denied}, :available_to => :all
do
                  UserMailer.user_notify(:requestor, "Request denied.").deliver
          end

          transition :reject, {:submitted => :needs_info}, :available_to
=> :all do
                  UserMailer.user_notify(:requestor, "Action required.").deliver
          end

          transition :submit, {:needs_info => :submitted}, :available_to
=> :requestor do
              UserMailer.user_notify(:requestor, "Your request has been
resubmitted.")
          end
  end

The events_controller.rb has this:

class EventsController < ApplicationController

  hobo_model_controller
  auto_actions :all

 def submit
    if !params["event_request_type"] then
      redirect_to(home_page)
    end
        creator_page_action :submit
  end

  def do_submit
    do_creator_action :submit, :redirect => home_page do
      flash[:notice] = 'Executive event request submitted!'
    end

  end

Can someone spot what I'm missing?  Do I need to pass the form
parameters to do_creator_action?  Thanks!

Brian

-- 
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.

Reply via email to