Skip to content

Instantly share code, notes, and snippets.

@markprovan
Created August 16, 2012 18:02
Show Gist options
  • Select an option

  • Save markprovan/3372168 to your computer and use it in GitHub Desktop.

Select an option

Save markprovan/3372168 to your computer and use it in GitHub Desktop.
form.html.erb
<div class="span4">
<%= simple_form_for @project_membership do |f| %>
<%= f.association :user, :prompt => "Select a User" , :label => false %>
<%= f.hidden_field :project_id, :value => @project.id %>
<%= f.submit "Add User", :class => "btn btn-small btn-success pull-right" %>
<% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment