Displaying 20 results from an estimated 10000 matches similar to: "WEBrick not starting"
2006 Jan 13
7
installing rails in vendor
Does a rails project automatically switch to using a "local" copy of
the rails libs if it exists in the vendor directory, or do I need to
tweak something else to pick it up?
Thanks!
-Theo
2006 Jan 22
6
Destructive behavior with link_to, button_to, :post=>true
Hello-
I would like to know what the suggested practice is for having multiple
submit buttons on a relatively complicated input page.
Let''s use the example of a Contact. There is lots of info there,
including name, address, phone number. There is also a list of "contact
associations" which can be modified on the same page.
Ideally, the user could have one
2006 Mar 21
5
Encrypting source / application licensing
Hey folks-
If I wanted to distribute my code to users that would run the code on
their own machine, how could I go about encrypting the source to run on
a user''s machine?
PHP has the Zend Encoder among others, I believe. Is there anything
similar for Ruby?
Jake
--
Posted via http://www.ruby-forum.com/.
2005 Dec 19
8
Simply Ruby question: "zerofill"
Hi there-
What''s the easiest/most efficient way to perform a zerofill in Ruby?
i.e. Given the value ''val'', I would like to do something like:
val = 43
puts val.zerofill(8)
---> "00000043"
gsub? sprintf of some sort?
Jake
--
Posted via http://www.ruby-forum.com/.
2006 Jan 15
4
Redcloth gem properly installed ... still errors
Hi all,
installed redcloth for using the object.attrib.textilize method in a template.
Using 3.0.3 because it supoosedly works the best with rails 1.0.0.
Keep getting the undefined method error. Did the require thingy, but no luck
What would be the most I''m-a-guru place to put the require btw?
Thanx.
Gerard
--
"Who cares if it doesn''t do anything? It was made with
2005 Dec 29
5
Extracting SQL and Rebuilding from SQL?
Hello-
With a database filled with several customers'' datasets, I thought it
would be a nice feature of my app''s backend interface to be able to
extract (and optionally delete) the data from a single customer. It
would then also be nice to rebuild that data from the stored info.
What''s a good way to do this efficiently?
If all the ":dependent => true"
2006 Feb 12
6
Design question - where to store constants?
Let''s say I create a "ticket system" that has a support ticket with a
status attached to it. (Say, OPEN or CLOSED for now, but more later)
The status -could- be another table in the database listing status
types, but I think that''s unnecessarily complex and overly flexible for
this. (opinions on this point would be interesting)
Another alternative would be to
2006 Jan 20
10
Generating a long, unique "ticket" number.
Hello --
I would like to setup a system where a user can generate a "ticket".
This ticket will be stored indefinitely. The ticket will be sent to
someone who does not have an account on the system and therefore, I
would like to ensure some level of security in that ticket number.
Basically, the other user would receive an email like:
---
Please click on the link below to view this
2006 Feb 05
3
Accessing Strongspace from a rails app
Is there any information on how to go about accessing a strongspace
account from a rails app? What are the preferred methods for doing
this?
Are there plugins for RoR that support SFTP transfers and so on?
Jake
--
Posted via http://www.ruby-forum.com/.
2005 Dec 22
3
Does Switchtower support svn+ssh://
All the examples I''ve seen have the SSH repository accessed via http://
Does Switchtower support svn+ssh:// URLs?
Jake
--
Posted via http://www.ruby-forum.com/.
2006 Jun 13
6
Dead horse: validates_associated
Regarding validates_associated...
Let''s say I have:
article belongs_to author
But for whatever reason, I want an article to also be written
anonymously and therefore not require an author. Then I have:
Article:
belongs_to :author
validates_associated :author
But I DON''T have validates_presence_of. What I want to do is validate
that an author is valid --if it is
2006 Jul 29
2
PHP in Rails app running on WEBRick
Hi all,
I''ve got a Rails app, and I''ve been asked to include some PHP pages in
the site. They don''t need to interact with the Rails app itself (I''d
treat them much like GIF files), but I''d still like to be able to
access them at development time using WEBRick.
What do I need to add to ./script/server to support PHP pages?
Cheers,
Douglas
2006 Feb 12
3
AJAX to a table row
Hello-
I''d like to throw a little AJAX into a table to allow the user to edit a
single row of data inline rather than moving to another page.
The row (which has N columns) would be swapped out for a row which has a
single column (colspan="N") and the form inputs would be in that row.
My question is, is this legal HTML? I can''t find anything that says
either way.
2006 Apr 18
7
freeze_gems to upgrade and SVN
Hi all-
I just decided to move from my 1.1.0 to 1.1.2. I had previously frozen
to 1.1.0 and therefore had all of rails in SVN in my vendor directory.
When I finally got rake freeze_gems to work, it blasted (rm -rf) my
vendor/rails directory and put a new one in there. This also blasted
all my .svn directories.
Is there some convenient way to do a freeze upgrade and play well with
SVN?
2005 Aug 26
5
net ads join error
Compiling version 3.0.20 from source on RedHat Fedora Core 4 everything
seems to go smoothly. However upon trying to join a 2000 domain with
the following command "net ads join -U Administrator%Password 'OU'" I
get the following error:
[2005/08/26 09:43:56, 0] utils/net_ads.c:ads_startup(191)
ads_connect: No such file or directory
I have checked my smb.conf file with
2005 Mar 18
5
idmap LDAP backend
I'm trying to use the LDAP backend for the idmap database but I just
can't seem to get it to work. There really is rather pathetic
documentation out there on how to implement this. I've basically got my
ldap server setup with an OU called smb and another OU under it called
idmap. Here is my smb.conf file:
[global]
workgroup = HQ
server string = Theo's Samba Server
2006 Jun 05
3
Best practices with Web Services
Hello--
I''m investigating the API facet of my site and wanted to ask a couple
questions:
1. The Agile book describes adding an API using the web_services
generator which adds stuff to app/api. In Rails 1.1, Jamis added some
wants.xml stuff to the controller code which also allows API generation.
Which is better to use now? Do they mutually exclude one another?
2. In some cases, I
2006 Jan 31
2
Design question: Storing user fields
Hello-
I have a database/rails design question. I''d like the user to be able
to specify a set of fields they would like associated with items.
Imagine a shopping cart where each item has a description and price.
But a particular customer may choose to associated a color with all her
items. (it will be site-wide, so every item listed for this particular
user will have this
2006 Jan 01
7
How to show progress
I''m looking for ideas on how you would implement a controller/view in
Rails that needs to show the progress of a possibly 2-3 minute
operation.
For example the user wants to generate 100 reports that will take about
3 minutes. I would like to have a page that would indicate that the
operation is taking place as well as showing progress as to how far
along. With basic CGI you could
2005 Dec 25
4
Rails + SOAP ?
Hello-
I have a Rails web app that is database-centric (go figure). What I
would like to do is expose certain parts of this database to an
application running on a Windows box (or whatever). For the moment,
let''s consider the read-only case, but authentication will be required.
Is SOAP what would be used for something like this? Are there better
alternatives?
The existing