私はコントローラー "Apps"を持っています。 1つのアクション「索引」で構成されます。今、私は「買い」と呼ばれる新しいアクションを追加したい: def buy
respond_to do |format|
format.html
end
end
私はビューにbuy.html.erbを追加しましたが、/アプリケーションへの参照時に/買い、私はメッセージを以下の
私のRuby on Rails 3アプリケーションで私のauthlogicコードをテストしようとしています。 これは、ユーザーのコントローラ class UsersControllerTest < ActionController::TestCase
test "should be asked to login on show action" do
get :index