photomix/app/views/photos/_form.html.erb
Rémi Vanicat 654ce95db4 Use javascript helper method in view instead, instead of hardwired path.
Balder can be run as a sub path of another site. This require the use
of rails helper method to take care of the needed path modification.

It's also useful for using asset hosts.
2010-11-21 12:32:35 +01:00

14 lines
449 B
Plaintext

<% content_for :javascript do %>
<%= javascript_include_tag "tag/tag" -%>
<% end %>
<%= hidden_field_tag :all_tags, @tags %>
<%= form.label :title %><br />
<%= form.text_field :title %><br />
<br />
<%= form.label :tag_list %><br />
<%= form.text_field :tag_list, { :autocomplete => "off", :class => 'tag_list'} %><br />
<br />
<%= form.label :description %><br />
<%= form.text_area :description %><br />
<br/>
<p>On disk: ~/<%= @photo.path %></p>