Dear Ar Chron,

Thanks for your correction. The error solved, but its not still showing the
values for

<%= city.local_area %>
<%= country.state %>

On 23 September 2010 16:30, Ar Chron <li...@ruby-forum.com> wrote:

> PalaniKannan K wrote:
>
> > *name model*
> > has_many :city, :foreign_key => "name_id"
> > has_many :country, :foreign_key => "name_id"
> > *
>
> has_many models should be pluralized
>
> class name < ActiveRecord::Base
>  has_many :cities
>  has_many :countries
> end
> --
> 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-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>


-- 
With Regards
Palani Kannan. K

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to