Skip to content

Commit 5df55fb

Browse files
committed
Joe still confused, call category level instead. (Joe is a nickname for all editors)
1 parent 8af8a4a commit 5df55fb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

vendor/plugins/tutorials/app/models/tutorial.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ class Tutorial < ActiveRecord::Base
44

55
acts_as_indexed :fields => [:title, :description, :category, :author, :content]
66

7+
alias_attribute :level, :category
8+
79
validates_presence_of :title
810
validates_uniqueness_of :title
911

vendor/plugins/tutorials/app/views/admin/tutorials/_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
<div class='hemisquare' style='padding: 0px; margin: 10px 0px 10px 60px'>
1818
<div class='field' style='margin-bottom: 0px'>
19-
<%= f.label :category -%>
20-
<%= f.select :category, Tutorial::CATEGORIES, :class => 'widest'-%>
19+
<%= f.label :level -%>
20+
<%= f.select :level, Tutorial::CATEGORIES, :class => 'widest'-%>
2121
</div>
2222

2323
<div class='field' style='margin-bottom: 0px'>

0 commit comments

Comments
 (0)