Render .json.nm
Nm templates in Rails.
There is nothing to do other than add the gem to your Gemfile. You can then add .json.nm templates to your JSON resource actions in app/views
. See https://github.com/redding/nm#nm for details on the Nm template syntax.
Add this line to your application's Gemfile:
gem "rails-nm"
And then execute:
$ bundle
Or install it yourself as:
$ gem install rails-nm
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am "Added some feature"
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request