examples/app/blog/controller/entry.rb in manveru-ramaze-2009.04 vs examples/app/blog/controller/entry.rb in manveru-ramaze-2009.04.01
- old
+ new
@@ -23,10 +23,13 @@
@pub_formatted = @entry.published.strftime(Blog.options.time_format)
@comment_count = number_counter(@entry.comments.count, 'comment')
end
+ def feed
+ end
+
def edit(slug)
login_required
@entry = Entry.from_slug(slug)
@tags = fetch_tags
end
@@ -54,21 +57,9 @@
end
def delete(slug)
login_required
Entry.from_slug(slug).destroy
- end
-
- def trackback(slug)
- render_partial(:index){|a|
- a.method = :index
- a.params << slug
- } + <<-COMMENT.strip
-I really have not the faintest idea about what this is supposed to do.<br />
-People tell me it's broken, but nobody tells me how to fix it :)<br />
-For now I'll just use it to show off how to modify an action that requires a
-method parameter.
- COMMENT
end
private
def fetch_tags