Search Results

Search found 2 results on 1 pages for 'snlsn'.

Page 1/1 | 1 

  • Prohibit ampersand in Rails form

    - by snlsn
    NOT a Rails 3 issue In a Contact model I have a company_name attribute. For reasons that don't matter to this question, I want to prohibit an ampersand character. We have a lot of clients with ampersands in their company name, and users forget they aren't allowed to use this character. This isn't an html sanitize issue. I don't care about whitespace or CDATA or anything. The entries in this field are plain text and I don't want an ampersand to be entered in this one field in any way, shape or form. I assume a validation on the model is the way to go. I have tried validates_exclusion_of. I have tried validates_format_of. No success. I'm unsophisticated when it comes to regex, so I might be doing things very wrong. But the bottom line is - I need to prevent a user from entering that "&" character in the company_name field. Thanks a million. Steve

    Read the article

  • page content not displayed in Explorer

    - by snlsn
    The beginnings of a site here: http://qaa.miltonfame.org/ html and css pass validation tests Page displays fine in all Mac browsers I have tried (Safari, Firefox, Camino) Page displays fine in Windows 7 FireFox Nothing but background renders in Explorer 8 Windows 7 (and in other Explorer versions via screenshot services.) View Source shows that Explorer is getting the content - it's just not appearing on screen. No idea how to approach addressing this - any suggestions would REALLY be appreciated. Thanks a million.

    Read the article

1