--- /dev/null
+# 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://jashkenas.github.com/coffee-script/
--- /dev/null
+// Place all the styles related to the authors controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
--- /dev/null
+class AuthorsController < ApplicationController
+ before_filter :authenticate_author!, :only => [:index, :show]
+ def index
+ @authors = Author.all
+
+ respond_to do |format|
+ format.html # index.html.erb
+ end
+ end
+
+ def show
+ @author = Author.find(params[:id])
+
+ respond_to do |format|
+ format.html
+ end
+ end
+
+end
--- /dev/null
+module AuthorsHelper
+end
--- /dev/null
+<h1>Listing system_pictures</h1>
+
+<table>
+ <tr>
+ <th>Ext</th>
+ </tr>
+
+<% @authors.each do |author| %>
+ <tr>
+ <td><%= link_to h(author.name), :action => :show, :id => author.id %></td>
+ </tr>
+<% end %>
+</table>
--- /dev/null
+<p id="notice"><%= notice %></p>
+
+<p>
+ <b>name:</b>
+ <%= h(@author.name) %>
+</p>
+
+<%= link_to 'Back', :controller => 'authors' %>
match 'home/(:action)', :controller => 'home'
match 'help/(:action)', :controller => 'help'
match 'system/(:action)', :controller => 'system'
+ match 'authors/(:action(/:id))', :controller => 'authors'
# controller 'system' do
# get 'start'
# get 'index'
--- /dev/null
+require 'spec_helper'
+
+describe AuthorsController do
+
+end
--- /dev/null
+require 'spec_helper'
+
+# Specs in this file have access to a helper object that includes
+# the AuthorsHelper. For example:
+#
+# describe AuthorsHelper do
+# describe "string concat" do
+# it "concats two strings with spaces" do
+# helper.concat_strings("this","that").should == "this that"
+# end
+# end
+# end
+describe AuthorsHelper do
+ pending "add some examples to (or delete) #{__FILE__}"
+end