<% content_for :javascript do %> <%= javascript_include_tag "http://maps.google.com/maps/api/js?sensor=true" -%> <%= javascript_include_tag "tag/tag" -%> <% end %>
<%= hidden_field_tag :all_tags, "'#{Tag.find(:all).map { |tag| tag.title }.join('\',\'')}'" %> <%= hidden_field_tag :collection_id, params[:collection_id] %> <%= form.hidden_field :id %> <%= form.hidden_field :latitude %> <%= form.hidden_field :longitude %> <%= form.label :title, :Title, {:class => 'big'} %>
<%= form.text_field :title, {:class => 'big'} %>
<%= form.label :description %>
<%= form.text_area :description %>
<%= form.label :address %>
<%= form.text_area :address, { :rows => 3} %>
<%= form.label :note %>
<%= form.text_area :note %>
<%= form.label :tags %>
<%= form.text_field :tags, { :autocomplete => "off", :class => 'tag_list', :value => (@album.tags.map{|tag|tag.title}.join(" ") unless @album.tags.nil?) } %>

Contains: <%= @album.photos.count %> photos