> You'll want to put the shared method in app/controllers/application.rb
Unless find_cart is used only in the one controller, then you just need to turn it into a before_filter: class MainController < ApplicationController before_filter :set_cart def index end def what_ever end private def set_cart @cart = find_cart end end Peace. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---