Displaying 2 results from an estimated 2 matches for "app_controller".
2010 Apr 02
6
App_Controller and partial issues with has_many through
I have a User model, a Post model, and an Interest model:
User has_many posts through interests
User has_many interests, dependent destroy
Post has_many users through interests
has_many interests, dependent destroy
Post has_many interests
Interest belongs to Post
Interest belongs to User
Application_Controller is as follows:
class ApplicationController < ActionController::Base
before_filter
2009 Aug 19
27
First App- Error 500
...s...
# Logfile created on Tue Aug 18 16:49:55 -0400 2009/!\ FAILSAFE /!\
Tue Aug 18 16:50:34 -0400 2009
Status: 500 Internal Server Error
unknown error
PS . It does show the default web page ok at http://localhost:3000
just not the app
Here is my controller in c:\ruby\hello\app\controllers
\app_controller.rb
.....
class AppController < ApplicationController
def greeting
end
end
Here is my view in c:\ruby\hello\app\views\app\greeting.rhtml
<html>
<head>
Ruby on Rails
</head>
<body>
Yes its working!
</body>
</html>
Here i...