On Jul 13, 12:55 am, Mark Preston <[email protected]>
wrote:
> I got it to work by changing my method in the mystuff_controller to look
> like this:
>
> require 'Mystuff'
>
> class MystuffController < ApplicationController
>
> def index
>
> �...@my = Mystuff.find( :all)
>
> end
> end
>
> The only change was to change the name of the method to "index" Seems
> odd
>
Seems like you were hitting the index action (ie going to /mystuff )
so your read method was never getting called.
Fred
> Thanks all
>
> Mark
> --
> Posted viahttp://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
-~----------~----~----~----~------~----~------~--~---