Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. form do |f|
  2. f.inputs do
  3. f.input :name, required: true
  4. f.input :servesCuisine
  5. f.input :description
  6. f.input :currenciesAccepted, as: :select, collection:Restaurant.available_currencies
  7. f.input :priceRange, as: :select, collection: Restaurant.price_range
  8. f.input :paymentAccepted
  9. f.input :email, as: :email
  10. f.input :telephone, as: :phone
  11. f.input :faxNumber, as: :phone
  12. f.input :longitude
  13. f.input :latitude
  14. f.input :image, as: :file
  15. end
  16. f.actions
  17. end
  18.  
  19. f.input :servesCuisine, as: :string
  20. f.input :description, as: :string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement