Bug #81
New State Machine not possible
Description
When trying to create a new transition....
NoMethodError in State_machine_transitions#new_for_state_machine_state Showing controller: state_machine_transitions; dryml-tag: new-for-state-machine-state-page where line #1 raised: undefined method `viewable_by?' for nil:NilClass Extracted source (around line #1): 0 Rails.root: /home/txinto/dev/gatATAC/uCANca Application Trace | Framework Trace | Full Trace app/models/state_machine_state.rb:39:in `view_permitted?' app/views/taglibs/auto/rapid/forms.dryml:223:in `block (3 levels) in form__for_state_machine_transition' app/views/taglibs/auto/rapid/forms.dryml:221:in `block (2 levels) in form__for_state_machine_transition' app/views/taglibs/auto/rapid/forms.dryml:221:in `block in form__for_state_machine_transition' app/views/taglibs/auto/rapid/forms.dryml:220:in `form__for_state_machine_transition' app/views/taglibs/auto/rapid/pages.dryml:2720:in `block (4 levels) in new_for_state_machine_state_page__for_state_machine_transition' app/views/taglibs/auto/rapid/pages.dryml:2719:in `block (3 levels) in new_for_state_machine_state_page__for_state_machine_transition' app/views/taglibs/front_site.dryml:31:in `call' app/views/taglibs/front_site.dryml:31:in `block (3 levels) in page_with_a3332a62807e' app/views/taglibs/front_site.dryml:29:in `block (2 levels) in page_with_a3332a62807e' app/views/taglibs/front_site.dryml:28:in `block in page_with_a3332a62807e' app/views/taglibs/front_site.dryml:27:in `page_with_a3332a62807e' app/views/taglibs/auto/rapid/pages.dryml:2702:in `block in new_for_state_machine_state_page__for_state_machine_transition' app/views/taglibs/auto/rapid/pages.dryml:2701:in `new_for_state_machine_state_page__for_state_machine_transition' app/views/taglibs/auto/rapid/pages.dryml:2708:in `block in new_for_state_machine_state_page' app/views/taglibs/auto/rapid/pages.dryml:2702:in `new_for_state_machine_state_page' Request Parameters: {"state_machine_state_id"=>"13-on"} Show session dump Show env dump Response Headers: None
Associated revisions
Fixes #81
History
#1 Updated by Txinto Vaz almost 10 years ago
- Assignee set to Txinto Vaz
- Target version set to v0.15
- Estimated time set to 1.00 h
#2 Updated by Txinto Vaz almost 10 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 100
It was a problem in the database contents. We have fixed it and have added some control mechanisms to do not allow the problem to occur again.
#3 Updated by Txinto Vaz almost 10 years ago
Applied in changeset ucanca|commit:73722ad8c7ca4b2bda82e6866528aeb21a288d41.
#4 Updated by Txinto Vaz about 9 years ago
- Status changed from In Progress to Resolved
#5 Updated by Txinto Vaz about 9 years ago
- Status changed from Resolved to Closed