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