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.

 
Time Tested Ruby Solutions: 1 - 25 of 138
 
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 ...
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...
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 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 forgot to put any code in the 'down' section. How do I undo a 'rake db:migrate'?
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 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...
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 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...
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 ...
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...
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 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...
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 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...
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...
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" ...
Hello I have a csv file (approx 20000 lines) and I want to count the number of times the following text (On Hold)appears in a given field (Col4)  Example .... Col1,      Col2 ,    Col3,    ...
I am trying to add a javascript "onsubmit" to a ruby on rails form (boss wrote the basic code then took off on vacation leaving me to finish something in a language I sooo don't know yet) H...
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, 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...
In perl and PHP there are variable variables and variable functions such that... $func = 'foo'; $func();        // This calls foo() $func = 'bar'; $func('test');  // This calls bar() ...
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...