-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editable columns in table #4
Comments
Would you show me the code (HTML) you wrote? |
Sure, Cost Answers<% @costproject.costdetails.each_with_index do |costdetail, i| %> <% if costdetail.contact_id != nil %> <% else %> <% end %> <% end %>
This is the js.coffee $(document).ready -> Thanks, On Jan 10, 2013, at 8:45 PM, Toru KAWAMURA [email protected] wrote:
|
Since this seems not to be "nested attributes" according to class Costproject < ActiveRecord::Base
accepts_nested_attributes_for :costdetails
end |
Toru, I have changed my costproject model to contain accepts_nested_attributes_for :cost details Now, when I edit a column, it adds a new record instead of replacing the one I'm trying to edit. David Burton On Jan 10, 2013, at 9:16 PM, Toru KAWAMURA [email protected] wrote:
|
I'm trying to use a table created with an index do.
So the same column gets repeated in each row.
The first row is editable, the rest aren't.
Is there a way for me to fix this?
UPDATE - I see this is the same as the other issue
The text was updated successfully, but these errors were encountered: