The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

mikimiki (9) [Avatar] Offline
#1
With the following code:

<% if state.default? %>
(Default)
<% else %>
<%= link_to "Make Default", make_default_admin_state_path(state) %>
<% end %>

after we update the db/seeds.rb file for the "New" state to have default attribute true, the feature fails because there is no link to follow. I changed my managing_states.feature to:

And I follow "Make Default" for the "Open" state
Then I should see the "Open is now the default state." message
And I follow "Make Default" for the "New" state
Then I should see the "New is now the default state." message

... I think ... (hope I am not missing something obvious.)