[Nitro] nobody there?
Emmanuel Piperakis
epiperak at softlab.ece.ntua.gr
Wed Sep 7 05:11:51 EDT 2005
Hi,
why doesn't anybody answer? :-(
The problem I am facing in kind of this:
most of the Mixin functions return a string using the %| .... | which
evaluates correctly when I pass #{...} in it, but when I use it in the
.xhtml files is is not correctly proccessed, eg
in the controller I have
def link_pop(function_s = "", label_s = "", caller_s = "", id_s = "")
%|\#\{popup(:text => '#{label_s}', :uri => '#{function_s}/#{caller_s}/#{id_s}')\}|
end
which I pass to the view through this...
@data = @bgroups.map {|b| [b.title_en, b.title_jp, b.creation,
link_set("sel","S","bgroup",b.oid.to_s),
link_pop("edi","E","bgroup",b.oid.to_s),
link_set("del","D","bgroup",b.oid.to_s)]}
then in the view I have...
#{table(:headers => @header, :values => @data)}
but instead of getting the popup link I get a string like...
#{popup(:text => 'E', :uri => 'edi/bgroup/1')}
Please help here...
Emmanouil Piperakis (epiperak at cs.ntua.gr)
{To explore is Human, to Create is Devine,
To teach is Primal, to Rule is Sin}
More information about the Nitro-general
mailing list