New Clip <%= form_for(@clip, :url => { :action => "create" }) do |f| %> <%= f.error_messages %>
<%= f.label(:title) %>
<%= f.text_field(:title, :value => @clip.title, :required=>"required") %>
<%= f.label(:language) %>
<%= f.collection_select("language", supported_languages, :lang, :title, :selected => (@clip.language || "text")) %>
<%= f.label(:lifespan) %>
<%= f.collection_select(:lifespan, @clip.lifespans, :first, :first, :selected=>(@clip.lifespan || "Forever")) %>
<%= f.label(:private) %>
<%= f.check_box(:private, :value => @clip.private) %>
<%= f.label(:clip) %>
<%= f.text_area(:clip, :class=>"span10", :rows=>"15", :value => @clip.clip, :required=>"required") %>
<%= f.submit(:class=>"btn btn-primary") %>
<% end %>