Displaying 3 results from an estimated 3 matches for "dave19".
Did you mean:
dave1
2009 Jun 01
0
Nested models and forms
Hi,
I have been trying to use the new nested models & forms feature in rails 2.3
#helper
def add_job_profile_link(name, form, vacancy)
link_to_function name do |page|
profile = render(:partial => ''job_profile'', :locals => { :f =>
form, :job_profile => vacancy.job_profiles.build })
page << %{
2009 Feb 09
2
how to get form parameters while using fields_for with nested attributes
hi all..
i am trying to use *fields_for* to get and save nested attributes in a form.
i have a ''Partner'' model associated with an ''Address'' model.
partner has_many :addresses
although the form is displaying fine, but on submitting it the following
error is shown:
*can''t convert HashWithIndifferentAccess into Array*
on this line:
*@partner =
2009 Feb 06
2
Using partials with form_for
hi all
i was wondering whether it is possible to use partials along with form_for
and form_field. following code is not working. is there some error or this
case is impossible..??
*#new.html.erb*
<h1>Enter Details for new Partner:</h1>
<% form_for(@partner) do |f| %>
<%= render :partial => ''form'', :locals => {:partner => f} %>
<p>