So mache mir eine Farbpalette Manager und beide auf dem Formular angeforderten Tabellen verschachtelt sind und ordnungsgemäß verwandt (Ich möchte auch darauf hinweisen, dass ich ein Neuling auf Schienen am)Schienen können nicht ein Objekt
Diese ganzen Code arbeitet völlig in Ordnung, wenn in Zeile 4 wurde Links, anstatt nur die Namen anfordert und arbeitet plötzlich gewohnt mehr, danke für die Hilfe im Voraus
<div class='nav_bar'>#</div>
<% if @projects %>
<% @projects.each do |project| %>
<li><div class='container'><h1><%= project.name project_path(:id => project.id) %></h1>
<ul>
<%= form_for project do %>
<%= fields_for :palette, project.palette do |palette| %>
<%= palette.label 'background_dark_color' %>:
<%= palette.text_field :background_dark_color, placeholder: '@palette.background_dark_color' %><br/>
<%= palette.label 'background_light_color' %>:
<%= palette.text_field :background_light_color, placeholder: "@palette.background_light_color" %><br/>
<%= palette.label 'dark_color1' %>:
<%= palette.text_field :dark_color1, placeholder: "@palette.dark_color1" %><br/>
<%= palette.label 'dark_color2' %>:
<%= palette.text_field :dark_color2, placeholder: "@palette.dark_color2" %><br/>
<%= palette.label 'light_color1' %>:
<%= palette.text_field :light_color1, placeholder: "@palette.light_color1" %><br/>
<%= palette.label 'light_color2' %>:
<%= palette.text_field :light_color2, placeholder: "@palette.light_color2" %><br/>
<%= palette.submit %>
<%= link_to 'Destroy', project, method: :delete, data: { confirm: 'Are you sure?' } %>
<% end %>
</div>
</ul>
<% end %></li>
<%end%>
<%end%>
<div class='circle'><%= link_to "+", new_project_path %></div>
<button type="button"><%= link_to "+", new_project_path %></button>
Vielen Dank, das hat tatsächlich mein Problem behoben, ich fühle mich irgendwie töricht, weil ich das nicht weiß tho –
Kein Problem, wir alle machen Fehler und lernen. Ich bin froh, dir geholfen zu haben. – Pragash