0
는 3.0.9 (그리고 아마도 이전)이 코드는 더 이상 작동하지 않습니다 :atom.builder 피드 생성기에 링크 태그를 추가하려면 어떻게해야합니까? 레일에서
//feed.atom.builder
atom_feed :language => 'en-US' do |feed|
feed.title @title
feed.updated @updated
feed.link('href' => 'http://[REDACTED].superfeedr.com/', 'rel' => "hub")
...
end
정확한 오류는 다음과 같습니다의 스택 트레이스를 ArgumentError: wrong number of arguments (1 for 2)
:
/Users/[REDACTED]/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/fileutils.rb:302:in `ln'
[GEM_ROOT]@global/gems/rake-0.8.7/lib/rake.rb:1094:in `link'
[GEM_ROOT]/gems/actionpack-3.0.9/lib/action_view/helpers/atom_feed_helper.rb:146:in `method_missing'
app/views/feeds/index.atom.builder:4:in `block in _app_views_feeds_index_atom_builder___2426096422608134746_70129604713820_3077995114801777171'
[GEM_ROOT]/gems/actionpack-3.0.9/lib/action_view/helpers/atom_feed_helper.rb:123:in `block in atom_feed'
…
이 나를 위해 중요하다 here과 같이 superfeedr Pubsubhubbub를 설정하십시오. <link rel="hub" … >
태그를 원자 피드에 넣어야하지만 feed.link
은 더 이상 작동하지 않으므로 atom_feed_helper.rb
에서 제거됩니다. 이 링크 태그를 다시 표시하려면 어떻게해야합니까?
보석이 레일에 통합되었습니다. 원자 렌더링을 위해 외부 보석을 사용하지 않습니다. – coneybeare
XML로 전환했는데 제대로 작동했습니다. 왜 레일이 원자 제작자로부터 그것을 제거 할까? – coneybeare