%= form_for(@restaurant) do |f| %>
<% if @restaurant.errors.any? %>
<%= pluralize(@restaurant.errors.count, "error") %> prohibited this restaurant from being saved:
<% @restaurant.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.label :categories %>
<%= f.text_field :categories, {:value => @restaurant.restaurant_categories.map(&:name).join(', ')} %>
<%= f.label :favorite_dish %>
<%= f.text_field :favorite_dish %>
<%= f.label :neighborhood %>
<%= f.text_field :neighborhood %>
<%= render 'addresses/embedded_form', :address => @restaurant.address %>
<%= f.label :url %>
<%= f.text_field :url %>
<%= f.label :user %>
<%= f.text_field :user %>
<%= f.label :comment_url %>
<%= f.text_field :comment_url %>
<%= f.submit %>
<% end %>