--no-helpdon't add extra comments and method examples
--add-route=...add a route to this component to the Rails routes file
--base-class=...change the base class name from the default
MyComponentin a file named
my_component.rband place it in the
app/hyperstack/components/directory. The component may be name spaced and will be placed in the appropriate subdirectory. I.e.
Hyperstack::Routermodule which provides a number of methods that will be used in the router component.
Note that in any Single Page App there will be two routers in play. On the server the router is responsible dispatching each incoming HTTP request to a controller. The controller will deliver back (usually using a view) the contents of the request.In addition on a Single Page App you will have a router running on the client, which will dispatch to different components depending on the current value of the URL. The server is only contacted if the current URL leaves the set of URLs that client router knows how to deal with.
--add-routeoption to add the route for you. For example:
routes.rbfile, which will direct all URLS to the
ApplicationComponentas their base class name.