0
Мое приложение запрашивает у пользователя адрес URL-адреса своего канала. Я пытаюсь передать URL канала Feedzirra для извлечения и анализа URL-адреса, но мне не повезло.Использование переменной модели для подачи питания через Feedzirra
Что я делаю неправильно:
Вот мое шоу метод от контроллера
# GET /scores/1
# GET /scores/1.json
def show
#@score=Score.find(params[:id])
@score = current_user.scores.find(params[:id])
url=:url
feed=Feedzirra::Feed.fetch_and_parse(url)
@entry=feed.entries
respond_to do |format|
format.html #show.html.erb
format.json {render json: @score }
end
Модель
class Score < ActiveRecord::Base
belongs_to :user
validates :user_id, presence: true
attr_accessible :title, :postFrequency, :editorialCalendar, :postTemplate,
:headlineVariations, :publishingScore, :professionalLogo, :colorScheme, :typographyStandards,
:seoPlugin, :googleAnalytics, :setupScore, :sb_promotion_1, :sb_promotion_2, :sb_recentPosts,
:sidebarScore, :leadMagnet, :emailCampaign, :productCreated, :landingPage, :monetizationScore, :url,
:name, :summary, :url, :published_at, :guid
end