Web is impacting us all the time. Do we need to consider it carefully as a web application developer?
Rails, as a new generation of rapid development framework, has brought us too many surprises. streamlined, which is developed based on rails, can be achieved with a simple command.
At the beginning of the business, it was very hard to show the weak, maybe buying a vs2005 will bring us a heavy burden, why do we not consider using rails? The technical threshold may be one of the main reasons. Now, I want to learn from this process by taking advantage of the current capital. Maybe Web2.0 can bring us a very good opportunity ......
Today, I used feedtools to do a small experiment on RSS reader, hoping to make it a good start.
First, install feedtools and gem install feedtools.
Generate the Controller class, Ruby script/generate rssreader, generate rss_reader_controller, and add the index method to it. The result is as follows:
Require'Feed _ tools'
ClassRssreadercontroller <applicationcontroller
DefIndex
@ Slashdot_feed= Feedtools: feed. Open ('Http: // www.cnblogs.com/rss.aspx')
End
End
Add index. rhtml. The result is as follows:
<% =@ Slashdot_feed. Title %><Br>
<% =@ Slashdot_feed. Description %><Br>
<% for feed in
@ slashdot_feed . items %>
<Href="<% = Feed. Link %>"
Target="_ Blank"><% = Feed. Title %></A> <br>
<% = Feed. Description %><Br>
<%End%>
In this way, a simpleRSSReader, isn't it nice?