Hi,
Extreme sorry for all and Colin, I posted in several thread... I will not
post repeated posts once again.
--
Palani Kannan
--
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...@googleg
On 23 September 2010 16:34, PalaniKannan K wrote:
Why are you asking the same question in multiple threads?
Colin
> Hi,
>
> I tried with
>
> In View
>
> <% @names.each do |name| %>
> <%= name.age %>
> <% name.cities.each do |city| %>
> <%= city.local_area %>
> <% name.countries.each do |country
Hi,
I tried with
*In View*
<% @names.each do |name| %>
<%= name.age %>
<% name.cities.each do |city| %>
<%= city.local_area %>
<% name.countries.each do |country| %>
<%= country.state %>
<% end %>
This shows no error with no output of city.local_area and country.state
On 23 September 2010 12:4
http://railscasts.com/episodes/47-two-many-to-many
--
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+uns
Dear Collin,
I feel that I am not clearly explained you, here I included the clear
explanation about the problem. I included models, controller and View.
Please, find the mistake in it and tell me.
*name model*
has_many :city, :foreign_key => "name_id"
has_many :country, :foreign_key => "name_id"
On 23 September 2010 07:58, PalaniKannan K wrote:
> Hi,
>
> Anybody please tell me the tutorial way to connect and retrieve data using
> foreign key in a connected table.
I think I may have already answered this in my reply to your other
question, have a look at the Rails Guide on ActiveRecord
Re
Hi,
Anybody please tell me the tutorial way to connect and retrieve data using
foreign key in a connected table.
--
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 ruby
7 matches
Mail list logo