I want to be able to write a comment as a guest or as a registered user with devise. My comment model contains :title, :content, :user_id, :guest_email, :guest_website and :write_as_guest as aboolea
I have several pages in my form where I need to validate Email addresses. Rather than set ValidationExpression in each page , I want to store the Regex string in a Constants class as a string constant
So I\'m starting to really like the concept of defensive copies for the purpose of making code more \"secure\", but unfortunately they seem to inherently conflict with the wonderful separation of conc
I\'ve got the following setup: class Vote < A开发者_StackOverflow中文版ctiveRecord::Base belongs_to :voteable, :polymorphic => :true, :counter_cache => true
As far as i know there are many other questions similar to title, but my main reason for asking this question is i want my validatio开发者_StackOverflow中文版n as perfect as i want. Here is my explana
I have the following custom function, that checks if an email has a gmail.com account ... function check_email($mail) {
I googled for a long time, but didn\'t find full answer for my problem. In my app I use inherited_resources. So, I want to override redirect after succefull creation of Comment object, so I write:
I am learning how to use code igniter and following tutorials. As this is my first time to use MVC, I\'m having some trouble implementing the send function. I am doing a tutorial on how send a newslet
I know that a passwordbox in wpf could not use the Validation.ErrorTemplate, anyhow i have to show the user, that something is wrong.
How can I validate a field in a vaadin table? For example the year field with a regex: val persons: BeanContainer[Int, Person] =