On 30 March 2013 20:59, Jay notReq wrote:
> On the left hand side of my page there is a list of documents that the
> user has already created. And a form to create/edit documents.
>
> | list of documents| Edit/Create documents|
> |||
On the left hand side of my page there is a list of documents that the
user has already created. And a form to create/edit documents.
| list of documents| Edit/Create documents|
|||
||
I've swapped-in Nokogiri rather than builder, but my general strategy
is the same; using helper methods to encapsulate discreet xml building
code for reuse rather than partials. Seems less hackish. Just pass
in the xml object you are building up.
--
You received this message because you are sub
Hello everyone,
Partials in XML builder are proving to be non-trivial.
After some initial Google searching, I found the following to work,
although it's not 100%
xml.foo do
xml.id(foo.id)
xml.created_at(foo.created_at)
xml.last_updated(foo.updated_at)
foo
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*
Enter Details for new Partner:
<% form_for(@partner) do |f| %>
<%= render :partial => 'form', :lo
5 matches
Mail list logo