initial checkin of full application
This commit is contained in:
1
app/views/feed/_index.json.erb
Normal file
1
app/views/feed/_index.json.erb
Normal file
@ -0,0 +1 @@
|
||||
<%= "#{@callback}(" if @callback %><%= raw(@channel_output) %><% if @success %>,"feeds":<%= raw(@feed_output) %>}<% end %><%= ')' if @callback %>
|
2
app/views/feed/index.csv.erb
Normal file
2
app/views/feed/index.csv.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<% if @success %><%= CSV.generate_line @csv_headers %><% @feed_output.each do |feed| %><% row = [] %><% @csv_headers.each do |attr| %><% row.push(feed.send(attr)) %><% end %><%= CSV.generate_line row %><% end %><% else %>-1<% end %>
|
||||
|
1
app/views/feed/index.html.erb
Normal file
1
app/views/feed/index.html.erb
Normal file
@ -0,0 +1 @@
|
||||
<%= render :partial => 'index.json.erb' %>
|
1
app/views/feed/index.json.erb
Normal file
1
app/views/feed/index.json.erb
Normal file
@ -0,0 +1 @@
|
||||
<%= render :partial => 'feed/index.json.erb' %>
|
2
app/views/feed/index.xml.erb
Normal file
2
app/views/feed/index.xml.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<%= raw(@channel_output) %><% if @success %>
|
||||
<%= raw(@feed_output) %></channel><% end %>
|
2
app/views/feed/show.csv.erb
Normal file
2
app/views/feed/show.csv.erb
Normal file
@ -0,0 +1,2 @@
|
||||
<% if @success %><%= CSV.generate_line @csv_headers %><% row = [] %><% @csv_headers.each do |attr| %><% row.push(@feed.send(attr)) %><% end %><%= CSV.generate_line row %><% else %>-1<% end %>
|
||||
|
Reference in New Issue
Block a user