Displaying 20 results from an estimated 6000 matches similar to: "Is AJAX/RJS secure enough for enterprise data hanling?"
2005 Dec 29
6
How do I open and read/write to a file?
I need to process some text files quickly. I''ve not been able to find the
answer in the archive. The Ruby Standard Library site times out. Can
someone tell me where to find info on how to:
1. Get a list of filenames in a directory.
2. How to open a file.
3. How to read it a line at a time.
--
Thanks in advance for the help,
-Larry
"Work, work, work...there is no satisfactory
2006 May 22
4
naming convention for bridge tables.
I read somewhere that the correct naming of bridge tables is in alpha order.
For example. I have two tables:
houses, and colors.
If I want to create a bridge table to associate colors with houses, I would
name the table:
colors_houses
The associations work fine.
But, if I have a table named: track_houses.
Building a bridge table called: colors_track_houses, gives me model
associaton errors.
2006 Mar 19
1
Ruby startup slow on Windows Server 2003
Ruby script/console takes 30-secs to start on the Windows 2003 servers in
our shop. Has anyone found a way to speed that up? ( I know Linux is much
faster, but that''s not an option, in this case).
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory alternative."
--- E.Taft Benson
-------------- next part --------------
An HTML attachment was
2006 Jul 17
6
Has markaby been abandoned?
Recently discovered Markaby. Before I use it on a production system, I''d
like to know if it is still being maintained? According to the change log,
the last change was in February of 2006. Does this mean that the project has
been abandoned? Or, at version 0.3 it was considered production stable and
complete?
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory
2006 Mar 23
6
[mongrel] [fedora5] install error " can''t find ruby libs"
Installed Fedora5.
Installed Ruby 1.8.4.
Installed rubygems.
Installed rails.
Created test app to verify that ruby and rails were working.
When I attempted to install mongrel via:
sudo gem install mongrel
I get this error:
Install required dependency daemons? [Yn] y
Install required dependency gem_plugin? [Yn] y
Building native extensions. This could take a while...
can''t find
2006 Mar 10
7
ODBC adapter connection help please.
Does anyone have any experience getting ODBC to work? I could really use
some help here.
I''m having trouble accessing a db2 database via odbc using rails. It''s an
external database, that I import data from. I have placed the connection
code in my model :
unless connected?
establish_connection(
:adapter => "odbc",
:dsn => "<dsn
2006 Jul 16
2
how to specify a hash in a migration create_table.
I want to have a column in my model that needs to store variable information
in a structured manner. For example,:
Equipment type computer:
ram: 512-mb
os: PuppyLinux 2.0.1
Equipment type router:
manufacturer: LinkSys
ports: 4
wireless: yes
I would have customized view ( RJS ) that would prompt the user for the
correct information based on the EquipmentType selected. The info
2006 Jun 15
6
[OT] Tables VS divs for form layout.
I''ve been using tables to get my forms to line up. ( I have usually one
column for labels, and a column for values ). Should I be using divs
instead? I''ve been reading some CSS design books lately. They tend to
recommend divs over tables for general page layout stuff. But, what about
the forms elements? What''s the ''best practice'' in this regard?
2006 Jul 13
5
RJS - bug I think - caching in development mode
I''ve got a page that has a <div> on it which is updated via RJS. If I add/delete from the <div>, advance to the next page, then use the Back button to return, the updates do not appear unless I Refresh the page. This is in development mode where caching is disabled (I checked development.rb to be sure). I''ve tried expiring the page and that doesn''t help.
2006 Apr 03
1
How to handle failed finds.
What''s the best way to handle a find that doesn''t find anything?
For example.
Model Foo
@result = Foo.find(:first, :condition => "some condtion string").name
if the condition is not met Foo.find stops the application with ''unexpected
nil''.
What is the best way to gracefully trap this error and return something
meaningfull to the calling
2005 Oct 12
6
[OT] Gentoo install help please
I''ve decided to take the plunge and go with Gentoo for my rails development
and test box. I figure the easy of maintenance is worth the setup hassles.
Anyway, I''m followin the instructions on the Gentoo web site. I''ve selected
the ..''i686'' 2.6 kernel for my 700mhz amd processor, and choosen stage3
install option from CD. I''m now at the the
2006 Apr 28
6
[OT] Ruby ftp client for windows
I know this is off topic, But, my boss has tasked me with finding a better
ftp client than the one in Windows XP. Is there a Ruby client that can
recover dropped connections, ( a resume feature)? Would be nice if it could
handle secure/ encrypted transmissions as well?
Failing that, can anyone recommend a good scriptable ftp client for the
Windows plaftorm?
--
Best Regards,
-Larry
"Work,
2006 Jun 02
14
Which is better for production: MySQL5 or PostGres8.1?
I''m coming from an Oracle and SQL Server background. I''d like to use
OpenSource for my next RoR project. MySQL5.x and Postgres8.1 seem to be the
most popular. I''d like some comments on which would be the better choice for
a production environment and why. Here are my initial concerns in order of
priority:
1. Works well with RoR. ( migrations, etc)
2. Stable enough
2006 Jul 12
4
error when using plugin discover
When I run ./script/plugin discover to register new plugin sites I get
stopped at this point with the following error.
...
http://svn.northpub.com/plugins/
http://rhnh.svnrepository.com/svn/public/rails/plugins/
(eval):3:in `each'': undefined method `[]'' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/plugin.rb:658:in
2006 Jan 27
2
Multiple database read
I have to extract data from an odbc connection to another database and put
into a MySQL database so that my rails app can manipulate it. What would be
the best way to set that up? Would I put the connection info in a
controller, so that the controller method with open and close the
connection? Any thought?
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory
2006 May 04
3
Date find help please.
Here''s my problem.
I have an ''Item'' model with a date column called "inserted_on" formatted as
"yyyy-mm-dd hh:mm:ss:t". I want to find all records that were inserted more
than 30 days ago. How would I say that using the Item.find ( :all .....)
method? I don''t fully understand the syntax. I tried
@result = Item.find( :all, :conditions =>
2006 May 29
3
is Sql Server support built in?
Have installed ruby-one-click installer 1.8.4-16 and rails. Am unable to
get an app to talk to by SS2000 database using adapter: sqlserver. Is Sql
Server support built-in, or do I need to install something else?
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory alternative."
--- E.Taft Benson
-------------- next part --------------
An HTML attachment
2010 May 15
4
Update successful. Thanks.
My desktop updated without a hitch... well, actually, I ran out of
disk space after the download completed, so had to clear some space,
but the update process continued from where I left off without a hitch
-- and that's hardly CentOS's fault. I've still got to update my
laptop, but am a little leery, because I think I've a got a hard drive
failing.
At any rate, thank you *again*
2007 Mar 22
1
CentOS 5 Beta Feels Snappier
Hi,
Is it me or is CentOS 5 faster than FC6? I just switched and it seems
that CentOS 5 loads faster and overall feels snappier. Could Red Hat
have optimzed EL more than Fedora?. Just curious.
I really like what I see with CentOS 5. The devs have done a great job
making a profesisonal looking distro. An of course kudos to Red Hat
for all the engineering and for making the SRPMS available.
Paul
2006 Jul 20
3
[OT Ruby] Displaying a binary ?
How to I display the binary equivalent of a number? I tried this:
b = 0b1101
puts b # returns decimal value ( 13 )
b.to_bn # generates "unable to convert FIXNUM to STRING.." error.
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory alternative."
--- E.Taft Benson
-------------- next part --------------
An HTML attachment was scrubbed...