Rails: fields_for with index?

The answer is quite simple as the solution is provided within Rails. You can use f.options params. So, inside your rendered _some_form.html.erb, Index can be accessed by: <%= f.options[:child_index] %> You don’t need to do anything else. Update: It seems that my answer wasn’t clear enough… Original HTML File: <!– Main ERB File –> <% … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)