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

Add bullet #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add bullet #6

wants to merge 3 commits into from

Conversation

pollygee
Copy link
Contributor

Completes #5 I think... maybe. I had to look up how to add the do block to the different files so hopefully this will work.

@jamesdabbs
Copy link
Member

This doesn't seem to work. You're missing an end, so it syntax errors, but also I think you want to specify the code to inject as a string (since otherwise it looks like the template tries to run it and errors).

@pollygee
Copy link
Contributor Author

I added the end I missed and I put the entire code into a string. Is this what you meant? So it will put the entire string in "" into the file as is instead of running it.

@jamesdabbs
Copy link
Member

Close, but not quite. Try running it (rails new -m /path/to/your/template template-test-project) and taking a look a the code it's injecting now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants