Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Padrino::Validation::HTML5

816 views

Published on

  • Be the first to comment

  • Be the first to like this

Padrino::Validation::HTML5

  1. 1. Padrino::Validation::HTML5 by @aereal (?:id:aereal)
  2. 2. Who am I?@aereal?:id:aerealGitHub: aereal
  3. 3. Activitiesmake kaminari.gem independent Rails/RailitiesPadrino document translation
  4. 4. Web App in Ruby World http://padrinorb.com/ http://jp.padrinorb.com/ (ja)
  5. 5. Padrino is ... the godfather of sinatra https://github.com/padrino/padrino-framework#readme
  6. 6. Validation with
  7. 7. Write ValidationsIn View (HTML5)In Model
  8. 8. DRY =Don’t RepeatYourself
  9. 9. ActiveModel::ValidationsAcceptanceConfirmationInclusion/ExclusionFormat (Numericality)LengthPresence
  10. 10. P::H::FBP = PadrinoH = HelpersFB = FormBuilders
  11. 11. P::H::FB
  12. 12. P::V::H5P = PadrinoV = ValidationH5 = HTML5
  13. 13. P::V::H5Validations and their options from ActiveModelinjects HTML5 form validationsi.e. PresenceValidation -> input[required=required]
  14. 14. See Alsohttp://padrinorb.com/http://jp.padrinorb.com/ (Translators welcome!)http://git.io/padrino-v-h5https://github.com/kentaro/HTML-ValidationRules
  15. 15. Welcome
  16. 16.  to
  17. 17.  Underground
  18. 18. Padrino 黒ミサ in 京都http://atnd.org/events/214422011/12/10 13:00 - 15:00キャンパスプラザ京都#padrino_sabbath

×