[Rails] Re: [Newbie question] How does map.root?
On May 22, 12:32 am, Distriker <ivanhcelrinconelme...@gmail.com>
wrote:
>
> <ruby code>
> class Index < ActiveRecord::Base
> def Index
>
> end
> end
> </ruby code>
>
> If I put this in my rails project, say me this the localhost:
>
> <quote>
> We're sorry, but something went wrong.
>
> We've been notified about this issue and we'll take a look at it
> shortly.
> </quote>
>
> Can someone explain me how does the map.root?
>
I don't think this has anything to do with map.root - your controller
should be called IndexController, it should be in index_controller.rb
and it shouldn't be inheriting from ActiveRecord::Base. Also, method
names should begin with a lowercase character.
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home