Displaying 3 results from an estimated 3 matches for "admin_comment".
2009 Nov 11
4
Schema dump does not reflect column size limit
...| int(11) | YES | | NULL | |
| author_comment | text | YES | | NULL | |
| created_at | datetime | YES | | NULL | |
| confirmed | tinyint(1) | YES | | NULL | |
| admin_comment | text | YES | | NULL | |
| confirmed_at | datetime | YES | | NULL | |
| bet_id | int(11) | YES | MUL | NULL | |
| user_id | int(11) | YES | MUL | NULL |...
2011 Jun 15
1
.new_record? and :_destroy
...omment was set in my comment view partial (I want to
delete a comment), it seems like this iterating over the comments with
new_record? somehow resets that :_destroy flag.
Am I doing something wrong here? Or, could someone give me a hint on a
more simple way to do this validation.?
Thanks !!
new_admin_comments = false
self.comments.each do |comment|
new_admin_comments = true if comment.new_record? &&
comment.admin_comment == true
end
if admin_email.blank? && new_admin_comments == true
errors.add_to_base("Admin email address required.")
end
--
You received this message...
2012 Oct 23
0
route problem
...id(.:format) admin/users#show
PUT
/admin/users/:id(.:format) admin/users#update
DELETE
/admin/users/:id(.:format) admin/users#destroy
batch_action_admin_comments POST
/admin/comments/batch_action(.:format)
admin/comments#batch_action
admin_comments GET
/admin/comments(.:format) admin/comments#index
POST
/admin/comments(.:format)...