Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

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

 
Top Ruby Solutions: 1 - 25 of 40
 
Hello Just started playing with rails - very first app - hello world. when opening a browser  - URL http://localhost:3000/say/hello - to run this app I get the following error message in the...
Hello Experimenting with excel - know how to open new workbook and enter some basic values - but struggling to know how we could import a text file into excel - if possible. Lets say the tex...
Hi, apologies for a newbie question... I'm trying to loop through 2 dates ... so .. <% start_date.until(end_date) do |dates| %> <%= dates %> <% end -%> It prints out each date ti...
This should be simple: text = 'adam|paul|mike' I want to replace that with   ->   <b>adam</b><b>paul</b><b>mike</b> So each name seperated by a |  OR a name at the end of the string s...
I have created a simple rails application using RadRails on Aptana studio. I created two tables as described below: business id:integer name:string address:string post_code:integer phone...
Hello I have been trying to strip out parts of a string resulting from an array. In my array I have collected text files from a folder - result is as follows: c:08082008.txt c:09082008.txt...
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...
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...
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 ...
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...
I am attempting to create two things. The first is a image that links to a find_all page that displays a list of all the data in a database. Below is the code found in the controller file busi...
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...
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...
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...
Hello Below is a script which Gertone kindly helped me with and was wondering rather than write in each individual file within the script (as I can have lots of files) - I would like to join ...
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...
Hello Need to compare 2 files (column 1 data only in both files - unique count) and output the difference. Note: to compare like for like I need to strip out "Availability" in File1 Column1 ...
Goodafternoon, I have got a minimum Mongrel instance running (see ruby code) and i am hitting it with an Ajax request using Prototype. (see javascript code) I get the 'onLoading' event, but...
Hi, I'm trying to create a script to automate login and eventually access a servlet, but I keep getting the following error whenever I submit the JRuby script. It is failing on the line...
When I try to access the RoR home page on http://localhost:3000, I see the page. But, when I try to access the same using the network host name of my machine, the page fails to load. telnet...
Let me start by saying that my ultimate goal is to have a listing of items grouped by release date (using distance_of_time_in_words) and sorted in chronological order. This is what I've do...
Hello My first play with this and reading through an extract in reportingwith Ruby and Rails (chapter 1). When writing the script to creat Database Tables etc it then says save file as playe...
I am trying to subtract 2 numbers; the numbers come from different sources (one from the Internet, the other from a table in a database where its type is decimal. If they both have the same...
This is purely a self learning exercise, I'm not sure whether this is going to be possible or not, though I'm sure it would allow for some great flexibility in future code. What I want, is ...
Hi experts, in Ruby, I have two arrays: products = Array.new products << ["Amazon",121212,"Harry Potter"] products << ["Amazon",242424,"John Grisham"] products << ["Amazon",353535,"Mi...