-
Notifications
You must be signed in to change notification settings - Fork 2
Generating cells
Petr Marek edited this page Oct 21, 2020
·
4 revisions
Generate a single view cell.
$ ralis g folio:cell articles/box
Running via Spring preloader in process 29974
create app/cells/project_namespace/articles/box_cell.rb
create app/cells/project_namespace/articles/box/show.slim
create test/cells/project_namespace/articles/box_cell_test.rb
Place custom stylesheets in app/cells/project_namespace/articles/box/box.sass
, which get loaded automatically.
Place custom js/coffee in app/cells/project_namespace/articles/box/box.coffee
and require it in application.js
:
//= require project_namespace/articles/box/box