[Rails] Re: Render partial generate unwanted spaces
Hello Colin and thanks for the idea, it didn't even occured to me!...I
did as you said and it the problem seems to come from the inner
components (tables, divs...) because when I writea text at the
beginning of the partial page it shows correctly (without extra
spaces), not the render partial. trying to figure out what's going on
as css files don't seem to be in cause.
On 19 oct, 15:09, Colin Law <clan...@googlemail.com> wrote:
> On 19 October 2010 20:51, CiriusMex <cirius...@gmail.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home