Skip to content

Commit

Permalink
skip page / form generation for non-hobo_model_controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
al2o3cr committed Oct 11, 2011
1 parent 0164d93 commit 8a9c59b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions hobo/lib/hobo/rapid/generators/rapid/forms.dryml.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<% each_controller do -%>
<%
next unless @controller < Hobo::Controller::Model
form_fields = standard_fields :belongs_to, :has_many

cancel_to_show_page = linkable?(:show)
Expand Down
2 changes: 1 addition & 1 deletion hobo/lib/hobo/rapid/generators/rapid/pages.dryml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


<% each_controller do -%>

<% next unless @controller < Hobo::Controller::Model %>
<!-- ====== <%= model.name %> Pages ====== -->
<%
new_link = linkable?(:new)
Expand Down

0 comments on commit 8a9c59b

Please sign in to comment.