On Aug 20, 9:26 am, mahesh s <[email protected]> wrote: > > def render_404 > render :file =>"#{RAILS_ROOT}/public/404.html", :status => > "404 Not Found" > > return false > end > > it's for susbend the process when the person trying more then 3 time if it > increased more then 3 then i would like render 404 error
These shouldn't be class methods. This is all about dealing with an individual request, which only makes sense in the context of an instance method Fred > > On Thu, Aug 20, 2009 at 1:28 PM, Frederick Cheung < > > > > [email protected]> wrote: > > > On Aug 20, 5:09 am, mahesh <[email protected]> wrote: > > > Im trying render a file 404 from public folder Is possible to render a > > > file from ruby code i have a separate code in the lib file.i got a > > > error like undefined method `render' for AdminController:Class > > > Well other than saying that you are calling render from somewhere that > > you shouldn't there's not a lot more to be said without seeing what > > you have done. > > > Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

