iron-meteor / iron-cli

A scaffolding command line tool for Meteor applications.
639 stars 82 forks source link

what does the [--action "show"]? #202

Closed ghost closed 9 years ago

ghost commented 9 years ago

iron g:route todos/show_todo --action "show"

when we do it ,we get the following, but what more about the "show" action? Router.route('todos/show_todo', { name: 'todosShowTodo', controller: 'ShowTodoController', where: 'client', action: 'show' });

chrisbutler commented 9 years ago

in the ShowTodoController you can add

show: function() {}

and that will be called for the action step of the router. does that make sense?

ghost commented 9 years ago

@chrisbutler iron g:route todos/show_todo --action "show"

it's a example Generators of the iron-cli guide. here https://github.com/iron-meteor/iron-cli

chrisbutler commented 9 years ago

@spyhole what's the issue?