validates :title,
:presence => true,
:length => { :within => 0..255 }
+
+ validates :description,
+ :presence => true,
+ :length => { :within => 0..2000 }
scope :critical, where(:critical => true)
scope :non_critical, where(:critical => false)
#
# id :integer not null, primary key
# title :string(255)
+# description :text
# assignee_id :integer
# author_id :integer
# project_id :integer
%li= msg
.clearfix
- = f.label :title, "Issue Message"
- .input= f.text_area :title, :maxlength => 255, :class => "xxlarge"
+ = f.label :title, "Issue Subject"
+ .input= f.text_field :title, :maxlength => 255
+
+ .clearfix
+ = f.label :description, "Issue Description"
+ .input= f.text_area :description, :maxlength => 2000, :class => "xxlarge"
.clearfix
= f.label :assignee_id
-%h3
- Issue ##{@issue.id}
+%h3
+ @issue.title
%small
created at
= @issue.created_at.stamp("Aug 21, 2011")
%hr
- %div= simple_format @issue.title
+ %div= simple_format @issue.description
.issue_notes#notes= render "notes/notes", :tid => @issue.id, :tt => "issue"
create_table "issues", :force => true do |t|
t.string "title"
+ t.text "description"
t.integer "assignee_id"
t.integer "author_id"
t.integer "project_id"