Displaying 20 results from an estimated 600 matches similar to: "about ERB sample"
2012 Apr 24
3
How to increment variable in erb template ?
Hi'',
I''m looking for a way to increment variable in template (erb file).
I tried this, but it didn''t work
Compteur <%= compteur %>
> <% compteur = compteur + 1 %>
> Compteur <%= compteur %>
>
I''ve got this error :
> Error 400 on SERVER: Failed to parse template test/test.erb: undefined
> method `+'' for
2006 Feb 20
7
Native erb lacks -%>, where is Rails'' erb?
Native ERB in ruby, and eruby, seem to lack the -%> feature for
suppressing trailing newlines. Thus
erb -n script
gives errors. Where is Rails ERB so I can invoke it directly?
Thank you
Hugh
2006 Jul 29
10
Out Of office
Ik ben afwezig vanaf 29/07/2006 en ik ben niet eerder terug dan
23/08/2006.
Ik ben met verlof van 31 juli tot en met 22 augustus.
Voor dringende zaken kan je mailen naar helpdesk@vlafo.be.
---------------------------------------------------------------------------------
DISCLAIMER :
De personeelsleden van het agentschap doen hun best om in e-mails
betrouwbare informatie te geven. Toch kan
2009 Nov 23
2
Question about S4
Dear R-ers,
I don't understand the following, maybe someone will help me
explain:
> setClasss('A')
[1] "A"
> new('a')
Error in new("a") :
trying to generate an object from a virtual class ("a")
> setClass('b', contains='a')
[1] "b"
> new('b')
An object of class ?b?
<S4 Type Object>
In what
2006 Feb 20
4
SHow do you suppress ERB newlines globally
Is there a config flag to suppress the newline at the end of every ERB
''%>'' tag, so it would not be necessary to type ''-%> each time?
--
Posted via http://www.ruby-forum.com/.
2004 Jun 30
6
Can the mailing list archive be searched?
It says the list has been "picked up" by google, but I can''t find any
reference to "lartc". A search on "traffic control" and "advanced routing"
returned these groups;
comp.os.linux.networking
fr.comp.os.linux.configuration
hun.lists.mlf.linux
comp.os.linux.security
_______________________________________________
LARTC mailing list /
2007 Nov 28
1
Order observations in a dataframe
Dear All,
Suppose I have the following dataframe:
country;weight;group
bul;10;1
cze;12;1
grc;12;1
hun;12;1
prt;12;1
rom14;1
fra;29;2
ita;29;2
gbr;29;2
aut;10;3
bel;12;3
The "group" variable denotes the id-number of a group of countries. How can
I re-label the groups in the descending order of their cumulative "weight",
which wound be:
country;weight;group
fra;29;1
ita;29;1
2009 Feb 12
3
Website, book, paper, etc. that shows example plots of distributions?
By any chance is any one aware of a website, book, paper, etc. or combinations of those sources that show plots of different distributions?
After reading a pretty good whitepaper I became aware of the benefit of I the benefit of doing Q-Q plots and histograms to help assess a distribution. The whitepaper is called:
"Univariate Analysis and Normality Test Using SAS, Stata, and SPSS*" ,
2006 Aug 01
2
apache and fcgid
So I decided to just go with apache2 and fcgid. I looked into Mongrel
and apache and I looked into lighttpd and fastcgi and found both to be
too time consuming and not well enough documented for what I''m doing.
My question is, how do I set up apache and fcgid to actually work? I got
apache installed. I think I got fcgid installed (I read somewhere all I
have to do is move the
2006 Apr 11
9
Rails failure after upgrade to 1.1.2
Greetings,
I tried upgrading Rails to 1.1.2 and now nothing is really working. In
connection to the Rails upgrade I upgraded my Ruby version to 1.9.0. I
also upgraded all my gem installs.
Since my old rails apps stopped working I tried generating a fresh one
, alas with the same result. Below I included the full trace when
trying to reach the app. Line 3 in application.rb is :
class
2006 Aug 16
7
ActionWebService: XMLRPC Server Multicall possible?
Hi all,
I have a question concerning ActionWebService XMLRPC servers: Is it
possible to send multicall requests to the Web service? I tried to
use multicall and get the error message:
no such method ''system.multicall'' on API [MyAPI]
In Changeset 2021 there is the following commit message:
add ''system.multicall'' support to XML-RPC. boxcarred methods must
2006 Mar 22
14
currency conversion webservice in a rails app?
Hi,
I''m interested in using a currency conversion web service in my rails
app. Does anyone have a free service that they use and like? I found
this one
http://www.webservicex.net/WS/WSDetails.aspx?CATID=2&WSID=10
I''ve tried to make a simple, plain Ruby script to connect to this and
get a conversion rate without success.
How do I integrate a webservice into my rails app? I
2006 Feb 16
9
association not inserted automatically.
Hello,
I am trying to write a sample application.
I have
class LineItem< ActiveRecord::Base
belongs_to : order
end
&&
class Order < ActiveRecord::Base
has_one :line_item
end
Now in the controller i am trying :
def add
@ord = Order.new(params[:ord])
@ord.line_item = LineItem.new(params[:lineitem])
if @ord.save
redirect_to :action => ''list''
else
render
2009 Nov 18
2
Unnecesary code?
Dear R-ers,
While browsing the R sources, I found the following piece of code
in src\main\memory.c:
static void reset_pp_stack(void *data)
{
R_size_t *poldpps = data;
R_PPStackSize = *poldpps;
}
To me, it looks like the poldpps pointer is a nuissance; can't you
just cast the data pointer and derefer it at once? Say,
static void reset_pp_stack(void *data)
{
R_PPStackSize = *
2006 Apr 03
11
Runaway FCGI Processes with Debian, Apache
Hi all.
There is an issue with Rails, FastCGI and Apache2 on
Debian that I''ve been dealing with since I started
Rails development in late 2005. I''ve developed
various workarounds but have not been able to solve
the problem at the root.
Every so often, for reasons I''ve never been able to
determine, a load of dispatch.fcgi processes get
spawned and take over my whole
2006 Jul 12
11
ruby-debug 0.1.3
Hello Everyone,
I''m pleasant to announce the release of ruby-debug 0.1.3.
If you think that ruby-breakpoint is too limited for your needs and
debug.rb brings your application to its knees, you might find
this small extension useful.
INSTALL
It''s a usual procedure:
$ gem install ruby-debug
DOCS
This library has almost identical interface with the standard debug.rblibrary.
2006 Feb 17
7
Create and then show
I am attempting to redirect to the show method after creating a new
object. So, for example, once a new post is created the user is
presented with the new post in a show view. The problem is I can''t get
the correct <at> post.id to send to the show method. Rails always
returns 0 for this value.
Here''s what I have so far:
class ContentController < ApplicationController
2006 Apr 06
2
Directory for ActionWebService classes?
Hi all,
If ApplicationController subclasses live in app/controllers, and
ActionWebService::API::Base subclasses live in app/apis, do subclasses of
ActionWebService::Base live in app/services?
This may be a "duh" question, but I couldn''t find an explicit mention of it
anywhere.
Thanks,
Dan
2006 Feb 17
2
form_tag with protocol => ''https'' help
Hi,
I am not having much luck using the form_tag with a protocol. I try
the following in my view: index.rhtml
<%= form_tag({:controller => ''home'',:action => ''login'',:protocol =>
''https''},{:method => ''post''}) %>
hoping it would generate
<form action=''https://myhost.com/home/login''
2006 Feb 17
2
console doesn''t work
any one know this problem?
when i try to run console
#---------------------------------------------------------------
>ruby script/console
>Loading development environment.
>/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require'': no such file to load -- readline >(LoadError)
> from /usr/local/lib/ruby/1.8/irb/completion.rb:10
> from