Skip to content

Commit

Permalink
Partial commit of new RSS stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Gibbs committed Oct 21, 2009
1 parent 8cb4499 commit 7a71401
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ README.rdoc
Rakefile
app/controllers/notices_controller.rb
app/models/notice.rb
app/views/notices/index.atom.builder
app/views/layouts/with_feed.html.erb
app/views/notices/index.html.erb
app/views/notices/list_by_api_key.html.erb
app/views/notices/list_notices.atom.builder
app/views/notices/list_notices.html.erb
app/views/notices/show.html.erb
generators/cheaptoad_migration/USAGE
Expand Down
1 change: 1 addition & 0 deletions app/controllers/notices_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def index
def list_notices
@api_key = params[:api_key]
@notices = Notice.find_all_by_api_key(@api_key)
render :layout => "with_feed"
end

def show
Expand Down
6 changes: 6 additions & 0 deletions app/views/layouts/with_feed.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<head>
<%= auto_discovery_link_tag :atom, "/notices/list_notices.atom?api_key=#{@api_key}" %>
</head>
<body>
<%= yield %>
</body>
File renamed without changes.

0 comments on commit 7a71401

Please sign in to comment.