You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jon Crawford edited this page Jan 4, 2019
·
1 revision
Customized view
Let's say we have the following resource:
app/admin/articles_admin.rb
We want to create a customized index. We are going to create a new folder into `app/views/admin/articles then if we want to edit our file, creating a new file called index.haml (Or the extension which you are using).
%h4 Number of articles
%p= @articles.count
In our articles_admin.rb file we define our action called index.