|
12345678910111213141516 |
- = form_for @subscription do |f|
- %h2 Add a feed
-
- -if @subscription.errors.any?
- #error_explanation
- %h2= "#{pluralize(@subscription.errors.count, "error")} prohibited this feed from being saved:"
- %ul
- - @subscription.errors.full_messages.each do |msg|
- %li= msg
-
- .field
- = f.label "URL"
- = f.text_field :feed_url, :size => 120
- = f.hidden_field :layer_id, :value => @subscription.layer.id
- = f.submit 'Save', :id => 'submit'
- .actions
|