Stub out the reposts controller that will manage the flow of logic.
This commit is contained in:
parent
4e889f8df4
commit
89fe2a01eb
8 changed files with 31 additions and 54 deletions
3
app/assets/javascripts/reposts.js.coffee
Normal file
3
app/assets/javascripts/reposts.js.coffee
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Place all the behaviors and hooks related to the matching controller here.
|
||||||
|
# All this logic will automatically be available in application.js.
|
||||||
|
# You can use CoffeeScript in this file: http://coffeescript.org/
|
||||||
3
app/assets/stylesheets/reposts.css.scss
Normal file
3
app/assets/stylesheets/reposts.css.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
// Place all the styles related to the Reposts controller here.
|
||||||
|
// They will automatically be included in application.css.
|
||||||
|
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||||
4
app/controllers/reposts_controller.rb
Normal file
4
app/controllers/reposts_controller.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
class RepostsController < ApplicationController
|
||||||
|
def index
|
||||||
|
end
|
||||||
|
end
|
||||||
2
app/helpers/reposts_helper.rb
Normal file
2
app/helpers/reposts_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
module RepostsHelper
|
||||||
|
end
|
||||||
7
app/views/reposts/index.html.erb
Normal file
7
app/views/reposts/index.html.erb
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
<p>
|
||||||
|
This is the helping hand behind the reposts of the <a href="https://alpha.app.net/karlsruher">@Karlsruher</a> on <a href="https://join.app.net/">App.net</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
There is nothing much to see here directly, though.
|
||||||
|
</p>
|
||||||
|
|
@ -1,56 +1,3 @@
|
||||||
AdnRepostmentions::Application.routes.draw do
|
AdnRepostmentions::Application.routes.draw do
|
||||||
# The priority is based upon order of creation: first created -> highest priority.
|
root :to => 'reposts#index'
|
||||||
# See how all your routes lay out with "rake routes".
|
|
||||||
|
|
||||||
# You can have the root of your site routed with "root"
|
|
||||||
# root 'welcome#index'
|
|
||||||
|
|
||||||
# Example of regular route:
|
|
||||||
# get 'products/:id' => 'catalog#view'
|
|
||||||
|
|
||||||
# Example of named route that can be invoked with purchase_url(id: product.id)
|
|
||||||
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
|
||||||
|
|
||||||
# Example resource route (maps HTTP verbs to controller actions automatically):
|
|
||||||
# resources :products
|
|
||||||
|
|
||||||
# Example resource route with options:
|
|
||||||
# resources :products do
|
|
||||||
# member do
|
|
||||||
# get 'short'
|
|
||||||
# post 'toggle'
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# collection do
|
|
||||||
# get 'sold'
|
|
||||||
# end
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Example resource route with sub-resources:
|
|
||||||
# resources :products do
|
|
||||||
# resources :comments, :sales
|
|
||||||
# resource :seller
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Example resource route with more complex sub-resources:
|
|
||||||
# resources :products do
|
|
||||||
# resources :comments
|
|
||||||
# resources :sales do
|
|
||||||
# get 'recent', on: :collection
|
|
||||||
# end
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Example resource route with concerns:
|
|
||||||
# concern :toggleable do
|
|
||||||
# post 'toggle'
|
|
||||||
# end
|
|
||||||
# resources :posts, concerns: :toggleable
|
|
||||||
# resources :photos, concerns: :toggleable
|
|
||||||
|
|
||||||
# Example resource route within a namespace:
|
|
||||||
# namespace :admin do
|
|
||||||
# # Directs /admin/products/* to Admin::ProductsController
|
|
||||||
# # (app/controllers/admin/products_controller.rb)
|
|
||||||
# resources :products
|
|
||||||
# end
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
7
test/controllers/reposts_controller_test.rb
Normal file
7
test/controllers/reposts_controller_test.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
require 'test_helper'
|
||||||
|
|
||||||
|
class RepostsControllerTest < ActionController::TestCase
|
||||||
|
# test "the truth" do
|
||||||
|
# assert true
|
||||||
|
# end
|
||||||
|
end
|
||||||
4
test/helpers/reposts_helper_test.rb
Normal file
4
test/helpers/reposts_helper_test.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
require 'test_helper'
|
||||||
|
|
||||||
|
class RepostsHelperTest < ActionView::TestCase
|
||||||
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue