Displaying 20 results from an estimated 1000 matches similar to: "Native erb lacks -%>, where is Rails'' erb?"
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/.
2006 Mar 02
5
Need to link to something like JasperReports
Hello everyone,
Has anyone linked Rails to a report generator such as Jasper Reports
(http://jasperreports.sourceforge.net/)? At the moment, I think I
need something along these lines for a project I''m working on, so it''d
be nice to know if anyone''s used it before before I bring it up as a
suggestion.
Doesn''t have to be JasperReports, and in fact I''d
2006 Jul 25
3
about ERB sample
Hi list:
I run the ri''s ERB doc 1st sample
1. require ''erb''
2. x = 42
3. template = ERB.new <<-EOF
4. The value of x is:
5. EOF
6. puts template.result(binding)
the doc say it will print
"The value of x is: 42"
but my irb print "nil" and there is a
"=> #<ERB:0x2970b24
2006 Apr 27
7
RJS & Ajax question...
Hi,
I''m trying to convert an older Rails application to use Ajax. I''ve
already moved my edit and show actions so that, instead of displaying as
separate pages, they appear in a <div> on my list view.
However, I have two problems:
1) When the user saves the changes, I want to put all the ajax changes
in an RJS template. However, form_remote_tag :url =>{:action =>
2006 Aug 28
10
Templates and arrays
I''m in the process of documenting templates right now, and I figured
I should see what happens when you use them with arrays:
$ cat ~/bin/test.pp
$values = [this, is, an, array, of, values]
$content = template("/tmp/templates/testing.erb")
file { "/tmp/temtest": content => $content }
$ cat /tmp/templates/testing.erb
<% values.each do |val| %>
I got
2006 Jan 04
7
<% if ... -%> What is this?
I seen some RoR code that went like this:
<% if ...blah, blah... -%>
.. blah, blah
<% end -%>
What are the minus signs for in the if statement? Cannot seem to find
anything about this, and searching on "-" in this context is hard to get
anything meaningfull back.
Thanks,
- Mark
--
Posted via http://www.ruby-forum.com/.
2006 Feb 27
2
submit_tag
How can i use the submit_tag method (from: actionView::FormTagHelper)
to create various submit buttons and chose the right action in accord to
the button that i pushed?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 23
6
irb with rails
I was trying to access rails functions (number_with_precision) from an
irb session.
It can''t find the method. How do I load the libraries ?
TIA
LS
--
Posted via http://www.ruby-forum.com/.
2006 Jan 04
5
Rails with ireport
Hi all, since there isn''t good reporting for rails, I''m thinking to use
jasper report instead. Can anyone tell me how can I integrated them
together? especially how can I pass parameter from rails to jasper report.
2006 Feb 23
12
how to output something from within <% %> tags?
simple question: how do I output something from within <% %> tags? e.g.
like ''echo'' in PHP. I thought it would be ''puts'' or ''print'' but neither
seems to work. right now I always close the %> and open a <%= which is
tedious.
--
Posted via http://www.ruby-forum.com/.
2007 Sep 28
2
RoR uses something rather than erb or eRuby?
it seems that RoR doesn''t use erb or eRuby to generate its output for
rhtml?
the program erb and the description of eRuby at
http://www.eruby.info
both said that
<% print "foo bar" %> or <% puts "hello" %>
will be placed into the output...
but currently for RoR, it won''t...
only <%= expr %> is doing it and it cannot be print or
2006 Jun 22
2
eRuby/erb
Hello. Prospective Mongrel user here.
Can Mongrel act as a server for eruby or erb files?
Example:
<html>
<body>
<p>The time is <%= Time.now %></p>
</body>
</html>
Pistos
2005 Nov 22
3
Idiom for submit button?
What is the rails idiom for submit buttons on forms?
All other field types have helpers, but button_to creates its
own form, so should not be used. I''ve looked in "Agile Web Dev. with
Rails" but can''t see what I should do instead.
Is this "difficult" because it runs counter to AJAX type forms?
And, related, is there a way to ensure that hitting return in
2005 Nov 23
15
:conditions => ... formatting
With code like:
if @params[:pnumber] =~ /\s*p?(\d+)\s*/
if student = Student.find_first(:conditions => ["pnumber like \":pnumber%\"",
{:pnumber => $1}])
@borrower = student
elsif emp = Employee.find_first(:condiwions => ["pnumber like \"?\"",
{:pnumber => $1}])
@borrower = emp
else
2002 Jan 24
1
PATCH: krb4/krb5/... names/patterns in auth_keys entries
This patch (to OpenSSH 3.0.2p1) adds support for using krb4, krb5 and
other principal names in authorized_keys entries.
It's a sort of replacement for .klogin and .k5login, but it's much more
general than .k*login as it applies to any authentication mechanism
where a name is associated with the ssh client and it supports name
patterns and all the normal authorized_keys entry options
2005 Dec 13
4
find()ing rows w/ NULL columns?
Agile Web Development with Rails doesn''t seem to have NULL in the
index [or my eyes have failed me again], and web searching turns up
lots of SQL statements containing NOT NULL.
I have a table of loans, and I want to record when something was
loaned and returned. The loan date can''t be null, or there''d be
no entry in the table. The return date must be something
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
2000 Feb 01
3
logging RSA key IDs
Hi. To compartmentalize things a bit (e.g., to help limit the damage
should one of my machines be hacked and my private RSA keys stolen) I
use different RSA key pairs on my different client machines.
So it occurs to me that it would be nice if ssh could log which key
was used when logging in to a particular account that has more than
one entry in .ssh/authorized_keys. Right now it simply says
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