Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Ruby Solutions: 51 - 75 of 161
 
Ive googled around and I suck at Regexp.  Tried a few things Ive found, but can't find the right one.  I need a regexp that will take a string and split it on the white space, except for quote...
Experts, When I type: <% form_tag :id => @step, :action => 'update', :multipart => true do %> it produces the following HTML. <form action="/manage_step/update/1?multipart=true" method...
Hello, I am new to R on R and would like to know how to incoporate Framesets.  Where exactly should the FRAMESET code go? I have had limited success with the following code but the code in ...
I am reading the book Programming Amazon Web Services by James Murty. In the book he says "In this book we will demonstrate how to parse and create XML documents using the Ruby library called ...
Hi, I need to run mongrel as a native windows service and I googled tried some, but I got various errors. If I do this: mongrel_rails service::install -N ServiceName -c c:\web\AppName...
I'm trying to download and unpack a  gzipped file through open-uri and zlib with the code attached (the file mentioned below is just a random example). About 1 time out of 4 when I load this...
Dear experts, With assumption that before_filter below at ApplicationController is correct, I got an issue while trying to read a session variable at Application Controller. I have verifie...
My host upgraded Rails to 2.1.1 recently, which deprecated my Rails site done with 1.2.5. My site died at a crucial time and I managed to get the local debug version running again on my mac...
Hi, I need to be able to display some information in a floating window using ruby on rails code. can somebody help me with that? thanks.
I have a ruby program that crawls some data from a webservice (actualy fetches a file from a http, scans the file and puts stuff in a database) This process updates a database I use in a Rai...
Hello I have a text file (textfile.txt) which needs uploading to microsoft access - for example ... column 1   column 2 001234     abcde 012345     fghijk-dfr Lets say my access dbase is ...
Whenever I try to signup on my insoshi installation at www.boabox.com, I get a "Application error Rails application failed to start properly".  Although the rest of the application work...
Hello Trying to load data from text file into MYSQL Database/table. So far can upload data as per the following script - but no idea how to modify script so  as to upload from a text file. L...
Hello My following script is only dumping first line to a file - where as it should contain many hundreds - can someone correct my attempt please. P File.open("U:/Phil_Sivyer/4_B_Man_ho...
I am trying to start up a rails project and I run: rake db:create And I get: Couldn't create database for {"encoding"=>"utf8", "username"=>"root", "adapter"=>"mysql", "host"=>"localho...
I am trying to return an object retrieved from a database as xml in ruby on rails. It is a person object that has a "has many" relationship with "pets" My source is a bit like this: ...
I create a new project in NetBeans, specifying that I want to use SQLite3 for my database. I then try to run a db migrate task on the project, and I get the following error: C:/Program File...
Hi, I have this in development.rb my_path = {   :test_path_dev => 'http test' } and trying to retrieve this variable in controller and inside of the javascript function. How do I...
We are developing a Ruby on Rails application. The app will be used with IE7 on a domain by users with active directory accounts. We would like for the app to recognize the username of the per...
Hi experts, I am trying to calculate age in rails. I did something like this, but I know I am not considering leap years/months. +++++++++++ class AttendingIp < ActiveRecord::Base   ...
I am trying to make a simple usage of time fields in a rails 2 application. my table is very easy, name, synopsis, date, start and end time. I first designed a table with a start and end...
Hello, Can anyone give me hints on how to setup & use abbreviation at SciTE? Especially for Ruby. Thanks & regards.
hi, I need to dob is greater than today and this is what I did, but I get this error: undefined method `/' for Tue Nov 20 14:21:26 -0500 2007:Time ++++++++++ class AttendingIp < Acti...
Hello, I have a Ruby application that uses SQLite3 (with sqlite3-ruby). Sometimes it crashes with a SQLite3::BusyException. I think I could fix this with a begin...rescue...end block, but f...
I have Sybase ASA (10) installed locally on my Windows XP Pro machine. I have followed the instructions on http://wiki.rubyonrails.com/rails/pages/SybaseASA. My database.yml is as follow...