Skip to content

Commit

Permalink
refactoring file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tsdeng committed Mar 19, 2010
1 parent 1f1d301 commit 5f2ce66
Show file tree
Hide file tree
Showing 10 changed files with 164 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.log
*.sqlite3
nbproject/*
tmp/*
5 changes: 5 additions & 0 deletions app/controllers/secret/user_admin_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Secret::UserAdminController < ApplicationController
def index
@title="haha"
end
end
2 changes: 2 additions & 0 deletions app/helpers/secret/user_admin_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module Secret::UserAdminHelper
end
16 changes: 16 additions & 0 deletions app/views/layouts/secret.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>secret.html</title>
<meta name="generator" content="TextMate http://macromates.com/">
<meta name="author" content="TWer">
<!-- Date: 2010-03-18 -->
</head>
<body>
<h1>Secret Use</h1>
<%=yield%>
</body>
</html>
1 change: 1 addition & 0 deletions app/views/secret/user_admin/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<%=@title%>
2 changes: 1 addition & 1 deletion config/environment.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION
RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
Expand Down
Empty file removed newhtml.html
Empty file.
8 changes: 8 additions & 0 deletions test/functional/secret/user_admin_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'test_helper'

class Secret::UserAdminControllerTest < ActionController::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end
4 changes: 4 additions & 0 deletions test/unit/helpers/secret/user_admin_helper_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require 'test_helper'

class Secret::UserAdminHelperTest < ActionView::TestCase
end
126 changes: 126 additions & 0 deletions vendor/gems/mislav-will_paginate-2.3.11/.specification
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
--- !ruby/object:Gem::Specification
name: mislav-will_paginate
version: !ruby/object:Gem::Version
version: 2.3.11
platform: ruby
authors:
- "Mislav Marohni\xC4\x87"
- PJ Hyett
autorequire:
bindir: bin
cert_chain: []

date: 2009-06-02 00:00:00 +08:00
default_executable:
dependencies: []

description: The will_paginate library provides a simple, yet powerful and extensible API for ActiveRecord pagination and rendering of pagination links in ActionView templates.
email: [email protected]
executables: []

extensions: []

extra_rdoc_files:
- README.rdoc
- LICENSE
- CHANGELOG.rdoc
files:
- CHANGELOG.rdoc
- LICENSE
- README.rdoc
- Rakefile
- examples/apple-circle.gif
- examples/index.haml
- examples/index.html
- examples/pagination.css
- examples/pagination.sass
- init.rb
- lib/will_paginate.rb
- lib/will_paginate/array.rb
- lib/will_paginate/collection.rb
- lib/will_paginate/core_ext.rb
- lib/will_paginate/finder.rb
- lib/will_paginate/named_scope.rb
- lib/will_paginate/named_scope_patch.rb
- lib/will_paginate/version.rb
- lib/will_paginate/view_helpers.rb
- test/boot.rb
- test/collection_test.rb
- test/console
- test/database.yml
- test/finder_test.rb
- test/fixtures/admin.rb
- test/fixtures/developer.rb
- test/fixtures/developers_projects.yml
- test/fixtures/project.rb
- test/fixtures/projects.yml
- test/fixtures/replies.yml
- test/fixtures/reply.rb
- test/fixtures/schema.rb
- test/fixtures/topic.rb
- test/fixtures/topics.yml
- test/fixtures/user.rb
- test/fixtures/users.yml
- test/helper.rb
- test/lib/activerecord_test_case.rb
- test/lib/activerecord_test_connector.rb
- test/lib/load_fixtures.rb
- test/lib/view_test_process.rb
- test/tasks.rake
- test/view_test.rb
has_rdoc: true
homepage: http://github.com/mislav/will_paginate/wikis
licenses: []

post_install_message:
rdoc_options:
- --main
- README.rdoc
- --inline-source
- --charset=UTF-8
require_paths:
- lib
required_ruby_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: "0"
version:
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: "0"
version:
requirements: []

rubyforge_project:
rubygems_version: 1.3.5
signing_key:
specification_version: 2
summary: Most awesome pagination solution for Rails
test_files:
- test/boot.rb
- test/collection_test.rb
- test/console
- test/database.yml
- test/finder_test.rb
- test/fixtures/admin.rb
- test/fixtures/developer.rb
- test/fixtures/developers_projects.yml
- test/fixtures/project.rb
- test/fixtures/projects.yml
- test/fixtures/replies.yml
- test/fixtures/reply.rb
- test/fixtures/schema.rb
- test/fixtures/topic.rb
- test/fixtures/topics.yml
- test/fixtures/user.rb
- test/fixtures/users.yml
- test/helper.rb
- test/lib/activerecord_test_case.rb
- test/lib/activerecord_test_connector.rb
- test/lib/load_fixtures.rb
- test/lib/view_test_process.rb
- test/tasks.rake
- test/view_test.rb

0 comments on commit 5f2ce66

Please sign in to comment.