phoenix_slime v0.9.0 Mix.Tasks.Phoenix.Gen.Html.Slime

This file was adapted from the original Phoenix html generator found here:

https://github.com/phoenixframework/phoenix/blob/v1.1/lib/mix/tasks/phoenix.gen.html.ex

Generates a Phoenix resource.

mix phoenix_slime.gen.html User users name:string age:integer

The first argument is the module name followed by its plural name (used for resources and schema).

The generated resource will contain:

  • a schema in web/models
  • a view in web/views
  • a controller in web/controllers
  • a migration file for the repository
  • default CRUD templates in web/templates
  • test files for generated model and controller

The generated model can be skipped with --no-model. Read the documentation for phoenix.gen.model for more information on attributes and namespaced resources.

Summary

Functions

Callback implementation for Mix.Task.run/1

Functions

run(args)

Callback implementation for Mix.Task.run/1.