Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: bobbungee/Kienzan-Rails
base: 6ee4f6a19e
...
head fork: bobbungee/Kienzan-Rails
compare: 8833ae8b57
  • 6 commits
  • 9 files changed
  • 0 commit comments
  • 1 contributor
View
4 Gemfile
@@ -7,6 +7,10 @@ gem 'rails', '3.0.10'
gem 'jquery-rails'
+group :development do
+ gem 'sqlite3'
+end
+
# Use unicorn as the web server
# gem 'unicorn'
View
2  Gemfile.lock
@@ -66,6 +66,7 @@ GEM
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
+ sqlite3 (1.3.5)
thor (0.14.6)
treetop (1.4.10)
polyglot
@@ -78,3 +79,4 @@ PLATFORMS
DEPENDENCIES
jquery-rails
rails (= 3.0.10)
+ sqlite3
View
8 app/controllers/source_controller.rb
@@ -0,0 +1,8 @@
+require 'net/http'
+require 'net/https'
+
+class SourceController < ApplicationController
+ def get
+ @source = Net::HTTP.get URI(params[:site])
+ end
+end
View
2  app/helpers/source_helper.rb
@@ -0,0 +1,2 @@
+module SourceHelper
+end
View
15 app/views/layouts/application.html.erb
@@ -1,14 +1 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Kienzan</title>
- <%= stylesheet_link_tag :all %>
- <%= javascript_include_tag :defaults %>
- <%= csrf_meta_tag %>
-</head>
-<body>
-
-<%= yield %>
-
-</body>
-</html>
+<%= yield %>
View
1  app/views/source/get.html.erb
@@ -0,0 +1 @@
+<%= raw @source %>
View
57 config/routes.rb
@@ -1,58 +1,3 @@
Kienzan::Application.routes.draw do
- # The priority is based upon order of creation:
- # first created -> highest priority.
-
- # Sample of regular route:
- # match 'products/:id' => 'catalog#view'
- # Keep in mind you can assign values other than :controller and :action
-
- # Sample of named route:
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
- # This route can be invoked with purchase_url(:id => product.id)
-
- # Sample resource route (maps HTTP verbs to controller actions automatically):
- # resources :products
-
- # Sample resource route with options:
- # resources :products do
- # member do
- # get 'short'
- # post 'toggle'
- # end
- #
- # collection do
- # get 'sold'
- # end
- # end
-
- # Sample resource route with sub-resources:
- # resources :products do
- # resources :comments, :sales
- # resource :seller
- # end
-
- # Sample resource route with more complex sub-resources
- # resources :products do
- # resources :comments
- # resources :sales do
- # get 'recent', :on => :collection
- # end
- # end
-
- # Sample resource route within a namespace:
- # namespace :admin do
- # # Directs /admin/products/* to Admin::ProductsController
- # # (app/controllers/admin/products_controller.rb)
- # resources :products
- # end
-
- # You can have the root of your site routed with "root"
- # just remember to delete public/index.html.
- # root :to => "welcome#index"
-
- # See how all your routes lay out with "rake routes"
-
- # This is a legacy wild controller route that's not recommended for RESTful applications.
- # Note: This route will make all actions in every controller accessible via GET requests.
- # match ':controller(/:action(/:id(.:format)))'
+ get 'source/get'
end
View
8 test/functional/source_controller_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class SourceControllerTest < ActionController::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
View
4 test/unit/helpers/source_helper_test.rb
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class SourceHelperTest < ActionView::TestCase
+end

No commit comments for this range

Something went wrong with that request. Please try again.