문제

I want to have a page where a User can enter a URL and on the back the page will be parsed and show back some information found in the page.

I am wondering what would be a naming convention for this case, given the fact that there is no model associated with this. It is just a pure processing of a URL and show some information back.

I was thinking giving the controller the name ParseController, but I am also thinking about the convention of giving plural names for controllers.

도움이 되었습니까?

해결책

you could name it PagesController and have an action named parse

class PagesController < ApplicationController
  def parse
  end
end

And if you ever wanted to have a model, it could be called Page

Its just what i think. But there are many other names that you could call it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top