RSS Feed and iPhone problem
As you can see, My blog just have RSS feed. @wiennat asked me that why I don't have RSS. So I did it
. It's very simple and easy to create RSS feed. But if you google it using keyword "rss", you will get many unrelated results. Also, I used Rails 2.3.2 and many examples used lower version and it didn't work with 2.3.2. For you guys who use will_paginate, creating only .rss.builder file is not enough because it will show only posts in that page. You can define new method in the controller and map the route to it. Example
"articles_controller.rb"
def feed
@articles=Article.find(:all)
end
"routes.rb"
map.connect 'articles/feed.:format', :controller => 'articles', :action => 'feed'
Remember that the order of map.connect is important. The top most has higest priority. So, you have to put this line before "map.connect ':controller/:action/:id". Good luck with RSS.
About my iphone, today I cannot use internet from my iphone. I searched and found that it might because my old iphone setting. I disable GPRS in my old one and when I sync it with the new one it still disable. It's very easy to fix this problem just reset it.
Step:
- Go to Settings
- Choose General
- Choose Reset
- Choose Reset Network Settings
- It works!
Have a nice weekend!
You should specify default format also.