Displaying 20 results from an estimated 3000 matches similar to: "AR - Migrations - how to use a varchar as primary key instead of int ?"
2006 Feb 09
4
Setting up Ruby + RubyOnRails on the new intel mac (any feedback?)
Hi
I''m about to attempt to setup RoR on an iMac powered by an Intel core duo.
Before I start, is there anyone who would have some feedback about a similar
setup (and likely, the caveats hidden down there) ?
thanks!
Thibaut
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
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 May 18
2
Rake: How to determine the Rails version?
Hi all
I''m learning to use Rake for migration etc.
I wonder if there''s a way to determine the currently used Rails version,
so e.g. when installing a new engine using Rake I could check if there''s
a version used that''s older as needed and so abort the installation. You
know what I mean? ;-)
Thanks and greetings,
Joshua
--
Posted via
2006 May 23
2
Is there anybody use radrails as the editor?
Could anybody told me how to set the rdoc and ri for the radrails?
I am using Windows XP, RadRails 0.63 and Ruby 1.82
I cannot set the rdoc and ri to a directory. Which file should I set
for that under the ruby''s path in the preference in radrails?
Thanks.
--
Best wishes,
Xu Wenhao
2006 May 12
2
Do you store the source of third-parties plugins you rely on in your own version control ?
Hi!
well the subject is telling everything - I''m just curious to know how other
railers handle this (for me the answer is yes, clearly!)
cheers
Thibaut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060512/0b59b57b/attachment-0001.html
2006 Jan 16
23
Read data from Excel
A client of mine has a ton of data stored in Excel spreadsheets. I''m
building a web application for her (backed by a real db of course) and want
to import all that data. Is there a library available to read data from
Excel? Is there an easy way to upload the spreadsheets and then read the
data?
Thanks,
Ken Kousen
--
Kenneth A. Kousen, Ph.D.
President
Kousen IT, Inc.
2006 Feb 08
8
[kind of OT] Software Remote connect to MacOS ?
Hi
sorry for the slighty out of topic question but I''m sure someone here will
be able to answer.
Does anyone use some kind of remote connection to connect to MacOS ? I''m
thinking of using VNC but I''d love to hear from other (especially secure)
alternatives.
I''m just fond of textmate, I have a dell laptop which I''d like to use as a
terminal.
kind
2006 Jul 05
2
Serialized object behaves weird
Hi!
I got a class named EinsatzFilter which I serialized to session. Before
saving to session it works afterwards I keep getting the message:
"undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from
ActiveRecord::Base inherited class.
Code:
class EinsatzFilter
include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
2006 Jan 21
4
Migrations and Time datatype. Bug?
I''ve defined a table with these columns
t.column "some_date", :date, :null => false
t.column "some_time", :time, :null => false
The result in schema.rb is
t.column "some_date", :date, :null => false
t.column "some_time", :time, :default => Sat Jan 01 00:00:00 GMT
Standard Time 2000, :null => false
The time column generates a
2006 Feb 13
6
Form -> File save tutorial
I want to develop a web application that allows a user to input data into a set of forms and then save that data in an XML file format to their hard drive. Can anybody point me to a Ruby\Rails tutorial that would help?
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 17
4
NOOB: Representing linked objects in one form
Given two models:
User
:name
:email
:address_id # foreign key
Address
:line_1
:line_2
:city
etc.
I want to have a form allowing a user to register, in which she''d enter
an address as well, but how do I go about combining both objects into
the one form?
I''m new to this and following along with the Agile Rails book from the
Pragmatic Programmers, but it
2005 Dec 29
4
Paginate do a Count(*) request before, how access that count value.
Hello,
AV::paginate query first by a count, how access this value in the
controller or view ?
Why ?
Because I''ll like to display the total number or records found w/o
doing another expenssive Count.
Thanks,
2007 Oct 16
2
Primary Keys enforcement vanishes in test database
I use this naming convention for primary keys:
ActiveRecord::Base.primary_key_prefix_type
= :table_name_with_underscore
I generate the MySQL test database: rake db:test:prepare, and although
the column is there there is no primary key enforcement/index and no
autoincrement (so activerecord saves fail). Is this a bug? What is
the best workaround?
Alan
2006 Jun 12
2
Migrations and primary id
I set up a migration yesterday for the first time and remembered that Rails
will assign a primary id column on it''s own. No need to put it in to the
SQL.
The name of the column though is just "id", is there a way to over ride the
default if I wanted ?
TIA
Stuart
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Oct 02
13
[Slightly OT] Do you use virtualization in production ?
Hi!
I''ve been using parallels, vmware player, or virtual pc (did not try xen
yet) for development, testing and experimenting with new platforms (and I
must say I love them - copy paste a few files, and I have a clean deployment
box etc)
Since the RailsConf and various talks I''ve seen (like Jason Hoffmann''s
http://svn.joyent.com/public/JasonHoffman-EuroRailsConf.pdf ,
2006 Feb 14
4
SSO with IIS?
I have a customer that I''m developing a solution for on RoR. They have IIS
today and use Sharepoint for their intranet. Is it possible to have some
kind of single sign-on between these systems? So when a user is logged in to
ther Sharepoint she will also be logged in to my rails-app? We haven''t
decided yet on what to deploy rails on so I''m open to suggestions... If we
2006 Feb 27
4
2 belongs_to to the same parent table
Hello!
I have 2 table: users and buddies
User: id, name, ...
Buddy: id, user_id, user_buddy_id, ...
So if you have 2 users 1,jack and 2,fred and fred is a buddy of jack,
there is a Buddy object: id=1, user_id=1, user_buddy_id=2
I can declare only one belongs_to in Buddy and one has_many in User. And
there is conflict if I had the second one (the first one is discarded)
class User
has_many
2006 Apr 20
11
dynamic mock object anyone?
Hi guys, got this problem with creating such a thing... hope anyone
could help..
the problem:
ok, now i have this mock object that would simulate a external rpc call.
eg
require ''models/xmlrpc_agent''
class XmlrpcAgent
def create(params)
200
end
end
but the value of the value returned is fixed. which is quite hard for me
to test the controller when different
2006 May 17
6
newbie wants to know..FasterCSV or just CSV?
I''m trying to grab a CSV file from a user and let them upload it
directly to my database, but doing some minor checks on the data before
saving. Which is the easier way to implement this? CSV or FasterCSV? I
saw that perhaps there were some issues with FasterCSV and csv files
created from Mac versions of Excel.
Anyone have any experience with this and can recommend a newbie friendly
2006 Apr 27
1
Any ruby wrapper for Reuters SSL ?
Hi
Does anyone know of a ruby wrapper for Reuters source sink library (like the
perl one http://search.cpan.org/~cbarkey/Reuters-SSL-0.52/ ) ?
any pointer welcome!
thanks
Thibaut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060427/8ec394ad/attachment.html