Ruby is an open-source dynamic object-oriented interpreted language created by Yukihiro Matsumoto (Matz) in 1993.
0
votes
2answers
10 views
Rails Joins Issue
Model.joins(:model2) creates
select models.* from models Inner Join ..............
I want to specify particular column name out here how can I do this. I would prefer a rails method over a query.
...
-1
votes
0answers
12 views
Ruby [BUG] Bus Error in OSX 10.6.8
rhc (openshift) and heroku toolbelt commands fail with the following error
/Users/johnny/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799: [BUG] Bus Error
ruby 1.9.3p194 (2012-04-20 ...
-3
votes
0answers
16 views
Ruby Script not showing output in command prompt on windows XP
I have installed ruby in my windows XP system. After that in command prompt when I am trying to check installation by using ruby -v its not outputting any version information and similarly when i am ...
-1
votes
0answers
6 views
Error installing homebrew on mac 10.7.4
I am trying to install homebrew on my mac via terminal
and here is the error that I get the following error
static-167:~ admin$ ruby -v
ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0]
...
1
vote
0answers
8 views
Ruby gtk2: button.sensitive = false - events still queue
I use a button on my ruby gtk2 app which starts a longish job processing and I want to disable the button while processing so that the user can't accidentally run it twice. I figured setting ...
0
votes
2answers
15 views
Ruby on Rails: Converting audio in background and uploading using paperclip?
I have two attachments in my model, original & modified.
My application allows a user to upload an audio file and the backend should convert it to a modified format.
The original file is ...
-4
votes
0answers
13 views
Wrap unstructured data to structured data
I need to to convert the unstructured data to structured one, is there any parser or tools is available on ruby to generate structure from what it discovers the input as a unstructured one.
If i ...
0
votes
1answer
9 views
Ruby on rails application in Windows Azure Virtual Machine
Hi i have created a ubuntu virtual machine in windows azure for deploying my rails application..
I have connected to my virtual machine through ssh and followed this procedure for deployment
...
0
votes
0answers
17 views
Rails Routing Error after deploying to production server
I have a fully functional rails app, which I am currently trying to deploy to a Digital Ocean server. I get the app FTP'd to the server and immediately get this error:
Routing Error
No route ...
0
votes
1answer
10 views
Where does rails hide js & css from a gem
I'm using gem 'jquery-fileupload-rails' and I am trying to fine tune the innate JS it is using. Where is it hiding in my app?
Thanks!
0
votes
1answer
5 views
counting documents in category chilren of Tree-based categories structure
Ok I have tricky ruby question.
I have categories and documents where documents below to 1 category. Documents only below to categories at level 2 for example: (please excuse the block quotes)
Cat 1 ...
1
vote
0answers
14 views
Ruby Gem randomly returns Encoding Error
So I forked this gem on GitHub, thinking that I may be able to fix and update some of the issues with it for use in a Rails project. I basically get this output:
irb(main):020:0> query = ...
1
vote
1answer
21 views
Is there a better way to make multiple HTTP requests asynchronously in Ruby?
I'm trying to make multiple HTTP requests in Ruby. I know it can be done in NodeJS quite easily. I'm trying to do it in Ruby using threads, but I don't know if that's the best way. I haven't had a ...
0
votes
0answers
13 views
Ruby on Rails Parentage and lineage association after the fact
i'm trying to build a genetics tracking bulk, where the parentage and children can be assigned after the animals are put into the system, currently building prototype where :pins have an associated ...
0
votes
3answers
70 views
How do I iterate in Ruby?
What's wrong with this Ruby code? I'm trying to solve the first Project Euler question.
I think the problem is in the syntax of sum += num, but I can't figure out what the proper syntax for this ...