Wow, I like that better than the plugin.  I guess plugins would be good 
if you need to use similar things in multiple projects.  But, if what 
you are doing only applies to one project, the inherited 
models/controllers are nice!

I just created an parent model and then made my test model a child of 
it.  All I had to do was make sure that the methods in the parent model 
were named self.methodname and it worked like a charm.

I still have the question though about doing the same type of thing with 
a controller.  How are the instance variables handled when doing that?

Taking a simpler note:

  def new
    @rushing_offense = RushingOffense.new

    respond_to do |format|
      format.html # new.html.erb
      format.xml  { render :xml => @rushing_offense }
    end
  end

If I take all the RESTful methods out of the child controller and place 
them into the parent, how will this method appear (formatted wise) in 
the parent controller.  This is how it appears in the child controller.

Do I have to use something like @self.controller_name or .. ?

-- 
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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to