Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix README errors #15

Merged
merged 1 commit into from
Aug 12, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/torch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Torch is a rapid admin generator for Phoenix apps. It uses generators rather tha

To install Torch, perform the following steps:

1. Add `torch` to your list of dependencies in `mix.exs`:
1. Add `torch` to your list of dependencies in `mix.exs`. Then, run `mix deps.get`:

```elixir
def deps do
Expand Down Expand Up @@ -102,10 +102,10 @@ npm: {

Run `mix torch.gen (eex|slim)` to generate admin controllers and views for a given Ecto schema module. Torch expects you to have already defined the schema in your project.

For example, if we wanted to generate an admin area for a `Post` model we already have, we could run this command:
For example, if we wanted to generate an admin area for a `Post` model we already have using `eex` templates, we could run this command:

```bash
$ mix torch.gen.html Admin Post posts title:string body:text inserted_at:date
$ mix torch.gen eex Admin Post posts title:string body:text inserted_at:date
```

And the output would be:
Expand Down