I have this bad habit of starring (gmail) messages and forgetting to
get back to it. Better late than never. Thanks jasoo and willhaslett!
Ramon Tayag
On Sat, Feb 28, 2009 at 3:19 AM, jasoo24jaso...@gmail.com wrote:
I would recommend that you hard-code that list and also include
controller
I would recommend that you hard-code that list and also include
controller names you may use in the future and reserved or restricted
words.
On Feb 26, 5:49 pm, Ramon Tayag ramon.ta...@gmail.com wrote:
Okay, just a follow up question: is there an automatic way to make an
array of all
@conts_and_meths = []
controllers = Dir.new(#{RAILS_ROOT}/app/controllers).entries
controllers.each do |controller|
if controller =~ /_controller/ and not controller.index(\.swp)
then
cont = controller.camelize.gsub(.rb,)
meths = (eval(#{cont}.new.methods) -
3 matches
Mail list logo