You should put your business logic into your model. such as
class Post
def options
active ? Post::A_OPTIONS : Post::B_OPTIONS
end
end
then in your view,
<% @post.options.each do |option| %>
<%= radio_button_tag 'option', option, @option == option %>
<%= option.humanize %>
<% end %>
In this case, your view is isolated from how the options are generated, and both options logic and view logic are simple and clean