Skip to content

Commit

Permalink
start test implementation of package view
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Feb 15, 2012
1 parent f10b47a commit 3380189
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/controllers/package_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class PackageController < ApplicationController


def show
@pkgname = params[:package]

end


end
10 changes: 10 additions & 0 deletions app/views/package/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>
<% @hide_side_box = true -%>
<% @hide_search_box = true -%>
<%= @pkgname %>
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
map.connect '113/:lang', :controller => 'main', :action => 'release', :release => "113"
map.connect 'developer/:lang', :controller => 'main', :action => 'release', :release => "developer"

map.connect 'package/:package', :controller => 'package', :action => 'show'

map.connect 'promodvd', :controller => 'order', :action => 'new'
map.connect 'promodvds', :controller => 'order', :action => 'new'

Expand Down

0 comments on commit 3380189

Please sign in to comment.