I haven't done much with lifecycles in awhile but I remember looking at the transition-buttons tag source for a clue on how to find available transitions.
On Sep 18, 8:55 pm, ryuuguu <[email protected]> wrote: > Is there a way to access the available_to status in DRYML tag? for > example if my context is model with lifecycle transition :offer and > the transition has an :available_to cluase is there way to only show a > tag if the transition is currently available? > > <section if="&transition.offer.available"> > click the button to make an offer > <transition-button transition="offer"/> > </section> > > Cheers, > Grant > > On Sep 18, 9:16 am, ryuuguu <[email protected]> wrote: > > > I looked further and I can see the lifecycle actions in pages.dryml > > but tlinks to them don't get displayed on other pages. I have > > available_to set and auto_actions :all in controllers. > > > Is this a bug/unimplemented feature? If so would the taglibs/ > > rapid_pages.dryml and taglibs/rapid_lifecycles.dryml be place for me > > to start looking to fix it? > > > Or does it work for other and I just have a bug in my model/ > > controller code? > > > On Sep 17, 11:00 am, ryuuguu <[email protected]> wrote: > > > > I am trying to understand lifecycles . I have an available to all > > > transition and the controller has auto_actions :all (code below) > > > > l thought that when I went to a job page I would see some link to > > > trigger the transition "do_debug", but nothing. I checked in the > > > database and the job has state 'open'. Is there a problem in my code? > > > in my understanding about transitions appearing on pages? > > > > #Model....job... > > > #---- Lifecycle ---# > > > lifecycle do > > > state :open, :debugxx > > > state :open, :default => true > > > transition :do_debug, { :open => :debugxx }, :available_to =>:all > > > do > > > end > > > end > > > > #controller > > > class JobsController < ApplicationController > > > hobo_model_controller > > > auto_actions :all > > > end > > > > Cheers, > > > Grant --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
