Time for your 3rd Quarter Update! Are you in the running for the 6th Annual Expert Awards? Click the link to find out.

Third Quarter Hot Shots
 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested Ruby Solutions: 1 - 25 of 142
 
Basically I have one string that I need to break out into seperate parts.  I'm still not great with ruby functions so just need a little help. I start with a string that looks like the foll...
I have been running Ruby on a CentOS vps for a while with no problems.  I have been running 1.8.4, which was installed using Yum.  I want to upgrade to 1.8.6, but Yum can't seem to find this v...
Dear experts, In RoR there is a function called link_to_remote(name, options = {}, html_options = {}) where we can write an AJAX link. This is the example for Rails API   link_to_r...
I have an installation of LAMP through XAMPP; i.e. I have PHP, MySql, Apache configured. I also downloaded Ruby and installed Rails through Ruby Gems command line. What do I do next? How d...
dallasray@justis:~$ sudo gem install mongrel mongrel_rails Select which gem to install for your platform (i486-linux)  1. mongrel 1.1.3 (java)  2. mongrel 1.1.3 (i386-mswin32)  3. mongrel ...
I am playing with netbeans and want to get to know subversion.  I have but 1 computer and am "playing" with learning ruby.   I would like to find a subversion server I can put files up on. ...
I forgot to put any code in the 'down' section. How do I undo a 'rake db:migrate'?
Dear experts, From what i read, RoR has great support to AJAX. My question is how Ruby on Rails compare to Google Web Toolkit? In other words, what does Google Web Toolkit have, that RoR...
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 get my submission form to disable it's submit button until turned back on by RJS.  Here is how I am doing it and if someone can suggest a solution that would be great.  i just n...
Hello I want to be able to select rows (or size - say 40KB chunks of data )from a file and write selection to a new file. The original file is too big to read using notepad so I want to brea...
I would like the rails app to reload the page that it came from after executing a method.   I can get it to reload a specific page (redirect_to :action => 'list'), however I want it to relo...
Is there an easy way to get the domain name of where something was called from? For example, if I have the same app that is linked to both www.somesite.com and www.somesite.net, is there an...
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 have a one-to-many relationship between a 'file' and a 'directory'.  What I'd like is that in the 'file' scaffolding (maybe view is more appropriate?), a dropdown with all 'directory' listin...
I have the need to create a large number of check boxes (22), and then write the values to a single entry within Ruby on Rails. The user will fill out a form, and select the check boxes for...
I am generating a list from a collection using partials.  In each row of the list I am using a checkbox which the user can use to set the "on-off" state of that item.  The intent is when the u...
I am trying to iterate thru a table in a webpage. This works:: table = ie.table(:index,5) <- it finds the correct table in the page This works::xtable = ie.table(:index,5).row_count() <- it ...
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...
Dear experts, How to change IP Address permanently in Linux OpenWRT?
Hi experts, I started working with with Ruby and this looks like a rather simple problem I think, but still couldn't solve it. products = Array.new doc.search( "//td[@class='foo']" )....
I'm just trying to create a new view. I have cards controller, with the standard add/edit/delete pages. I wanted to add a link in cards/index.html.erb to link to "Request New Card" which...
I have a list of people that I am trying to edit.  I am trying to create a form that replaces the row when someone clicks on an ajax/prototype link.  Since I created the rows with a partial an...
I am installing Ruby On Rails on SLES 10, http://www.novell.com/documentation/sles10/esd/di_sles10_vmware.html. All was fine until I tried to start the console. From Google I think I learne...
new to ruby on rails started using netbeans and dont know how it works is there a tutorial that tells someone the commands to type in command prompt and how to create and organize new fi...