By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,831 Members | 1,031 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,831 IT Pros & Developers. It's quick & easy.

ajax scaffold

P: 24
I have created rails application using ajax scaffold. It is easy for CRUD operation. If I use independent table its working perfectly. I have used two tables, which is referring another table. I need to show the parent table value in child table view.

For example:
User table: id,no,name,marks
Dept table: id,userid,dept name, dept no

In 'Dept' table view ,I need to show the username . It is showing the id of the 'User' table.

Normally we use Dept.User.name. How to do this in ajax scaffolding?

Note:
I have used 'has_many,belongs_to' relationship class.
May 25 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.