How to design a summary page for the backend in Ruby on Rails? -
i have rails application number of controllers such users
, sessions
, preferences
, , pages
.
i designed these controllers in restful way because authors best way it.
but need set summary / dashboard page user backend , wonder how in restful way.
right have custom action in userscontroller
:
def summary @title = "summary page" end
this works not restful @ all.
an alternative approach set new summariescontroller
single show
action. 5 lines of code in controller.
what best way this?
i dashboardscontroller
single action wouldn't unreasonable. not has restful; things static pages , can't (as not resources).
ruby-on-rails ruby
No comments:
Post a Comment