Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed abstract for description

  • Loading branch information...
commit 9052c3ebeb10983d961cd4f64f1b36e228279a63 1 parent 0c3d2d9
Emerson Vinicius authored
View
2  app/views/default/panel/posts/_form.haml
@@ -8,7 +8,7 @@
= form.inputs do
= form.input :title
= form.input :body
- = form.input :abstract
+ = form.input :description
= form.input :tag_list, :as => :string
= form.buttons
View
11 db/migrate/20110429042429_change_abstract_for_description_to_post.rb
@@ -0,0 +1,11 @@
+class ChangeAbstractForDescriptionToPost < ActiveRecord::Migration
+ def self.up
+ remove_column :posts, :abstract
+ add_column :posts, :description, :text
+ end
+
+ def self.down
+ add_column :posts, :abstract, :text
+ remove_column :posts, :description
+ end
+end
View
2  features/step_definitions/when_steps.rb
@@ -29,6 +29,6 @@
When /^I fill the post form$/ do
When %{I fill in "Title" with "My post"}
When %{I fill in "Body" with "My test post"}
- When %{I fill in "Abstract" with "My test post"}
+ When %{I fill in "Description" with "My description of test post"}
When %{I fill in "Tag list" with "test, general"}
end
Please sign in to comment.
Something went wrong with that request. Please try again.