Skip to content

Commit

Permalink
Add get '/rss' in config/routes.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
syhsyh9696 committed Nov 25, 2017
1 parent 70caef3 commit 32e19bb
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/controllers/welcome_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ class WelcomeController < ApplicationController
def index
# flash[:notice] = "早安!你好!"
end

def rss
# Add rss controller here
end
end
2 changes: 1 addition & 1 deletion app/views/common/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="col-lg-12">
<ul class="list-inline">
<li><a href="http://syhdaily.com" onclick="pageTracker._link(this.href); return false;">Blog</a></li>
<li><a href="http://feeds.feedburner.com/">RSS</a></li>
<li><%= link_to 'Rss', rss_path %></li>
<li><a href="https://twitter.com/syhsyh9696">Twitter</a></li>
<li><a href="https://github.com/syhsyh9696/javlibrary-rails/">GitHub</a></li>
</ul>
Expand Down
47 changes: 47 additions & 0 deletions app/views/welcome/rss.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<div class="col-lg-12 text-center">
<h2>AVDICT RSS SUPPORT PAGE</h2>
<hr class="star-primary">
</div>

<div class="col-lg-8 col-lg-offset-2">
<p>
Avdict provides RSS service(Avdict RSS) to save your time.
</p>
<p>
AVDICT RSS feeds can, for example, allow you to keep track of many different actors in a single RSS aggregator.
AVDICT use RSS feeds to publish frequently updated information, such as new release videos or the actor who were newly added in the actor list.
</p>
<p>
You can also customize your own RSS feeds by Follow some actors in AVDICT. The customized feeds publish your following's recent published videos.
</p>
<br>
<p>
AVDICT 提供多个高效的 RSS 服务
</p>
<p>
AVDICT RSS 服务可以做到很多功能, 例如它可以让你在一个新闻聚合器中同时追踪多个你喜欢的演员。
同时它利用 RSS 服务去发布一定频率更新的信息, 例如最新的影片和刚加入演员列表的新演员。
</p>
<p>
当然你可以自己定制你的个性 RSS 源, 定制这个源你只需要在 AVDICT 里 Follow 你喜欢的演员, 个性的 RSS 源将会发布你追踪的演员最近的影片。
</p>
<br>

<table class="table table-striped table-hover table-bordered">
<thead class="thead-dark">
<tr>
<th>RSS Name</th>
<th>RSS Link</th>
</tr>
</thead>
<tbody>
<% if current_user %>
<tr>
<td>The customized RSS</td>
<td><%= link_to 'Customized RSS', user_path(current_user) + '/feed' %></td>
</tr>
<% end %>
</tbody>
</table>

</div>
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@
resource :relationships, only:[:create, :destroy]

root 'welcome#index'
get '/rss', to: 'welcome#rss'
end

0 comments on commit 32e19bb

Please sign in to comment.