Displaying 1 result from an estimated 1 matches for "feedidentity".
2006 Nov 30
1
Rails validation - newbie
...8: <p><select name="feeds[feeds][]" id="feeds_feeds[]"
multiple="multiple" size="5">
39: <% @feeds.each do |feed| %>
40: <option value="<%= feed.id %>" <% if
(@user.subscriptions.find(:all, :conditions => "FeedIdentity =
#{feed.id}").length != 0) %>selected="selected"<% end %>><%= feed.Title
%></option>
41: <% end %>
42: </select>
The validation that im applying within my model is:
validates_format_of :Email,
:with =>
/^([^@\s]+)@...