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: 1 - 25 of 161
 
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...
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...
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 ...
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...
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...
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 forgot to put any code in the 'down' section. How do I undo a 'rake db:migrate'?
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...
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...
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 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...
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']" )....
hi, i've got the following problem: within a view of my rails program i'm trying to open a form in a lightwindow. for this form need one predefined value (the category id from where the form ...
I am trying to find the best approach to a selection list in a form that I have. What I have are two selection lists, 'A' & 'B'.  In my database all I store is selection list 'B'.  Selectio...
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 ...
I am using a :toggle_blind function on a DIV block as part of the return in an AJAX call.  If the user does the right thing then I want the DIV to slide away.  I get that to work fine.  What I...
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...
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...
Hi , I'm trying to format an error message that comes out of save! method but , it keeps going to its default screen.  here 's the code controller   def register     @title ="Register" ...
HI, I am a complete beginer in Ruby. I want to find out how to open a text file, read every line and remove each occurance of quotes (") in the file using Ruby code. Thanks
I need to work with this string to return only the numbers... $Name just deposited 20000000 in the bank. I need to remove $Name just deposited and in the bank. returning only: 200000...
Hello, I am creating an application to learn Rails and I've come to a point that I really can;t find any help on. I have a many-to-many relationship between SHOW and ARTIST associated by...
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...
Hi, I am trying to use a cron job to render and mail pdf files on a daily basis. Problem is that this code doesn't compile and render the template; it just passes the embedded ruby code o...
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...