Hi mike,
I think you didn't get me or i am not getting you ??????
### Parent
class ProjectController < ApplicationController
active_scaffold :Project do |config|
end
end
### child
class ShippingController < ApplicationController
active_scaffold :Shipping do |config|
config.columns = [:shipping_number, :dispach_date, :cost, :sample]
end
end
## grand child
class SampleController < ApplicationController
layout "frame"
active_scaffold :Sample do |config|
config.columns = [:product, :batch_no, :cost]
config.columns[:product].form_ui = :select
end
end
### Grand grand child
## product table :code, :name, :project_id( This is the project for
which this product has been developed)
## in edit action of project i have render a rhtml file
### <%= render :active_scaffold => 'shipping', :constraints =>
{:project_id => @record.id } %>
### so In the shipping "Create New" view
shipping number : _________
dispatch date : __ day __month __year
Cost _____100$___
Sample (hide)
product ____ batch no ____ cost_______ X
product ____ batch no ____ cost_______ X
product ____ batch no ____ cost_______ X
Create Another
Create cancel
In this view product are coming in dropdown. In this drop down it is
showing all the product.
But i want to show the product which has been developed for the
current project
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---