going to dynamically load the tutorial page depending on the route folks decide to take
This commit is contained in:
@@ -4,6 +4,13 @@ class TutorialsController < ApplicationController
|
|||||||
|
|
||||||
def index
|
def index
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def breaker
|
||||||
|
render :partial => "layouts/tutorial/home/breaker"
|
||||||
|
end
|
||||||
|
|
||||||
|
def builder
|
||||||
|
end
|
||||||
|
|
||||||
def credentials
|
def credentials
|
||||||
render :partial => "layouts/tutorial/credentials/creds"
|
render :partial => "layouts/tutorial/credentials/creds"
|
||||||
|
|||||||
@@ -3,45 +3,51 @@
|
|||||||
<h1> Welcome to RailsGoat </h1>
|
<h1> Welcome to RailsGoat </h1>
|
||||||
<h3> Tutorial Guide </h3>
|
<h3> Tutorial Guide </h3>
|
||||||
|
|
||||||
<div class="row-fluid">
|
<!-- Begin Main Section -->
|
||||||
|
<div id="main" class="row-fluid">
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
<h6>Railsgoat can be used by either software developers or security professionals as a means of training themselves on Ruby on Rails security.
|
<h6>Railsgoat can be used by either software developers or security professionals as a means of training themselves on Ruby on Rails security.
|
||||||
We describe software developers as "builders" and security professionals as "breakers".
|
We describe software developers as "builders" and security professionals as "breakers".
|
||||||
<br/><br/>Please choose the category that you fall under for more information.
|
<br/><br/>Please choose the category that you fall under for more information.
|
||||||
</h6>
|
</h6><br/><br/>
|
||||||
<!-- Begin Buttons -->
|
<!-- Begin Buttons -->
|
||||||
<div class="widget">
|
<div class="row-fluid">
|
||||||
<div class="widget-body">
|
<div class="metro-navigation">
|
||||||
<div class="row-fluid">
|
<!-- Begin Builder Button -->
|
||||||
<div class="metro-navigation">
|
<div class="nav-block block-blue double">
|
||||||
<!-- Begin Builder Button -->
|
<a href="#">
|
||||||
<div class="nav-block block-blue double">
|
<div class="fs1" aria-hidden="true" data-icon=></div>
|
||||||
<a href="#">
|
<div class="brand">
|
||||||
<div class="fs1" aria-hidden="true" data-icon=></div>
|
Builder
|
||||||
<div class="brand">
|
|
||||||
Builder
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<!-- End Builder Button-->
|
|
||||||
<!-- Begin Breaker Button -->
|
|
||||||
<div class="nav-block block-red double">
|
|
||||||
<a href="#">
|
|
||||||
<div class="fs1" aria-hidden="true" data-icon=></div>
|
|
||||||
<div class="brand">
|
|
||||||
Breaker
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<!-- End Breaker Button-->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- End Builder Button-->
|
||||||
|
<!-- Begin Breaker Button -->
|
||||||
|
<div class="nav-block block-red double offset1">
|
||||||
|
<a id="breaker" href="#">
|
||||||
|
<div class="fs1" aria-hidden="true" data-icon=></div>
|
||||||
|
<div class="brand">
|
||||||
|
Breaker
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<!-- End Breaker Button-->
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<!-- End Buttons -->
|
<!-- End Buttons -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- End Main Section-->
|
||||||
|
<!-- Begin Tutorial Section -->
|
||||||
|
<div class="row-fluid">
|
||||||
|
<div class="span12">
|
||||||
|
<div id="info">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- End Tutorial Section -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -50,5 +56,12 @@ function makeActive(){
|
|||||||
$('li[id="tutorials_home"]').addClass('active');
|
$('li[id="tutorials_home"]').addClass('active');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$('#breaker').click(function(event){
|
||||||
|
event.preventDefault();
|
||||||
|
$("#main").empty()
|
||||||
|
$("#info").empty()
|
||||||
|
$("#info").load(<%= sanitize breaker_tutorials_path.inspect %>)
|
||||||
|
});
|
||||||
|
|
||||||
$(document).ready(makeActive);
|
$(document).ready(makeActive);
|
||||||
</script>
|
</script>
|
||||||
@@ -66,6 +66,8 @@ Railsgoat::Application.routes.draw do
|
|||||||
get "gauntlt"
|
get "gauntlt"
|
||||||
get "logic_flaws"
|
get "logic_flaws"
|
||||||
get "metaprogramming"
|
get "metaprogramming"
|
||||||
|
get "breaker"
|
||||||
|
get "builder"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user