Permalink
Browse files

Fixing url generation for ui pages

  • Loading branch information...
1 parent a8db039 commit 684deee5c3f75ac41d5bd2ecfb9eab3b5a0e743a Brandon Farmer and Matt Polito committed with Hashrocket Workstation Mar 1, 2012
Showing with 7 additions and 2 deletions.
  1. +5 −0 app/helpers/ui_helper.rb
  2. +1 −1 app/views/hashrocket/ui/index.html.haml
  3. +1 −1 lib/hashrocket-rails/version.rb
View
@@ -0,0 +1,5 @@
+module UiHelper
+ def wireframe_path(wireframe_name, controller_name)
+ "/#{[controller_name, wireframe_name].join('/')}"
+ end
+end
@@ -1,3 +1,3 @@
%ul
= list_of wireframes do |wireframe|
- = link_to wireframe.name.titleize, [controller_name, wireframe.name] * '/'
+ = link_to wireframe.name.titleize, wireframe_path(wireframe.name, controller_name)
@@ -1,3 +1,3 @@
module Hashrocket
- VERSION = "0.0.4"
+ VERSION = "0.0.5"
end

0 comments on commit 684deee

Please sign in to comment.