This is my first official post as RoR developer, so here it is.
I’ve got a partial for a Address (Postcode, Address, City, …). I want
to use this partial multiple times on the same form? So I want to fill
in multiple addresses and insert them individualy. How do I go about
doing this?
This is my first official post as RoR developer, so here it is.
I’ve got a partial for a Address (Postcode, Address, City, …). I want
to use this partial multiple times on the same form? So I want to fill
in multiple addresses and insert them individualy. How do I go about
doing this?
I think I’ve found the problem, I need to give each partial that I
render a new ID, but how do I go about doing that?
Eugene L. wrote:
Not exactly,
The addresses is all over the form. Doesn’t follow on each other. So the
one is a delivery address and the other a billing address?
Eugene L. wrote:
Hi all,
This is my first official post as RoR developer, so here it is.
I’ve got a partial for a Address (Postcode, Address, City, …). I want
to use this partial multiple times on the same form? So I want to fill
in multiple addresses and insert them individualy. How do I go about
doing this?
Check out the render :partial section of the API for more info: Peak Obsession
Hope that helps,
Steve
Eugene L. wrote:
Hi all,
This is my first official post as RoR developer, so here it is.
I’ve got a partial for a Address (Postcode, Address, City, …). I want
to use this partial multiple times on the same form? So I want to fill
in multiple addresses and insert them individualy. How do I go about
doing this?
I think I’ve found the problem, I need to give each partial that I
render a new ID, but how do I go about doing that?
Not exactly,
The addresses is all over the form. Doesn’t follow on each other. So the
one is a delivery address and the other a billing address?
Hi all,
This is my first official post as RoR developer, so here it is.
I’ve got a partial for a Address (Postcode, Address, City, …). I want
to use this partial multiple times on the same form? So I want to fill
in multiple addresses and insert them individualy. How do I go about
doing this?
Did you ever get a satisfactory solution to this? I have a similar
problem;
I’d like to reuse a small snippet of HTML several times in a page, with
the
div contents (within the snippet) being arbitrarily large and/or
complex.
As a total beginner, I would have hoped that I could call render
:partial
multiple times, and let it “call back” to let its caller render the
div contents. But I have no idea how to do that.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.