I have a machine that is notr able to get aaccess to the outside world to be able to install some libarlies.
So i am wondering how to do this manually.
Ww
I want to be able to have an input txt file with a structure as follows:
var1 = "value1"
var2 = 'value2'
var3 = value3
var4 = 52+545
I want to be able to take the input from that file...
Dear experts,
I have a function in 'helper', what is the easiest way to dug / to run / to simulate this function offline?
Is it using ruby script/console? If yes.. could you elaborate? i j...
How would I add the ability to replace the CSS style on a span tag to this code? I can replace all the HTML but I'd rather just update what I have to.
Thanks,
Grant
I'm a newbie with rails/ruby so please be patient with me thanks.
Here's my issue.
In rails, in the controller or in this case a model, let's say we do a xxx.find_all_by_some_field(some_...
is there a tool for conversion perl to ruby source codes?
I am looking to open an XML file from the web using ReXML. I cannot find any documentation on how to do it.
Below seems to be the standard answer around the web:
require "rexml/document...
hi,
I am wondering if there is smart/elegant ways of checking nil object.
I have this in controller:
@attending_ip = AttendingIp.find_by_sql("SELECT .....")
In view:
<% if @att...
Is there a way to alias a field at the model/collection level? I know it can be done on the SQL level but how would it be done with Rails?
The reason for doing this is that I want to be a...
Hello
Want to know how to sort by column asc or desc
Script is .......
require 'csv'
people = CSV.read("c:/foo.txt")
joe = people.find_all {|person| person[0] =~ /Joe/}
#when ...
dear experts,
Where to download Ruby plugin for GeoKit, I am not able to find it at RubyForge, and also unable to make this command line below run
C:\rails\webmashup>ruby script/plugin ...
In my continuing effort to understand how RoR works I am trying to replace the default 'New' controller with my own.
This is the default:
def new
@work_schedule = WorkSchedule.new
...
I have 2 seperate arrays, one has event listings (and a venue id) and the other has the venues. I'm trying to access the venue name from the second array for a given event. I think I had thi...
I have just started ROR using netbeans ... they talk about RUBY is JRuby ... ref. http://www.netbeans.org/kb/61/ruby/rapid-ruby-weblog.html
Is this differs from normal RUBY ON RAILS develop...
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 have seen some information that pertains to lat and lon plotting in flash, but I have a bit of a different question. I need to show a map (and I'm going to modify the map based upon various...
I noticed that in a rails directory there is a folder called scripts . . . and if you want to call one of the ruby scripts within it you just say:
scripts/generate
script/server
I wrot...
Hello
Is it possible to get user input by using an Input Box e.g
Does a file exists - my code is as follows ........
puts "The file you are looking for does exist" if File.exist?("c:/Phil.t...
Here is a two level deep initialization:
>> h = Hash.new{ |h,k| h[k] = Hash.new{ |h2,k2| h2[k2] = {} } }
=> {}
>> h["a"]["b"]
=> {}
I need the following to work to any depth
>> h["a"][...
Hello,
I would like to learn a (preferably simple) way to e-mail a textfile as an attachment from within a Ruby program (without Rails).
If there is not a simple way in Ruby itself, a Li...
I am having trouble in getting the value from an input field in a form.
The value is modified via an rjs file and the form shows the value in the field after the rjs file has modified it. ...
Today is my first day with rails
I want to use Instant Rails with the RadRails IDE. I learned about instant rails here: http://www.onlamp.com/pub/a/onlamp/2006/12/14/revisiting-ruby-on-rai...
This piece of code is from flickr.rb which searches flickr. What I'm having a problem with is when no photos are returned based on the keywords I'm providing, it throws an error. I think its b...
hi, i'm a complete Ruby newbie. i have programmed in other languages though, so am comfortable with code. To learn the language i want to create a project in Ruby that i can use for my busines...
I can't manage to define a new class (actually an exception) and then
instantiating it from C.
I define the class with:
xr_cException = rb_define_class_under(xr_module, "Exception",
rb_e...