examples/app/blog/controller/entry.rb in manveru-ramaze-2009.04.18 vs examples/app/blog/controller/entry.rb in manveru-ramaze-2009.04.22

- old
+ new

@@ -23,13 +23,10 @@ @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 @@ -57,9 +54,21 @@ 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