Sign up

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %> <%= devise_error_messages! %>
<%= f.label :email %>
<%= f.email_field :email, :autofocus => true %>
<%= f.label :password %>
<%= f.password_field :password %>
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation %>
<%= f.label :role %>
<%= select("user", "role_id", Role.all.collect {|p| [ p.role_description, p.id ] }, {:prompt =>'Select role'})%>
<%= f.label :SelectTeam %>
<%= f.select("team_id", Team.all.collect{|c| [c.name, c.id]}, {:prompt =>'Select team'})%>
<%= f.label :firstname %>
<%= f.text_field :firstname %>
<%= f.label :lastname %>
<%= f.text_field :lastname %>
<%= f.label :phoneno %>
<%= f.text_field :phonenum %>
<%= f.label :address %>
<%= f.text_field :address %>
<%= f.submit "Sign up" %>
<% end %> <%= render "devise/shared/links" %>