Displaying 20 results from an estimated 21 matches for "jakejanovetz".
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 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
2005 Dec 19
7
PDF Shipping Order from Rails...BOUNTY
Hello Rails Community,
I put this request out to the community a few weeks ago and got one reply and he ended up being too busy to do it.
So, let me try again. I have a need to generate a shipping order from an application that is rails driven. All the data for the shipping order is contained within two tables. I feel like it it too cumbersome to map out all the coordinates for the
2005 Dec 22
1
Re: Switchtower, Windows & Setup
...all the files in your script folder? If you''re
deploying from Windows to Linux, subversion has to know that these files
are supposed to be executable and that their end-of-line characters need
to be changed for the *nix environment.
If you need help doing this, let me know.
>>> jakejanovetz-/E1597aS9LQAvxtiuMwx3w@public.gmane.org 12/22/05 09:18AM >>>
jamis wrote:
> What version of the Net::SSH gem do you have installed? There was a
> problem with 1.0.2 that caused problems on windows. Please try
> upgrading your Net::SSH gem to the latest (1.0.3) and let me know if
&...
2006 Jan 18
23
RForum Software Sucks?
(Donning flameproof suit)
Am I the only person who thinks that the Ruby forum software sucks?
E.g. search only for a word. Can''t search for new posts, can''t search
by date, topic list doesn''t indicate when I''ve already read a post,
there can be several independent replies to a topic, just to name a few.
There are lots (admittedly not Ruby based) of good
2006 Jan 16
7
Editing N instances of a model on one page
I have a situation where I want to edit an arbitrary number of instances
of one model on one page. I can and have accomplished this by manually
managing the object <-> text field relationship, but in a way I consider
at best hackish. I''d like to know a clean way to do this.
If you want to edit the name attribute on a person class, you write code
like this
2006 Jan 25
11
Schemas and Migrations
Hello-
I''m new to the ruby-based schemas and migrations. As I''m looking over
examples and such online, I see that many of them don''t make use of
schema-enforced attributes. For example, instead of:
t.column "post_id", :integer, :default => 0, :null => false
They do:
t.column "post_id", :integer
So I''m wondering -- is this
2006 Jan 03
0
Extending association options
Hello-
I see that the trunk of Rails is moving with ''reflections'' for the
associations stuff. I would like to plug into some of this development
with an ''acts'' module and am wondering where best to find docs on it.
Say, for example, I''d like to add an option to belongs_to:
belongs_to :account, :new_option => ''name''
Where I
2006 Jan 22
0
Forms with multiple item entry
Hello-
I was wondering what would be the simplest/cleanest way to have a view
offer entry fields for several items (e.g. the "quantity" for items in a
shopping cart).
If I have a model such as "cart" which has_many "items", then I can use
"cart.items" to get an array of all of them. Each item has a quantity,
so I''d have
2006 Jan 23
0
Database column conventions
I''ve got a database with about 25 tables and growing. I was wondering
what conventions people use with rails for the columns regarding NOT
NULL and DEFAULT values.
I realize this depends a lot on the data being stored, but after
entering dozens of columns into the database, you have to come up with
your ''default'' case, right?
Generally, I just do NOT NULL DEFAULT
2006 Jan 26
0
Errors and Forms with arrays
Hello again-
I have a form with array information (like, say, items in a shopping
cart). Each item has several fields (quantity, for example).
Is there a nice way to specify the tags so that:
1. Data is extracted easily. They could be listed as "cart.items", for
example, but how to bring the updated data back into the array of
"items" without having to manually stuff
2005 Dec 18
2
Default routes for unknown actions
Hi folks-
I have the following map for default ''junk'' routes:
map.connect ''*anything'', :controller => ''welcome'', :action =>
''unknown''
Which works just fine for a URL like: "mysite.com/junkjunkjunk"
However, it still tries to resolve an action when I do:
"mysite.com/my_controller/junkjunkjunk"
2005 Dec 19
0
Application globals?
I''m curious how best to handle global constants in a Rails application.
That is, where do they go? I''ve seen a couple of possible places -- a
module, the ''application.rb''.
Let''s say I have a user-selectable configuration "config" that is stored
in a table as an INTEGER. The user could select among:
THIS_WAY = 1
THAT_WAY = 2
2005 Dec 21
0
Counting helpers through a view
I have a helper which will be placing certain tags through a view.
These tags have "Element.toggle" sorts of relations, so I need to have
different id''s assigned to their HTML elements.
What I would like to do is somehow count them as they are installed in
the view and reset at the top of the view. My current thinking is:
--- In controller ---
before_filter
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/.
2005 Dec 31
1
Web Services -- authentication?
I''ll be implementing a WS backend to an application which requires user
authentication to login.
Can this same authentication method (based on the salted hash login
generator) be used to authenticate web service access? Or, should some
other authentication method be used? i.e. each user must retrieve an
authentication token manually before setting something up to use web
services.
2005 Nov 25
0
Development environment?
Hey folks-
What is the preferred dev environment for Rails apps? I''m presently
using Eclipse with the RubyPeople RDT, but I''ve also heard of RadRails.
Are these comparable?
Jake
--
Posted via http://www.ruby-forum.com/.
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
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"
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