Re: [Rails] using partials

2013-03-30 Thread Colin Law
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| > |||

[Rails] using partials

2013-03-30 Thread Jay notReq
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| ||| ||

Re: [Rails] Using partials with XML builder, what's the right way?

2010-06-10 Thread Walter McGinnis
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

[Rails] Using partials with XML builder, what's the right way?

2010-06-09 Thread Matthew Hillsborough
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

[Rails] Using partials with form_for

2009-02-06 Thread Sahil Dave
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