0

Basically I have a text_field in RoR application that has required: 'true'.

The validation works in both development and production, but for some reason on Heroku I don't get the popup for a required field. ("please fill out the field")

If I run the server locally in production mode every thing fine.

Any ideas?
Thanks :)

Uri Agassi
  • 36,848
  • 14
  • 76
  • 93
Anton
  • 540
  • 3
  • 13
  • 1
    have you ran "rake assets:precompile"? – Babar Apr 30 '14 at 17:20
  • Are you asking about server side validation or client side validation or browser helpers(e.g. Firefox) for required fields – engineersmnky Apr 30 '14 at 18:10
  • @Babar, yes I did ran rake assets:precompile – Anton Apr 30 '14 at 18:25
  • @engineersmnky, client side validation that has predefined popup when empty. – Anton Apr 30 '14 at 18:27
  • @Anton what if you try text_area instead of text_field – Wally Ali Apr 30 '14 at 18:40
  • Well.. I did "rake assets:precompile" once again and pushed to Heroku and now the popup work on Firefox and Chrome, but not Safari. – Anton Apr 30 '14 at 18:47
  • @WaliAli, on the same form I do have text_area.. same issue. I found this: http://stackoverflow.com/questions/3004703/required-attribute-html5 It is sad that required: 'true' is wrong.. should be required : '' or 'required'. Tried it.. no luck in Safari.. (Firefox and Chrome all good) – Anton Apr 30 '14 at 19:00
  • check for alternate methods, as there are some things that are browser specific, like the way safari treats numeric text fields, I am sure it has something to do with that, good to know that is started working on two of the browsers – Babar Apr 30 '14 at 19:07

0 Answers0