Right, I hadn't understood  Matts answer.

Well, I changed '_' to '-' and it worked.
Unfortunately other issues occured.

My index.dryml (for Lead model) has section:
<controls:>
          <transition-buttons/>
</controls:>

And model has new transitions
    transition :win,      { :bid => :final_approval } , :params =>
[:proposal, :fptm, :enddate, :invoice_address, :contract, :special_terms, 
:teamsize, :duration, :value, :resource_manager, :contract_signed], 
:available_to
=> :user
    transition :all_approved, { :final_approval => :won}, :params =>
[:reason, :project_sponsor], :avialable_to => "User.decider"
    transition :confirm_resources, { :final_approval
=> :final_approval }, :params =>
[:resource_confirmation], :avialable_to => "User.resourcer"

The thing is when I call :win transition, Lead changes state
into :final_approval but when app returns to lead page no transition
buttons are visible despite the fact user is in proper named_scope.
When I try to get to all_approved transition by url (ex. /leads/372-
leadname/all-approved) instead of getting to all_approved.dryml (with
form and transition buttons) I get to error: Unknown action, with list
of possible actions (with do_all_approved included)

Any idea why it happens?

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