On 19 October 2010 20:51, CiriusMex <[email protected]> wrote: > Hello, I have a problem with the render :partial method in all my > rails webapplications. I noticed that using render :partial will > generate spaces (mainly top spaces) on the elements inserted. > As all my websites are seperated by module (basicaly header, content, > menu, footer) it's quite a problem as I have to set negative margin- > top to various parts for the site to display as expected and it's > getting very difficult to obtain a cross-browser homogeneous design.
Have you tried with some literal text as the very first line of the partial, such as <p>start of partial</p> to check the spaces are in fact before the partial, and also immediately before the render, such as <p>rendering partial</p><%= render :partial ....%> (all on one line). Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

