From: Angelo Farias Date: 2011-09-14T11:01:15+09:00 Subject: Re: Methods not found Another methods not work if a redirect to new or index... controller forum: class ForumsController < ApplicationController def index @forums = Forum.all end def show @forum = Forum.find(params[:id]) end def new @forum = Forum.new end ... Phillip, I understand, I will looking for a rails community, at google I couldn't find any good solution. Angelo -----Mensagem Original----- From: Phillip Gawlowski Sent: Tuesday, September 13, 2011 6:49 PM To: ruby-talk ML Subject: Re: Methods not found On Tue, Sep 13, 2011 at 11:29 PM, Dave Aronson wrote: > On Tue, Sep 13, 2011 at 12:19, Angelo Farias > wrote: > >> Web page throw: ‘undefined method `find' for Forum:Module’ >> >> Anything method is not found in my controller, all, find, wherever I >> define de action in routes, it not work. >> >> route.rb: >> root :controller => 'forums', :action => 'show' > > Show, not index? If you do indeed mean show, show us what the > controller does for show. Better: Show it to the Rails community, one forum over. -- Phillip Gawlowski gplus.to/phgaw | twitter.com/phgaw A method of solution is perfect if we can forsee from the start, and even prove, that following that method we shall attain our aim. -- Leibniz