Rails mojeID Example

<% if flash[:alert] %>
<%= h(flash[:alert]) %>
<% end %> <% if flash[:error] %>
<%= h(flash[:error]) %>
<% end %> <% if flash[:success] %>
<%= h(flash[:success]) %>
<% end %>
'> Identifier: <%= text_field_tag("openid_identifier", nil, :class => "openid") %> <%= select_tag('openid_domain', options_for_select(['.mojeid.cz'])) %> <%= submit_tag "Get data" %>
'> <% if @moje_id %> <% MojeIDAttributes::AVAILABLE_ATTRIBUTES[0..3].each do |attribute| %> <% end %>
<%= label_tag("moje_id_attributes[#{attribute}]", attribute) %> <%= text_field_tag("moje_id_attributes[#{attribute}]", @moje_id.get_attribute_value(attribute)) %>
<%= submit_tag "Save data" %>
<%= hidden_field_tag('openid_identifier', @moje_id.identifier) %> <% end %>