Displaying 20 results from an estimated 100 matches similar to: "Using a C program inside of Rails"
2006 Nov 04
2
[ Rails ] Multiple rails apps on 1 host
Team,
I''m trying to figure out how to run 2 rails apps on one host.
I ran an experiment:
cd /tmp/
rails app1
rails app2
cd app1
script/server
rails put a copy of lighttpd.conf in
/tmp/app1/config/
and then started lighttpd
http://localhost:3000
gave me the splash page.
I shutdown the server
I added something to
/tmp/app1/config/lighttpd.conf
server.modules = (
2006 Aug 04
8
Demo in rails2.pdf of add_price migration, PostgreSQL 8.1.4
People,
I''m looking at the migrate example on p 74 of the rails2.pdf
It''s a simple example of using a migration to add a column to
the products table.
Here is a copy of the migration file named 002_add_price.rb
after I generated and then edited it:
class AddPrice < ActiveRecord::Migration
def self.up
add_column :products, :price, :decimal, :precision => 8, :scale
2006 Jul 31
3
PostgreSQL, postgres gem, rails2.pdf, http://ruby.scripting.ca/postgres/ confusion...
Hello people...
In the rails2.pdf Dave T says:
Rails works with the DB2, MySQL, Oracle, Postgres,...
The database drivers are all written in C and are primarily distributed in
source form.
Then he lists this site:
http://ruby.scripting.ca/postgres/
Then he says,
There is a pure-Ruby version of the Postgres adapter available. Download
postgres-pr from the Ruby-DBI page at
2005 Nov 19
1
How I provide a session object to Functional Tests?
People,
I''m looking at p. 152 in the Rails book where he talks about testing
controllers [ functional tests ].
First he shows a method, test_login_with_valid_user, which tests
that it''s possible to login with a valid user/password combo.
Then, he talks about extracting the code he just wrote and placing it
into a login method inside of test_helper.rb
Once the method is there,
2006 Aug 17
2
SaltedHashLoginGenerator no such file to load -- iconv
Hi,
I''m trying to use the SaltedHashLoginGenerator as documented on
http://wiki.rubyonrails.com/rails/pages/SaltedHashLoginGenerator
Ruby version: ruby 1.8.4 (2005-12-24) [i386-openbsd3.9]
I''ve the following commands:
gem install salted_login_generator
gem install localization_generator
rails myapp
cd myapp
ruby script/generate salted_login User Localization
All ran
2005 Oct 30
1
attaching the debugger to functional test.
People,
I''m trying to run the ruby debugger against a Test::Unit::TestCase class
which is a parent of a Rails class.
I started my study with a simple script:
#
# bikle_test.rb
#
require ''test/unit''
class BikleTest < Test::Unit::TestCase
def setup
@string10 = "hello"
end
def test10
assert_equal @string10, "hello"
end
end
The
2014 May 09
1
CentOS 6.5 fresh install, public ssh keys cannot authenticate
Dear List,
I cannot get public ssh keys to work in a fresh install of centos6.5
This might be a centos bug.
I've googled for a solution.
Mostly I found threads suggesting I debug sshd or run ssh -v for clues.
Also I've seen threads suggesting I look at file and directory permissions.
I dont think I should need to debug sshd after a fresh install.
Also I think a fresh install should
2006 Jul 09
1
Tiger OS X darwin ports problem with readline
Hi,
I just edited this page:
http://wiki.rubyonrails.org/rails/pages/DarwinPorts
I thought I''d post something to this mail-list in hopes of an answer..
I''m running Tiger.
On my Mac, I cannot get past installation of readline:
mac:~ mac$ sudo port install readline
Password:
---> Fetching readline
---> Attempting to fetch readline51-001 from
2006 Aug 25
0
Re: login sugar
Well,
it turns out that this piece of software requires that a new user
call the welcome action. The welcome action changes the user''s state
to verified. Once the user is verified, he will be allowed to
attempt authentication. The login page actually states this
which is useful to me once I read it.
I get the URL to the welcome action from the e-mail sent out
or the development.log
2006 Sep 07
4
Install config: lighttpd dead but pid file exists
I''m trying to run rails on RHED (centos 4) by following this tutorial:
http://wiki.rubyonrails.org/rails/pages/RailsOnRHEL
and something is gone a bit astray during the install process that is
not allowing lighttpd \ apache to run rails on the web.
Since i''m running Centos, I should mention I''m NOT running SELinux.
As it is, i''m at a total loss as to why
2010 Jan 06
0
Built with Rails: http://hpricot.com
People,
I enhanced http://hpricot.com and deployed it to heroku.
I use hpricot.com to build and test various hpricot expressions and
then run them against a variety of websites.
Hpricot.com shows you the resulting html.
Also hpricot.com will render the resulting html.
For some development activities, hpricot.com is useful.
If you have any questions, e-me.
Thanks,
--Dan Bikle
--
You
2010 Nov 27
1
sed with several lines, how?
hyphen's [ - ] are just for marking the start/end of a pattern, but
there are _not in_ the pattern!
"OUTPUT" is what i want after "seding" the PATTERN#X's
so i for e.g.: need the first, and second "magic"
sed "FIRSTMAGIC" PATTERN#1
sed "SECONDMAGIC" PATTERN#2
PATTERN#1:
-----------------------------------
SOMETEXT#1
2009 Apr 17
2
how to call javascript function in text_field_tag
Dear all
Sorry for dummy question. How can I convert a text input in form to
upper case letter in view?
Can I call the javascript function toUpperCase() in text_field_tag??
<%= text_field_tag(:sometext, nil, :size => 14) %>
I know I can achieve this using params[:sometext].upcase in controller,
but I want to do this in view. Any ideas?
Many thanks
Valentino
--
Posted via
2006 Mar 25
2
Textilize problems with line breaks
I''m having a problem formatting some text. I have a textarea that I
input my text into, which will then be put into an e-mail and sent out.
The problem I am having is when there is a single line break.
Multiple line breaks work fine (hitting enter twice), but single line
breaks don''t seem to work properly.
Take the following input:
Line1.
Line2.
Line3.
Line4.
Using
2000 Nov 08
1
Graphics-Device-Size vs. Window-Size
I want to layout on screen a graphic bigger than the screen (width=16.53543,
height=11.69291) but strwidth() and strheight() give wrong results.
> x11(width=42/2.54, height=29.7/2.54, pointsize=12)
> plot(1,1, type="n", xlim=c(0, 1), ylim=c(-1, 0), xlab="", ylab="",
axes=FALSE)
> strwidth("Whatever")
[1] 0.08471151
> # Now resize the window and
2000 Nov 08
1
Graphics-Device-Size vs. Window-Size
I want to layout on screen a graphic bigger than the screen (width=16.53543,
height=11.69291) but strwidth() and strheight() give wrong results.
> x11(width=42/2.54, height=29.7/2.54, pointsize=12)
> plot(1,1, type="n", xlim=c(0, 1), ylim=c(-1, 0), xlab="", ylab="",
axes=FALSE)
> strwidth("Whatever")
[1] 0.08471151
> # Now resize the window and
2005 Jul 19
2
segfault with grid and null unit (PR#8014)
Full_Name: Jonathan Paisley
Version: 2.1.1
OS: Mac OS X 10.4.2
Submission from: (NULL) (81.178.107.67)
I was following an example from library/grid/doc/grid.pdf ("Introduction to
grid") and had the following code, where I'd mis-typed 1,3 instead of 1,2 as the
first arguments to grid.layout.
Sourcing this code causes the R GUI to crash. I've enclosed a partial backtrace
from
2015 Jul 31
2
FTS not indexing new folders (mailboxes)
Hello,
Im getting problem on FTS on new created folders (mailboxes).
How to simulate:
- Enable FTS (solr on our case)
- Create a new folder (mailbox)
- Move some message to that mailbox
- Try to search for the message contents
*doveadm search -u user at domain text sometext*
# Found nothing, but if i move the message to another mailbox, the search
catch the message.
# I tried doveadm index
2008 Oct 06
2
textilize with --- (3 dashes) removes text
Hi,
using --- (3 dashes) at the end of a string that is textilized,
results in a single hr tag without any text. This seems weird to me.
Am I overlooking something?
>> av = ActionView::Base.new
>> av.textilize("sometext ---")
=> "<hr />"
Cheers,
Jan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2007 Apr 17
2
format() applied to an NA character string (PR#9616)
I get strange results when I try to format() an NA character string.
> x <- 'sometext'
> x[1] <- NA
> format(NA, width=32) # displays sensibly, right-justified
> format(x,width=32) # displays sensibly, left-justified
> format(x,width=33) # displays ""
> format(x,width=36) # R exits abnormally with code 5
> version
platform i386-pc-mingw32