1

How do I create a collecton_select drop down to set the state of a resource in a form?

right now I have

<%= f.collection_select :state, Ticket.state.all, :event, :state_name_humanize, :prompt => true %>

(could pluginaweek make a 'getting started with state_machine' tutorial, I am really hot on using it, but I am a nube . . .)

ajbraus
  • 2,909
  • 3
  • 31
  • 45

1 Answers1

0

From the example a collection select should look like this: <%= f.collection_select :access_state_event, @user.access_state_transitions, :event, :human_event, :include_blank => "don't change" %>

Would also like to see a simple example/tutorial for active record

tonymarschall
  • 3,862
  • 3
  • 29
  • 52