Displaying 3 results from an estimated 3 matches for "contentdivs".
2006 Feb 20
3
Rewriting with an after_filter
...an''t find
how to do it.
I think what I want to do is gsub(/UserName/, ''Matthew''), however, I''m
clearly missing something. Here''s what I use:
<code>
class DisplayController < ApplicationController
after_filter :customerize
def show
@contentdivs = Contentdiv.thispage(params[:page])
end
def customerize
@contentdivs.gsub(/UserName/, ''Matthew'')
end
end
</code>
@contentdivs contains bits of html that show.rhtml nicely formats.
thispage() selects only those with an attribute that matches the page
requested...
2007 May 15
1
Effect.dropout and Too Much Recursion Error
Hi,
I need some help again. :-)
I have "Too much recursion error" prototype.js line 1288,
I heve this error when I try to use Effect.dropout (script.aculo.us)
if I remove table ID, there is no error, and the effect works fine
(remove the tr from table)
But I need this ID assign to this table, as table ID is used by other
effect (Builder.node)
Please help ....
Thanks
YUAN
Here is
2006 Jan 06
3
Using DIV tags in HTML - a better Ruby/Rails way?
People,
I can use a DIV tag for exact positioning of fields on a form:
Creating a DIV tag creates a layer.
The DIV tag contains a style attribute with positioning information. It
might also have border and size information, if appropriate.
Here is the basic DIV tag required for exact positioning:
<div
style="
top: 99;
left: 99;
position: absolute;