Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Active Admin - associations in the dashboard


  • Please log in to reply
1 reply to this topic

#1 deglau

deglau

    Passenger

  • Members
  • 3 posts

Posted 22 August 2013 - 06:53 PM

I have a gist setup to show my current code. What you will see is that for each of the two states, it lists all of the towns in the model Town. What I want is a list of towns associated with each State model. I've read so many SO articles and the docs that now my brain is just fried trying to figure out what I'm missing.

 

https://gist.github....hrisSki/6309613



#2 deglau

deglau

    Passenger

  • Members
  • 3 posts

Posted 22 August 2013 - 08:00 PM

Figured out what the issue was here. If you revisit this gist, you will see that instead of:

 

Towni.all.each I should have used state.towns.each






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users