Displaying 3 results from an estimated 3 matches for "logcontroller".
Did you mean:
blogcontroller
2006 May 31
3
class does not inherit (?) ActionRecord::Base
...t this, so please bear with me.
I have several classes which model several corresponding tables. All of
them seem to work except one. I have not made many modifications from
the scaffold templates. However, with one class, Log, all methods give
me the following type of error
NoMethodError in LogController#create
undefined method `save'' for #<WEBrick::Log:0x3b0cfb8>
NoMethodError in LogController#list
undefined method `find_all'' for WEBrick::Log:Class
This is my entire Log class
class Log < ActiveRecord::Base
belongs_to :batch
has_many :links
end
Please help! Tha...
2005 Sep 28
0
Logging to the server
...or: " + Object.inspect(e));
}
}
},
debug: function(msg) {
Logger.log(msg, ''debug'');
},
error: function(msg) {
Logger.log(msg, ''error'');
},
warn: function(msg) {
Logger.log(msg, ''warn'');
}
}
class Admin::LogController < ActionController::Base
def log
severity = LEVELS.index(params[:level].to_s.upcase) || Logger::DEBUG
logger.log(severity, params[:msg])
render :nothing => true
end
private
LEVELS = %w( DEBUG INFO WARN ERROR FATAL UNKNOWN )
end
--
Michael Schuerig...
2005 Dec 15
6
passing parameters to link_to OR better way to do this?
Hi All:
I''m writing my 1st Rails app and I can''t seem to find the answer on
the web or in the book.
I''m making a table, and I want to be able to expand a filename. The
code is basically as as follows below. In the last <td> entry, I want
to call an action and pass in the test_results_path, which I will go
and read a file and munge the data for a separate