lib/generators/hyper/templates/router_template.rb in hyperloop-0.5.6 vs lib/generators/hyper/templates/router_template.rb in hyperloop-0.5.8
- old
+ new
@@ -27,10 +27,10 @@
<%=" "* @indet %> # The block param (id) will have the value of the param.
<%=" "* @indet %> # This is useful for looking up ActiveRecord models by ids, etc.
<%=" "* @indet %>end
<%=" "* @indet %>def show # note that the top level router has a show method NOT render
- <%=" "* @indet %> div do
+ <%=" "* @indet %> DIV do
<%=" "* @indet %> # content to display on every route
<%=" "* @indet %> # link generates an anchor tag.
<%=" "* @indet %> link(to: :subroute3, params: {user_id: 12}, class: "link-class") { "Click to go to subroute3" }
<%=" "* @indet %> # within an event handler use transition_to to move to a new route
<%=" "* @indet %> # the route_handler method will display the current route, it can be called in the