danmaclean/gee_fu — pull request #19 by mrship (2013-04-16 14:03:36+00:00)
Title: Edit a feature, er, feature

@danmaclean this PR adds a cucumber feature to test editing a genome feature.

It's also simplified the logic for the +/- on the radio buttons on the edit page from:
```

<%= f.label "Strand" %>

<% if @feature.strand == '+'%>
<%= label_tag(:strand_plus, "+") %>

<%= label_tag(:strand_minus, "-") %>

<% else %>
<%= label_tag(:strand_plus, "+") %>

<%= label_tag(:strand_minus, "-") %>

<% end %>
```
to:
```
<%= f.input :strand, as: :radio_buttons, collection: ["+", "-" ], item_wrapper_class: "inline" %>
```
which is much cleaner.