note as text
This commit is contained in:
parent
5fe736ab28
commit
9611a27e0c
4 changed files with 12 additions and 4 deletions
|
@ -13,7 +13,7 @@ class Note < ActiveRecord::Base
|
|||
|
||||
validates :note,
|
||||
:presence => true,
|
||||
:length => { :within => 0..255 }
|
||||
:length => { :within => 0..5000 }
|
||||
|
||||
validates :attachment,
|
||||
:file_size => {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
%div
|
||||
= f.label :note
|
||||
%cite (255 symbols only)
|
||||
%cite
|
||||
%br
|
||||
= f.text_area :note, :size => 255
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue