From caecb88e30bb64b85c291e7f034559329eaa447c Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Sun, 2 Jun 2013 20:35:01 -0400 Subject: [PATCH] prepping for constantize --- app/controllers/tutorials_controller.rb | 2 ++ app/views/layouts/tutorial/_sidebar.html.erb | 3 +++ .../_benefit_forms_constantize.html.erb | 0 app/views/tutorials/constantize.html.erb | 18 ++++++++++++++++++ config/routes.rb | 1 + 5 files changed, 24 insertions(+) create mode 100644 app/views/layouts/tutorial/constantize/_benefit_forms_constantize.html.erb create mode 100644 app/views/tutorials/constantize.html.erb diff --git a/app/controllers/tutorials_controller.rb b/app/controllers/tutorials_controller.rb index 976ede8..3a9b400 100755 --- a/app/controllers/tutorials_controller.rb +++ b/app/controllers/tutorials_controller.rb @@ -103,7 +103,9 @@ class TutorialsController < ApplicationController end def mass_assignment + end + def constantize end end diff --git a/app/views/layouts/tutorial/_sidebar.html.erb b/app/views/layouts/tutorial/_sidebar.html.erb index c246448..3a262dd 100755 --- a/app/views/layouts/tutorial/_sidebar.html.erb +++ b/app/views/layouts/tutorial/_sidebar.html.erb @@ -108,6 +108,9 @@
  • <%= link_to "Mass Assignment", mass_assignment_tutorials_path %>
  • +
  • + <%= link_to "Constantize", constantize_tutorials_path %> +
  • DB Sessions
  • diff --git a/app/views/layouts/tutorial/constantize/_benefit_forms_constantize.html.erb b/app/views/layouts/tutorial/constantize/_benefit_forms_constantize.html.erb new file mode 100644 index 0000000..e69de29 diff --git a/app/views/tutorials/constantize.html.erb b/app/views/tutorials/constantize.html.erb new file mode 100644 index 0000000..3cc16bc --- /dev/null +++ b/app/views/tutorials/constantize.html.erb @@ -0,0 +1,18 @@ +
    +
    +
    +
    + <%= render :partial => ("layouts/tutorial/constantize/benefit_forms_constantize")%> +
    +
    +
    +
    + + \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 9e7ff80..bdcdc6d 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -41,6 +41,7 @@ resources :tutorials do get "guard" get "info_disclosure" get "mass_assignment" + get "constantize" end end