I'm currently developing a web application in Ruby on Rails.
How can I retrieve website information such as title given a remote URL?
Examples of this can be seen in many places such as del....
Hi,
I'm trying to install Rails on a SuSE Linux Enterprise Server 10.
I want to use Rails with a MySQL database, so I need to install the MySQL gem. I don't have it installed and as a con...
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...
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()
...
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...
Hello
I am brand new to ruby and was wondering how I can open a file in a different directory.
My current script (Phil.rb) reads as follows and is in the same directory as my text file (SC6....
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...
Dear all,
I have installed Ruby 1.8.6, and currently would like to install Rails-0.9.4
After downloading Rails installer, i extracted the installer nside folder C:/Ruby
Then at C:\Rub...
I'm new to Ruby on Rails. A client has expressed an interest in a project where the server-based app receives PDF files by email, then displays individual pages from the PDF on web pages. What...
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...
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 want to implement a div box on my homepage where the content is populated from a database items. The div content should (not the entire page) refresh every 5s (new random query) with a fadin...
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...
Hi, experts,
I have three links in view and I need to pass different parameter value so that I can use them in controller. How do I do that in RoR?
<%= link_to 'Click here', :action => "...
i would like to install rmagick gem at windows.
i've downloaded "rmagick-win32" and install "ImageMagick" inside the package
Inside the package i found RMagick-1.14.1.tar.bz2, and unzip it...
hi,
This will be a easy question. How do I print sql in console from the following code?
...
...
@attending_ip = AttendingIp.find(:all,
:conditions =>...
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...
Hi folks,
I've been asked to set up Ruby 1.8.6, Rails 2.1.0, and Gems 1.2.0 for a developer so they can do a project for us. Downloading and installing the bases of each turned out to be p...
Hi Experts,
I have a question displaying result set.
Currently, this works.
in controller:
@attending_ip = AttendingIp.find_by_sql("SELECT ....")
in view:
<% @attending_ip.each...
Hi,
I already have the wamp server (Apache & php w/ mysql) installed and want to use Ruby on Rails (RoR) with it. I installed everything fine (Ruby, Rubygems, Rails), but how do I get RoR ...
dear experts,
how to declare a method in Ruby that takes an OPTIONAL Array variable?
thanks & regards.
Ruby has the cool little method "inherited" . . . All I want to do is whenever another class inherits from this parent class, I want to call a specific method on the child
Hi I need a Ruby script to delete files that are older than 3 days from I guess Time.now. Can someone help me with this? Thanks.
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 ttrying to Update a field on my search result page thorugh in_place_edit and then render a partial to display the updated contents. I am receving the following instead od the real value
...