Sha256: 77b6d9b57289355f1e6bb0465874446c1ed1f6cc7ceac002edc84b250617844d
Contents?: true
Size: 771 Bytes
Versions: 34
Compression:
Stored size: 771 Bytes
Contents
Description: Stubs out a new cell and its views. Pass the cell name, either CamelCased or under_scored, and a list of views as arguments. This generates a cell class in app/cells and view templates in app/cells/cell_name/ directory. Examples: rails g cell ShoppingCart index This will create these cell assets: Cell: app/cells/shopping_cart_cell.rb Views: app/cells/shopping_cart/index.html.erb Test: test/cells/shopping_cart_cell_test.rb rails g cell main_menu display sort -e haml -t rspec This will create these cell assets: Cell: app/cells/main_menu_cell.rb Views: app/cells/main_menu/display.html.haml app/cells/main_menu/sort.html.haml Spec: spec/cells/main_menu_cell_spec.rb
Version data entries
34 entries across 34 versions & 1 rubygems