I have a model, view and controller for a view (Feed
) that doesn't have any "local" data. That is, the data is grabbed via a web service call to a client site and rendered in a local view.
The local site needs to verify that the object to grab from the remote site is valid (by verifying that the User
that owns the Feed
has a valid account) and then it displays it.
I had the logic to grab the data from the remote feed in a Feed
model. Then the Feed
controller takes the URL param for the feed id, passes it to the model getFeed
function, and displays it.
However, since there's no table, the Feed.getFeed(params[:feed_id])
call in the controller was returning an error saying there is no table Feed
.
Should I delete the Feed
model and just make the getFeed
function a helper function? What's the proper Rails way to deal with models with no table?